9 #ifndef UI_CREATEWALLETDIALOG_H 10 #define UI_CREATEWALLETDIALOG_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/QGroupBox> 20 #include <QtWidgets/QHBoxLayout> 21 #include <QtWidgets/QHeaderView> 22 #include <QtWidgets/QLabel> 23 #include <QtWidgets/QLineEdit> 24 #include <QtWidgets/QSpacerItem> 25 #include <QtWidgets/QVBoxLayout> 48 if (CreateWalletDialog->objectName().isEmpty())
49 CreateWalletDialog->setObjectName(QStringLiteral(
"CreateWalletDialog"));
50 CreateWalletDialog->resize(364, 249);
51 CreateWalletDialog->setSizeGripEnabled(
true);
52 verticalLayout =
new QVBoxLayout(CreateWalletDialog);
53 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
54 horizontalLayout =
new QHBoxLayout();
55 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
56 wallet_name_label =
new QLabel(CreateWalletDialog);
57 wallet_name_label->setObjectName(QStringLiteral(
"wallet_name_label"));
59 horizontalLayout->addWidget(wallet_name_label);
61 wallet_name_line_edit =
new QLineEdit(CreateWalletDialog);
62 wallet_name_line_edit->setObjectName(QStringLiteral(
"wallet_name_line_edit"));
63 wallet_name_line_edit->setMinimumSize(QSize(262, 0));
65 horizontalLayout->addWidget(wallet_name_line_edit);
68 verticalLayout->addLayout(horizontalLayout);
70 encrypt_wallet_checkbox =
new QCheckBox(CreateWalletDialog);
71 encrypt_wallet_checkbox->setObjectName(QStringLiteral(
"encrypt_wallet_checkbox"));
72 encrypt_wallet_checkbox->setChecked(
false);
74 verticalLayout->addWidget(encrypt_wallet_checkbox);
76 verticalSpacer_1 =
new QSpacerItem(20, 8, QSizePolicy::Minimum, QSizePolicy::Fixed);
78 verticalLayout->addItem(verticalSpacer_1);
80 groupBox =
new QGroupBox(CreateWalletDialog);
81 groupBox->setObjectName(QStringLiteral(
"groupBox"));
82 verticalLayout_groupbox =
new QVBoxLayout(groupBox);
83 verticalLayout_groupbox->setObjectName(QStringLiteral(
"verticalLayout_groupbox"));
84 disable_privkeys_checkbox =
new QCheckBox(groupBox);
85 disable_privkeys_checkbox->setObjectName(QStringLiteral(
"disable_privkeys_checkbox"));
86 disable_privkeys_checkbox->setEnabled(
true);
88 verticalLayout_groupbox->addWidget(disable_privkeys_checkbox);
90 blank_wallet_checkbox =
new QCheckBox(groupBox);
91 blank_wallet_checkbox->setObjectName(QStringLiteral(
"blank_wallet_checkbox"));
93 verticalLayout_groupbox->addWidget(blank_wallet_checkbox);
95 descriptor_checkbox =
new QCheckBox(groupBox);
96 descriptor_checkbox->setObjectName(QStringLiteral(
"descriptor_checkbox"));
98 verticalLayout_groupbox->addWidget(descriptor_checkbox);
101 verticalLayout->addWidget(groupBox);
103 verticalSpacer_2 =
new QSpacerItem(20, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
105 verticalLayout->addItem(verticalSpacer_2);
107 buttonBox =
new QDialogButtonBox(CreateWalletDialog);
108 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
109 buttonBox->setOrientation(Qt::Horizontal);
110 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
112 verticalLayout->addWidget(buttonBox);
114 QWidget::setTabOrder(wallet_name_line_edit, encrypt_wallet_checkbox);
115 QWidget::setTabOrder(encrypt_wallet_checkbox, disable_privkeys_checkbox);
116 QWidget::setTabOrder(disable_privkeys_checkbox, blank_wallet_checkbox);
117 QWidget::setTabOrder(blank_wallet_checkbox, descriptor_checkbox);
120 QObject::connect(buttonBox, SIGNAL(accepted()), CreateWalletDialog, SLOT(accept()));
121 QObject::connect(buttonBox, SIGNAL(rejected()), CreateWalletDialog, SLOT(reject()));
123 QMetaObject::connectSlotsByName(CreateWalletDialog);
128 CreateWalletDialog->setWindowTitle(QApplication::translate(
"CreateWalletDialog",
"Create Wallet", 0));
129 wallet_name_label->setText(QApplication::translate(
"CreateWalletDialog",
"Wallet Name", 0));
130 wallet_name_line_edit->setPlaceholderText(QApplication::translate(
"CreateWalletDialog",
"Wallet", 0));
131 #ifndef QT_NO_TOOLTIP 132 encrypt_wallet_checkbox->setToolTip(QApplication::translate(
"CreateWalletDialog",
"Encrypt the wallet. The wallet will be encrypted with a passphrase of your choice.", 0));
133 #endif // QT_NO_TOOLTIP 134 encrypt_wallet_checkbox->setText(QApplication::translate(
"CreateWalletDialog",
"Encrypt Wallet", 0));
135 groupBox->setTitle(QApplication::translate(
"CreateWalletDialog",
"Advanced Options", 0));
136 #ifndef QT_NO_TOOLTIP 137 disable_privkeys_checkbox->setToolTip(QApplication::translate(
"CreateWalletDialog",
"Disable private keys for this wallet. Wallets with private keys disabled will have no private keys and cannot have an HD seed or imported private keys. This is ideal for watch-only wallets.", 0));
138 #endif // QT_NO_TOOLTIP 139 disable_privkeys_checkbox->setText(QApplication::translate(
"CreateWalletDialog",
"Disable Private Keys", 0));
140 #ifndef QT_NO_TOOLTIP 141 blank_wallet_checkbox->setToolTip(QApplication::translate(
"CreateWalletDialog",
"Make a blank wallet. Blank wallets do not initially have private keys or scripts. Private keys and addresses can be imported, or an HD seed can be set, at a later time.", 0));
142 #endif // QT_NO_TOOLTIP 143 blank_wallet_checkbox->setText(QApplication::translate(
"CreateWalletDialog",
"Make Blank Wallet", 0));
144 #ifndef QT_NO_TOOLTIP 145 descriptor_checkbox->setToolTip(QApplication::translate(
"CreateWalletDialog",
"Use descriptors for scriptPubKey management", 0));
146 #endif // QT_NO_TOOLTIP 147 descriptor_checkbox->setText(QApplication::translate(
"CreateWalletDialog",
"Descriptor Wallet", 0));
158 #endif // UI_CREATEWALLETDIALOG_H
QVBoxLayout * verticalLayout_groupbox
QVBoxLayout * verticalLayout
QSpacerItem * verticalSpacer_2
QCheckBox * blank_wallet_checkbox
QHBoxLayout * horizontalLayout
QLineEdit * wallet_name_line_edit
QCheckBox * descriptor_checkbox
QLabel * wallet_name_label
QSpacerItem * verticalSpacer_1
void retranslateUi(QDialog *CreateWalletDialog)
QCheckBox * encrypt_wallet_checkbox
QCheckBox * disable_privkeys_checkbox
Dialog for creating wallets.
QDialogButtonBox * buttonBox
void setupUi(QDialog *CreateWalletDialog)