5#if defined(HAVE_CONFIG_H)
6#include <config/bitcoin-config.h>
10#include <qt/forms/ui_createwalletdialog.h>
17 ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr(
"Create"));
18 ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(
false);
19 ui->wallet_name_line_edit->setFocus(Qt::ActiveWindowFocusReason);
21 connect(
ui->wallet_name_line_edit, &QLineEdit::textEdited,
22 [
this](
const QString &text) {
23 ui->buttonBox->button(QDialogButtonBox::Ok)
24 ->setEnabled(!text.isEmpty());
27 connect(
ui->encrypt_wallet_checkbox, &QCheckBox::toggled,
28 [
this](
bool checked) {
32 ui->disable_privkeys_checkbox->setEnabled(!checked);
35 if (!ui->disable_privkeys_checkbox->isEnabled()) {
36 ui->disable_privkeys_checkbox->setChecked(false);
46 return ui->wallet_name_line_edit->text();
50 return ui->encrypt_wallet_checkbox->isChecked();
54 return ui->disable_privkeys_checkbox->isChecked();
58 return ui->blank_wallet_checkbox->isChecked();
62 return ui->descriptor_checkbox->isChecked();
Dialog for creating wallets.
bool isMakeBlankWalletChecked() const
virtual ~CreateWalletDialog()
QString walletName() const
Ui::CreateWalletDialog * ui
bool isDisablePrivateKeysChecked() const
bool isEncryptWalletChecked() const
bool isDescriptorWalletChecked() const
CreateWalletDialog(QWidget *parent)