Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
class QAction; | class QAction; | ||||
class QComboBox; | class QComboBox; | ||||
class QProgressBar; | class QProgressBar; | ||||
class QProgressDialog; | class QProgressDialog; | ||||
QT_END_NAMESPACE | QT_END_NAMESPACE | ||||
namespace GUIUtil { | namespace GUIUtil { | ||||
class ClickableLabel; | class ClickableLabel; | ||||
} | class ClickableProgressBar; | ||||
} // namespace GUIUtil | |||||
/** | /** | ||||
* Bitcoin GUI main class. This class represents the main window of the Bitcoin | * Bitcoin GUI main class. This class represents the main window of the Bitcoin | ||||
* UI. It communicates with both the client and wallet models to give the user | * UI. It communicates with both the client and wallet models to give the user | ||||
* an up-to-date view of the current core state. | * an up-to-date view of the current core state. | ||||
*/ | */ | ||||
class BitcoinGUI : public QMainWindow { | class BitcoinGUI : public QMainWindow { | ||||
Q_OBJECT | Q_OBJECT | ||||
Show All 40 Lines | private: | ||||
ClientModel *clientModel = nullptr; | ClientModel *clientModel = nullptr; | ||||
WalletFrame *walletFrame = nullptr; | WalletFrame *walletFrame = nullptr; | ||||
UnitDisplayStatusBarControl *unitDisplayControl = nullptr; | UnitDisplayStatusBarControl *unitDisplayControl = nullptr; | ||||
QLabel *labelWalletEncryptionIcon = nullptr; | QLabel *labelWalletEncryptionIcon = nullptr; | ||||
QLabel *labelWalletHDStatusIcon = nullptr; | QLabel *labelWalletHDStatusIcon = nullptr; | ||||
GUIUtil::ClickableLabel *labelProxyIcon = nullptr; | GUIUtil::ClickableLabel *labelProxyIcon = nullptr; | ||||
GUIUtil::ClickableLabel *connectionsControl = nullptr; | GUIUtil::ClickableLabel *connectionsControl = nullptr; | ||||
QLabel *labelBlocksIcon = nullptr; | GUIUtil::ClickableLabel *labelBlocksIcon = nullptr; | ||||
QLabel *progressBarLabel = nullptr; | QLabel *progressBarLabel = nullptr; | ||||
QProgressBar *progressBar = nullptr; | GUIUtil::ClickableProgressBar *progressBar = nullptr; | ||||
QProgressDialog *progressDialog = nullptr; | QProgressDialog *progressDialog = nullptr; | ||||
QMenuBar *appMenuBar = nullptr; | QMenuBar *appMenuBar = nullptr; | ||||
QToolBar *appToolBar = nullptr; | QToolBar *appToolBar = nullptr; | ||||
QAction *overviewAction = nullptr; | QAction *overviewAction = nullptr; | ||||
QAction *historyAction = nullptr; | QAction *historyAction = nullptr; | ||||
QAction *quitAction = nullptr; | QAction *quitAction = nullptr; | ||||
QAction *sendCoinsAction = nullptr; | QAction *sendCoinsAction = nullptr; | ||||
▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | void incomingTransaction(const QString &date, int unit, const Amount amount, | ||||
const QString &type, const QString &address, | const QString &type, const QString &address, | ||||
const QString &label, const QString &walletName); | const QString &label, const QString &walletName); | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
private: | private: | ||||
/** Set the proxy-enabled icon as shown in the UI. */ | /** Set the proxy-enabled icon as shown in the UI. */ | ||||
void updateProxyIcon(); | void updateProxyIcon(); | ||||
private Q_SLOTS: | public Q_SLOTS: | ||||
#ifdef ENABLE_WALLET | #ifdef ENABLE_WALLET | ||||
/** Switch to overview (home) page */ | /** Switch to overview (home) page */ | ||||
void gotoOverviewPage(); | void gotoOverviewPage(); | ||||
/** Switch to history (transactions) page */ | /** Switch to history (transactions) page */ | ||||
void gotoHistoryPage(); | void gotoHistoryPage(); | ||||
/** Switch to receive coins page */ | /** Switch to receive coins page */ | ||||
void gotoReceiveCoinsPage(); | void gotoReceiveCoinsPage(); | ||||
/** Switch to send coins page */ | /** Switch to send coins page */ | ||||
Show All 19 Lines | #endif // ENABLE_WALLET | ||||
void showHelpMessageClicked(); | void showHelpMessageClicked(); | ||||
#ifndef Q_OS_MAC | #ifndef Q_OS_MAC | ||||
/** Handle tray icon clicked */ | /** Handle tray icon clicked */ | ||||
void trayIconActivated(QSystemTrayIcon::ActivationReason reason); | void trayIconActivated(QSystemTrayIcon::ActivationReason reason); | ||||
#endif | #endif | ||||
/** Show window if hidden, unminimize when minimized, rise when obscured or | /** Show window if hidden, unminimize when minimized, rise when obscured or | ||||
* show if hidden and fToggleHidden is true */ | * show if hidden and fToggleHidden is true */ | ||||
void showNormalIfMinimized(bool fToggleHidden = false); | void showNormalIfMinimized() { showNormalIfMinimized(false); } | ||||
void showNormalIfMinimized(bool fToggleHidden); | |||||
/** Simply calls showNormalIfMinimized(true) for use in SLOT() macro */ | /** Simply calls showNormalIfMinimized(true) for use in SLOT() macro */ | ||||
void toggleHidden(); | void toggleHidden(); | ||||
/** called by a timer to check if fRequestShutdown has been set **/ | /** called by a timer to check if fRequestShutdown has been set **/ | ||||
void detectShutdown(); | void detectShutdown(); | ||||
/** Show progress dialog e.g. for verifychain */ | /** Show progress dialog e.g. for verifychain */ | ||||
void showProgress(const QString &title, int nProgress); | void showProgress(const QString &title, int nProgress); | ||||
Show All 39 Lines |