9 #ifndef UI_ASKPASSPHRASEDIALOG_H 10 #define UI_ASKPASSPHRASEDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QDialog> 18 #include <QtWidgets/QDialogButtonBox> 19 #include <QtWidgets/QFormLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QLineEdit> 23 #include <QtWidgets/QVBoxLayout> 45 if (AskPassphraseDialog->objectName().isEmpty())
46 AskPassphraseDialog->setObjectName(QStringLiteral(
"AskPassphraseDialog"));
47 AskPassphraseDialog->resize(598, 222);
48 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
49 sizePolicy.setHorizontalStretch(0);
50 sizePolicy.setVerticalStretch(0);
51 sizePolicy.setHeightForWidth(AskPassphraseDialog->sizePolicy().hasHeightForWidth());
52 AskPassphraseDialog->setSizePolicy(sizePolicy);
53 AskPassphraseDialog->setMinimumSize(QSize(550, 0));
54 verticalLayout =
new QVBoxLayout(AskPassphraseDialog);
55 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
56 verticalLayout->setSizeConstraint(QLayout::SetMinimumSize);
57 warningLabel =
new QLabel(AskPassphraseDialog);
58 warningLabel->setObjectName(QStringLiteral(
"warningLabel"));
59 warningLabel->setText(QStringLiteral(
"Placeholder text"));
60 warningLabel->setTextFormat(Qt::RichText);
61 warningLabel->setWordWrap(
true);
63 verticalLayout->addWidget(warningLabel);
65 formLayout =
new QFormLayout();
66 formLayout->setObjectName(QStringLiteral(
"formLayout"));
67 formLayout->setSizeConstraint(QLayout::SetMinimumSize);
68 formLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
69 passLabel1 =
new QLabel(AskPassphraseDialog);
70 passLabel1->setObjectName(QStringLiteral(
"passLabel1"));
72 formLayout->setWidget(0, QFormLayout::LabelRole, passLabel1);
74 passEdit1 =
new QLineEdit(AskPassphraseDialog);
75 passEdit1->setObjectName(QStringLiteral(
"passEdit1"));
76 passEdit1->setEchoMode(QLineEdit::Password);
78 formLayout->setWidget(0, QFormLayout::FieldRole, passEdit1);
80 passLabel2 =
new QLabel(AskPassphraseDialog);
81 passLabel2->setObjectName(QStringLiteral(
"passLabel2"));
83 formLayout->setWidget(1, QFormLayout::LabelRole, passLabel2);
85 passEdit2 =
new QLineEdit(AskPassphraseDialog);
86 passEdit2->setObjectName(QStringLiteral(
"passEdit2"));
87 passEdit2->setEchoMode(QLineEdit::Password);
89 formLayout->setWidget(1, QFormLayout::FieldRole, passEdit2);
91 passLabel3 =
new QLabel(AskPassphraseDialog);
92 passLabel3->setObjectName(QStringLiteral(
"passLabel3"));
94 formLayout->setWidget(2, QFormLayout::LabelRole, passLabel3);
96 passEdit3 =
new QLineEdit(AskPassphraseDialog);
97 passEdit3->setObjectName(QStringLiteral(
"passEdit3"));
98 passEdit3->setEchoMode(QLineEdit::Password);
100 formLayout->setWidget(2, QFormLayout::FieldRole, passEdit3);
102 capsLabel =
new QLabel(AskPassphraseDialog);
103 capsLabel->setObjectName(QStringLiteral(
"capsLabel"));
107 capsLabel->setFont(font);
108 capsLabel->setAlignment(Qt::AlignCenter);
110 formLayout->setWidget(3, QFormLayout::FieldRole, capsLabel);
112 stakingCheckBox =
new QCheckBox(AskPassphraseDialog);
113 stakingCheckBox->setObjectName(QStringLiteral(
"stakingCheckBox"));
115 formLayout->setWidget(4, QFormLayout::SpanningRole, stakingCheckBox);
118 verticalLayout->addLayout(formLayout);
120 buttonBox =
new QDialogButtonBox(AskPassphraseDialog);
121 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
122 buttonBox->setOrientation(Qt::Horizontal);
123 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
125 verticalLayout->addWidget(buttonBox);
129 QObject::connect(buttonBox, SIGNAL(accepted()), AskPassphraseDialog, SLOT(accept()));
130 QObject::connect(buttonBox, SIGNAL(rejected()), AskPassphraseDialog, SLOT(reject()));
132 QMetaObject::connectSlotsByName(AskPassphraseDialog);
137 AskPassphraseDialog->setWindowTitle(QApplication::translate(
"AskPassphraseDialog",
"Passphrase Dialog", 0));
138 passLabel1->setText(QApplication::translate(
"AskPassphraseDialog",
"Enter passphrase", 0));
139 passLabel2->setText(QApplication::translate(
"AskPassphraseDialog",
"New passphrase", 0));
140 passLabel3->setText(QApplication::translate(
"AskPassphraseDialog",
"Repeat new passphrase", 0));
141 capsLabel->setText(QString());
142 #ifndef QT_NO_TOOLTIP 143 stakingCheckBox->setToolTip(QApplication::translate(
"AskPassphraseDialog",
"Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.", 0));
144 #endif // QT_NO_TOOLTIP 145 stakingCheckBox->setText(QApplication::translate(
"AskPassphraseDialog",
"For staking only.", 0));
156 #endif // UI_ASKPASSPHRASEDIALOG_H void setupUi(QDialog *AskPassphraseDialog)
QCheckBox * stakingCheckBox
QVBoxLayout * verticalLayout
QDialogButtonBox * buttonBox
void retranslateUi(QDialog *AskPassphraseDialog)
Multifunctional dialog to ask for passphrases.