diff --git a/qt/i2pd_qt/mainwindow.cpp b/qt/i2pd_qt/mainwindow.cpp index 7c545a4c..cc4dd0b3 100644 --- a/qt/i2pd_qt/mainwindow.cpp +++ b/qt/i2pd_qt/mainwindow.cpp @@ -57,72 +57,88 @@ MainWindow::MainWindow(QWidget *parent) : QObject::connect(ui->fastQuitPushButton, SIGNAL(released()), this, SLOT(handleQuitButton())); QObject::connect(ui->gracefulQuitPushButton, SIGNAL(released()), this, SLOT(handleGracefulQuitButton())); - initFileChooser(configFileLineEdit, configFileBrowsePushButton); - initFileChooser(tunnelsConfigFileLineEdit, tunnelsConfigFileBrowsePushButton); - initFileChooser(pidFileLineEdit, pidFileBrowsePushButton); - initFileChooser(logFileLineEdit, logFileBrowsePushButton); - initFileChooser(httpProxyKeyFileLineEdit, httpProxyKeyFilePushButton); - initFileChooser(socksProxyKeyFileLineEdit, socksProxyKeyFilePushButton); - initFileChooser(i2pControlCertFileLineEdit, i2pControlCertFileBrowsePushButton); - initFileChooser(i2pControlKeyFileLineEdit, i2pControlKeyFileBrowsePushButton); - initFileChooser(reseedFileLineEdit, reseedFileBrowsePushButton); + initFileChooser(ui->configFileLineEdit, ui->configFileBrowsePushButton); + initFileChooser(ui->tunnelsConfigFileLineEdit, ui->tunnelsConfigFileBrowsePushButton); + initFileChooser(ui->pidFileLineEdit, ui->pidFileBrowsePushButton); + initFileChooser(ui->logFileLineEdit, ui->logFileBrowsePushButton); + initFileChooser(ui->httpProxyKeyFileLineEdit, ui->httpProxyKeyFilePushButton); + initFileChooser(ui->socksProxyKeyFileLineEdit, ui->socksProxyKeyFilePushButton); + initFileChooser(ui->i2pControlCertFileLineEdit, ui->i2pControlCertFileBrowsePushButton); + initFileChooser(ui->i2pControlKeyFileLineEdit, ui->i2pControlKeyFileBrowsePushButton); + initFileChooser(ui->reseedFileLineEdit, ui->reseedFileBrowsePushButton); - initFolderChooser(dataFolderLineEdit, dataFolderBrowsePushButton); + initFolderChooser(ui->dataFolderLineEdit, ui->dataFolderBrowsePushButton); - initCombobox(logLevelComboBox); + initCombobox(ui->logLevelComboBox); - initIPAddressBox(routerExternalHostLineEdit, tr("Router external address -> Host")); - initTCPPortBox(routerExternalPortLineEdit, tr("Router external address -> Port")); + initIPAddressBox(ui->routerExternalHostLineEdit, tr("Router external address -> Host")); + initTCPPortBox(ui->routerExternalPortLineEdit, tr("Router external address -> Port")); - initCheckBox(ipv6CheckBox); - initCheckBox(notransitCheckBox); - initCheckBox(floodfillCheckBox); - initIntegerBox(bandwidthLineEdit); - initStringBox(familyLineEdit); - initIntegerBox(netIdLineEdit); + initCheckBox(ui->ipv6CheckBox); + initCheckBox(ui->notransitCheckBox); + initCheckBox(ui->floodfillCheckBox); + initIntegerBox(ui->bandwidthLineEdit); + initStringBox(ui->familyLineEdit); + initIntegerBox(ui->netIdLineEdit); - initCheckBox(insomniaCheckBox); + initCheckBox(ui->insomniaCheckBox); - initCheckBox(webconsoleEnabledCheckBox); - initIPAddressBox(webconsoleAddrLineEdit, tr("HTTP webconsole -> IP address")); - initTCPPortBox(webconsolePortLineEdit, tr("HTTP webconsole -> Port")); - initCheckBox(webconsoleBasicAuthCheckBox); - initStringBox(webconsoleUserNameLineEditBasicAuth); - initStringBox(webconsolePasswordLineEditBasicAuth); + initCheckBox(ui->webconsoleEnabledCheckBox); + initIPAddressBox(ui->webconsoleAddrLineEdit, tr("HTTP webconsole -> IP address")); + initTCPPortBox(ui->webconsolePortLineEdit, tr("HTTP webconsole -> Port")); + initCheckBox(ui->webconsoleBasicAuthCheckBox); + initStringBox(ui->webconsoleUserNameLineEditBasicAuth); + initStringBox(ui->webconsolePasswordLineEditBasicAuth); - initCheckBox(httpProxyEnabledCheckBox); - initIPAddressBox(httpProxyAddressLineEdit, tr("HTTP proxy -> IP address")); - initTCPPortBox(httpProxyPortLineEdit, tr("HTTP proxy -> Port")); - initIntegerBox(httpProxyInboundTunnelsLenLineEdit); - initIntegerBox(httpProxyInboundTunnQuantityLineEdit); - initIntegerBox(httpProxyOutBoundTunnLenLineEdit); - initIntegerBox(httpProxyOutboundTunnQuantityLineEdit); + initCheckBox(ui->httpProxyEnabledCheckBox); + initIPAddressBox(ui->httpProxyAddressLineEdit, tr("HTTP proxy -> IP address")); + initTCPPortBox(ui->httpProxyPortLineEdit, tr("HTTP proxy -> Port")); + initIntegerBox(ui->httpProxyInboundTunnelsLenLineEdit); + initIntegerBox(ui->httpProxyInboundTunnQuantityLineEdit); + initIntegerBox(ui->httpProxyOutBoundTunnLenLineEdit); + initIntegerBox(ui->httpProxyOutboundTunnQuantityLineEdit); - initCheckBox(socksProxyEnabledCheckBox); - initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address")); - initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port")); - initIntegerBox(socksProxyInboundTunnelsLenLineEdit); - initIntegerBox(socksProxyInboundTunnQuantityLineEdit); - initIntegerBox(socksProxyOutBoundTunnLenLineEdit); - initIntegerBox(socksProxyOutboundTunnQuantityLineEdit); - initIPAddressBox(outproxyAddressLineEdit, tr("Socks proxy -> Outproxy address")); - initTCPPortBox(outproxyPortLineEdit, tr("Socks proxy -> Outproxy port")); + initCheckBox(ui->socksProxyEnabledCheckBox); + initIPAddressBox(ui->socksProxyAddressLineEdit, tr("Socks proxy -> IP address")); + initTCPPortBox(ui->socksProxyPortLineEdit, tr("Socks proxy -> Port")); + initIntegerBox(ui->socksProxyInboundTunnelsLenLineEdit); + initIntegerBox(ui->socksProxyInboundTunnQuantityLineEdit); + initIntegerBox(ui->socksProxyOutBoundTunnLenLineEdit); + initIntegerBox(ui->socksProxyOutboundTunnQuantityLineEdit); + initIPAddressBox(ui->outproxyAddressLineEdit, tr("Socks proxy -> Outproxy address")); + initTCPPortBox(ui->outproxyPortLineEdit, tr("Socks proxy -> Outproxy port")); - initCheckBox(socksProxyEnabledCheckBox); - initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address")); - initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port")); + initCheckBox(ui->samEnabledCheckBox); + initIPAddressBox(ui->samAddressLineEdit, tr("SAM -> IP address")); + initTCPPortBox(ui->samPortLineEdit, tr("SAM -> Port")); - initCheckBox(socksProxyEnabledCheckBox); - initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address")); - initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port")); + initCheckBox(ui->bobEnabledCheckBox); + initIPAddressBox(ui->bobAddressLineEdit, tr("BOB -> IP address")); + initTCPPortBox(ui->bobPortLineEdit, tr("BOB -> Port")); - initCheckBox(socksProxyEnabledCheckBox); - initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address")); - initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port")); + initCheckBox(ui->i2cpEnabledCheckBox); + initIPAddressBox(ui->i2cpAddressLineEdit, tr("I2CP -> IP address")); + initTCPPortBox(ui->i2cpPortLineEdit, tr("I2CP -> Port")); - initCheckBox(socksProxyEnabledCheckBox); - initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address")); - initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port")); + initCheckBox(ui->i2pControlEnabledCheckBox); + initIPAddressBox(ui->i2pControlAddressLineEdit, tr("I2PControl -> IP address")); + initTCPPortBox(ui->i2pControlPortLineEdit, tr("I2PControl -> Port")); + initStringBox(ui->i2pControlPasswordLineEdit); + + initCheckBox(ui->enableUPnPCheckBox); + initStringBox(ui->upnpNameLineEdit); + + initCheckBox(ui->useElGamalPrecomputedTablesCheckBox); + + initCheckBox(ui->reseedVerifyCheckBox); + initStringBox(ui->reseedURLsLineEdit); + + initStringBox(ui->addressbookDefaultURLLineEdit); + initStringBox(ui->addressbookSubscriptionsURLslineEdit); + + initIntegerBox(ui->maxNumOfTransitTunnelsLineEdit); + initIntegerBox(ui->maxNumOfOpenFilesLineEdit); + initIntegerBox(ui->coreFileMaxSizeNumberLineEdit); loadAllConfigs(); @@ -235,7 +251,6 @@ void MainWindow::handleQuitButton() { void MainWindow::handleGracefulQuitButton() { qDebug("Graceful Quit pressed."); - /* ui->gracefulQuitPushButton->setText(QApplication::translate("MainWindow", "Graceful quit is in progress", 0)); ui->gracefulQuitPushButton->setEnabled(false); ui->gracefulQuitPushButton->adjustSize(); @@ -243,7 +258,6 @@ void MainWindow::handleGracefulQuitButton() { i2p::context.SetAcceptsTunnels (false); // stop accpting tunnels QTimer::singleShot(10*60*1000//millis , this, SLOT(handleGracefulQuitTimerEvent())); - */ } void MainWindow::handleGracefulQuitTimerEvent() { @@ -263,3 +277,15 @@ MainWindow::~MainWindow() //delete ui; //QMessageBox::information(0, "Debug", "mw destructor 2"); } + +void MainWindow::initFileChooser(QLineEdit* fileNameLineEdit, QPushButton* fileBrowsePushButton){} +void MainWindow::initFolderChooser(QLineEdit* folderLineEdit, QPushButton* folderBrowsePushButton){} +void MainWindow::initCombobox(QComboBox* comboBox){} +void MainWindow::initIPAddressBox(QLineEdit* addressLineEdit, QString fieldNameTranslated){} +void MainWindow::initTCPPortBox(QLineEdit* portLineEdit, QString fieldNameTranslated){} +void MainWindow::initCheckBox(QCheckBox* checkBox){} +void MainWindow::initIntegerBox(QLineEdit* numberLineEdit){} +void MainWindow::initStringBox(QLineEdit* lineEdit){} + +void MainWindow::loadAllConfigs(){} +void MainWindow::saveAllConfigs(){} diff --git a/qt/i2pd_qt/mainwindow.h b/qt/i2pd_qt/mainwindow.h index 2af82467..5ef1ae22 100644 --- a/qt/i2pd_qt/mainwindow.h +++ b/qt/i2pd_qt/mainwindow.h @@ -12,6 +12,8 @@ #include #include #include +#include +#include #ifndef ANDROID #include #include @@ -67,6 +69,19 @@ protected: #endif void resizeEvent(QResizeEvent* event); void onResize(); + + void initFileChooser(QLineEdit* fileNameLineEdit, QPushButton* fileBrowsePushButton); + void initFolderChooser(QLineEdit* folderLineEdit, QPushButton* folderBrowsePushButton); + void initCombobox(QComboBox* comboBox); + void initIPAddressBox(QLineEdit* addressLineEdit, QString fieldNameTranslated); + void initTCPPortBox(QLineEdit* portLineEdit, QString fieldNameTranslated); + void initCheckBox(QCheckBox* checkBox); + void initIntegerBox(QLineEdit* numberLineEdit); + void initStringBox(QLineEdit* lineEdit); + + void loadAllConfigs(); + void saveAllConfigs(); + }; #endif // MAINWINDOW_H diff --git a/qt/i2pd_qt/mainwindow.ui b/qt/i2pd_qt/mainwindow.ui index 8bfbfe39..825fb0e6 100644 --- a/qt/i2pd_qt/mainwindow.ui +++ b/qt/i2pd_qt/mainwindow.ui @@ -26,7 +26,7 @@ 10 10 801 - 3000 + 491 @@ -114,7 +114,7 @@ 16777215 - 3000 + 516 @@ -127,7 +127,7 @@ 0 0 671 - 3000 + 491 @@ -175,7 +175,7 @@ 0 0 701 - 3000 + 460 @@ -213,8 +213,8 @@ 0 0 - 684 - 427 + 683 + 426 @@ -2223,7 +2223,7 @@ - + @@ -2258,7 +2258,7 @@ - + @@ -2293,7 +2293,7 @@ - + @@ -2736,8 +2736,8 @@ 0 0 - 664 - 427 + 84 + 28 diff --git a/qt/i2pd_qt/mainwindow.ui.backup_workingOK b/qt/i2pd_qt/mainwindow.ui.backup_workingOK new file mode 100644 index 00000000..825fb0e6 --- /dev/null +++ b/qt/i2pd_qt/mainwindow.ui.backup_workingOK @@ -0,0 +1,2873 @@ + + + MainWindow + + + + 0 + 0 + 816 + 3000 + + + + MainWindow + + + + + 0 + 0 + + + + + + 10 + 10 + 801 + 491 + + + + + QLayout::SetDefaultConstraint + + + + + QLayout::SetMinimumSize + + + + + true + + + Status + + + + + + + true + + + Settings + + + + + + + true + + + Tunnels + + + + + + + true + + + Restart + + + + + + + true + + + Quit + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 516 + + + + 1 + + + + + + 0 + 0 + 671 + 491 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Status + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 0 + 0 + + + + + + 0 + 0 + 701 + 460 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Settings + + + + + + + Qt::ScrollBarAlwaysOn + + + Qt::ScrollBarAsNeeded + + + QAbstractScrollArea::AdjustIgnored + + + true + + + + + 0 + 0 + 683 + 426 + + + + + 0 + 0 + + + + + + 10 + 11 + 661 + 3000 + + + + + + + + 0 + 0 + + + + + 0 + 46 + + + + + 16777215 + 46 + + + + Configuration file: + + + + + 0 + 18 + 661 + 31 + + + + + QLayout::SetMinimumSize + + + + + + + + Browse… + + + + + + + + + + + + 0 + 0 + + + + + 0 + 215 + + + + + 16777215 + 215 + + + + Router options + + + + + 0 + 20 + 661 + 188 + + + + + + + Enable communication through ipv6 + + + + + + + Router will not accept transit tunnels at startup + + + + + + + Router will be floodfill + + + + + + + + + Bandwidth limit (integer): + + + + + + + + + + KBps + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Family (name of a family router belongs to): + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + QLayout::SetMaximumSize + + + + + NetID (network ID router belongs to. The main I2P ID is 2): + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + 0 + 309 + + + + + 16777215 + 309 + + + + Socks proxy + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 100 + 661 + 31 + + + + + + + Keys file: + + + + + + + + + + Browse… + + + + + + + + + 0 + 130 + 661 + 31 + + + + + + + Inbound tunnels length: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 160 + 661 + 31 + + + + + + + Inbound tunnels quantity: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 190 + 661 + 31 + + + + + + + Outbound tunnels length: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 220 + 661 + 31 + + + + + + + Outbound tunnels quantity: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 250 + 661 + 31 + + + + + + + Outproxy address: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 280 + 661 + 31 + + + + + + + Outproxy port: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 0 + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + Router external address (for incoming connections) + + + Qt::AlignJustify|Qt::AlignTop + + + + + 0 + 20 + 661 + 81 + + + + + QLayout::SetMinAndMaxSize + + + + + QLayout::SetMinAndMaxSize + + + + + Host: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + QLayout::SetMinAndMaxSize + + + + + Port (leave empty to auto-assign): + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + 0 + 0 + + + + + 0 + 48 + + + + + 16777215 + 48 + + + + Tunnels configuration file: + + + + + 0 + 20 + 661 + 31 + + + + + QLayout::SetMaximumSize + + + + + + + + Browse… + + + + + + + + + + + + 0 + 48 + + + + + 16777215 + 48 + + + + Data folder (for storage of i2pd data — RI, keys, peer profiles, …): + + + + + 0 + 20 + 661 + 31 + + + + + QLayout::SetMaximumSize + + + + + + + + Browse… + + + + + + + + + + + + 0 + 249 + + + + + 16777215 + 249 + + + + HTTP proxy + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 100 + 661 + 31 + + + + + + + Keys file: + + + + + + + + + + Browse… + + + + + + + + + 0 + 130 + 661 + 31 + + + + + + + Inbound tunnels length: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 160 + 661 + 31 + + + + + + + Inbound tunnels quantity: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 190 + 661 + 31 + + + + + + + Outbound tunnels length: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 220 + 661 + 31 + + + + + + + Outbound tunnels quantity: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 179 + + + + + 16777215 + 179 + + + + HTTP webconsole + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 100 + 321 + 22 + + + + Enable basic HTTP auth + + + + + + 60 + 120 + 601 + 31 + + + + + + + Username: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 60 + 150 + 601 + 31 + + + + + + + Password: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 60 + + + + + 16777215 + 60 + + + + + 13 + + + + General options + + + + + + + + 0 + 107 + + + + + 16777215 + 107 + + + + Logging + + + Qt::AlignJustify|Qt::AlignTop + + + + + -1 + 19 + 661 + 91 + + + + + QLayout::SetMinimumSize + + + + + QLayout::SetMaximumSize + + + + + Log file: + + + + + + + + + + Browse… + + + + + + + + + QLayout::SetMinimumSize + + + + + + 0 + 0 + + + + Log level: + + + + + + + + Error + + + + + Warn + + + + + Info + + + + + Debug + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + SAM interface + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + BOB interface + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + I2CP interface + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 189 + + + + + 16777215 + 189 + + + + I2PControl interface + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 100 + 661 + 31 + + + + + + + Password: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 130 + 661 + 31 + + + + + + + Certificate file: + + + + + + + + + + Browse… + + + + + + + + + 0 + 160 + 661 + 31 + + + + + + + Key file: + + + + + + + + + + Browse… + + + + + + + + + + + + 0 + 108 + + + + + 16777215 + 108 + + + + Limits + + + + + 0 + 20 + 661 + 31 + + + + + + + Maximum number of transit tunnels: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 50 + 661 + 31 + + + + + + + Maximum number of open files (0 — use system limit): + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 80 + 661 + 31 + + + + + + + Maximum size of core file in Kb (0 — use system limit): + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 60 + + + + + 16777215 + 60 + + + + + 13 + + + + Ports + + + + + + + + 0 + 22 + + + + + 16777215 + 22 + + + + Insomnia (prevent system from sleeping) + + + + + + + + 0 + 48 + + + + + 16777215 + 48 + + + + Pid file: + + + + + 0 + 20 + 661 + 31 + + + + + + + + + + Browse… + + + + + + + + + + + + 0 + 44 + + + + + 16777215 + 44 + + + + Cryptography + + + + + 0 + 20 + 661 + 22 + + + + Use ElGamal precomputed tables + + + + + + + + + 0 + 60 + + + + + 16777215 + 60 + + + + + 13 + + + + Windows-specific options + + + + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + Reseeding + + + + + 0 + 20 + 661 + 22 + + + + Request SU3 signature verification + + + + + + 0 + 40 + 661 + 31 + + + + + + + SU3 file to reseed from: + + + + + + + + + + Browse… + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Reseed URLs, separated by comma: + + + + + + + + + + + + + + + 0 + 78 + + + + + 16777215 + 78 + + + + Addressbook settings + + + + + 0 + 20 + 661 + 31 + + + + + + + Addressbook default subscription URL for initial setup: + + + + + + + + + + + + 0 + 50 + 661 + 31 + + + + + + + Addressbook subscriptions URLs, separated by comma: + + + + + + + + + + + + + + + 0 + 60 + + + + + 16777215 + 60 + + + + + 13 + + + + Various options + + + + + + + + 0 + 68 + + + + + 16777215 + 68 + + + + UPnP + + + + + 0 + 20 + 97 + 22 + + + + Enable + + + + + + 0 + 40 + 661 + 31 + + + + + + + Name i2pd appears in UPnP forwardings list: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 681 + 460 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Tunnels + + + + + + + Qt::ScrollBarAlwaysOn + + + true + + + + + 0 + 0 + 84 + 28 + + + + + + + + + + + + + 0 + 0 + 681 + 451 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Restart + + + + + + + Restart i2pd + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 0 + 0 + + + + + + 0 + 0 + 671 + 480 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Quit + + + + + + + Quit Now + + + + + + + Graceful Quit + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + + + + + handleQuitButton() + handleGracefulQuitButton() + + diff --git a/qt/i2pd_qt/mainwindow.ui_expandedForm_old b/qt/i2pd_qt/mainwindow.ui_expandedForm_old new file mode 100644 index 00000000..feb3b738 --- /dev/null +++ b/qt/i2pd_qt/mainwindow.ui_expandedForm_old @@ -0,0 +1,2873 @@ + + + MainWindow + + + + 0 + 0 + 816 + 5000 + + + + MainWindow + + + + + 0 + 0 + + + + + + 10 + 10 + 801 + 5000 + + + + + QLayout::SetDefaultConstraint + + + + + QLayout::SetMinimumSize + + + + + true + + + Status + + + + + + + true + + + Settings + + + + + + + true + + + Tunnels + + + + + + + true + + + Restart + + + + + + + true + + + Quit + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 0 + 0 + + + + + 16777215 + 5000 + + + + 1 + + + + + + 0 + 0 + 671 + 5000 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Status + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 0 + 0 + + + + + + 0 + 0 + 701 + 5000 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Settings + + + + + + + Qt::ScrollBarAlwaysOn + + + Qt::ScrollBarAsNeeded + + + QAbstractScrollArea::AdjustIgnored + + + true + + + + + 0 + 0 + 684 + 427 + + + + + 0 + 0 + + + + + + 10 + 11 + 661 + 5000 + + + + + + + + 0 + 0 + + + + + 0 + 46 + + + + + 16777215 + 46 + + + + Configuration file: + + + + + 0 + 18 + 661 + 31 + + + + + QLayout::SetMinimumSize + + + + + + + + Browse… + + + + + + + + + + + + 0 + 0 + + + + + 0 + 215 + + + + + 16777215 + 215 + + + + Router options + + + + + 0 + 20 + 661 + 188 + + + + + + + Enable communication through ipv6 + + + + + + + Router will not accept transit tunnels at startup + + + + + + + Router will be floodfill + + + + + + + + + Bandwidth limit (integer): + + + + + + + + + + KBps + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Family (name of a family router belongs to): + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + QLayout::SetMaximumSize + + + + + NetID (network ID router belongs to. The main I2P ID is 2): + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + 0 + 309 + + + + + 16777215 + 309 + + + + Socks proxy + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 100 + 661 + 31 + + + + + + + Keys file: + + + + + + + + + + Browse… + + + + + + + + + 0 + 130 + 661 + 31 + + + + + + + Inbound tunnels length: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 160 + 661 + 31 + + + + + + + Inbound tunnels quantity: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 190 + 661 + 31 + + + + + + + Outbound tunnels length: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 220 + 661 + 31 + + + + + + + Outbound tunnels quantity: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 250 + 661 + 31 + + + + + + + Outproxy address: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 280 + 661 + 31 + + + + + + + Outproxy port: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 0 + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + Router external address (for incoming connections) + + + Qt::AlignJustify|Qt::AlignTop + + + + + 0 + 20 + 661 + 81 + + + + + QLayout::SetMinAndMaxSize + + + + + QLayout::SetMinAndMaxSize + + + + + Host: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + QLayout::SetMinAndMaxSize + + + + + Port (leave empty to auto-assign): + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + 0 + 0 + + + + + 0 + 48 + + + + + 16777215 + 48 + + + + Tunnels configuration file: + + + + + 0 + 20 + 661 + 31 + + + + + QLayout::SetMaximumSize + + + + + + + + Browse… + + + + + + + + + + + + 0 + 48 + + + + + 16777215 + 48 + + + + Data folder (for storage of i2pd data — RI, keys, peer profiles, …): + + + + + 0 + 20 + 661 + 31 + + + + + QLayout::SetMaximumSize + + + + + + + + Browse… + + + + + + + + + + + + 0 + 249 + + + + + 16777215 + 249 + + + + HTTP proxy + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 100 + 661 + 31 + + + + + + + Keys file: + + + + + + + + + + Browse… + + + + + + + + + 0 + 130 + 661 + 31 + + + + + + + Inbound tunnels length: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 160 + 661 + 31 + + + + + + + Inbound tunnels quantity: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 190 + 661 + 31 + + + + + + + Outbound tunnels length: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 220 + 661 + 31 + + + + + + + Outbound tunnels quantity: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 179 + + + + + 16777215 + 179 + + + + HTTP webconsole + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 100 + 321 + 22 + + + + Enable basic HTTP auth + + + + + + 60 + 120 + 601 + 31 + + + + + + + Username: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 60 + 150 + 601 + 31 + + + + + + + Password: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 60 + + + + + 16777215 + 60 + + + + + 13 + + + + General options + + + + + + + + 0 + 107 + + + + + 16777215 + 107 + + + + Logging + + + Qt::AlignJustify|Qt::AlignTop + + + + + -1 + 19 + 661 + 91 + + + + + QLayout::SetMinimumSize + + + + + QLayout::SetMaximumSize + + + + + Log file: + + + + + + + + + + Browse… + + + + + + + + + QLayout::SetMinimumSize + + + + + + 0 + 0 + + + + Log level: + + + + + + + + Error + + + + + Warn + + + + + Info + + + + + Debug + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + SAM interface + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + BOB interface + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + I2CP interface + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 189 + + + + + 16777215 + 189 + + + + I2PControl interface + + + + + 0 + 20 + 97 + 22 + + + + Enabled + + + + + + 0 + 40 + 661 + 31 + + + + + + + IP address to listen on: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Port to listen on: + + + + + + + + 80 + 16777215 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 100 + 661 + 31 + + + + + + + Password: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 130 + 661 + 31 + + + + + + + Certificate file: + + + + + + + + + + Browse… + + + + + + + + + 0 + 160 + 661 + 31 + + + + + + + Key file: + + + + + + + + + + Browse… + + + + + + + + + + + + 0 + 108 + + + + + 16777215 + 108 + + + + Limits + + + + + 0 + 20 + 661 + 31 + + + + + + + Maximum number of transit tunnels: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 50 + 661 + 31 + + + + + + + Maximum number of open files (0 — use system limit): + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + 0 + 80 + 661 + 31 + + + + + + + Maximum size of core file in Kb (0 — use system limit): + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + 0 + 60 + + + + + 16777215 + 60 + + + + + 13 + + + + Ports + + + + + + + + 0 + 22 + + + + + 16777215 + 22 + + + + Insomnia (prevent system from sleeping) + + + + + + + + 0 + 48 + + + + + 16777215 + 48 + + + + Pid file: + + + + + 0 + 20 + 661 + 31 + + + + + + + + + + Browse… + + + + + + + + + + + + 0 + 44 + + + + + 16777215 + 44 + + + + Cryptography + + + + + 0 + 20 + 661 + 22 + + + + Use ElGamal precomputed tables + + + + + + + + + 0 + 60 + + + + + 16777215 + 60 + + + + + 13 + + + + Windows-specific options + + + + + + + + 0 + 98 + + + + + 16777215 + 98 + + + + Reseeding + + + + + 0 + 20 + 661 + 22 + + + + Request SU3 signature verification + + + + + + 0 + 40 + 661 + 31 + + + + + + + SU3 file to reseed from: + + + + + + + + + + Browse… + + + + + + + + + 0 + 70 + 661 + 31 + + + + + + + Reseed URLs, separated by comma: + + + + + + + + + + + + + + + 0 + 78 + + + + + 16777215 + 78 + + + + Addressbook settings + + + + + 0 + 20 + 661 + 31 + + + + + + + Addressbook default subscription URL for initial setup: + + + + + + + + + + + + 0 + 50 + 661 + 31 + + + + + + + Addressbook subscriptions URLs, separated by comma: + + + + + + + + + + + + + + + 0 + 60 + + + + + 16777215 + 60 + + + + + 13 + + + + Various options + + + + + + + + 0 + 68 + + + + + 16777215 + 68 + + + + UPnP + + + + + 0 + 20 + 97 + 22 + + + + Enable + + + + + + 0 + 40 + 661 + 31 + + + + + + + Name i2pd appears in UPnP forwardings list: + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + + + + + + 0 + 0 + 681 + 460 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Tunnels + + + + + + + Qt::ScrollBarAlwaysOn + + + true + + + + + 0 + 0 + 664 + 427 + + + + + + + + + + + + + 0 + 0 + 681 + 451 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Restart + + + + + + + Restart i2pd + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + 0 + 0 + + + + + + 0 + 0 + 671 + 480 + + + + + QLayout::SetMinAndMaxSize + + + + + + 15 + + + + Quit + + + + + + + Quit Now + + + + + + + Graceful Quit + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + + + + + + + + + handleQuitButton() + handleGracefulQuitButton() + +