5 #include <QSystemTrayIcon>
7 class TransactionTableModel;
10 class TransactionView;
16 class QAbstractItemModel;
21 class BitcoinGUI : public QMainWindow
25 explicit BitcoinGUI(QWidget *parent = 0);
26 void setClientModel(ClientModel *clientModel);
27 void setWalletModel(WalletModel *walletModel);
29 /* Transaction table tab indices */
38 void changeEvent(QEvent *e);
39 void closeEvent(QCloseEvent *event);
42 ClientModel *clientModel;
43 WalletModel *walletModel;
46 QLabel *labelConnections;
47 QLabel *labelConnectionsIcon;
49 QLabel *labelTransactions;
50 QLabel *progressBarLabel;
51 QProgressBar *progressBar;
57 QAction *receiveCoins;
61 QSystemTrayIcon *trayIcon;
62 TransactionView *transactionView;
65 QWidget *createTabs();
66 void createTrayIcon();
69 void setBalance(qint64 balance);
70 void setNumConnections(int count);
71 void setNumBlocks(int count);
72 void setNumTransactions(int count);
73 void error(const QString &title, const QString &message);
74 /* It is currently not possible to pass a return value to another thread through
75 BlockingQueuedConnection, so use an indirected pointer.
76 http://bugreports.qt.nokia.com/browse/QTBUG-10440
78 void askFee(qint64 nFeeRequired, bool *payFee);
81 void sendCoinsClicked();
82 void addressbookClicked();
83 void optionsClicked();
84 void receiveCoinsClicked();
86 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
87 void transactionDetails(const QModelIndex& idx);
88 void incomingTransaction(const QModelIndex & parent, int start, int end);