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 *labelEncryptionIcon;
61 QLabel *labelConnectionsIcon;
62 QLabel *labelBlocksIcon;
63 QLabel *progressBarLabel;
64 QProgressBar *progressBar;
66 QAction *overviewAction;
67 QAction *historyAction;
69 QAction *sendCoinsAction;
70 QAction *addressBookAction;
72 QAction *receiveCoinsAction;
73 QAction *optionsAction;
74 QAction *openBitcoinAction;
75 QAction *exportAction;
77 QSystemTrayIcon *trayIcon;
78 TransactionView *transactionView;
80 QMovie *syncIconMovie;
83 QWidget *createTabs();
84 void createTrayIcon();
87 void setNumConnections(int count);
88 void setNumBlocks(int count);
89 void setEncryptionStatus(int status);
91 void error(const QString &title, const QString &message);
92 /* It is currently not possible to pass a return value to another thread through
93 BlockingQueuedConnection, so use an indirected pointer.
94 http://bugreports.qt.nokia.com/browse/QTBUG-10440
96 void askFee(qint64 nFeeRequired, bool *payFee);
100 void gotoOverviewPage();
101 void gotoHistoryPage();
102 void gotoAddressBookPage();
103 void gotoReceiveCoinsPage();
104 void gotoSendCoinsPage();
107 void optionsClicked();
109 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
110 void incomingTransaction(const QModelIndex & parent, int start, int end);