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/QFrame> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QLineEdit> 22 #include <QtWidgets/QPlainTextEdit> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QSpacerItem> 25 #include <QtWidgets/QTabWidget> 26 #include <QtWidgets/QVBoxLayout> 27 #include <QtWidgets/QWidget> 77 if (SignVerifyMessageDialog->objectName().isEmpty())
78 SignVerifyMessageDialog->setObjectName(QStringLiteral(
"SignVerifyMessageDialog"));
79 SignVerifyMessageDialog->resize(800, 450);
80 SignVerifyMessageDialog->setModal(
true);
81 verticalLayout =
new QVBoxLayout(SignVerifyMessageDialog);
82 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
83 verticalLayout->setContentsMargins(0, 0, 0, 0);
84 tabWidget =
new QTabWidget(SignVerifyMessageDialog);
85 tabWidget->setObjectName(QStringLiteral(
"tabWidget"));
86 tabSignMessage =
new QWidget();
87 tabSignMessage->setObjectName(QStringLiteral(
"tabSignMessage"));
88 verticalLayout_SM =
new QVBoxLayout(tabSignMessage);
89 verticalLayout_SM->setObjectName(QStringLiteral(
"verticalLayout_SM"));
90 verticalLayout_SM->setContentsMargins(0, 0, 0, 0);
91 verticalLayout_3 =
new QVBoxLayout();
92 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
93 verticalLayout_3->setContentsMargins(30, 20, 30, 20);
94 infoLabel_SM =
new QLabel(tabSignMessage);
95 infoLabel_SM->setObjectName(QStringLiteral(
"infoLabel_SM"));
96 infoLabel_SM->setTextFormat(Qt::PlainText);
97 infoLabel_SM->setWordWrap(
true);
99 verticalLayout_3->addWidget(infoLabel_SM);
101 horizontalLayout_1_SM =
new QHBoxLayout();
102 horizontalLayout_1_SM->setSpacing(6);
103 horizontalLayout_1_SM->setObjectName(QStringLiteral(
"horizontalLayout_1_SM"));
105 addressIn_SM->setObjectName(QStringLiteral(
"addressIn_SM"));
107 horizontalLayout_1_SM->addWidget(addressIn_SM);
109 addressBookButton_SM =
new QPushButton(tabSignMessage);
110 addressBookButton_SM->setObjectName(QStringLiteral(
"addressBookButton_SM"));
112 icon.addFile(QStringLiteral(
":/icons/address-book"), QSize(), QIcon::Normal, QIcon::Off);
113 addressBookButton_SM->setIcon(icon);
114 addressBookButton_SM->setAutoDefault(
false);
116 horizontalLayout_1_SM->addWidget(addressBookButton_SM);
118 vLine =
new QFrame(tabSignMessage);
119 vLine->setObjectName(QStringLiteral(
"vLine"));
120 vLine->setMaximumSize(QSize(1, 22));
121 vLine->setFrameShape(QFrame::VLine);
122 vLine->setFrameShadow(QFrame::Sunken);
124 horizontalLayout_1_SM->addWidget(vLine);
126 pasteButton_SM =
new QPushButton(tabSignMessage);
127 pasteButton_SM->setObjectName(QStringLiteral(
"pasteButton_SM"));
129 icon1.addFile(QStringLiteral(
":/icons/editpaste"), QSize(), QIcon::Normal, QIcon::Off);
130 pasteButton_SM->setIcon(icon1);
131 pasteButton_SM->setAutoDefault(
false);
133 horizontalLayout_1_SM->addWidget(pasteButton_SM);
136 verticalLayout_3->addLayout(horizontalLayout_1_SM);
138 messageIn_SM =
new QPlainTextEdit(tabSignMessage);
139 messageIn_SM->setObjectName(QStringLiteral(
"messageIn_SM"));
141 verticalLayout_3->addWidget(messageIn_SM);
143 signatureLabel_SM =
new QLabel(tabSignMessage);
144 signatureLabel_SM->setObjectName(QStringLiteral(
"signatureLabel_SM"));
145 signatureLabel_SM->setTextFormat(Qt::PlainText);
147 verticalLayout_3->addWidget(signatureLabel_SM);
149 horizontalLayout_2_SM =
new QHBoxLayout();
150 horizontalLayout_2_SM->setSpacing(6);
151 horizontalLayout_2_SM->setObjectName(QStringLiteral(
"horizontalLayout_2_SM"));
152 signatureOut_SM =
new QLineEdit(tabSignMessage);
153 signatureOut_SM->setObjectName(QStringLiteral(
"signatureOut_SM"));
155 font.setItalic(
true);
156 signatureOut_SM->setFont(font);
157 signatureOut_SM->setReadOnly(
true);
159 horizontalLayout_2_SM->addWidget(signatureOut_SM);
161 copySignatureButton_SM =
new QPushButton(tabSignMessage);
162 copySignatureButton_SM->setObjectName(QStringLiteral(
"copySignatureButton_SM"));
164 icon2.addFile(QStringLiteral(
":/icons/editcopy"), QSize(), QIcon::Normal, QIcon::Off);
165 copySignatureButton_SM->setIcon(icon2);
166 copySignatureButton_SM->setAutoDefault(
false);
168 horizontalLayout_2_SM->addWidget(copySignatureButton_SM);
171 verticalLayout_3->addLayout(horizontalLayout_2_SM);
174 verticalLayout_SM->addLayout(verticalLayout_3);
176 buttonsContainerWhite =
new QWidget(tabSignMessage);
177 buttonsContainerWhite->setObjectName(QStringLiteral(
"buttonsContainerWhite"));
178 horizontalLayout =
new QHBoxLayout(buttonsContainerWhite);
179 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
180 horizontalLayout->setContentsMargins(30, 15, 30, -1);
181 clearButton_SM =
new QPushButton(buttonsContainerWhite);
182 clearButton_SM->setObjectName(QStringLiteral(
"clearButton_SM"));
184 icon3.addFile(QStringLiteral(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
185 clearButton_SM->setIcon(icon3);
186 clearButton_SM->setAutoDefault(
false);
188 horizontalLayout->addWidget(clearButton_SM);
190 signMessageButton_SM =
new QPushButton(buttonsContainerWhite);
191 signMessageButton_SM->setObjectName(QStringLiteral(
"signMessageButton_SM"));
193 icon4.addFile(QStringLiteral(
":/icons/edit"), QSize(), QIcon::Normal, QIcon::Off);
194 signMessageButton_SM->setIcon(icon4);
195 signMessageButton_SM->setAutoDefault(
false);
197 horizontalLayout->addWidget(signMessageButton_SM);
199 horizontalSpacer_1_SM =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
201 horizontalLayout->addItem(horizontalSpacer_1_SM);
203 statusLabel_SM =
new QLabel(buttonsContainerWhite);
204 statusLabel_SM->setObjectName(QStringLiteral(
"statusLabel_SM"));
208 statusLabel_SM->setFont(font1);
209 statusLabel_SM->setWordWrap(
true);
211 horizontalLayout->addWidget(statusLabel_SM);
213 horizontalSpacer_2_SM =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
215 horizontalLayout->addItem(horizontalSpacer_2_SM);
218 verticalLayout_SM->addWidget(buttonsContainerWhite);
220 tabWidget->addTab(tabSignMessage, QString());
221 tabVerifyMessage =
new QWidget();
222 tabVerifyMessage->setObjectName(QStringLiteral(
"tabVerifyMessage"));
223 verticalLayout_VM =
new QVBoxLayout(tabVerifyMessage);
224 verticalLayout_VM->setObjectName(QStringLiteral(
"verticalLayout_VM"));
225 verticalLayout_VM->setContentsMargins(0, 0, 0, 0);
226 verticalLayout_2 =
new QVBoxLayout();
227 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
228 verticalLayout_2->setContentsMargins(30, 20, 30, 20);
229 infoLabel_VM =
new QLabel(tabVerifyMessage);
230 infoLabel_VM->setObjectName(QStringLiteral(
"infoLabel_VM"));
231 infoLabel_VM->setTextFormat(Qt::PlainText);
232 infoLabel_VM->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);
233 infoLabel_VM->setWordWrap(
true);
235 verticalLayout_2->addWidget(infoLabel_VM);
237 horizontalLayout_1_VM =
new QHBoxLayout();
238 horizontalLayout_1_VM->setSpacing(6);
239 horizontalLayout_1_VM->setObjectName(QStringLiteral(
"horizontalLayout_1_VM"));
241 addressIn_VM->setObjectName(QStringLiteral(
"addressIn_VM"));
243 horizontalLayout_1_VM->addWidget(addressIn_VM);
245 addressBookButton_VM =
new QPushButton(tabVerifyMessage);
246 addressBookButton_VM->setObjectName(QStringLiteral(
"addressBookButton_VM"));
247 addressBookButton_VM->setIcon(icon);
248 addressBookButton_VM->setAutoDefault(
false);
250 horizontalLayout_1_VM->addWidget(addressBookButton_VM);
253 verticalLayout_2->addLayout(horizontalLayout_1_VM);
255 messageIn_VM =
new QPlainTextEdit(tabVerifyMessage);
256 messageIn_VM->setObjectName(QStringLiteral(
"messageIn_VM"));
258 verticalLayout_2->addWidget(messageIn_VM);
261 signatureIn_VM->setObjectName(QStringLiteral(
"signatureIn_VM"));
263 verticalLayout_2->addWidget(signatureIn_VM);
266 verticalLayout_VM->addLayout(verticalLayout_2);
268 buttonsContainerWhite_ =
new QWidget(tabVerifyMessage);
269 buttonsContainerWhite_->setObjectName(QStringLiteral(
"buttonsContainerWhite_"));
270 horizontalLayout_2 =
new QHBoxLayout(buttonsContainerWhite_);
271 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
272 horizontalLayout_2->setContentsMargins(30, 15, 30, -1);
273 clearButton_VM =
new QPushButton(buttonsContainerWhite_);
274 clearButton_VM->setObjectName(QStringLiteral(
"clearButton_VM"));
275 clearButton_VM->setIcon(icon3);
276 clearButton_VM->setAutoDefault(
false);
278 horizontalLayout_2->addWidget(clearButton_VM);
280 verifyMessageButton_VM =
new QPushButton(buttonsContainerWhite_);
281 verifyMessageButton_VM->setObjectName(QStringLiteral(
"verifyMessageButton_VM"));
283 icon5.addFile(QStringLiteral(
":/icons/transaction_0"), QSize(), QIcon::Normal, QIcon::Off);
284 verifyMessageButton_VM->setIcon(icon5);
285 verifyMessageButton_VM->setAutoDefault(
false);
287 horizontalLayout_2->addWidget(verifyMessageButton_VM);
289 horizontalSpacer_1_VM =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
291 horizontalLayout_2->addItem(horizontalSpacer_1_VM);
293 statusLabel_VM =
new QLabel(buttonsContainerWhite_);
294 statusLabel_VM->setObjectName(QStringLiteral(
"statusLabel_VM"));
295 statusLabel_VM->setFont(font1);
296 statusLabel_VM->setWordWrap(
true);
298 horizontalLayout_2->addWidget(statusLabel_VM);
300 horizontalSpacer_2_VM =
new QSpacerItem(40, 48, QSizePolicy::Expanding, QSizePolicy::Minimum);
302 horizontalLayout_2->addItem(horizontalSpacer_2_VM);
305 verticalLayout_VM->addWidget(buttonsContainerWhite_);
307 tabWidget->addTab(tabVerifyMessage, QString());
309 verticalLayout->addWidget(tabWidget);
314 tabWidget->setCurrentIndex(0);
317 QMetaObject::connectSlotsByName(SignVerifyMessageDialog);
322 SignVerifyMessageDialog->setWindowTitle(QApplication::translate(
"SignVerifyMessageDialog",
"Signatures - Sign / Verify a Message", 0));
323 infoLabel_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"You can sign messages/agreements with your addresses to prove you can receive fabcoins 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));
324 #ifndef QT_NO_TOOLTIP 325 addressIn_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"The Fabcoin address to sign the message with", 0));
326 #endif // QT_NO_TOOLTIP 327 #ifndef QT_NO_TOOLTIP 328 addressBookButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Choose previously used address", 0));
329 #endif // QT_NO_TOOLTIP 330 addressBookButton_SM->setText(QString());
331 addressBookButton_SM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+A", 0));
332 #ifndef QT_NO_TOOLTIP 333 pasteButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Paste address from clipboard", 0));
334 #endif // QT_NO_TOOLTIP 335 pasteButton_SM->setText(QString());
336 pasteButton_SM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+P", 0));
337 #ifndef QT_NO_TOOLTIP 338 messageIn_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Enter the message you want to sign here", 0));
339 #endif // QT_NO_TOOLTIP 340 signatureLabel_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Signature", 0));
341 #ifndef QT_NO_TOOLTIP 342 copySignatureButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Copy the current signature to the system clipboard", 0));
343 #endif // QT_NO_TOOLTIP 344 copySignatureButton_SM->setText(QString());
345 #ifndef QT_NO_TOOLTIP 346 clearButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Reset all sign message fields", 0));
347 #endif // QT_NO_TOOLTIP 348 clearButton_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Clear &All", 0));
349 #ifndef QT_NO_TOOLTIP 350 signMessageButton_SM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Sign the message to prove you own this Fabcoin address", 0));
351 #endif // QT_NO_TOOLTIP 352 signMessageButton_SM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Sign &Message", 0));
353 statusLabel_SM->setText(QString());
354 tabWidget->setTabText(tabWidget->indexOf(tabSignMessage), QApplication::translate(
"SignVerifyMessageDialog",
"&Sign Message", 0));
355 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));
356 #ifndef QT_NO_TOOLTIP 357 addressIn_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"The Fabcoin address the message was signed with", 0));
358 #endif // QT_NO_TOOLTIP 359 #ifndef QT_NO_TOOLTIP 360 addressBookButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Choose previously used address", 0));
361 #endif // QT_NO_TOOLTIP 362 addressBookButton_VM->setText(QString());
363 addressBookButton_VM->setShortcut(QApplication::translate(
"SignVerifyMessageDialog",
"Alt+A", 0));
364 #ifndef QT_NO_TOOLTIP 365 clearButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Reset all verify message fields", 0));
366 #endif // QT_NO_TOOLTIP 367 clearButton_VM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Clear &All", 0));
368 #ifndef QT_NO_TOOLTIP 369 verifyMessageButton_VM->setToolTip(QApplication::translate(
"SignVerifyMessageDialog",
"Verify the message to ensure it was signed with the specified Fabcoin address", 0));
370 #endif // QT_NO_TOOLTIP 371 verifyMessageButton_VM->setText(QApplication::translate(
"SignVerifyMessageDialog",
"Verify &Message", 0));
372 statusLabel_VM->setText(QString());
373 tabWidget->setTabText(tabWidget->indexOf(tabVerifyMessage), QApplication::translate(
"SignVerifyMessageDialog",
"&Verify Message", 0));
384 #endif // UI_SIGNVERIFYMESSAGEDIALOG_H QPlainTextEdit * messageIn_SM
QSpacerItem * horizontalSpacer_2_SM
QVBoxLayout * verticalLayout_3
QSpacerItem * horizontalSpacer_1_SM
QPushButton * signMessageButton_SM
void setupUi(QDialog *SignVerifyMessageDialog)
QVBoxLayout * verticalLayout_VM
QPushButton * pasteButton_SM
QSpacerItem * horizontalSpacer_2_VM
Line edit that can be marked as "invalid" to show input validation feedback.
QWidget * buttonsContainerWhite
QPushButton * verifyMessageButton_VM
QPushButton * addressBookButton_VM
QWidget * tabVerifyMessage
QWidget * buttonsContainerWhite_
QHBoxLayout * horizontalLayout_2_SM
QValidatedLineEdit * signatureIn_VM
void retranslateUi(QDialog *SignVerifyMessageDialog)
QHBoxLayout * horizontalLayout_1_SM
QHBoxLayout * horizontalLayout_2
QPushButton * addressBookButton_SM
QHBoxLayout * horizontalLayout_1_VM
QValidatedLineEdit * addressIn_SM
QPushButton * clearButton_VM
QVBoxLayout * verticalLayout
QPushButton * clearButton_SM
QLabel * signatureLabel_SM
QPushButton * copySignatureButton_SM
QHBoxLayout * horizontalLayout
QValidatedLineEdit * addressIn_VM
QSpacerItem * horizontalSpacer_1_VM
QVBoxLayout * verticalLayout_2
QPlainTextEdit * messageIn_VM
QVBoxLayout * verticalLayout_SM
QLineEdit * signatureOut_SM