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 *labelConnections;
58 QLabel *labelConnectionsIcon;
60 QLabel *labelBlocksIcon;
61 QLabel *progressBarLabel;
62 QProgressBar *progressBar;
64 QAction *overviewAction;
65 QAction *historyAction;
67 QAction *sendCoinsAction;
68 QAction *addressBookAction;
70 QAction *receiveCoinsAction;
71 QAction *optionsAction;
72 QAction *openBitcoinAction;
73 QAction *exportAction;
75 QSystemTrayIcon *trayIcon;
76 TransactionView *transactionView;
78 QMovie *syncIconMovie;
81 QWidget *createTabs();
82 void createTrayIcon();
85 void setNumConnections(int count);
86 void setNumBlocks(int count);
87 void error(const QString &title, const QString &message);
88 /* It is currently not possible to pass a return value to another thread through
89 BlockingQueuedConnection, so use an indirected pointer.
90 http://bugreports.qt.nokia.com/browse/QTBUG-10440
92 void askFee(qint64 nFeeRequired, bool *payFee);
96 void gotoOverviewPage();
97 void gotoHistoryPage();
98 void gotoAddressBookPage();
99 void gotoReceiveCoinsPage();
100 void gotoSendCoinsPage();
103 void optionsClicked();
105 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
106 void incomingTransaction(const QModelIndex & parent, int start, int end);