25 return ui->
rbReindex->isChecked() ?
"-reindex" :
"-salvagewallet";
48 if(
model && QFile::exists(filename))
50 QMessageBox::StandardButton retval = QMessageBox::question(
this, tr(
"Confirm wallet restoration"),
51 tr(
"Warning: The wallet will be restored from location <b>%1</b> and restarted with parameter <b>%2</b>.").arg(filename, param)
52 + tr(
"<br><br>Are you sure you wish to restore your wallet?"),
53 QMessageBox::Yes|QMessageBox::Cancel,
55 if(retval == QMessageBox::Yes)
74 tr(
"Restore Wallet"), QString(),
75 tr(
"Wallet Data (*.dat)"), NULL);
77 if (filename.isEmpty())
#define SetObjectStyleSheet(object, name)
void on_toolWalletPath_clicked()
on_toolWalletPath_clicked Choose wallet button path slot
QString getOpenFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get open filename, convenience wrapper for QFileDialog::getOpenFileName.
QLineEdit * txtWalletPath
void on_btnReset_clicked()
on_btnReset_clicked Reset button click slot
RestoreDialog(QWidget *parent=0)
RestoreDialog Constructor.
~RestoreDialog()
~RestoreDialog Destructor
void setModel(WalletModel *model)
setModel Set wallet model
void on_btnBoxRestore_accepted()
on_btnBoxRestore_accepted Ok button click slot
QString getParam()
getParam Get the command line param for restart of the wallet
QString getFileName()
getFileName Get the restore wallet name
The RestoreDialog class Restore dialog class.
bool restoreWallet(const QString &filename, const QString ¶m)
Interface to Fabcoin wallet from Qt view code.
void on_btnBoxRestore_rejected()
on_btnBoxRestore_rejected Cancel button click slot
void setupUi(QDialog *RestoreDialog)