9 #ifndef UI_RECEIVEREQUESTDIALOG_H 10 #define UI_RECEIVEREQUESTDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QPushButton> 23 #include <QtWidgets/QSpacerItem> 55 if (ReceiveRequestDialog->objectName().isEmpty())
56 ReceiveRequestDialog->setObjectName(QStringLiteral(
"ReceiveRequestDialog"));
57 ReceiveRequestDialog->resize(413, 229);
58 gridLayout =
new QGridLayout(ReceiveRequestDialog);
59 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
60 gridLayout->setSizeConstraint(QLayout::SetFixedSize);
62 qr_code->setObjectName(QStringLiteral(
"qr_code"));
63 qr_code->setText(QStringLiteral(
"QR image"));
64 qr_code->setTextInteractionFlags(Qt::NoTextInteraction);
66 gridLayout->addWidget(qr_code, 0, 0, 1, 2, Qt::AlignHCenter);
68 payment_header =
new QLabel(ReceiveRequestDialog);
69 payment_header->setObjectName(QStringLiteral(
"payment_header"));
73 payment_header->setFont(font);
74 payment_header->setTextInteractionFlags(Qt::NoTextInteraction);
76 gridLayout->addWidget(payment_header, 1, 0, 1, 2);
78 uri_tag =
new QLabel(ReceiveRequestDialog);
79 uri_tag->setObjectName(QStringLiteral(
"uri_tag"));
80 uri_tag->setFont(font);
81 uri_tag->setText(QStringLiteral(
"URI:"));
82 uri_tag->setTextFormat(Qt::PlainText);
83 uri_tag->setTextInteractionFlags(Qt::NoTextInteraction);
85 gridLayout->addWidget(uri_tag, 2, 0, 1, 1, Qt::AlignRight|Qt::AlignTop);
87 uri_content =
new QLabel(ReceiveRequestDialog);
88 uri_content->setObjectName(QStringLiteral(
"uri_content"));
89 uri_content->setText(QStringLiteral(
"bitcoin:BC1..."));
90 uri_content->setTextFormat(Qt::RichText);
91 uri_content->setWordWrap(
true);
92 uri_content->setTextInteractionFlags(Qt::TextSelectableByMouse);
94 gridLayout->addWidget(uri_content, 2, 1, 1, 1, Qt::AlignTop);
96 address_tag =
new QLabel(ReceiveRequestDialog);
97 address_tag->setObjectName(QStringLiteral(
"address_tag"));
98 address_tag->setFont(font);
99 address_tag->setTextInteractionFlags(Qt::NoTextInteraction);
101 gridLayout->addWidget(address_tag, 3, 0, 1, 1, Qt::AlignRight|Qt::AlignTop);
103 address_content =
new QLabel(ReceiveRequestDialog);
104 address_content->setObjectName(QStringLiteral(
"address_content"));
105 address_content->setText(QStringLiteral(
"bc1..."));
106 address_content->setTextFormat(Qt::PlainText);
107 address_content->setTextInteractionFlags(Qt::TextSelectableByMouse);
109 gridLayout->addWidget(address_content, 3, 1, 1, 1, Qt::AlignTop);
111 amount_tag =
new QLabel(ReceiveRequestDialog);
112 amount_tag->setObjectName(QStringLiteral(
"amount_tag"));
113 amount_tag->setFont(font);
114 amount_tag->setTextInteractionFlags(Qt::NoTextInteraction);
116 gridLayout->addWidget(amount_tag, 4, 0, 1, 1, Qt::AlignRight|Qt::AlignTop);
118 amount_content =
new QLabel(ReceiveRequestDialog);
119 amount_content->setObjectName(QStringLiteral(
"amount_content"));
120 amount_content->setText(QStringLiteral(
"0.00000000 BTC"));
121 amount_content->setTextFormat(Qt::PlainText);
122 amount_content->setTextInteractionFlags(Qt::TextSelectableByMouse);
124 gridLayout->addWidget(amount_content, 4, 1, 1, 1, Qt::AlignTop);
126 label_tag =
new QLabel(ReceiveRequestDialog);
127 label_tag->setObjectName(QStringLiteral(
"label_tag"));
128 label_tag->setFont(font);
129 label_tag->setTextInteractionFlags(Qt::NoTextInteraction);
131 gridLayout->addWidget(label_tag, 5, 0, 1, 1, Qt::AlignRight|Qt::AlignTop);
133 label_content =
new QLabel(ReceiveRequestDialog);
134 label_content->setObjectName(QStringLiteral(
"label_content"));
135 label_content->setText(QStringLiteral(
"label content"));
136 label_content->setTextFormat(Qt::PlainText);
137 label_content->setWordWrap(
true);
138 label_content->setTextInteractionFlags(Qt::TextSelectableByMouse);
140 gridLayout->addWidget(label_content, 5, 1, 1, 1, Qt::AlignTop);
142 message_tag =
new QLabel(ReceiveRequestDialog);
143 message_tag->setObjectName(QStringLiteral(
"message_tag"));
144 message_tag->setFont(font);
145 message_tag->setTextInteractionFlags(Qt::NoTextInteraction);
147 gridLayout->addWidget(message_tag, 6, 0, 1, 1, Qt::AlignRight|Qt::AlignTop);
149 message_content =
new QLabel(ReceiveRequestDialog);
150 message_content->setObjectName(QStringLiteral(
"message_content"));
151 message_content->setText(QStringLiteral(
"message content"));
152 message_content->setTextFormat(Qt::PlainText);
153 message_content->setWordWrap(
true);
154 message_content->setTextInteractionFlags(Qt::TextSelectableByMouse);
156 gridLayout->addWidget(message_content, 6, 1, 1, 1, Qt::AlignTop);
158 wallet_tag =
new QLabel(ReceiveRequestDialog);
159 wallet_tag->setObjectName(QStringLiteral(
"wallet_tag"));
160 wallet_tag->setFont(font);
161 wallet_tag->setTextInteractionFlags(Qt::NoTextInteraction);
163 gridLayout->addWidget(wallet_tag, 7, 0, 1, 1, Qt::AlignRight|Qt::AlignTop);
165 wallet_content =
new QLabel(ReceiveRequestDialog);
166 wallet_content->setObjectName(QStringLiteral(
"wallet_content"));
167 wallet_content->setText(QStringLiteral(
"wallet name"));
168 wallet_content->setTextFormat(Qt::PlainText);
169 wallet_content->setWordWrap(
true);
170 wallet_content->setTextInteractionFlags(Qt::TextSelectableByMouse);
172 gridLayout->addWidget(wallet_content, 7, 1, 1, 1, Qt::AlignTop);
174 horizontalLayout =
new QHBoxLayout();
175 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
176 btnCopyURI =
new QPushButton(ReceiveRequestDialog);
177 btnCopyURI->setObjectName(QStringLiteral(
"btnCopyURI"));
178 btnCopyURI->setAutoDefault(
false);
180 horizontalLayout->addWidget(btnCopyURI);
182 btnCopyAddress =
new QPushButton(ReceiveRequestDialog);
183 btnCopyAddress->setObjectName(QStringLiteral(
"btnCopyAddress"));
184 btnCopyAddress->setAutoDefault(
false);
186 horizontalLayout->addWidget(btnCopyAddress);
188 btnSaveAs =
new QPushButton(ReceiveRequestDialog);
189 btnSaveAs->setObjectName(QStringLiteral(
"btnSaveAs"));
190 btnSaveAs->setAutoDefault(
false);
192 horizontalLayout->addWidget(btnSaveAs);
194 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
196 horizontalLayout->addItem(horizontalSpacer_2);
198 buttonBox =
new QDialogButtonBox(ReceiveRequestDialog);
199 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
200 buttonBox->setFocusPolicy(Qt::StrongFocus);
201 buttonBox->setStandardButtons(QDialogButtonBox::Ok);
203 horizontalLayout->addWidget(buttonBox);
206 gridLayout->addLayout(horizontalLayout, 8, 0, 1, 2);
208 gridLayout->setColumnStretch(1, 1);
209 QWidget::setTabOrder(buttonBox, btnCopyURI);
210 QWidget::setTabOrder(btnCopyURI, btnCopyAddress);
211 QWidget::setTabOrder(btnCopyAddress, btnSaveAs);
214 QObject::connect(buttonBox, SIGNAL(accepted()), ReceiveRequestDialog, SLOT(accept()));
216 QMetaObject::connectSlotsByName(ReceiveRequestDialog);
221 ReceiveRequestDialog->setWindowTitle(QApplication::translate(
"ReceiveRequestDialog",
"Request payment to ...", 0));
222 payment_header->setText(QApplication::translate(
"ReceiveRequestDialog",
"Payment information", 0));
223 address_tag->setText(QApplication::translate(
"ReceiveRequestDialog",
"Address:", 0));
224 amount_tag->setText(QApplication::translate(
"ReceiveRequestDialog",
"Amount:", 0));
225 label_tag->setText(QApplication::translate(
"ReceiveRequestDialog",
"Label:", 0));
226 message_tag->setText(QApplication::translate(
"ReceiveRequestDialog",
"Message:", 0));
227 wallet_tag->setText(QApplication::translate(
"ReceiveRequestDialog",
"Wallet:", 0));
228 btnCopyURI->setText(QApplication::translate(
"ReceiveRequestDialog",
"Copy &URI", 0));
229 btnCopyAddress->setText(QApplication::translate(
"ReceiveRequestDialog",
"Copy &Address", 0));
230 btnSaveAs->setText(QApplication::translate(
"ReceiveRequestDialog",
"&Save Image...", 0));
241 #endif // UI_RECEIVEREQUESTDIALOG_H QPushButton * btnCopyAddress
void retranslateUi(QDialog *ReceiveRequestDialog)
QHBoxLayout * horizontalLayout
void setupUi(QDialog *ReceiveRequestDialog)
QSpacerItem * horizontalSpacer_2
QDialogButtonBox * buttonBox