diff options
| author | Ross Nicoll <[email protected]> | 2021-06-08 19:11:30 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-06-08 19:11:30 +0100 |
| commit | 51aca8e38dfcc67845538b68773d699219490703 (patch) | |
| tree | 1fd5e78e1b6a3a2c3356b3e388d76dd2890ea2f8 /src/qt/forms | |
| parent | Merge pull request #2243 from chromatic/add-sortable-network-stats-to-peers-t... (diff) | |
| parent | Add a form dialog for adding peers (diff) | |
| download | discoin-51aca8e38dfcc67845538b68773d699219490703.tar.xz discoin-51aca8e38dfcc67845538b68773d699219490703.zip | |
Merge pull request #1825 from alamshafil/master
[QT] Add a form dialog for adding peers
Diffstat (limited to 'src/qt/forms')
| -rw-r--r-- | src/qt/forms/addpeerdialog.ui | 73 | ||||
| -rw-r--r-- | src/qt/forms/debugwindow.ui | 95 | ||||
| -rw-r--r-- | src/qt/forms/testpeerdialog.ui | 73 |
3 files changed, 227 insertions, 14 deletions
diff --git a/src/qt/forms/addpeerdialog.ui b/src/qt/forms/addpeerdialog.ui new file mode 100644 index 000000000..7cb09dea3 --- /dev/null +++ b/src/qt/forms/addpeerdialog.ui @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>AddPeerDialog</class> + <widget class="QWidget" name="AddPeerDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>466</width> + <height>186</height> + </rect> + </property> + <property name="windowTitle"> + <string>Add Peer</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QLabel" name="label"> + <property name="font"> + <font> + <pointsize>11</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Enter the peer details below.</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>Be careful! Do not blindly trust anyone that tells you to add their node.</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QLineEdit" name="peerAddress"> + <property name="placeholderText"> + <string>Enter the peer's address</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="peerPort"> + <property name="placeholderText"> + <string>Enter the peer's port</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QPushButton" name="pushButton"> + <property name="text"> + <string>Add!</string> + </property> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui index 8be4a955b..6eb838c91 100644 --- a/src/qt/forms/debugwindow.ui +++ b/src/qt/forms/debugwindow.ui @@ -165,17 +165,17 @@ </widget> </item> <item row="6" column="0"> - <widget class="QLabel" name="labelNetwork"> - <property name="font"> - <font> - <weight>75</weight> - <bold>true</bold> - </font> - </property> - <property name="text"> - <string>Network</string> - </property> - </widget> + <widget class="QLabel" name="labelNetwork"> + <property name="font"> + <font> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Network</string> + </property> + </widget> </item> <item row="7" column="0"> <widget class="QLabel" name="label_8"> @@ -433,12 +433,12 @@ <height>24</height> </size> </property> - <property name="text"> - <string/> - </property> <property name="toolTip"> <string>Decrease font size</string> </property> + <property name="text"> + <string/> + </property> <property name="icon"> <iconset resource="../bitcoin.qrc"> <normaloff>:/icons/fontsmaller</normaloff>:/icons/fontsmaller</iconset> @@ -855,6 +855,33 @@ <number>0</number> </property> <item> + <widget class="QLabel" name="peerlistHeading"> + <property name="minimumSize"> + <size> + <width>300</width> + <height>32</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>16777215</width> + <height>32</height> + </size> + </property> + <property name="font"> + <font> + <pointsize>12</pointsize> + </font> + </property> + <property name="cursor"> + <cursorShape>IBeamCursor</cursorShape> + </property> + <property name="text"> + <string>Connected peers</string> + </property> + </widget> + </item> + <item> <widget class="QTableView" name="peerWidget"> <property name="horizontalScrollBarPolicy"> <enum>Qt::ScrollBarAsNeeded</enum> @@ -871,6 +898,46 @@ </widget> </item> <item> + <layout class="QHBoxLayout" name="horizontalLayout_6"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <item> + <widget class="QPushButton" name="peerAdd"> + <property name="cursor"> + <cursorShape>PointingHandCursor</cursorShape> + </property> + <property name="text"> + <string>Add new peer</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="peerRemove"> + <property name="cursor"> + <cursorShape>PointingHandCursor</cursorShape> + </property> + <property name="text"> + <string>Remove peer</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="peerTest"> + <property name="cursor"> + <cursorShape>PointingHandCursor</cursorShape> + </property> + <property name="text"> + <string>One try peer</string> + </property> + </widget> + </item> + </layout> + </item> + <item> <widget class="QLabel" name="banHeading"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Minimum"> diff --git a/src/qt/forms/testpeerdialog.ui b/src/qt/forms/testpeerdialog.ui new file mode 100644 index 000000000..471860529 --- /dev/null +++ b/src/qt/forms/testpeerdialog.ui @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>TestPeerDialog</class> + <widget class="QWidget" name="TestPeerDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>466</width> + <height>186</height> + </rect> + </property> + <property name="windowTitle"> + <string>Test Peer</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QLabel" name="label"> + <property name="font"> + <font> + <pointsize>11</pointsize> + <weight>75</weight> + <bold>true</bold> + </font> + </property> + <property name="text"> + <string>Enter the peer details below.</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>Be careful! Do not blindly trust anyone that tells you to add their node.</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QLineEdit" name="peerAddress"> + <property name="placeholderText"> + <string>Enter the peer's address</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="peerPort"> + <property name="placeholderText"> + <string>Enter the peer's port</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QPushButton" name="pushButton"> + <property name="text"> + <string>Test!</string> + </property> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> |