mirror of https://github.com/GOSTSec/gostcoin
R4SAS
7 years ago
18 changed files with 581 additions and 920 deletions
@ -1,698 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<ui version="4.0"> |
|
||||||
<class>I2POptionsWidget</class> |
|
||||||
<widget class="QWidget" name="I2POptionsWidget"> |
|
||||||
<property name="geometry"> |
|
||||||
<rect> |
|
||||||
<x>0</x> |
|
||||||
<y>0</y> |
|
||||||
<width>549</width> |
|
||||||
<height>371</height> |
|
||||||
</rect> |
|
||||||
</property> |
|
||||||
<property name="windowTitle"> |
|
||||||
<string>Form</string> |
|
||||||
</property> |
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_5"> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_15"> |
|
||||||
<item> |
|
||||||
<widget class="QCheckBox" name="checkBoxUseI2POnly"> |
|
||||||
<property name="text"> |
|
||||||
<string>Use I2P only (-onlynet=i2p)</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_15"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="label"> |
|
||||||
<property name="toolTip"> |
|
||||||
<string>http://www.i2p2.i2p/i2cp.html#options</string> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string><a href="http://www.i2p2.i2p/i2cp.html#options">Help</a></string> |
|
||||||
</property> |
|
||||||
<property name="textFormat"> |
|
||||||
<enum>Qt::RichText</enum> |
|
||||||
</property> |
|
||||||
<property name="openExternalLinks"> |
|
||||||
<bool>true</bool> |
|
||||||
</property> |
|
||||||
<property name="textInteractionFlags"> |
|
||||||
<set>Qt::TextBrowserInteraction</set> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_16"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelSAMHost"> |
|
||||||
<property name="text"> |
|
||||||
<string>SAM host</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QLineEdit" name="lineEditSAMHost"> |
|
||||||
<property name="sizePolicy"> |
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> |
|
||||||
<horstretch>0</horstretch> |
|
||||||
<verstretch>0</verstretch> |
|
||||||
</sizepolicy> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string>127.0.0.1</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelSAMPort"> |
|
||||||
<property name="text"> |
|
||||||
<string>SAM port</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxSAMPort"> |
|
||||||
<property name="minimum"> |
|
||||||
<number>1</number> |
|
||||||
</property> |
|
||||||
<property name="maximum"> |
|
||||||
<number>65535</number> |
|
||||||
</property> |
|
||||||
<property name="value"> |
|
||||||
<number>7656</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_17"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_17"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelTunnelName"> |
|
||||||
<property name="text"> |
|
||||||
<string>Tunnel name</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QLineEdit" name="lineEditTunnelName"> |
|
||||||
<property name="sizePolicy"> |
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed"> |
|
||||||
<horstretch>0</horstretch> |
|
||||||
<verstretch>0</verstretch> |
|
||||||
</sizepolicy> |
|
||||||
</property> |
|
||||||
<property name="minimumSize"> |
|
||||||
<size> |
|
||||||
<width>0</width> |
|
||||||
<height>0</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string>Gostcoin-client</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_18"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QPushButton" name="pushButtonCurrentI2PAddress"> |
|
||||||
<property name="text"> |
|
||||||
<string>Current |
|
||||||
I2P-address...</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QPushButton" name="pushButtonGenerateI2PAddress"> |
|
||||||
<property name="text"> |
|
||||||
<string>Generate |
|
||||||
I2P-address...</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_14"> |
|
||||||
<item> |
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_4"> |
|
||||||
<item> |
|
||||||
<widget class="QGroupBox" name="groupBoxInbound"> |
|
||||||
<property name="title"> |
|
||||||
<string>I2CP options of inbound tunnels</string> |
|
||||||
</property> |
|
||||||
<layout class="QVBoxLayout" name="verticalLayout"> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelInboundQuantity"> |
|
||||||
<property name="text"> |
|
||||||
<string>inbound.quantity </string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxInboundQuantity"> |
|
||||||
<property name="minimum"> |
|
||||||
<number>1</number> |
|
||||||
</property> |
|
||||||
<property name="maximum"> |
|
||||||
<number>16</number> |
|
||||||
</property> |
|
||||||
<property name="value"> |
|
||||||
<number>2</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelInboundLength"> |
|
||||||
<property name="text"> |
|
||||||
<string>inbound.length </string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_2"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxInboundLength"> |
|
||||||
<property name="minimum"> |
|
||||||
<number>0</number> |
|
||||||
</property> |
|
||||||
<property name="maximum"> |
|
||||||
<number>7</number> |
|
||||||
</property> |
|
||||||
<property name="value"> |
|
||||||
<number>2</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_3"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelInboundLengthVariance"> |
|
||||||
<property name="text"> |
|
||||||
<string>inbound.lengthVariance</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_3"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxInboundLengthVariance"> |
|
||||||
<property name="minimum"> |
|
||||||
<number>-7</number> |
|
||||||
</property> |
|
||||||
<property name="maximum"> |
|
||||||
<number>7</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_4"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelInboundBackupQuality"> |
|
||||||
<property name="text"> |
|
||||||
<string>inbound.backupQuantity </string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_4"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxInboundBackupQuality"/> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_5"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelInboundAllowZeroHop"> |
|
||||||
<property name="text"> |
|
||||||
<string>inbound.allowZeroHop </string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_5"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QCheckBox" name="checkBoxInboundAllowZeroHop"> |
|
||||||
<property name="checked"> |
|
||||||
<bool>true</bool> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_6"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelInboundIPRestriction"> |
|
||||||
<property name="text"> |
|
||||||
<string>inbound.IPRestriction</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_6"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxInboundIPRestriction"> |
|
||||||
<property name="maximum"> |
|
||||||
<number>4</number> |
|
||||||
</property> |
|
||||||
<property name="value"> |
|
||||||
<number>2</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="verticalSpacer"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Vertical</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>20</width> |
|
||||||
<height>40</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_14"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3"> |
|
||||||
<item> |
|
||||||
<widget class="QGroupBox" name="groupBoxOutbound"> |
|
||||||
<property name="title"> |
|
||||||
<string>I2CP options of outbound tunnels</string> |
|
||||||
</property> |
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2"> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_7"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelOutboundQuantity"> |
|
||||||
<property name="text"> |
|
||||||
<string>outbound.quantity </string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_7"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxOutboundQuantity"> |
|
||||||
<property name="minimum"> |
|
||||||
<number>1</number> |
|
||||||
</property> |
|
||||||
<property name="value"> |
|
||||||
<number>2</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_8"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelOutboundLength"> |
|
||||||
<property name="text"> |
|
||||||
<string>outbound.length </string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_8"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxOutboundLength"> |
|
||||||
<property name="maximum"> |
|
||||||
<number>7</number> |
|
||||||
</property> |
|
||||||
<property name="value"> |
|
||||||
<number>2</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_9"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelOutboundLengthVariance"> |
|
||||||
<property name="text"> |
|
||||||
<string>outbound.lengthVariance</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_9"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxOutboundLengthVariance"> |
|
||||||
<property name="minimum"> |
|
||||||
<number>-7</number> |
|
||||||
</property> |
|
||||||
<property name="maximum"> |
|
||||||
<number>7</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_10"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelOutboundBackupQuantity"> |
|
||||||
<property name="text"> |
|
||||||
<string>outbound.backupQuantity</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_10"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxOutboundBackupQuantity"/> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_11"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelAllowZeroHop"> |
|
||||||
<property name="text"> |
|
||||||
<string>outbound.allowZeroHop </string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_11"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QCheckBox" name="checkBoxAllowZeroHop"> |
|
||||||
<property name="checked"> |
|
||||||
<bool>true</bool> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_12"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelOutboundIPRestriction"> |
|
||||||
<property name="text"> |
|
||||||
<string>outbound.IPRestriction</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_12"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxOutboundIPRestriction"> |
|
||||||
<property name="maximum"> |
|
||||||
<number>4</number> |
|
||||||
</property> |
|
||||||
<property name="value"> |
|
||||||
<number>2</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_13"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="labelOutboundPriority"> |
|
||||||
<property name="text"> |
|
||||||
<string>outbound.priority</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_13"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QSpinBox" name="spinBoxOutboundPriority"> |
|
||||||
<property name="minimum"> |
|
||||||
<number>-25</number> |
|
||||||
</property> |
|
||||||
<property name="maximum"> |
|
||||||
<number>25</number> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="verticalSpacer_2"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Vertical</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>20</width> |
|
||||||
<height>40</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</widget> |
|
||||||
<tabstops> |
|
||||||
<tabstop>checkBoxUseI2POnly</tabstop> |
|
||||||
<tabstop>lineEditSAMHost</tabstop> |
|
||||||
<tabstop>spinBoxSAMPort</tabstop> |
|
||||||
<tabstop>lineEditTunnelName</tabstop> |
|
||||||
<tabstop>pushButtonCurrentI2PAddress</tabstop> |
|
||||||
<tabstop>pushButtonGenerateI2PAddress</tabstop> |
|
||||||
<tabstop>spinBoxInboundQuantity</tabstop> |
|
||||||
<tabstop>spinBoxInboundLength</tabstop> |
|
||||||
<tabstop>spinBoxInboundLengthVariance</tabstop> |
|
||||||
<tabstop>spinBoxInboundBackupQuality</tabstop> |
|
||||||
<tabstop>checkBoxInboundAllowZeroHop</tabstop> |
|
||||||
<tabstop>spinBoxInboundIPRestriction</tabstop> |
|
||||||
<tabstop>spinBoxOutboundQuantity</tabstop> |
|
||||||
<tabstop>spinBoxOutboundLength</tabstop> |
|
||||||
<tabstop>spinBoxOutboundLengthVariance</tabstop> |
|
||||||
<tabstop>spinBoxOutboundBackupQuantity</tabstop> |
|
||||||
<tabstop>checkBoxAllowZeroHop</tabstop> |
|
||||||
<tabstop>spinBoxOutboundIPRestriction</tabstop> |
|
||||||
<tabstop>spinBoxOutboundPriority</tabstop> |
|
||||||
</tabstops> |
|
||||||
<resources/> |
|
||||||
<connections/> |
|
||||||
</ui> |
|
@ -1,100 +0,0 @@ |
|||||||
#include "i2poptionswidget.h" |
|
||||||
#include "ui_i2poptionswidget.h" |
|
||||||
|
|
||||||
#include "optionsmodel.h" |
|
||||||
#include "monitoreddatamapper.h" |
|
||||||
#include "showi2paddresses.h" |
|
||||||
//#include "i2p.h"
|
|
||||||
#include "util.h" |
|
||||||
#include "clientmodel.h" |
|
||||||
|
|
||||||
|
|
||||||
I2POptionsWidget::I2POptionsWidget(QWidget *parent) : |
|
||||||
QWidget(parent), |
|
||||||
ui(new Ui::I2POptionsWidget), |
|
||||||
clientModel(0) |
|
||||||
{ |
|
||||||
ui->setupUi(this); |
|
||||||
|
|
||||||
QObject::connect(ui->pushButtonCurrentI2PAddress, SIGNAL(clicked()), this, SLOT(ShowCurrentI2PAddress())); |
|
||||||
QObject::connect(ui->pushButtonGenerateI2PAddress, SIGNAL(clicked()), this, SLOT(GenerateNewI2PAddress())); |
|
||||||
|
|
||||||
QObject::connect(ui->checkBoxAllowZeroHop , SIGNAL(stateChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->checkBoxInboundAllowZeroHop , SIGNAL(stateChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->checkBoxUseI2POnly , SIGNAL(stateChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->lineEditSAMHost , SIGNAL(textChanged(QString)), this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->lineEditTunnelName , SIGNAL(textChanged(QString)), this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxInboundBackupQuality , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxInboundIPRestriction , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxInboundLength , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxInboundLengthVariance , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxInboundQuantity , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxOutboundBackupQuantity, SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxOutboundIPRestriction , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxOutboundLength , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxOutboundLengthVariance, SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxOutboundPriority , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxOutboundQuantity , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
QObject::connect(ui->spinBoxSAMPort , SIGNAL(valueChanged(int)) , this, SIGNAL(settingsChanged())); |
|
||||||
} |
|
||||||
|
|
||||||
I2POptionsWidget::~I2POptionsWidget() |
|
||||||
{ |
|
||||||
delete ui; |
|
||||||
} |
|
||||||
|
|
||||||
void I2POptionsWidget::setMapper(MonitoredDataMapper& mapper) |
|
||||||
{ |
|
||||||
mapper.addMapping(ui->checkBoxUseI2POnly , OptionsModel::I2PUseI2POnly); |
|
||||||
mapper.addMapping(ui->lineEditSAMHost , OptionsModel::I2PSAMHost); |
|
||||||
mapper.addMapping(ui->spinBoxSAMPort , OptionsModel::I2PSAMPort); |
|
||||||
mapper.addMapping(ui->lineEditTunnelName , OptionsModel::I2PSessionName); |
|
||||||
mapper.addMapping(ui->spinBoxInboundQuantity , OptionsModel::I2PInboundQuantity); |
|
||||||
mapper.addMapping(ui->spinBoxInboundLength , OptionsModel::I2PInboundLength); |
|
||||||
mapper.addMapping(ui->spinBoxInboundLengthVariance , OptionsModel::I2PInboundLengthVariance); |
|
||||||
mapper.addMapping(ui->spinBoxInboundBackupQuality , OptionsModel::I2PInboundBackupQuantity); |
|
||||||
mapper.addMapping(ui->checkBoxInboundAllowZeroHop , OptionsModel::I2PInboundAllowZeroHop); |
|
||||||
mapper.addMapping(ui->spinBoxInboundIPRestriction , OptionsModel::I2PInboundIPRestriction); |
|
||||||
mapper.addMapping(ui->spinBoxOutboundQuantity , OptionsModel::I2POutboundQuantity); |
|
||||||
mapper.addMapping(ui->spinBoxOutboundLength , OptionsModel::I2POutboundLength); |
|
||||||
mapper.addMapping(ui->spinBoxOutboundLengthVariance, OptionsModel::I2POutboundLengthVariance); |
|
||||||
mapper.addMapping(ui->spinBoxOutboundBackupQuantity, OptionsModel::I2POutboundBackupQuantity); |
|
||||||
mapper.addMapping(ui->checkBoxAllowZeroHop , OptionsModel::I2POutboundAllowZeroHop); |
|
||||||
mapper.addMapping(ui->spinBoxOutboundIPRestriction , OptionsModel::I2POutboundIPRestriction); |
|
||||||
mapper.addMapping(ui->spinBoxOutboundPriority , OptionsModel::I2POutboundIPRestriction); |
|
||||||
} |
|
||||||
|
|
||||||
void I2POptionsWidget::setModel(ClientModel* model) |
|
||||||
{ |
|
||||||
clientModel = model; |
|
||||||
} |
|
||||||
|
|
||||||
void I2POptionsWidget::ShowCurrentI2PAddress() |
|
||||||
{ |
|
||||||
if (clientModel) |
|
||||||
{ |
|
||||||
const QString pub = clientModel->getPublicI2PKey(); |
|
||||||
const QString priv = clientModel->getPrivateI2PKey(); |
|
||||||
const QString b32 = clientModel->getB32Address(pub); |
|
||||||
const QString configFile = QString::fromStdString(GetConfigFile().string()); |
|
||||||
|
|
||||||
ShowI2PAddresses i2pCurrDialog("Your current I2P-address", pub, priv, b32, configFile, this); |
|
||||||
i2pCurrDialog.exec(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
void I2POptionsWidget::GenerateNewI2PAddress() |
|
||||||
{ |
|
||||||
if (clientModel) |
|
||||||
{ |
|
||||||
QString pub, priv; |
|
||||||
clientModel->generateI2PDestination(pub, priv); |
|
||||||
const QString b32 = clientModel->getB32Address(pub); |
|
||||||
const QString configFile = QString::fromStdString(GetConfigFile().string()); |
|
||||||
|
|
||||||
ShowI2PAddresses i2pCurrDialog("Generated I2P address", pub, priv, b32, configFile, this); |
|
||||||
i2pCurrDialog.exec(); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
|
|
@ -1,37 +0,0 @@ |
|||||||
#ifndef I2POPTIONSWIDGET_H |
|
||||||
#define I2POPTIONSWIDGET_H |
|
||||||
|
|
||||||
#include <QWidget> |
|
||||||
|
|
||||||
class MonitoredDataMapper; |
|
||||||
|
|
||||||
namespace Ui { |
|
||||||
class I2POptionsWidget; |
|
||||||
} |
|
||||||
|
|
||||||
class ClientModel; |
|
||||||
|
|
||||||
class I2POptionsWidget : public QWidget |
|
||||||
{ |
|
||||||
Q_OBJECT |
|
||||||
|
|
||||||
public: |
|
||||||
explicit I2POptionsWidget(QWidget *parent = 0); |
|
||||||
~I2POptionsWidget(); |
|
||||||
|
|
||||||
void setMapper(MonitoredDataMapper& mapper); |
|
||||||
void setModel(ClientModel* model); |
|
||||||
|
|
||||||
private: |
|
||||||
Ui::I2POptionsWidget *ui; |
|
||||||
ClientModel* clientModel; |
|
||||||
|
|
||||||
private slots: |
|
||||||
void ShowCurrentI2PAddress(); |
|
||||||
void GenerateNewI2PAddress(); |
|
||||||
|
|
||||||
signals: |
|
||||||
void settingsChanged(); |
|
||||||
}; |
|
||||||
|
|
||||||
#endif // I2POPTIONSWIDGET_H
|
|
Before Width: | Height: | Size: 239 KiB After Width: | Height: | Size: 191 KiB |
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 187 KiB |
Loading…
Reference in new issue