8 #ifndef UI_ASKPASSPHRASEDIALOG_H
9 #define UI_ASKPASSPHRASEDIALOG_H
11 #include <QtCore/QVariant>
12 #include <QtGui/QAction>
13 #include <QtGui/QApplication>
14 #include <QtGui/QButtonGroup>
15 #include <QtGui/QDialog>
16 #include <QtGui/QDialogButtonBox>
17 #include <QtGui/QFormLayout>
18 #include <QtGui/QHeaderView>
19 #include <QtGui/QLabel>
20 #include <QtGui/QLineEdit>
21 #include <QtGui/QVBoxLayout>
42 if (AskPassphraseDialog->objectName().isEmpty())
43 AskPassphraseDialog->setObjectName(QString::fromUtf8(
"AskPassphraseDialog"));
44 AskPassphraseDialog->resize(598, 198);
45 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Minimum);
46 sizePolicy.setHorizontalStretch(0);
47 sizePolicy.setVerticalStretch(0);
48 sizePolicy.setHeightForWidth(AskPassphraseDialog->sizePolicy().hasHeightForWidth());
49 AskPassphraseDialog->setSizePolicy(sizePolicy);
50 AskPassphraseDialog->setMinimumSize(QSize(550, 0));
51 verticalLayout =
new QVBoxLayout(AskPassphraseDialog);
52 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
53 warningLabel =
new QLabel(AskPassphraseDialog);
54 warningLabel->setObjectName(QString::fromUtf8(
"warningLabel"));
55 warningLabel->setTextFormat(Qt::RichText);
56 warningLabel->setWordWrap(
true);
58 verticalLayout->addWidget(warningLabel);
60 formLayout =
new QFormLayout();
61 formLayout->setObjectName(QString::fromUtf8(
"formLayout"));
62 formLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
63 passLabel1 =
new QLabel(AskPassphraseDialog);
64 passLabel1->setObjectName(QString::fromUtf8(
"passLabel1"));
66 formLayout->setWidget(0, QFormLayout::LabelRole, passLabel1);
68 passEdit1 =
new QLineEdit(AskPassphraseDialog);
69 passEdit1->setObjectName(QString::fromUtf8(
"passEdit1"));
70 passEdit1->setEchoMode(QLineEdit::Password);
72 formLayout->setWidget(0, QFormLayout::FieldRole, passEdit1);
74 passLabel2 =
new QLabel(AskPassphraseDialog);
75 passLabel2->setObjectName(QString::fromUtf8(
"passLabel2"));
77 formLayout->setWidget(1, QFormLayout::LabelRole, passLabel2);
79 passEdit2 =
new QLineEdit(AskPassphraseDialog);
80 passEdit2->setObjectName(QString::fromUtf8(
"passEdit2"));
81 passEdit2->setEchoMode(QLineEdit::Password);
83 formLayout->setWidget(1, QFormLayout::FieldRole, passEdit2);
85 passLabel3 =
new QLabel(AskPassphraseDialog);
86 passLabel3->setObjectName(QString::fromUtf8(
"passLabel3"));
88 formLayout->setWidget(2, QFormLayout::LabelRole, passLabel3);
90 passEdit3 =
new QLineEdit(AskPassphraseDialog);
91 passEdit3->setObjectName(QString::fromUtf8(
"passEdit3"));
92 passEdit3->setEchoMode(QLineEdit::Password);
94 formLayout->setWidget(2, QFormLayout::FieldRole, passEdit3);
96 capsLabel =
new QLabel(AskPassphraseDialog);
97 capsLabel->setObjectName(QString::fromUtf8(
"capsLabel"));
101 capsLabel->setFont(font);
102 capsLabel->setAlignment(Qt::AlignCenter);
104 formLayout->setWidget(3, QFormLayout::FieldRole, capsLabel);
107 verticalLayout->addLayout(formLayout);
109 buttonBox =
new QDialogButtonBox(AskPassphraseDialog);
110 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
111 buttonBox->setOrientation(Qt::Horizontal);
112 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
114 verticalLayout->addWidget(buttonBox);
118 QObject::connect(buttonBox, SIGNAL(accepted()), AskPassphraseDialog, SLOT(accept()));
119 QObject::connect(buttonBox, SIGNAL(rejected()), AskPassphraseDialog, SLOT(reject()));
121 QMetaObject::connectSlotsByName(AskPassphraseDialog);
126 AskPassphraseDialog->setWindowTitle(QApplication::translate(
"AskPassphraseDialog",
"Passphrase Dialog", 0, QApplication::UnicodeUTF8));
127 passLabel1->setText(QApplication::translate(
"AskPassphraseDialog",
"Enter passphrase", 0, QApplication::UnicodeUTF8));
128 passLabel2->setText(QApplication::translate(
"AskPassphraseDialog",
"New passphrase", 0, QApplication::UnicodeUTF8));
129 passLabel3->setText(QApplication::translate(
"AskPassphraseDialog",
"Repeat new passphrase", 0, QApplication::UnicodeUTF8));
130 capsLabel->setText(QString());
141 #endif // UI_ASKPASSPHRASEDIALOG_H
void setupUi(QDialog *AskPassphraseDialog)
QVBoxLayout * verticalLayout
QDialogButtonBox * buttonBox
void retranslateUi(QDialog *AskPassphraseDialog)
Multifunctional dialog to ask for passphrases.