dogecoin/bitcoingui.h

67 lines
1.4 KiB
C
Raw Normal View History

2011-05-08 22:23:31 +02:00
#ifndef BITCOINGUI_H
#define BITCOINGUI_H
2011-05-07 22:13:39 +02:00
#include <QMainWindow>
2011-05-12 20:16:42 +02:00
#include <QSystemTrayIcon>
/* Forward declarations */
class TransactionTableModel;
class QLabel;
class QLineEdit;
2011-05-07 22:13:39 +02:00
class BitcoinGUI : public QMainWindow
{
Q_OBJECT
public:
2011-05-08 22:23:31 +02:00
explicit BitcoinGUI(QWidget *parent = 0);
2011-05-07 22:13:39 +02:00
/* Transaction table tab indices */
enum {
2011-05-08 22:23:31 +02:00
AllTransactions = 0,
SentReceived = 1,
Sent = 2,
Received = 3
2011-05-07 22:13:39 +02:00
} TabIndex;
2011-05-12 20:16:42 +02:00
private:
TransactionTableModel *transaction_model;
QLineEdit *address;
QLabel *labelBalance;
QLabel *labelConnections;
QLabel *labelBlocks;
QLabel *labelTransactions;
2011-05-12 20:16:42 +02:00
QAction *quit;
QAction *sendcoins;
QAction *addressbook;
QAction *about;
QAction *receiving_addresses;
QAction *options;
QAction *openBitCoin;
QSystemTrayIcon *trayIcon;
void createActions();
QWidget *createTabs();
void createTrayIcon();
public slots:
void setBalance(double balance);
2011-05-13 08:30:20 +02:00
void setAddress(const QString &address);
void setNumConnections(int count);
void setNumBlocks(int count);
void setNumTransactions(int count);
2011-05-07 22:13:39 +02:00
private slots:
2011-05-10 19:03:10 +02:00
void sendcoinsClicked();
void addressbookClicked();
void optionsClicked();
void receivingAddressesClicked();
void aboutClicked();
2011-05-10 19:03:10 +02:00
void newAddressClicked();
void copyClipboardClicked();
2011-05-07 22:13:39 +02:00
};
#endif