Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | #ifdef ENABLE_WALLET | ||||
* Set the wallet model. | * Set the wallet model. | ||||
* The wallet model represents a bitcoin wallet, and offers access to the | * The wallet model represents a bitcoin wallet, and offers access to the | ||||
* list of transactions, address book and sending functionality. | * list of transactions, address book and sending functionality. | ||||
*/ | */ | ||||
bool addWallet(const QString &name, WalletModel *walletModel); | bool addWallet(const QString &name, WalletModel *walletModel); | ||||
bool setCurrentWallet(const QString &name); | bool setCurrentWallet(const QString &name); | ||||
void removeAllWallets(); | void removeAllWallets(); | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
bool enableWallet; | bool enableWallet = false; | ||||
protected: | protected: | ||||
void changeEvent(QEvent *e) override; | void changeEvent(QEvent *e) override; | ||||
void closeEvent(QCloseEvent *event) override; | void closeEvent(QCloseEvent *event) override; | ||||
void showEvent(QShowEvent *event) override; | void showEvent(QShowEvent *event) override; | ||||
void dragEnterEvent(QDragEnterEvent *event) override; | void dragEnterEvent(QDragEnterEvent *event) override; | ||||
void dropEvent(QDropEvent *event) override; | void dropEvent(QDropEvent *event) override; | ||||
bool eventFilter(QObject *object, QEvent *event) override; | bool eventFilter(QObject *object, QEvent *event) override; | ||||
private: | private: | ||||
ClientModel *clientModel; | ClientModel *clientModel = nullptr; | ||||
WalletFrame *walletFrame; | WalletFrame *walletFrame = nullptr; | ||||
UnitDisplayStatusBarControl *unitDisplayControl; | UnitDisplayStatusBarControl *unitDisplayControl = nullptr; | ||||
QLabel *labelWalletEncryptionIcon; | QLabel *labelWalletEncryptionIcon = nullptr; | ||||
QLabel *labelWalletHDStatusIcon; | QLabel *labelWalletHDStatusIcon = nullptr; | ||||
QLabel *connectionsControl; | QLabel *connectionsControl = nullptr; | ||||
QLabel *labelBlocksIcon; | QLabel *labelBlocksIcon = nullptr; | ||||
QLabel *progressBarLabel; | QLabel *progressBarLabel = nullptr; | ||||
QProgressBar *progressBar; | QProgressBar *progressBar = nullptr; | ||||
QProgressDialog *progressDialog; | QProgressDialog *progressDialog = nullptr; | ||||
QMenuBar *appMenuBar; | QMenuBar *appMenuBar = nullptr; | ||||
QAction *overviewAction; | QAction *overviewAction = nullptr; | ||||
QAction *historyAction; | QAction *historyAction = nullptr; | ||||
QAction *quitAction; | QAction *quitAction = nullptr; | ||||
QAction *sendCoinsAction; | QAction *sendCoinsAction = nullptr; | ||||
QAction *sendCoinsMenuAction; | QAction *sendCoinsMenuAction = nullptr; | ||||
QAction *usedSendingAddressesAction; | QAction *usedSendingAddressesAction = nullptr; | ||||
QAction *usedReceivingAddressesAction; | QAction *usedReceivingAddressesAction = nullptr; | ||||
QAction *signMessageAction; | QAction *signMessageAction = nullptr; | ||||
QAction *verifyMessageAction; | QAction *verifyMessageAction = nullptr; | ||||
QAction *aboutAction; | QAction *aboutAction = nullptr; | ||||
QAction *receiveCoinsAction; | QAction *receiveCoinsAction = nullptr; | ||||
QAction *receiveCoinsMenuAction; | QAction *receiveCoinsMenuAction = nullptr; | ||||
QAction *optionsAction; | QAction *optionsAction = nullptr; | ||||
QAction *toggleHideAction; | QAction *toggleHideAction = nullptr; | ||||
QAction *encryptWalletAction; | QAction *encryptWalletAction = nullptr; | ||||
QAction *backupWalletAction; | QAction *backupWalletAction = nullptr; | ||||
QAction *changePassphraseAction; | QAction *changePassphraseAction = nullptr; | ||||
QAction *aboutQtAction; | QAction *aboutQtAction = nullptr; | ||||
QAction *openRPCConsoleAction; | QAction *openRPCConsoleAction = nullptr; | ||||
QAction *openAction; | QAction *openAction = nullptr; | ||||
QAction *showHelpMessageAction; | QAction *showHelpMessageAction = nullptr; | ||||
QSystemTrayIcon *trayIcon; | QSystemTrayIcon *trayIcon = nullptr; | ||||
QMenu *trayIconMenu; | QMenu *trayIconMenu = nullptr; | ||||
Notificator *notificator; | Notificator *notificator = nullptr; | ||||
RPCConsole *rpcConsole; | RPCConsole *rpcConsole = nullptr; | ||||
HelpMessageDialog *helpMessageDialog; | HelpMessageDialog *helpMessageDialog = nullptr; | ||||
ModalOverlay *modalOverlay; | ModalOverlay *modalOverlay = nullptr; | ||||
/** Keep track of previous number of blocks, to detect progress */ | /** Keep track of previous number of blocks, to detect progress */ | ||||
int prevBlocks; | int prevBlocks = 0; | ||||
int spinnerFrame; | int spinnerFrame = 0; | ||||
const PlatformStyle *platformStyle; | const PlatformStyle *platformStyle; | ||||
const Config *config; | const Config *config; | ||||
/** Create the main UI actions. */ | /** Create the main UI actions. */ | ||||
void createActions(); | void createActions(); | ||||
/** Create the menu bar and sub-menus. */ | /** Create the menu bar and sub-menus. */ | ||||
void createMenuBar(); | void createMenuBar(); | ||||
▲ Show 20 Lines • Show All 154 Lines • Show Last 20 Lines |