9 #ifndef UI_RESTOREDIALOG_H 10 #define UI_RESTOREDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QGroupBox> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QLineEdit> 23 #include <QtWidgets/QPushButton> 24 #include <QtWidgets/QRadioButton> 25 #include <QtWidgets/QSpacerItem> 26 #include <QtWidgets/QVBoxLayout> 27 #include <QtWidgets/QWidget> 55 if (RestoreDialog->objectName().isEmpty())
56 RestoreDialog->setObjectName(QStringLiteral(
"RestoreDialog"));
57 RestoreDialog->resize(555, 352);
58 verticalLayout_3 =
new QVBoxLayout(RestoreDialog);
59 verticalLayout_3->setSpacing(0);
60 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
61 verticalLayout_3->setContentsMargins(0, 0, 0, 0);
62 verticalLayout_2 =
new QVBoxLayout();
63 verticalLayout_2->setSpacing(15);
64 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
65 verticalLayout_2->setContentsMargins(15, 15, 15, 15);
66 gbWalletPath =
new QGroupBox(RestoreDialog);
67 gbWalletPath->setObjectName(QStringLiteral(
"gbWalletPath"));
68 horizontalLayout =
new QHBoxLayout(gbWalletPath);
69 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
70 txtWalletPath =
new QLineEdit(gbWalletPath);
71 txtWalletPath->setObjectName(QStringLiteral(
"txtWalletPath"));
72 txtWalletPath->setReadOnly(
true);
74 horizontalLayout->addWidget(txtWalletPath);
76 toolWalletPath =
new QPushButton(gbWalletPath);
77 toolWalletPath->setObjectName(QStringLiteral(
"toolWalletPath"));
79 horizontalLayout->addWidget(toolWalletPath);
82 verticalLayout_2->addWidget(gbWalletPath);
84 groupBox =
new QGroupBox(RestoreDialog);
85 groupBox->setObjectName(QStringLiteral(
"groupBox"));
86 groupBox->setMinimumSize(QSize(0, 90));
87 verticalLayout =
new QVBoxLayout(groupBox);
88 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
89 rbReindex =
new QRadioButton(groupBox);
90 rbReindex->setObjectName(QStringLiteral(
"rbReindex"));
91 rbReindex->setChecked(
true);
93 verticalLayout->addWidget(rbReindex);
95 rbSalvage =
new QRadioButton(groupBox);
96 rbSalvage->setObjectName(QStringLiteral(
"rbSalvage"));
98 verticalLayout->addWidget(rbSalvage);
100 verticalSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
102 verticalLayout->addItem(verticalSpacer);
105 verticalLayout_2->addWidget(groupBox);
107 verticalSpacer_2 =
new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
109 verticalLayout_2->addItem(verticalSpacer_2);
111 lblInfo =
new QLabel(RestoreDialog);
112 lblInfo->setObjectName(QStringLiteral(
"lblInfo"));
113 lblInfo->setWordWrap(
true);
115 verticalLayout_2->addWidget(lblInfo);
118 verticalLayout_3->addLayout(verticalLayout_2);
120 buttonsContainerWhite =
new QWidget(RestoreDialog);
121 buttonsContainerWhite->setObjectName(QStringLiteral(
"buttonsContainerWhite"));
122 horizontalLayout_2 =
new QHBoxLayout(buttonsContainerWhite);
123 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
124 horizontalLayout_2->setContentsMargins(30, 25, 30, 15);
125 btnReset =
new QPushButton(buttonsContainerWhite);
126 btnReset->setObjectName(QStringLiteral(
"btnReset"));
128 horizontalLayout_2->addWidget(btnReset);
130 horizontalSpacer =
new QSpacerItem(196, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
132 horizontalLayout_2->addItem(horizontalSpacer);
134 btnBoxRestore =
new QDialogButtonBox(buttonsContainerWhite);
135 btnBoxRestore->setObjectName(QStringLiteral(
"btnBoxRestore"));
136 btnBoxRestore->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
138 horizontalLayout_2->addWidget(btnBoxRestore);
141 verticalLayout_3->addWidget(buttonsContainerWhite);
146 QMetaObject::connectSlotsByName(RestoreDialog);
151 RestoreDialog->setWindowTitle(QApplication::translate(
"RestoreDialog",
"Restore Wallet", 0));
152 gbWalletPath->setTitle(QApplication::translate(
"RestoreDialog",
"Select wallet file to restore from", 0));
153 toolWalletPath->setText(QApplication::translate(
"RestoreDialog",
"...", 0));
154 groupBox->setTitle(QApplication::translate(
"RestoreDialog",
"Choose wallet restore option", 0));
155 rbReindex->setText(QApplication::translate(
"RestoreDialog",
"Reindex", 0));
156 rbSalvage->setText(QApplication::translate(
"RestoreDialog",
"Salvage", 0));
157 lblInfo->setText(QApplication::translate(
"RestoreDialog",
"The wallet.dat will be restored from the selected location and the Qt Wallet will be restarted with the -reindex or -salvagewallet option.", 0));
158 btnReset->setText(QApplication::translate(
"RestoreDialog",
"&Reset", 0));
169 #endif // UI_RESTOREDIALOG_H QDialogButtonBox * btnBoxRestore
QLineEdit * txtWalletPath
QHBoxLayout * horizontalLayout
QSpacerItem * verticalSpacer_2
QSpacerItem * verticalSpacer
QVBoxLayout * verticalLayout_2
QSpacerItem * horizontalSpacer
QHBoxLayout * horizontalLayout_2
The RestoreDialog class Restore dialog class.
void retranslateUi(QDialog *RestoreDialog)
QPushButton * toolWalletPath
QVBoxLayout * verticalLayout_3
QVBoxLayout * verticalLayout
void setupUi(QDialog *RestoreDialog)
QWidget * buttonsContainerWhite