2017-03-14 15:34:01 +03:00
|
|
|
#ifndef CLIENTTUNNELPANE_H
|
|
|
|
#define CLIENTTUNNELPANE_H
|
|
|
|
|
|
|
|
#include "QGridLayout"
|
|
|
|
|
|
|
|
#include "TunnelPane.h"
|
|
|
|
|
2017-04-02 22:39:24 +03:00
|
|
|
class ClientTunnelConfig;
|
|
|
|
|
2017-03-14 15:34:01 +03:00
|
|
|
class ServerTunnelPane;
|
|
|
|
class TunnelPane;
|
|
|
|
|
|
|
|
class ClientTunnelPane : public TunnelPane {
|
2017-04-02 22:39:24 +03:00
|
|
|
Q_OBJECT
|
2017-03-14 15:34:01 +03:00
|
|
|
public:
|
|
|
|
ClientTunnelPane();
|
2017-04-02 22:39:24 +03:00
|
|
|
virtual ~ClientTunnelPane(){}
|
2017-03-14 15:34:01 +03:00
|
|
|
virtual ServerTunnelPane* asServerTunnelPane();
|
|
|
|
virtual ClientTunnelPane* asClientTunnelPane();
|
2017-04-02 22:39:24 +03:00
|
|
|
void appendClientTunnelForm(ClientTunnelConfig* tunnelConfig, QWidget *tunnelsFormGridLayoutWidget,
|
|
|
|
QGridLayout *tunnelsFormGridLayout, int tunnelsRow);
|
2017-03-14 15:34:01 +03:00
|
|
|
void deleteClientTunnelForm(QGridLayout *tunnelsFormGridLayout);
|
2017-04-02 22:39:24 +03:00
|
|
|
private:
|
|
|
|
QGroupBox *clientTunnelNameGroupBox;
|
|
|
|
|
|
|
|
//tunnel
|
|
|
|
QWidget *gridLayoutWidget_2;
|
|
|
|
|
|
|
|
//destination
|
|
|
|
QHBoxLayout *horizontalLayout_2;
|
|
|
|
QLabel *destinationLabel;
|
|
|
|
QLineEdit *destinationLineEdit;
|
|
|
|
QSpacerItem *destinationHorizontalSpacer;
|
|
|
|
|
|
|
|
//port
|
|
|
|
QLabel * portLabel;
|
|
|
|
QLineEdit * portLineEdit;
|
|
|
|
|
|
|
|
//keys
|
|
|
|
QLabel * keysLabel;
|
|
|
|
QLineEdit * keysLineEdit;
|
|
|
|
|
|
|
|
//address
|
|
|
|
QLabel * addressLabel;
|
|
|
|
QLineEdit * addressLineEdit;
|
|
|
|
|
|
|
|
//destinationPort
|
|
|
|
QLabel * destinationPortLabel;
|
|
|
|
QLineEdit * destinationPortLineEdit;
|
|
|
|
|
2017-03-14 15:34:01 +03:00
|
|
|
protected slots:
|
2017-04-02 22:39:24 +03:00
|
|
|
virtual void setGroupBoxTitle(const QString & title);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void retranslateClientTunnelForm(ClientTunnelPane& /*ui*/) {
|
|
|
|
destinationLabel->setText(QApplication::translate("srvTunForm", "Destination:", 0));
|
|
|
|
portLabel->setText(QApplication::translate("srvTunForm", "Port:", 0));
|
|
|
|
keysLabel->setText(QApplication::translate("srvTunForm", "Keys:", 0));
|
|
|
|
destinationPortLabel->setText(QApplication::translate("srvTunForm", "Destination port:", 0));
|
|
|
|
addressLabel->setText(QApplication::translate("srvTunForm", "Address:", 0));
|
|
|
|
}
|
|
|
|
|
2017-03-14 15:34:01 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CLIENTTUNNELPANE_H
|