mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
added one missing sigtype to Identity.h. Some work on qt gui.
This commit is contained in:
parent
b3050af1a7
commit
61e1e7fe8f
10 changed files with 133 additions and 203 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "ClientTunnelPane.h"
|
||||
#include "../../ClientContext.h"
|
||||
#include "SignatureTypeComboboxFactory.h"
|
||||
|
||||
ClientTunnelPane::ClientTunnelPane()
|
||||
{
|
||||
|
@ -39,7 +40,7 @@ void ClientTunnelPane::appendClientTunnelForm(
|
|||
tunnelTypeComboBox->addItem("HTTP Proxy", i2p::client::I2P_TUNNELS_SECTION_TYPE_HTTPPROXY);
|
||||
tunnelTypeComboBox->addItem("UDP Client", i2p::client::I2P_TUNNELS_SECTION_TYPE_UDPCLIENT);
|
||||
|
||||
gridLayoutWidget_2->setGeometry(QRect(0, 0, 561, (7+5)*40));
|
||||
gridLayoutWidget_2->setGeometry(QRect(0, 0, 561, (7+4)*60));
|
||||
|
||||
setupTunnelPane(tunnelConfig,
|
||||
clientTunnelNameGroupBox,
|
||||
|
@ -158,8 +159,17 @@ void ClientTunnelPane::appendClientTunnelForm(
|
|||
}
|
||||
{
|
||||
i2p::data::SigningKeyType sigType = tunnelConfig->getsigType();
|
||||
//combo box
|
||||
//TODO sigtype
|
||||
QHBoxLayout *horizontalLayout_2 = new QHBoxLayout();
|
||||
horizontalLayout_2->setObjectName(QStringLiteral("horizontalLayout_2"));
|
||||
ui.sigTypeLabel = new QLabel(gridLayoutWidget_2);
|
||||
sigTypeLabel->setObjectName(QStringLiteral("sigTypeLabel"));
|
||||
horizontalLayout_2->addWidget(sigTypeLabel);
|
||||
ui.sigTypeComboBox = SignatureTypeComboBoxFactory::createSignatureTypeComboBox(gridLayoutWidget_2, sigType);
|
||||
sigTypeComboBox->setObjectName(QStringLiteral("sigTypeComboBox"));
|
||||
horizontalLayout_2->addWidget(sigTypeComboBox);
|
||||
QSpacerItem * horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
horizontalLayout_2->addItem(horizontalSpacer);
|
||||
tunnelGridLayout->addLayout(horizontalLayout_2, ++gridIndex, 0, 1, 1);
|
||||
}
|
||||
{
|
||||
I2CPParameters& i2cpParameters = tunnelConfig->getI2cpParameters();
|
||||
|
@ -167,6 +177,8 @@ void ClientTunnelPane::appendClientTunnelForm(
|
|||
}
|
||||
|
||||
retranslateClientTunnelForm(ui);
|
||||
|
||||
tunnelGridLayout->invalidate();
|
||||
}
|
||||
|
||||
ServerTunnelPane* ClientTunnelPane::asServerTunnelPane(){return nullptr;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue