You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.4 KiB
70 lines
1.4 KiB
14 years ago
|
#ifndef BITCOINGUI_H
|
||
|
#define BITCOINGUI_H
|
||
14 years ago
|
|
||
|
#include <QMainWindow>
|
||
14 years ago
|
#include <QSystemTrayIcon>
|
||
|
|
||
|
/* Forward declarations */
|
||
|
class TransactionTableModel;
|
||
14 years ago
|
|
||
|
QT_BEGIN_NAMESPACE
|
||
14 years ago
|
class QLabel;
|
||
|
class QLineEdit;
|
||
14 years ago
|
QT_END_NAMESPACE
|
||
14 years ago
|
|
||
|
class BitcoinGUI : public QMainWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
14 years ago
|
explicit BitcoinGUI(QWidget *parent = 0);
|
||
14 years ago
|
|
||
|
/* Transaction table tab indices */
|
||
|
enum {
|
||
14 years ago
|
AllTransactions = 0,
|
||
|
SentReceived = 1,
|
||
|
Sent = 2,
|
||
|
Received = 3
|
||
14 years ago
|
} TabIndex;
|
||
14 years ago
|
private:
|
||
|
TransactionTableModel *transaction_model;
|
||
|
|
||
|
QLineEdit *address;
|
||
|
QLabel *labelBalance;
|
||
14 years ago
|
QLabel *labelConnections;
|
||
|
QLabel *labelBlocks;
|
||
|
QLabel *labelTransactions;
|
||
14 years ago
|
|
||
|
QAction *quit;
|
||
|
QAction *sendcoins;
|
||
|
QAction *addressbook;
|
||
|
QAction *about;
|
||
|
QAction *receiving_addresses;
|
||
|
QAction *options;
|
||
|
QAction *openBitCoin;
|
||
|
|
||
|
QSystemTrayIcon *trayIcon;
|
||
|
|
||
|
void createActions();
|
||
|
QWidget *createTabs();
|
||
|
void createTrayIcon();
|
||
|
|
||
14 years ago
|
public slots:
|
||
|
void setBalance(double balance);
|
||
14 years ago
|
void setAddress(const QString &address);
|
||
14 years ago
|
void setNumConnections(int count);
|
||
|
void setNumBlocks(int count);
|
||
|
void setNumTransactions(int count);
|
||
|
|
||
14 years ago
|
private slots:
|
||
14 years ago
|
void sendcoinsClicked();
|
||
|
void addressbookClicked();
|
||
|
void optionsClicked();
|
||
|
void receivingAddressesClicked();
|
||
14 years ago
|
void aboutClicked();
|
||
|
|
||
14 years ago
|
void newAddressClicked();
|
||
|
void copyClipboardClicked();
|
||
14 years ago
|
};
|
||
|
|
||
|
#endif
|