9 #ifndef UI_SIGNVERIFYMESSAGEDIALOG_H
10 #define UI_SIGNVERIFYMESSAGEDIALOG_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QDialog>
17 #include <QtWidgets/QHBoxLayout>
18 #include <QtWidgets/QHeaderView>
19 #include <QtWidgets/QLabel>
20 #include <QtWidgets/QLineEdit>
21 #include <QtWidgets/QPlainTextEdit>
22 #include <QtWidgets/QPushButton>
23 #include <QtWidgets/QSpacerItem>
24 #include <QtWidgets/QTabWidget>
25 #include <QtWidgets/QVBoxLayout>
26 #include <QtWidgets/QWidget>
71 if (SignVerifyMessageDialog->objectName().isEmpty())
72 SignVerifyMessageDialog->setObjectName(QStringLiteral(
"SignVerifyMessageDialog"));
73 SignVerifyMessageDialog->resize(700, 380);
74 SignVerifyMessageDialog->setModal(
true);
77 tabWidget =
new QTabWidget(SignVerifyMessageDialog);
78 tabWidget->setObjectName(QStringLiteral(
"tabWidget"));
84 infoLabel_SM->setObjectName(QStringLiteral(
"infoLabel_SM"));
94 addressIn_SM->setObjectName(QStringLiteral(
"addressIn_SM"));
101 icon.addFile(QStringLiteral(
":/icons/address-book"), QSize(), QIcon::Normal, QIcon::Off);
110 icon1.addFile(QStringLiteral(
":/icons/editpaste"), QSize(), QIcon::Normal, QIcon::Off);
120 messageIn_SM->setObjectName(QStringLiteral(
"messageIn_SM"));
136 font.setItalic(
true);
145 icon2.addFile(QStringLiteral(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
159 icon3.addFile(QStringLiteral(
":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
168 icon4.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
201 infoLabel_VM->setObjectName(QStringLiteral(
"infoLabel_VM"));
203 infoLabel_VM->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
212 addressIn_VM->setObjectName(QStringLiteral(
"addressIn_VM"));
227 messageIn_VM->setObjectName(QStringLiteral(
"messageIn_VM"));
241 icon5.addFile(QStringLiteral(
":/icons/transaction_0"), QSize(), QIcon::Normal, QIcon::Off);
282 QMetaObject::connectSlotsByName(SignVerifyMessageDialog);
287 SignVerifyMessageDialog->setWindowTitle(QApplication::translate(
"SignVerifyMessageDialog",
"Signatures - Sign / Verify a Message", 0));
288 infoLabel_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"You can sign messages/agreements with your addresses to prove you can receive bitcoins sent to them. Be careful not to sign anything vague or random, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.", 0));
289 #ifndef QT_NO_TOOLTIP
290 addressIn_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"The Bitcoin address to sign the message with", 0));
291 #endif // QT_NO_TOOLTIP
292 #ifndef QT_NO_TOOLTIP
293 addressBookButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Choose previously used address", 0));
294 #endif // QT_NO_TOOLTIP
296 addressBookButton_SM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+A", 0));
297 #ifndef QT_NO_TOOLTIP
298 pasteButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Paste address from clipboard", 0));
299 #endif // QT_NO_TOOLTIP
301 pasteButton_SM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+P", 0));
302 #ifndef QT_NO_TOOLTIP
303 messageIn_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Enter the message you want to sign here", 0));
304 #endif // QT_NO_TOOLTIP
305 messageIn_SM->setPlaceholderText(QApplication::translate(
"SignVerifyMessageDialog",
"Enter the message you want to sign here", 0));
306 signatureLabel_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Signature", 0));
307 signatureOut_SM->setPlaceholderText(QApplication::translate(
"SignVerifyMessageDialog",
"Click \"Sign Message\" to generate signature", 0));
308 #ifndef QT_NO_TOOLTIP
309 copySignatureButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Copy the current signature to the system clipboard", 0));
310 #endif // QT_NO_TOOLTIP
312 #ifndef QT_NO_TOOLTIP
313 signMessageButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Sign the message to prove you own this Bitcoin address", 0));
314 #endif // QT_NO_TOOLTIP
315 signMessageButton_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Sign &Message", 0));
316 #ifndef QT_NO_TOOLTIP
317 clearButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Reset all sign message fields", 0));
318 #endif // QT_NO_TOOLTIP
319 clearButton_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Clear &All", 0));
322 infoLabel_VM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Enter the receiver's 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. Note that this only proves the signing party receives with the address, it cannot prove sendership of any transaction!", 0));
323 #ifndef QT_NO_TOOLTIP
324 addressIn_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"The Bitcoin address the message was signed with", 0));
325 #endif // QT_NO_TOOLTIP
326 #ifndef QT_NO_TOOLTIP
327 addressBookButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Choose previously used address", 0));
328 #endif // QT_NO_TOOLTIP
330 addressBookButton_VM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+A", 0));
331 #ifndef QT_NO_TOOLTIP
332 messageIn_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"The signed message to verify", 0));
333 #endif // QT_NO_TOOLTIP
334 messageIn_VM->setPlaceholderText(QApplication::translate(
"SignVerifyMessageDialog",
"The signed message to verify", 0));
335 #ifndef QT_NO_TOOLTIP
336 signatureIn_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"The signature given when the message was signed", 0));
337 #endif // QT_NO_TOOLTIP
338 signatureIn_VM->setPlaceholderText(QApplication::translate(
"SignVerifyMessageDialog",
"The signature given when the message was signed", 0));
339 #ifndef QT_NO_TOOLTIP
340 verifyMessageButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Verify the message to ensure it was signed with the specified Bitcoin address", 0));
341 #endif // QT_NO_TOOLTIP
342 verifyMessageButton_VM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Verify &Message", 0));
343 #ifndef QT_NO_TOOLTIP
344 clearButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Reset all verify message fields", 0));
345 #endif // QT_NO_TOOLTIP
346 clearButton_VM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Clear &All", 0));
359 #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