Bitcoin Core  0.21.1
P2P Digital Currency
ui_signverifymessagedialog.h
Go to the documentation of this file.
1 /********************************************************************************
2 ** Form generated from reading UI file 'signverifymessagedialog.ui'
3 **
4 ** Created by: Qt User Interface Compiler version 5.6.1
5 **
6 ** WARNING! All changes made in this file will be lost when recompiling UI file!
7 ********************************************************************************/
8 
9 #ifndef UI_SIGNVERIFYMESSAGEDIALOG_H
10 #define UI_SIGNVERIFYMESSAGEDIALOG_H
11 
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>
27 #include "qt/qvalidatedlineedit.h"
28 
29 QT_BEGIN_NAMESPACE
30 
32 {
33 public:
34  QVBoxLayout *verticalLayout;
35  QTabWidget *tabWidget;
36  QWidget *tabSignMessage;
37  QVBoxLayout *verticalLayout_SM;
38  QLabel *infoLabel_SM;
39  QHBoxLayout *horizontalLayout_1_SM;
41  QPushButton *addressBookButton_SM;
42  QPushButton *pasteButton_SM;
43  QPlainTextEdit *messageIn_SM;
45  QHBoxLayout *horizontalLayout_2_SM;
46  QLineEdit *signatureOut_SM;
47  QPushButton *copySignatureButton_SM;
48  QHBoxLayout *horizontalLayout_3_SM;
49  QPushButton *signMessageButton_SM;
50  QPushButton *clearButton_SM;
51  QSpacerItem *horizontalSpacer_1_SM;
52  QLabel *statusLabel_SM;
53  QSpacerItem *horizontalSpacer_2_SM;
54  QWidget *tabVerifyMessage;
55  QVBoxLayout *verticalLayout_VM;
56  QLabel *infoLabel_VM;
57  QHBoxLayout *horizontalLayout_1_VM;
59  QPushButton *addressBookButton_VM;
60  QPlainTextEdit *messageIn_VM;
62  QHBoxLayout *horizontalLayout_2_VM;
63  QPushButton *verifyMessageButton_VM;
64  QPushButton *clearButton_VM;
65  QSpacerItem *horizontalSpacer_1_VM;
66  QLabel *statusLabel_VM;
67  QSpacerItem *horizontalSpacer_2_VM;
68 
70  {
71  if (SignVerifyMessageDialog->objectName().isEmpty())
72  SignVerifyMessageDialog->setObjectName(QStringLiteral("SignVerifyMessageDialog"));
73  SignVerifyMessageDialog->resize(700, 380);
74  SignVerifyMessageDialog->setModal(true);
75  verticalLayout = new QVBoxLayout(SignVerifyMessageDialog);
76  verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
77  tabWidget = new QTabWidget(SignVerifyMessageDialog);
78  tabWidget->setObjectName(QStringLiteral("tabWidget"));
79  tabSignMessage = new QWidget();
80  tabSignMessage->setObjectName(QStringLiteral("tabSignMessage"));
81  verticalLayout_SM = new QVBoxLayout(tabSignMessage);
82  verticalLayout_SM->setObjectName(QStringLiteral("verticalLayout_SM"));
83  infoLabel_SM = new QLabel(tabSignMessage);
84  infoLabel_SM->setObjectName(QStringLiteral("infoLabel_SM"));
85  infoLabel_SM->setTextFormat(Qt::PlainText);
86  infoLabel_SM->setWordWrap(true);
87 
88  verticalLayout_SM->addWidget(infoLabel_SM);
89 
90  horizontalLayout_1_SM = new QHBoxLayout();
91  horizontalLayout_1_SM->setSpacing(0);
92  horizontalLayout_1_SM->setObjectName(QStringLiteral("horizontalLayout_1_SM"));
93  addressIn_SM = new QValidatedLineEdit(tabSignMessage);
94  addressIn_SM->setObjectName(QStringLiteral("addressIn_SM"));
95 
96  horizontalLayout_1_SM->addWidget(addressIn_SM);
97 
98  addressBookButton_SM = new QPushButton(tabSignMessage);
99  addressBookButton_SM->setObjectName(QStringLiteral("addressBookButton_SM"));
100  QIcon icon;
101  icon.addFile(QStringLiteral(":/icons/address-book"), QSize(), QIcon::Normal, QIcon::Off);
102  addressBookButton_SM->setIcon(icon);
103  addressBookButton_SM->setAutoDefault(false);
104 
105  horizontalLayout_1_SM->addWidget(addressBookButton_SM);
106 
107  pasteButton_SM = new QPushButton(tabSignMessage);
108  pasteButton_SM->setObjectName(QStringLiteral("pasteButton_SM"));
109  QIcon icon1;
110  icon1.addFile(QStringLiteral(":/icons/editpaste"), QSize(), QIcon::Normal, QIcon::Off);
111  pasteButton_SM->setIcon(icon1);
112  pasteButton_SM->setAutoDefault(false);
113 
114  horizontalLayout_1_SM->addWidget(pasteButton_SM);
115 
116 
117  verticalLayout_SM->addLayout(horizontalLayout_1_SM);
118 
119  messageIn_SM = new QPlainTextEdit(tabSignMessage);
120  messageIn_SM->setObjectName(QStringLiteral("messageIn_SM"));
121 
122  verticalLayout_SM->addWidget(messageIn_SM);
123 
124  signatureLabel_SM = new QLabel(tabSignMessage);
125  signatureLabel_SM->setObjectName(QStringLiteral("signatureLabel_SM"));
126  signatureLabel_SM->setTextFormat(Qt::PlainText);
127 
128  verticalLayout_SM->addWidget(signatureLabel_SM);
129 
130  horizontalLayout_2_SM = new QHBoxLayout();
131  horizontalLayout_2_SM->setSpacing(0);
132  horizontalLayout_2_SM->setObjectName(QStringLiteral("horizontalLayout_2_SM"));
133  signatureOut_SM = new QLineEdit(tabSignMessage);
134  signatureOut_SM->setObjectName(QStringLiteral("signatureOut_SM"));
135  QFont font;
136  font.setItalic(true);
137  signatureOut_SM->setFont(font);
138  signatureOut_SM->setReadOnly(true);
139 
140  horizontalLayout_2_SM->addWidget(signatureOut_SM);
141 
142  copySignatureButton_SM = new QPushButton(tabSignMessage);
143  copySignatureButton_SM->setObjectName(QStringLiteral("copySignatureButton_SM"));
144  QIcon icon2;
145  icon2.addFile(QStringLiteral(":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
146  copySignatureButton_SM->setIcon(icon2);
147  copySignatureButton_SM->setAutoDefault(false);
148 
149  horizontalLayout_2_SM->addWidget(copySignatureButton_SM);
150 
151 
152  verticalLayout_SM->addLayout(horizontalLayout_2_SM);
153 
154  horizontalLayout_3_SM = new QHBoxLayout();
155  horizontalLayout_3_SM->setObjectName(QStringLiteral("horizontalLayout_3_SM"));
156  signMessageButton_SM = new QPushButton(tabSignMessage);
157  signMessageButton_SM->setObjectName(QStringLiteral("signMessageButton_SM"));
158  QIcon icon3;
159  icon3.addFile(QStringLiteral(":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
160  signMessageButton_SM->setIcon(icon3);
161  signMessageButton_SM->setAutoDefault(false);
162 
163  horizontalLayout_3_SM->addWidget(signMessageButton_SM);
164 
165  clearButton_SM = new QPushButton(tabSignMessage);
166  clearButton_SM->setObjectName(QStringLiteral("clearButton_SM"));
167  QIcon icon4;
168  icon4.addFile(QStringLiteral(":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
169  clearButton_SM->setIcon(icon4);
170  clearButton_SM->setAutoDefault(false);
171 
172  horizontalLayout_3_SM->addWidget(clearButton_SM);
173 
174  horizontalSpacer_1_SM = new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
175 
176  horizontalLayout_3_SM->addItem(horizontalSpacer_1_SM);
177 
178  statusLabel_SM = new QLabel(tabSignMessage);
179  statusLabel_SM->setObjectName(QStringLiteral("statusLabel_SM"));
180  QFont font1;
181  font1.setBold(true);
182  font1.setWeight(75);
183  statusLabel_SM->setFont(font1);
184  statusLabel_SM->setWordWrap(true);
185 
186  horizontalLayout_3_SM->addWidget(statusLabel_SM);
187 
188  horizontalSpacer_2_SM = new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
189 
190  horizontalLayout_3_SM->addItem(horizontalSpacer_2_SM);
191 
192 
193  verticalLayout_SM->addLayout(horizontalLayout_3_SM);
194 
195  tabWidget->addTab(tabSignMessage, QString());
196  tabVerifyMessage = new QWidget();
197  tabVerifyMessage->setObjectName(QStringLiteral("tabVerifyMessage"));
198  verticalLayout_VM = new QVBoxLayout(tabVerifyMessage);
199  verticalLayout_VM->setObjectName(QStringLiteral("verticalLayout_VM"));
200  infoLabel_VM = new QLabel(tabVerifyMessage);
201  infoLabel_VM->setObjectName(QStringLiteral("infoLabel_VM"));
202  infoLabel_VM->setTextFormat(Qt::PlainText);
203  infoLabel_VM->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
204  infoLabel_VM->setWordWrap(true);
205 
206  verticalLayout_VM->addWidget(infoLabel_VM);
207 
208  horizontalLayout_1_VM = new QHBoxLayout();
209  horizontalLayout_1_VM->setSpacing(0);
210  horizontalLayout_1_VM->setObjectName(QStringLiteral("horizontalLayout_1_VM"));
211  addressIn_VM = new QValidatedLineEdit(tabVerifyMessage);
212  addressIn_VM->setObjectName(QStringLiteral("addressIn_VM"));
213 
214  horizontalLayout_1_VM->addWidget(addressIn_VM);
215 
216  addressBookButton_VM = new QPushButton(tabVerifyMessage);
217  addressBookButton_VM->setObjectName(QStringLiteral("addressBookButton_VM"));
218  addressBookButton_VM->setIcon(icon);
219  addressBookButton_VM->setAutoDefault(false);
220 
221  horizontalLayout_1_VM->addWidget(addressBookButton_VM);
222 
223 
224  verticalLayout_VM->addLayout(horizontalLayout_1_VM);
225 
226  messageIn_VM = new QPlainTextEdit(tabVerifyMessage);
227  messageIn_VM->setObjectName(QStringLiteral("messageIn_VM"));
228 
229  verticalLayout_VM->addWidget(messageIn_VM);
230 
231  signatureIn_VM = new QValidatedLineEdit(tabVerifyMessage);
232  signatureIn_VM->setObjectName(QStringLiteral("signatureIn_VM"));
233 
234  verticalLayout_VM->addWidget(signatureIn_VM);
235 
236  horizontalLayout_2_VM = new QHBoxLayout();
237  horizontalLayout_2_VM->setObjectName(QStringLiteral("horizontalLayout_2_VM"));
238  verifyMessageButton_VM = new QPushButton(tabVerifyMessage);
239  verifyMessageButton_VM->setObjectName(QStringLiteral("verifyMessageButton_VM"));
240  QIcon icon5;
241  icon5.addFile(QStringLiteral(":/icons/transaction_0"), QSize(), QIcon::Normal, QIcon::Off);
242  verifyMessageButton_VM->setIcon(icon5);
243  verifyMessageButton_VM->setAutoDefault(false);
244 
245  horizontalLayout_2_VM->addWidget(verifyMessageButton_VM);
246 
247  clearButton_VM = new QPushButton(tabVerifyMessage);
248  clearButton_VM->setObjectName(QStringLiteral("clearButton_VM"));
249  clearButton_VM->setIcon(icon4);
250  clearButton_VM->setAutoDefault(false);
251 
252  horizontalLayout_2_VM->addWidget(clearButton_VM);
253 
254  horizontalSpacer_1_VM = new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
255 
256  horizontalLayout_2_VM->addItem(horizontalSpacer_1_VM);
257 
258  statusLabel_VM = new QLabel(tabVerifyMessage);
259  statusLabel_VM->setObjectName(QStringLiteral("statusLabel_VM"));
260  statusLabel_VM->setFont(font1);
261  statusLabel_VM->setWordWrap(true);
262 
263  horizontalLayout_2_VM->addWidget(statusLabel_VM);
264 
265  horizontalSpacer_2_VM = new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
266 
267  horizontalLayout_2_VM->addItem(horizontalSpacer_2_VM);
268 
269 
270  verticalLayout_VM->addLayout(horizontalLayout_2_VM);
271 
272  tabWidget->addTab(tabVerifyMessage, QString());
273 
274  verticalLayout->addWidget(tabWidget);
275 
276 
277  retranslateUi(SignVerifyMessageDialog);
278 
279  tabWidget->setCurrentIndex(0);
280 
281 
282  QMetaObject::connectSlotsByName(SignVerifyMessageDialog);
283  } // setupUi
284 
286  {
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
295  addressBookButton_SM->setText(QString());
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
300  pasteButton_SM->setText(QString());
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
311  copySignatureButton_SM->setText(QString());
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));
320  statusLabel_SM->setText(QString());
321  tabWidget->setTabText(tabWidget->indexOf(tabSignMessage), QApplication::translate("SignVerifyMessageDialog", "&Sign Message", 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
329  addressBookButton_VM->setText(QString());
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));
347  statusLabel_VM->setText(QString());
348  tabWidget->setTabText(tabWidget->indexOf(tabVerifyMessage), QApplication::translate("SignVerifyMessageDialog", "&Verify Message", 0));
349  } // retranslateUi
350 
351 };
352 
353 namespace Ui {
355 } // namespace Ui
356 
357 QT_END_NAMESPACE
358 
359 #endif // UI_SIGNVERIFYMESSAGEDIALOG_H
void setupUi(QDialog *SignVerifyMessageDialog)
Line edit that can be marked as "invalid" to show input validation feedback.
void retranslateUi(QDialog *SignVerifyMessageDialog)