5 #include <QSystemTrayIcon>
7 class TransactionTableModel;
10 class TransactionView;
12 class AddressBookPage;
13 class SendCoinsDialog;
19 class QAbstractItemModel;
25 class BitcoinGUI : public QMainWindow
29 explicit BitcoinGUI(QWidget *parent = 0);
30 void setClientModel(ClientModel *clientModel);
31 void setWalletModel(WalletModel *walletModel);
33 /* Transaction table tab indices */
42 void changeEvent(QEvent *e);
43 void closeEvent(QCloseEvent *event);
46 ClientModel *clientModel;
47 WalletModel *walletModel;
49 QStackedWidget *centralWidget;
51 OverviewPage *overviewPage;
52 QWidget *transactionsPage;
53 AddressBookPage *addressBookPage;
54 AddressBookPage *receiveCoinsPage;
55 SendCoinsDialog *sendCoinsPage;
57 QLabel *labelConnectionsIcon;
58 QLabel *labelBlocksIcon;
59 QLabel *progressBarLabel;
60 QProgressBar *progressBar;
62 QAction *overviewAction;
63 QAction *historyAction;
65 QAction *sendCoinsAction;
66 QAction *addressBookAction;
68 QAction *receiveCoinsAction;
69 QAction *optionsAction;
70 QAction *openBitcoinAction;
71 QAction *exportAction;
73 QSystemTrayIcon *trayIcon;
74 TransactionView *transactionView;
76 QMovie *syncIconMovie;
79 QWidget *createTabs();
80 void createTrayIcon();
83 void setNumConnections(int count);
84 void setNumBlocks(int count);
85 void error(const QString &title, const QString &message);
86 /* It is currently not possible to pass a return value to another thread through
87 BlockingQueuedConnection, so use an indirected pointer.
88 http://bugreports.qt.nokia.com/browse/QTBUG-10440
90 void askFee(qint64 nFeeRequired, bool *payFee);
94 void gotoOverviewPage();
95 void gotoHistoryPage();
96 void gotoAddressBookPage();
97 void gotoReceiveCoinsPage();
98 void gotoSendCoinsPage();
101 void optionsClicked();
103 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
104 void incomingTransaction(const QModelIndex & parent, int start, int end);