8 #ifndef UI_SENDMPDIALOG_H
9 #define UI_SENDMPDIALOG_H
11 #include <QtCore/QVariant>
12 #include <QtGui/QAction>
13 #include <QtGui/QApplication>
14 #include <QtGui/QButtonGroup>
15 #include <QtGui/QComboBox>
16 #include <QtGui/QDialog>
17 #include <QtGui/QHBoxLayout>
18 #include <QtGui/QHeaderView>
19 #include <QtGui/QLabel>
20 #include <QtGui/QLineEdit>
21 #include <QtGui/QPushButton>
22 #include <QtGui/QScrollArea>
23 #include <QtGui/QSpacerItem>
24 #include <QtGui/QVBoxLayout>
25 #include <QtGui/QWidget>
63 if (SendMPDialog->objectName().isEmpty())
64 SendMPDialog->setObjectName(QString::fromUtf8(
"SendMPDialog"));
65 SendMPDialog->resize(850, 400);
66 SendMPDialog->setAutoFillBackground(
true);
67 verticalLayout =
new QVBoxLayout(SendMPDialog);
68 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
69 verticalLayout->setContentsMargins(-1, -1, -1, 8);
70 scrollArea =
new QScrollArea(SendMPDialog);
71 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
72 scrollArea->setFrameShape(QFrame::NoFrame);
73 scrollArea->setFrameShadow(QFrame::Plain);
74 scrollArea->setWidgetResizable(
true);
75 scrollAreaWidgetContents =
new QWidget();
76 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
77 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 832, 351));
78 verticalLayout_2 =
new QVBoxLayout(scrollAreaWidgetContents);
79 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
80 verticalLayout_2->setContentsMargins(0, 0, 0, 0);
81 FromHLayout =
new QHBoxLayout();
82 FromHLayout->setObjectName(QString::fromUtf8(
"FromHLayout"));
83 sendFromLabel =
new QLabel(scrollAreaWidgetContents);
84 sendFromLabel->setObjectName(QString::fromUtf8(
"sendFromLabel"));
85 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
86 sizePolicy.setHorizontalStretch(0);
87 sizePolicy.setVerticalStretch(0);
88 sizePolicy.setHeightForWidth(sendFromLabel->sizePolicy().hasHeightForWidth());
89 sendFromLabel->setSizePolicy(sizePolicy);
90 sendFromLabel->setMinimumSize(QSize(95, 0));
91 sendFromLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
92 sendFromLabel->setMargin(8);
94 FromHLayout->addWidget(sendFromLabel);
96 sendFromComboBox =
new QComboBox(scrollAreaWidgetContents);
97 sendFromComboBox->setObjectName(QString::fromUtf8(
"sendFromComboBox"));
98 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
99 sizePolicy1.setHorizontalStretch(0);
100 sizePolicy1.setVerticalStretch(0);
101 sizePolicy1.setHeightForWidth(sendFromComboBox->sizePolicy().hasHeightForWidth());
102 sendFromComboBox->setSizePolicy(sizePolicy1);
104 FromHLayout->addWidget(sendFromComboBox);
106 addressBalanceLabel =
new QLabel(scrollAreaWidgetContents);
107 addressBalanceLabel->setObjectName(QString::fromUtf8(
"addressBalanceLabel"));
109 FromHLayout->addWidget(addressBalanceLabel);
111 horizontalSpacer_2 =
new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
113 FromHLayout->addItem(horizontalSpacer_2);
116 verticalLayout_2->addLayout(FromHLayout);
118 ToHLayout =
new QHBoxLayout();
119 ToHLayout->setObjectName(QString::fromUtf8(
"ToHLayout"));
120 sendToLabel =
new QLabel(scrollAreaWidgetContents);
121 sendToLabel->setObjectName(QString::fromUtf8(
"sendToLabel"));
122 sendToLabel->setMinimumSize(QSize(95, 0));
123 sendToLabel->setLayoutDirection(Qt::LeftToRight);
124 sendToLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
125 sendToLabel->setMargin(8);
127 ToHLayout->addWidget(sendToLabel);
129 sendToLineEdit =
new QLineEdit(scrollAreaWidgetContents);
130 sendToLineEdit->setObjectName(QString::fromUtf8(
"sendToLineEdit"));
132 ToHLayout->addWidget(sendToLineEdit);
134 horizontalSpacer_3 =
new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
136 ToHLayout->addItem(horizontalSpacer_3);
139 verticalLayout_2->addLayout(ToHLayout);
141 horizontalLayout_3 =
new QHBoxLayout();
142 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
143 horizontalLayout_3->setContentsMargins(-1, -1, -1, 0);
144 amountLabel =
new QLabel(scrollAreaWidgetContents);
145 amountLabel->setObjectName(QString::fromUtf8(
"amountLabel"));
146 amountLabel->setMinimumSize(QSize(95, 0));
147 amountLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
148 amountLabel->setMargin(8);
150 horizontalLayout_3->addWidget(amountLabel);
152 amountLineEdit =
new QLineEdit(scrollAreaWidgetContents);
153 amountLineEdit->setObjectName(QString::fromUtf8(
"amountLineEdit"));
155 horizontalLayout_3->addWidget(amountLineEdit);
157 propertyComboBox =
new QComboBox(scrollAreaWidgetContents);
158 propertyComboBox->setObjectName(QString::fromUtf8(
"propertyComboBox"));
159 sizePolicy1.setHeightForWidth(propertyComboBox->sizePolicy().hasHeightForWidth());
160 propertyComboBox->setSizePolicy(sizePolicy1);
162 horizontalLayout_3->addWidget(propertyComboBox);
164 horizontalSpacer_5 =
new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
166 horizontalLayout_3->addItem(horizontalSpacer_5);
169 verticalLayout_2->addLayout(horizontalLayout_3);
171 horizontalLayout_4 =
new QHBoxLayout();
172 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
173 horizontalLayout_4->setContentsMargins(-1, -1, -1, 0);
174 feeWarningLabel =
new QLabel(scrollAreaWidgetContents);
175 feeWarningLabel->setObjectName(QString::fromUtf8(
"feeWarningLabel"));
177 font.setPointSize(7);
178 feeWarningLabel->setFont(font);
179 feeWarningLabel->setStyleSheet(QString::fromUtf8(
"QLabel { color:rgb(191, 127, 0);} "));
180 feeWarningLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
182 horizontalLayout_4->addWidget(feeWarningLabel);
184 horizontalSpacer_4 =
new QSpacerItem(15, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
186 horizontalLayout_4->addItem(horizontalSpacer_4);
189 verticalLayout_2->addLayout(horizontalLayout_4);
191 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
193 verticalLayout_2->addItem(verticalSpacer);
195 verticalLayout_2->setStretch(4, 1);
196 scrollArea->setWidget(scrollAreaWidgetContents);
198 verticalLayout->addWidget(scrollArea);
200 horizontalLayout =
new QHBoxLayout();
201 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
202 sendButton =
new QPushButton(SendMPDialog);
203 sendButton->setObjectName(QString::fromUtf8(
"sendButton"));
204 sendButton->setMinimumSize(QSize(150, 0));
206 icon.addFile(QString::fromUtf8(
":/icons/send"), QSize(), QIcon::Normal, QIcon::Off);
207 sendButton->setIcon(icon);
208 sendButton->setDefault(
true);
210 horizontalLayout->addWidget(sendButton);
212 clearButton =
new QPushButton(SendMPDialog);
213 clearButton->setObjectName(QString::fromUtf8(
"clearButton"));
214 QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Fixed);
215 sizePolicy2.setHorizontalStretch(0);
216 sizePolicy2.setVerticalStretch(0);
217 sizePolicy2.setHeightForWidth(clearButton->sizePolicy().hasHeightForWidth());
218 clearButton->setSizePolicy(sizePolicy2);
220 icon1.addFile(QString::fromUtf8(
":/icons/remove"), QSize(), QIcon::Normal, QIcon::Off);
221 clearButton->setIcon(icon1);
222 clearButton->setAutoRepeatDelay(300);
223 clearButton->setAutoDefault(
false);
225 horizontalLayout->addWidget(clearButton);
227 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
229 horizontalLayout->addItem(horizontalSpacer);
231 horizontalLayout_2 =
new QHBoxLayout();
232 horizontalLayout_2->setSpacing(3);
233 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
234 globalBalanceLabel =
new QLabel(SendMPDialog);
235 globalBalanceLabel->setObjectName(QString::fromUtf8(
"globalBalanceLabel"));
236 QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::Fixed);
237 sizePolicy3.setHorizontalStretch(0);
238 sizePolicy3.setVerticalStretch(0);
239 sizePolicy3.setHeightForWidth(globalBalanceLabel->sizePolicy().hasHeightForWidth());
240 globalBalanceLabel->setSizePolicy(sizePolicy3);
241 globalBalanceLabel->setCursor(QCursor(Qt::IBeamCursor));
242 globalBalanceLabel->setText(QString::fromUtf8(
"123.456 MSC"));
243 globalBalanceLabel->setTextInteractionFlags(Qt::LinksAccessibleByMouse|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse);
245 horizontalLayout_2->addWidget(globalBalanceLabel);
248 horizontalLayout->addLayout(horizontalLayout_2);
251 verticalLayout->addLayout(horizontalLayout);
253 verticalLayout->setStretch(0, 1);
257 QMetaObject::connectSlotsByName(SendMPDialog);
262 SendMPDialog->setWindowTitle(QApplication::translate(
"SendMPDialog",
"Send Coins", 0, QApplication::UnicodeUTF8));
263 sendFromLabel->setText(QApplication::translate(
"SendMPDialog",
"Send From:", 0, QApplication::UnicodeUTF8));
264 addressBalanceLabel->setText(QApplication::translate(
"SendMPDialog",
"Address Balance: 123.456 MSC", 0, QApplication::UnicodeUTF8));
265 sendToLabel->setText(QApplication::translate(
"SendMPDialog",
"Send To:", 0, QApplication::UnicodeUTF8));
266 amountLabel->setText(QApplication::translate(
"SendMPDialog",
"Amount:", 0, QApplication::UnicodeUTF8));
267 feeWarningLabel->setText(QApplication::translate(
"SendMPDialog",
"Warning: The sending address does not have enough BTC to cover the fees for this transaction.", 0, QApplication::UnicodeUTF8));
268 #ifndef QT_NO_TOOLTIP
269 sendButton->setToolTip(QApplication::translate(
"SendMPDialog",
"Confirm the send action", 0, QApplication::UnicodeUTF8));
270 #endif // QT_NO_TOOLTIP
271 sendButton->setText(QApplication::translate(
"SendMPDialog",
"S&end", 0, QApplication::UnicodeUTF8));
272 #ifndef QT_NO_TOOLTIP
273 clearButton->setToolTip(QApplication::translate(
"SendMPDialog",
"Clear all fields of the form.", 0, QApplication::UnicodeUTF8));
274 #endif // QT_NO_TOOLTIP
275 clearButton->setText(QApplication::translate(
"SendMPDialog",
"Clear &All", 0, QApplication::UnicodeUTF8));
286 #endif // UI_SENDMPDIALOG_H
QSpacerItem * horizontalSpacer
QHBoxLayout * FromHLayout
QPushButton * clearButton
QSpacerItem * verticalSpacer
void setupUi(QDialog *SendMPDialog)
QSpacerItem * horizontalSpacer_4
void retranslateUi(QDialog *SendMPDialog)
Dialog for sending Master Protocol tokens.
QComboBox * propertyComboBox
QLineEdit * sendToLineEdit
QHBoxLayout * horizontalLayout
QVBoxLayout * verticalLayout
QLabel * addressBalanceLabel
QHBoxLayout * horizontalLayout_4
QSpacerItem * horizontalSpacer_2
QLineEdit * amountLineEdit
QComboBox * sendFromComboBox
QVBoxLayout * verticalLayout_2
QHBoxLayout * horizontalLayout_3
QSpacerItem * horizontalSpacer_5
QWidget * scrollAreaWidgetContents
QSpacerItem * horizontalSpacer_3
QHBoxLayout * horizontalLayout_2
QLabel * globalBalanceLabel