Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.h
Show All 12 Lines | |||||
#include <QLabel> | #include <QLabel> | ||||
#include <QMainWindow> | #include <QMainWindow> | ||||
#include <QMap> | #include <QMap> | ||||
#include <QMenu> | #include <QMenu> | ||||
#include <QPoint> | #include <QPoint> | ||||
#include <QSystemTrayIcon> | #include <QSystemTrayIcon> | ||||
#include <memory> | |||||
class ClientModel; | class ClientModel; | ||||
class NetworkStyle; | class NetworkStyle; | ||||
class Notificator; | class Notificator; | ||||
class OptionsModel; | class OptionsModel; | ||||
class PlatformStyle; | class PlatformStyle; | ||||
class RPCConsole; | class RPCConsole; | ||||
class SendCoinsRecipient; | class SendCoinsRecipient; | ||||
class UnitDisplayStatusBarControl; | class UnitDisplayStatusBarControl; | ||||
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 { | |||||
class Handler; | |||||
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(const Config *, const PlatformStyle *platformStyle, | explicit BitcoinGUI(interface::Node &node, const Config *, | ||||
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 14 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; | |||||
std::unique_ptr<interface::Handler> m_handler_message_box; | |||||
std::unique_ptr<interface::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 |