5 #include <QSystemTrayIcon>
7 class TransactionTableModel;
15 class QAbstractItemModel;
20 class BitcoinGUI : public QMainWindow
24 explicit BitcoinGUI(QWidget *parent = 0);
25 void setModel(ClientModel *model);
27 /* Transaction table tab indices */
36 void changeEvent(QEvent *e);
37 void closeEvent(QCloseEvent *event);
44 QLabel *labelConnections;
45 QLabel *labelConnectionsIcon;
47 QLabel *labelTransactions;
48 QLabel *progressBarLabel;
49 QProgressBar *progressBar;
55 QAction *receivingAddresses;
59 QSystemTrayIcon *trayIcon;
60 TransactionView *transactionView;
63 QWidget *createTabs();
64 void createTrayIcon();
67 void setBalance(qint64 balance);
68 void setAddress(const QString &address);
69 void setNumConnections(int count);
70 void setNumBlocks(int count);
71 void setNumTransactions(int count);
72 void error(const QString &title, const QString &message);
73 /* It is currently not possible to pass a return value to another thread through
74 BlockingQueuedConnection, so use an indirected pointer.
75 http://bugreports.qt.nokia.com/browse/QTBUG-10440
77 void askFee(qint64 nFeeRequired, bool *payFee);
80 void sendcoinsClicked();
81 void addressbookClicked();
82 void optionsClicked();
83 void receivingAddressesClicked();
85 void newAddressClicked();
86 void copyClipboardClicked();
87 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
88 void transactionDetails(const QModelIndex& idx);
89 void incomingTransaction(const QModelIndex & parent, int start, int end);