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