Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.h
Show All 30 Lines | |||||
class WalletFrame; | class WalletFrame; | ||||
class WalletModel; | class WalletModel; | ||||
class HelpMessageDialog; | class HelpMessageDialog; | ||||
class ModalOverlay; | class ModalOverlay; | ||||
class Config; | class Config; | ||||
class CWallet; | class CWallet; | ||||
namespace interface { | namespace interfaces { | ||||
class Handler; | class Handler; | ||||
class Node; | class Node; | ||||
} | } | ||||
QT_BEGIN_NAMESPACE | QT_BEGIN_NAMESPACE | ||||
class QAction; | class QAction; | ||||
class QComboBox; | class QComboBox; | ||||
class QProgressBar; | class QProgressBar; | ||||
class QProgressDialog; | class QProgressDialog; | ||||
QT_END_NAMESPACE | QT_END_NAMESPACE | ||||
/** | /** | ||||
* 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 | ||||
public: | public: | ||||
static const std::string DEFAULT_UIPLATFORM; | static const std::string DEFAULT_UIPLATFORM; | ||||
explicit BitcoinGUI(interface::Node &node, const Config *, | explicit BitcoinGUI(interfaces::Node &node, const Config *, | ||||
const PlatformStyle *platformStyle, | const PlatformStyle *platformStyle, | ||||
const NetworkStyle *networkStyle, QWidget *parent = 0); | const NetworkStyle *networkStyle, QWidget *parent = 0); | ||||
~BitcoinGUI(); | ~BitcoinGUI(); | ||||
/** | /** | ||||
* Set the client model. | * Set the client model. | ||||
* The client model represents the part of the core that communicates with | * The client model represents the part of the core that communicates with | ||||
* the P2P network, and is wallet-agnostic. | * the P2P network, and is wallet-agnostic. | ||||
Show All 15 Lines | 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: | ||||
interface::Node &m_node; | interfaces::Node &m_node; | ||||
std::unique_ptr<interface::Handler> m_handler_message_box; | std::unique_ptr<interfaces::Handler> m_handler_message_box; | ||||
std::unique_ptr<interface::Handler> m_handler_question; | std::unique_ptr<interfaces::Handler> m_handler_question; | ||||
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; | ||||
QLabel *connectionsControl = nullptr; | QLabel *connectionsControl = nullptr; | ||||
QLabel *labelBlocksIcon = nullptr; | QLabel *labelBlocksIcon = nullptr; | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |