8 #ifndef UI_SIGNVERIFYMESSAGEDIALOG_H
9 #define UI_SIGNVERIFYMESSAGEDIALOG_H
11 #include <QtCore/QVariant>
12 #include <QtGui/QAction>
13 #include <QtGui/QApplication>
14 #include <QtGui/QButtonGroup>
15 #include <QtGui/QDialog>
16 #include <QtGui/QHBoxLayout>
17 #include <QtGui/QHeaderView>
18 #include <QtGui/QLabel>
19 #include <QtGui/QLineEdit>
20 #include <QtGui/QPlainTextEdit>
21 #include <QtGui/QPushButton>
22 #include <QtGui/QSpacerItem>
23 #include <QtGui/QTabWidget>
24 #include <QtGui/QVBoxLayout>
25 #include <QtGui/QWidget>
70 if (SignVerifyMessageDialog->objectName().isEmpty())
71 SignVerifyMessageDialog->setObjectName(QString::fromUtf8(
"SignVerifyMessageDialog"));
72 SignVerifyMessageDialog->resize(700, 380);
73 SignVerifyMessageDialog->setModal(
true);
74 verticalLayout =
new QVBoxLayout(SignVerifyMessageDialog);
75 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
76 tabWidget =
new QTabWidget(SignVerifyMessageDialog);
77 tabWidget->setObjectName(QString::fromUtf8(
"tabWidget"));
79 tabSignMessage->setObjectName(QString::fromUtf8(
"tabSignMessage"));
80 verticalLayout_SM =
new QVBoxLayout(tabSignMessage);
81 verticalLayout_SM->setObjectName(QString::fromUtf8(
"verticalLayout_SM"));
82 infoLabel_SM =
new QLabel(tabSignMessage);
83 infoLabel_SM->setObjectName(QString::fromUtf8(
"infoLabel_SM"));
84 infoLabel_SM->setTextFormat(Qt::PlainText);
85 infoLabel_SM->setWordWrap(
true);
87 verticalLayout_SM->addWidget(infoLabel_SM);
89 horizontalLayout_1_SM =
new QHBoxLayout();
90 horizontalLayout_1_SM->setSpacing(0);
91 horizontalLayout_1_SM->setObjectName(QString::fromUtf8(
"horizontalLayout_1_SM"));
93 addressIn_SM->setObjectName(QString::fromUtf8(
"addressIn_SM"));
95 horizontalLayout_1_SM->addWidget(addressIn_SM);
97 addressBookButton_SM =
new QPushButton(tabSignMessage);
98 addressBookButton_SM->setObjectName(QString::fromUtf8(
"addressBookButton_SM"));
100 icon.addFile(QString::fromUtf8(
":/icons/address-book"), QSize(), QIcon::Normal, QIcon::Off);
101 addressBookButton_SM->setIcon(icon);
102 addressBookButton_SM->setAutoDefault(
false);
104 horizontalLayout_1_SM->addWidget(addressBookButton_SM);
106 pasteButton_SM =
new QPushButton(tabSignMessage);
107 pasteButton_SM->setObjectName(QString::fromUtf8(
"pasteButton_SM"));
109 icon1.addFile(QString::fromUtf8(
":/icons/editpaste"), QSize(), QIcon::Normal, QIcon::Off);
110 pasteButton_SM->setIcon(icon1);
111 pasteButton_SM->setAutoDefault(
false);
113 horizontalLayout_1_SM->addWidget(pasteButton_SM);
116 verticalLayout_SM->addLayout(horizontalLayout_1_SM);
118 messageIn_SM =
new QPlainTextEdit(tabSignMessage);
119 messageIn_SM->setObjectName(QString::fromUtf8(
"messageIn_SM"));
121 verticalLayout_SM->addWidget(messageIn_SM);
123 signatureLabel_SM =
new QLabel(tabSignMessage);
124 signatureLabel_SM->setObjectName(QString::fromUtf8(
"signatureLabel_SM"));
125 signatureLabel_SM->setTextFormat(Qt::PlainText);
127 verticalLayout_SM->addWidget(signatureLabel_SM);
129 horizontalLayout_2_SM =
new QHBoxLayout();
130 horizontalLayout_2_SM->setSpacing(0);
131 horizontalLayout_2_SM->setObjectName(QString::fromUtf8(
"horizontalLayout_2_SM"));
132 signatureOut_SM =
new QLineEdit(tabSignMessage);
133 signatureOut_SM->setObjectName(QString::fromUtf8(
"signatureOut_SM"));
135 font.setItalic(
true);
136 signatureOut_SM->setFont(font);
137 signatureOut_SM->setReadOnly(
true);
139 horizontalLayout_2_SM->addWidget(signatureOut_SM);
141 copySignatureButton_SM =
new QPushButton(tabSignMessage);
142 copySignatureButton_SM->setObjectName(QString::fromUtf8(
"copySignatureButton_SM"));
144 icon2.addFile(QString::fromUtf8(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
145 copySignatureButton_SM->setIcon(icon2);
146 copySignatureButton_SM->setAutoDefault(
false);
148 horizontalLayout_2_SM->addWidget(copySignatureButton_SM);
151 verticalLayout_SM->addLayout(horizontalLayout_2_SM);
153 horizontalLayout_3_SM =
new QHBoxLayout();
154 horizontalLayout_3_SM->setObjectName(QString::fromUtf8(
"horizontalLayout_3_SM"));
155 signMessageButton_SM =
new QPushButton(tabSignMessage);
156 signMessageButton_SM->setObjectName(QString::fromUtf8(
"signMessageButton_SM"));
158 icon3.addFile(QString::fromUtf8(
":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
159 signMessageButton_SM->setIcon(icon3);
160 signMessageButton_SM->setAutoDefault(
false);
162 horizontalLayout_3_SM->addWidget(signMessageButton_SM);
164 clearButton_SM =
new QPushButton(tabSignMessage);
165 clearButton_SM->setObjectName(QString::fromUtf8(
"clearButton_SM"));
167 icon4.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
168 clearButton_SM->setIcon(icon4);
169 clearButton_SM->setAutoDefault(
false);
171 horizontalLayout_3_SM->addWidget(clearButton_SM);
173 horizontalSpacer_1_SM =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
175 horizontalLayout_3_SM->addItem(horizontalSpacer_1_SM);
177 statusLabel_SM =
new QLabel(tabSignMessage);
178 statusLabel_SM->setObjectName(QString::fromUtf8(
"statusLabel_SM"));
182 statusLabel_SM->setFont(font1);
183 statusLabel_SM->setWordWrap(
true);
185 horizontalLayout_3_SM->addWidget(statusLabel_SM);
187 horizontalSpacer_2_SM =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
189 horizontalLayout_3_SM->addItem(horizontalSpacer_2_SM);
192 verticalLayout_SM->addLayout(horizontalLayout_3_SM);
194 tabWidget->addTab(tabSignMessage, QString());
195 tabVerifyMessage =
new QWidget();
196 tabVerifyMessage->setObjectName(QString::fromUtf8(
"tabVerifyMessage"));
197 verticalLayout_VM =
new QVBoxLayout(tabVerifyMessage);
198 verticalLayout_VM->setObjectName(QString::fromUtf8(
"verticalLayout_VM"));
199 infoLabel_VM =
new QLabel(tabVerifyMessage);
200 infoLabel_VM->setObjectName(QString::fromUtf8(
"infoLabel_VM"));
201 infoLabel_VM->setTextFormat(Qt::PlainText);
202 infoLabel_VM->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
203 infoLabel_VM->setWordWrap(
true);
205 verticalLayout_VM->addWidget(infoLabel_VM);
207 horizontalLayout_1_VM =
new QHBoxLayout();
208 horizontalLayout_1_VM->setSpacing(0);
209 horizontalLayout_1_VM->setObjectName(QString::fromUtf8(
"horizontalLayout_1_VM"));
211 addressIn_VM->setObjectName(QString::fromUtf8(
"addressIn_VM"));
213 horizontalLayout_1_VM->addWidget(addressIn_VM);
215 addressBookButton_VM =
new QPushButton(tabVerifyMessage);
216 addressBookButton_VM->setObjectName(QString::fromUtf8(
"addressBookButton_VM"));
217 addressBookButton_VM->setIcon(icon);
218 addressBookButton_VM->setAutoDefault(
false);
220 horizontalLayout_1_VM->addWidget(addressBookButton_VM);
223 verticalLayout_VM->addLayout(horizontalLayout_1_VM);
225 messageIn_VM =
new QPlainTextEdit(tabVerifyMessage);
226 messageIn_VM->setObjectName(QString::fromUtf8(
"messageIn_VM"));
228 verticalLayout_VM->addWidget(messageIn_VM);
231 signatureIn_VM->setObjectName(QString::fromUtf8(
"signatureIn_VM"));
233 verticalLayout_VM->addWidget(signatureIn_VM);
235 horizontalLayout_2_VM =
new QHBoxLayout();
236 horizontalLayout_2_VM->setObjectName(QString::fromUtf8(
"horizontalLayout_2_VM"));
237 verifyMessageButton_VM =
new QPushButton(tabVerifyMessage);
238 verifyMessageButton_VM->setObjectName(QString::fromUtf8(
"verifyMessageButton_VM"));
240 icon5.addFile(QString::fromUtf8(
":/icons/transaction_0"), QSize(), QIcon::Normal, QIcon::Off);
241 verifyMessageButton_VM->setIcon(icon5);
242 verifyMessageButton_VM->setAutoDefault(
false);
244 horizontalLayout_2_VM->addWidget(verifyMessageButton_VM);
246 clearButton_VM =
new QPushButton(tabVerifyMessage);
247 clearButton_VM->setObjectName(QString::fromUtf8(
"clearButton_VM"));
248 clearButton_VM->setIcon(icon4);
249 clearButton_VM->setAutoDefault(
false);
251 horizontalLayout_2_VM->addWidget(clearButton_VM);
253 horizontalSpacer_1_VM =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
255 horizontalLayout_2_VM->addItem(horizontalSpacer_1_VM);
257 statusLabel_VM =
new QLabel(tabVerifyMessage);
258 statusLabel_VM->setObjectName(QString::fromUtf8(
"statusLabel_VM"));
259 statusLabel_VM->setFont(font1);
260 statusLabel_VM->setWordWrap(
true);
262 horizontalLayout_2_VM->addWidget(statusLabel_VM);
264 horizontalSpacer_2_VM =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
266 horizontalLayout_2_VM->addItem(horizontalSpacer_2_VM);
269 verticalLayout_VM->addLayout(horizontalLayout_2_VM);
271 tabWidget->addTab(tabVerifyMessage, QString());
273 verticalLayout->addWidget(tabWidget);
278 QMetaObject::connectSlotsByName(SignVerifyMessageDialog);
283 SignVerifyMessageDialog->setWindowTitle(QApplication::translate(
"SignVerifyMessageDialog",
"Signatures - Sign / Verify a Message", 0, QApplication::UnicodeUTF8));
284 infoLabel_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.", 0, QApplication::UnicodeUTF8));
285 #ifndef QT_NO_TOOLTIP
286 addressIn_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)", 0, QApplication::UnicodeUTF8));
287 #endif // QT_NO_TOOLTIP
288 #ifndef QT_NO_TOOLTIP
289 addressBookButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Choose previously used address", 0, QApplication::UnicodeUTF8));
290 #endif // QT_NO_TOOLTIP
291 addressBookButton_SM->setText(QString());
292 addressBookButton_SM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+A", 0, QApplication::UnicodeUTF8));
293 #ifndef QT_NO_TOOLTIP
294 pasteButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Paste address from clipboard", 0, QApplication::UnicodeUTF8));
295 #endif // QT_NO_TOOLTIP
296 pasteButton_SM->setText(QString());
297 pasteButton_SM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+P", 0, QApplication::UnicodeUTF8));
298 #ifndef QT_NO_TOOLTIP
299 messageIn_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Enter the message you want to sign here", 0, QApplication::UnicodeUTF8));
300 #endif // QT_NO_TOOLTIP
301 signatureLabel_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Signature", 0, QApplication::UnicodeUTF8));
302 #ifndef QT_NO_TOOLTIP
303 copySignatureButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Copy the current signature to the system clipboard", 0, QApplication::UnicodeUTF8));
304 #endif // QT_NO_TOOLTIP
305 copySignatureButton_SM->setText(QString());
306 #ifndef QT_NO_TOOLTIP
307 signMessageButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Sign the message to prove you own this Bitcoin address", 0, QApplication::UnicodeUTF8));
308 #endif // QT_NO_TOOLTIP
309 signMessageButton_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Sign &Message", 0, QApplication::UnicodeUTF8));
310 #ifndef QT_NO_TOOLTIP
311 clearButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Reset all sign message fields", 0, QApplication::UnicodeUTF8));
312 #endif // QT_NO_TOOLTIP
313 clearButton_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Clear &All", 0, QApplication::UnicodeUTF8));
314 statusLabel_SM->setText(QString());
315 tabWidget->setTabText(tabWidget->indexOf(tabSignMessage), QApplication::translate(
"SignVerifyMessageDialog",
"&Sign Message", 0, QApplication::UnicodeUTF8));
316 infoLabel_VM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.", 0, QApplication::UnicodeUTF8));
317 #ifndef QT_NO_TOOLTIP
318 addressIn_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"The address the message was signed with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)", 0, QApplication::UnicodeUTF8));
319 #endif // QT_NO_TOOLTIP
320 #ifndef QT_NO_TOOLTIP
321 addressBookButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Choose previously used address", 0, QApplication::UnicodeUTF8));
322 #endif // QT_NO_TOOLTIP
323 addressBookButton_VM->setText(QString());
324 addressBookButton_VM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+A", 0, QApplication::UnicodeUTF8));
325 #ifndef QT_NO_TOOLTIP
326 verifyMessageButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Verify the message to ensure it was signed with the specified Bitcoin address", 0, QApplication::UnicodeUTF8));
327 #endif // QT_NO_TOOLTIP
328 verifyMessageButton_VM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Verify &Message", 0, QApplication::UnicodeUTF8));
329 #ifndef QT_NO_TOOLTIP
330 clearButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Reset all verify message fields", 0, QApplication::UnicodeUTF8));
331 #endif // QT_NO_TOOLTIP
332 clearButton_VM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Clear &All", 0, QApplication::UnicodeUTF8));
333 statusLabel_VM->setText(QString());
334 tabWidget->setTabText(tabWidget->indexOf(tabVerifyMessage), QApplication::translate(
"SignVerifyMessageDialog",
"&Verify Message", 0, QApplication::UnicodeUTF8));
345 #endif // UI_SIGNVERIFYMESSAGEDIALOG_H
QPlainTextEdit * messageIn_SM
QSpacerItem * horizontalSpacer_2_SM
QHBoxLayout * horizontalLayout_2_VM
QSpacerItem * horizontalSpacer_1_SM
QPushButton * signMessageButton_SM
void setupUi(QDialog *SignVerifyMessageDialog)
QVBoxLayout * verticalLayout_VM
QPushButton * pasteButton_SM
QHBoxLayout * horizontalLayout_3_SM
QSpacerItem * horizontalSpacer_2_VM
Line edit that can be marked as "invalid" to show input validation feedback.
QPushButton * verifyMessageButton_VM
QPushButton * addressBookButton_VM
QWidget * tabVerifyMessage
QHBoxLayout * horizontalLayout_2_SM
QValidatedLineEdit * signatureIn_VM
void retranslateUi(QDialog *SignVerifyMessageDialog)
QHBoxLayout * horizontalLayout_1_SM
QPushButton * addressBookButton_SM
QHBoxLayout * horizontalLayout_1_VM
QValidatedLineEdit * addressIn_SM
QPushButton * clearButton_VM
QVBoxLayout * verticalLayout
QPushButton * clearButton_SM
QLabel * signatureLabel_SM
QPushButton * copySignatureButton_SM
QValidatedLineEdit * addressIn_VM
QSpacerItem * horizontalSpacer_1_VM
QPlainTextEdit * messageIn_VM
QVBoxLayout * verticalLayout_SM
QLineEdit * signatureOut_SM