5 #include <QSystemTrayIcon>
7 class TransactionTableModel;
10 class TransactionView;
12 class AddressBookPage;
13 class SendCoinsDialog;
20 class QAbstractItemModel;
27 class BitcoinGUI : public QMainWindow
31 explicit BitcoinGUI(QWidget *parent = 0);
34 void setClientModel(ClientModel *clientModel);
35 void setWalletModel(WalletModel *walletModel);
37 /* Transaction table tab indices */
46 void changeEvent(QEvent *e);
47 void closeEvent(QCloseEvent *event);
48 void dragEnterEvent(QDragEnterEvent *event);
49 void dropEvent(QDropEvent *event);
52 ClientModel *clientModel;
53 WalletModel *walletModel;
55 QStackedWidget *centralWidget;
57 OverviewPage *overviewPage;
58 QWidget *transactionsPage;
59 AddressBookPage *addressBookPage;
60 AddressBookPage *receiveCoinsPage;
61 SendCoinsDialog *sendCoinsPage;
63 QLabel *labelEncryptionIcon;
64 QLabel *labelConnectionsIcon;
65 QLabel *labelBlocksIcon;
66 QLabel *progressBarLabel;
67 QProgressBar *progressBar;
70 QAction *overviewAction;
71 QAction *historyAction;
73 QAction *sendCoinsAction;
74 QAction *addressBookAction;
76 QAction *receiveCoinsAction;
77 QAction *optionsAction;
78 QAction *openBitcoinAction;
79 QAction *exportAction;
80 QAction *encryptWalletAction;
81 QAction *changePassphraseAction;
83 QSystemTrayIcon *trayIcon;
84 Notificator *notificator;
85 TransactionView *transactionView;
87 QMovie *syncIconMovie;
91 void createToolBars();
92 QWidget *createTabs();
93 void createTrayIcon();
96 void setNumConnections(int count);
97 void setNumBlocks(int count);
98 void setEncryptionStatus(int status);
100 void error(const QString &title, const QString &message);
101 /* It is currently not possible to pass a return value to another thread through
102 BlockingQueuedConnection, so use an indirected pointer.
103 http://bugreports.qt.nokia.com/browse/QTBUG-10440
105 void askFee(qint64 nFeeRequired, bool *payFee);
109 void gotoOverviewPage();
110 void gotoHistoryPage();
111 void gotoAddressBookPage();
112 void gotoReceiveCoinsPage();
113 void gotoSendCoinsPage();
116 void optionsClicked();
119 void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
121 void incomingTransaction(const QModelIndex & parent, int start, int end);
122 void encryptWallet(bool status);
123 void changePassphrase();