5 #include <QSystemTrayIcon>
7 class TransactionTableModel;
10 class TransactionView;
12 class AddressBookPage;
13 class SendCoinsDialog;
20 class QAbstractItemModel;
27 class BitcoinGUI : public QMainWindow
31 explicit BitcoinGUI(QWidget *parent = 0);
34 void setClientModel(ClientModel *clientModel);
35 void setWalletModel(WalletModel *walletModel);
37 /* Transaction table tab indices */
46 void changeEvent(QEvent *e);
47 void closeEvent(QCloseEvent *event);
48 void dragEnterEvent(QDragEnterEvent *event);
49 void dropEvent(QDropEvent *event);
52 ClientModel *clientModel;
53 WalletModel *walletModel;
55 QStackedWidget *centralWidget;
59 OverviewPage *overviewPage;
60 QWidget *transactionsPage;
61 AddressBookPage *addressBookPage;
62 AddressBookPage *receiveCoinsPage;
63 SendCoinsDialog *sendCoinsPage;
65 QLabel *labelEncryptionIcon;
66 QLabel *labelConnectionsIcon;
67 QLabel *labelBlocksIcon;
68 QLabel *progressBarLabel;
69 QProgressBar *progressBar;
72 QAction *overviewAction;
73 QAction *historyAction;
75 QAction *sendCoinsAction;
76 QAction *addressBookAction;
78 QAction *receiveCoinsAction;
79 QAction *optionsAction;
80 QAction *openBitcoinAction;
81 QAction *exportAction;
82 QAction *encryptWalletAction;
83 QAction *changePassphraseAction;
84 QAction *aboutQtAction;
86 QSystemTrayIcon *trayIcon;
87 Notificator *notificator;
88 TransactionView *transactionView;
90 QMovie *syncIconMovie;
94 void createToolBars();
95 QWidget *createTabs();
96 void createTrayIcon();
99 void setNumConnections(int count);
100 void setNumBlocks(int count);
101 void setEncryptionStatus(int status);
102 /** Set the status bar text if there are any warnings (removes sync progress bar if applicable) */
103 void refreshStatusBar();
105 void error(const QString &title, const QString &message);
106 /* It is currently not possible to pass a return value to another thread through
107 BlockingQueuedConnection, so use an indirected pointer.
108 http://bugreports.qt.nokia.com/browse/QTBUG-10440
110 void askFee(qint64 nFeeRequired, bool *payFee);
116 void gotoOverviewPage();
117 void gotoHistoryPage();
118 void gotoAddressBookPage();
119 void gotoReceiveCoinsPage();
120 void gotoSendCoinsPage();
123 void optionsClicked();
126 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
128 void incomingTransaction(const QModelIndex & parent, int start, int end);
129 void encryptWallet(bool status);
130 void changePassphrase();