mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
tmp
This commit is contained in:
parent
5df77eb474
commit
f2b0f64138
9
.gitignore
vendored
9
.gitignore
vendored
@ -254,4 +254,11 @@ docs/generated
|
|||||||
build/Makefile
|
build/Makefile
|
||||||
|
|
||||||
# debian stuff
|
# debian stuff
|
||||||
.pc/
|
.pc/
|
||||||
|
|
||||||
|
# qt
|
||||||
|
|
||||||
|
qt/i2pd_qt/*.ui.autosave
|
||||||
|
qt/i2pd_qt/*.ui.bk*
|
||||||
|
qt/i2pd_qt/*.ui_*
|
||||||
|
|
||||||
|
@ -16,6 +16,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
//TODO handle resizes and change the below into resize() call
|
||||||
setFixedSize(width(), 480);
|
setFixedSize(width(), 480);
|
||||||
onResize();
|
onResize();
|
||||||
|
|
||||||
@ -52,10 +54,77 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
QObject::connect(ui->restartPagePushButton, SIGNAL(released()), this, SLOT(showRestartPage()));
|
QObject::connect(ui->restartPagePushButton, SIGNAL(released()), this, SLOT(showRestartPage()));
|
||||||
QObject::connect(ui->quitPagePushButton, SIGNAL(released()), this, SLOT(showQuitPage()));
|
QObject::connect(ui->quitPagePushButton, SIGNAL(released()), this, SLOT(showQuitPage()));
|
||||||
|
|
||||||
/*
|
|
||||||
QObject::connect(ui->fastQuitPushButton, SIGNAL(released()), this, SLOT(handleQuitButton()));
|
QObject::connect(ui->fastQuitPushButton, SIGNAL(released()), this, SLOT(handleQuitButton()));
|
||||||
QObject::connect(ui->gracefulQuitPushButton, SIGNAL(released()), this, SLOT(handleGracefulQuitButton()));
|
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);
|
||||||
|
|
||||||
|
initFolderChooser(dataFolderLineEdit, dataFolderBrowsePushButton);
|
||||||
|
|
||||||
|
initCombobox(logLevelComboBox);
|
||||||
|
|
||||||
|
initIPAddressBox(routerExternalHostLineEdit, tr("Router external address -> Host"));
|
||||||
|
initTCPPortBox(routerExternalPortLineEdit, tr("Router external address -> Port"));
|
||||||
|
|
||||||
|
initCheckBox(ipv6CheckBox);
|
||||||
|
initCheckBox(notransitCheckBox);
|
||||||
|
initCheckBox(floodfillCheckBox);
|
||||||
|
initIntegerBox(bandwidthLineEdit);
|
||||||
|
initStringBox(familyLineEdit);
|
||||||
|
initIntegerBox(netIdLineEdit);
|
||||||
|
|
||||||
|
initCheckBox(insomniaCheckBox);
|
||||||
|
|
||||||
|
initCheckBox(webconsoleEnabledCheckBox);
|
||||||
|
initIPAddressBox(webconsoleAddrLineEdit, tr("HTTP webconsole -> IP address"));
|
||||||
|
initTCPPortBox(webconsolePortLineEdit, tr("HTTP webconsole -> Port"));
|
||||||
|
initCheckBox(webconsoleBasicAuthCheckBox);
|
||||||
|
initStringBox(webconsoleUserNameLineEditBasicAuth);
|
||||||
|
initStringBox(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(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(socksProxyEnabledCheckBox);
|
||||||
|
initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address"));
|
||||||
|
initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port"));
|
||||||
|
|
||||||
|
initCheckBox(socksProxyEnabledCheckBox);
|
||||||
|
initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address"));
|
||||||
|
initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port"));
|
||||||
|
|
||||||
|
initCheckBox(socksProxyEnabledCheckBox);
|
||||||
|
initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address"));
|
||||||
|
initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port"));
|
||||||
|
|
||||||
|
initCheckBox(socksProxyEnabledCheckBox);
|
||||||
|
initIPAddressBox(socksProxyAddressLineEdit, tr("Socks proxy -> IP address"));
|
||||||
|
initTCPPortBox(socksProxyPortLineEdit, tr("Socks proxy -> Port"));
|
||||||
|
|
||||||
|
loadAllConfigs();
|
||||||
|
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
QObject::connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
|
QObject::connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
|
||||||
@ -74,12 +143,14 @@ void MainWindow::showTunnelsPage(){ui->stackedWidget->setCurrentIndex(2);}
|
|||||||
void MainWindow::showRestartPage(){ui->stackedWidget->setCurrentIndex(3);}
|
void MainWindow::showRestartPage(){ui->stackedWidget->setCurrentIndex(3);}
|
||||||
void MainWindow::showQuitPage(){ui->stackedWidget->setCurrentIndex(4);}
|
void MainWindow::showQuitPage(){ui->stackedWidget->setCurrentIndex(4);}
|
||||||
|
|
||||||
|
//TODO
|
||||||
void MainWindow::resizeEvent(QResizeEvent *event)
|
void MainWindow::resizeEvent(QResizeEvent *event)
|
||||||
{
|
{
|
||||||
QMainWindow::resizeEvent(event);
|
QMainWindow::resizeEvent(event);
|
||||||
onResize();
|
onResize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO
|
||||||
void MainWindow::onResize()
|
void MainWindow::onResize()
|
||||||
{
|
{
|
||||||
if(isVisible()){
|
if(isVisible()){
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
<x>10</x>
|
<x>10</x>
|
||||||
<y>10</y>
|
<y>10</y>
|
||||||
<width>801</width>
|
<width>801</width>
|
||||||
<height>491</height>
|
<height>3000</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
@ -114,7 +114,7 @@
|
|||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>16777215</width>
|
<width>16777215</width>
|
||||||
<height>516</height>
|
<height>3000</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
@ -127,7 +127,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>671</width>
|
<width>671</width>
|
||||||
<height>491</height>
|
<height>3000</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||||
@ -175,7 +175,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>701</width>
|
<width>701</width>
|
||||||
<height>460</height>
|
<height>3000</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||||
|
Loading…
Reference in New Issue
Block a user