aboutsummaryrefslogtreecommitdiff
path: root/src/qt/forms
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-05-21 14:13:16 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2012-06-01 11:13:44 +0200
commit8103b0bb622a927a07d0bbd2696469eb5969e246 (patch)
tree500729164275e75e40d8972d7f0542356e8f318a /src/qt/forms
parent98474d3d6f07ff03f25f59f2016baf1f1385fbed (diff)
downloadbitcoin-8103b0bb622a927a07d0bbd2696469eb5969e246.tar.xz
change verifymessagepage behaviour to match RPC-call "verifymessage" (input address, signature and message) / display messages in status label (remove message boxes) / resize window to make signature fully readable / change signature font to BC-address font (like in messagepage) / remove checkAddress() and place code directly in on_verifyMessage_clicked() / add visual feedback to LineEdits / remove AddressTableModel references, as they are now unused / add addr.GetKeyID(keyID) check
Diffstat (limited to 'src/qt/forms')
-rw-r--r--src/qt/forms/verifymessagedialog.ui77
1 files changed, 46 insertions, 31 deletions
diff --git a/src/qt/forms/verifymessagedialog.ui b/src/qt/forms/verifymessagedialog.ui
index a7c99716e4..afe98b05ab 100644
--- a/src/qt/forms/verifymessagedialog.ui
+++ b/src/qt/forms/verifymessagedialog.ui
@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>494</width>
- <height>342</height>
+ <width>650</width>
+ <height>380</height>
</rect>
</property>
<property name="windowTitle">
@@ -17,7 +17,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
- <string>Enter the message and signature below (be careful to correctly copy newlines, spaces, tabs and other invisible characters) to obtain the Bitcoin address used to sign the message.</string>
+ <string>Enter the signing address, signature and message below (be careful to correctly copy newlines, spaces, tabs and other invisible characters) to verify the message.</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
@@ -28,38 +28,28 @@
</widget>
</item>
<item>
- <widget class="QPlainTextEdit" name="edMessage"/>
- </item>
- <item>
- <widget class="QLineEdit" name="lnSig">
+ <widget class="QValidatedLineEdit" name="lnAddress">
<property name="text">
<string/>
</property>
</widget>
</item>
<item>
- <widget class="QLineEdit" name="lnAddress">
+ <widget class="QValidatedLineEdit" name="lnSig">
<property name="text">
<string/>
</property>
- <property name="readOnly">
- <bool>true</bool>
- </property>
</widget>
</item>
<item>
- <widget class="QLabel" name="lblStatus">
- <property name="text">
- <string/>
- </property>
- </widget>
+ <widget class="QPlainTextEdit" name="edMessage"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="verifyMessage">
<property name="toolTip">
- <string>Verify a message and obtain the Bitcoin address used to sign the message</string>
+ <string>Verify a message to ensure it was signed with the specified Bitcoin address</string>
</property>
<property name="text">
<string>&amp;Verify Message</string>
@@ -71,33 +61,51 @@
</widget>
</item>
<item>
- <widget class="QPushButton" name="copyToClipboard">
- <property name="enabled">
- <bool>false</bool>
- </property>
+ <widget class="QPushButton" name="clearButton">
<property name="toolTip">
- <string>Copy the currently selected address to the system clipboard</string>
+ <string>Reset all verify message fields</string>
</property>
<property name="text">
- <string>&amp;Copy Address</string>
+ <string>Clear &amp;All</string>
</property>
<property name="icon">
<iconset resource="../bitcoin.qrc">
- <normaloff>:/icons/editcopy</normaloff>:/icons/editcopy</iconset>
+ <normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
</property>
</widget>
</item>
<item>
- <widget class="QPushButton" name="clearButton">
- <property name="toolTip">
- <string>Reset all verify message fields</string>
+ <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="QLabel" name="lblStatus">
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>48</height>
+ </size>
+ </property>
+ <property name="font">
+ <font>
+ <weight>75</weight>
+ <bold>true</bold>
+ </font>
</property>
<property name="text">
- <string>Clear &amp;All</string>
+ <string/>
</property>
- <property name="icon">
- <iconset resource="../bitcoin.qrc">
- <normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
+ <property name="wordWrap">
+ <bool>true</bool>
</property>
</widget>
</item>
@@ -118,6 +126,13 @@
</item>
</layout>
</widget>
+ <customwidgets>
+ <customwidget>
+ <class>QValidatedLineEdit</class>
+ <extends>QLineEdit</extends>
+ <header>qvalidatedlineedit.h</header>
+ </customwidget>
+ </customwidgets>
<resources>
<include location="../bitcoin.qrc"/>
</resources>