5 #include <QSystemTrayIcon>
7 class TransactionTableModel;
14 class QAbstractItemModel;
18 class BitcoinGUI : public QMainWindow
22 explicit BitcoinGUI(QWidget *parent = 0);
23 void setModel(ClientModel *model);
25 /* Transaction table tab indices */
34 void changeEvent(QEvent *e);
35 void closeEvent(QCloseEvent *event);
42 QLabel *labelConnections;
44 QLabel *labelTransactions;
50 QAction *receivingAddresses;
54 QSystemTrayIcon *trayIcon;
55 QList<QTableView *> transactionViews;
58 QWidget *createTabs();
59 void createTrayIcon();
60 void setTabsModel(QAbstractItemModel *transaction_model);
63 void setBalance(qint64 balance);
64 void setAddress(const QString &address);
65 void setNumConnections(int count);
66 void setNumBlocks(int count);
67 void setNumTransactions(int count);
68 void error(const QString &title, const QString &message);
69 /* It is currently not possible to pass a return value to another thread through
70 BlockingQueuedConnection, so use an indirected pointer.
71 http://bugreports.qt.nokia.com/browse/QTBUG-10440
73 void askFee(qint64 nFeeRequired, bool *payFee);
76 void sendcoinsClicked();
77 void addressbookClicked();
78 void optionsClicked();
79 void receivingAddressesClicked();
81 void newAddressClicked();
82 void copyClipboardClicked();
83 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
84 void transactionDetails(const QModelIndex& idx);
85 void incomingTransaction(const QModelIndex & parent, int start, int end);