5 #ifndef PIVX_QT_PWIDGET_H
6 #define PIVX_QT_PWIDGET_H
33 explicit PWidget(
PIVXGUI* _window =
nullptr, QWidget *parent =
nullptr);
41 void run(
int type)
override;
45 void emitMessage(
const QString& title,
const QString&
message,
unsigned int style,
bool* ret =
nullptr);
47 QString
translate(
const char *msg)
override {
return tr(msg); }
50 void message(
const QString& title,
const QString& body,
unsigned int style,
bool* ret =
nullptr);
52 bool execDialog(QDialog *dialog,
int xDiv = 3,
int yDiv = 5);
67 bool execute(
int type, std::unique_ptr<WalletModel::UnlockContext> pctx =
nullptr);
68 void warn(
const QString& title,
const QString&
message);
69 bool ask(
const QString& title,
const QString&
message);
70 void showDialog(QDialog *dialog,
int xDiv = 3,
int yDiv = 5);
73 QSharedPointer<WorkerTask>
task;
Model for PIVX network client.
virtual QString translate(const char *msg)=0
Interface to PIVX wallet from Qt view code.
bool error(const char *fmt, const Args &... args)