55fd12a14b3857617b8f73db7c4bc62adfdae9ca
[novacoin.git] / src / qt / sendcoinsentry.h
1 #ifndef SENDCOINSENTRY_H
2 #define SENDCOINSENTRY_H
3
4 #include <QFrame>
5
6 namespace Ui {
7     class SendCoinsEntry;
8 }
9 class WalletModel;
10 class SendCoinsRecipient;
11
12 class SendCoinsEntry : public QFrame
13 {
14     Q_OBJECT
15
16 public:
17     explicit SendCoinsEntry(QWidget *parent = 0);
18     ~SendCoinsEntry();
19
20     void setModel(WalletModel *model);
21     bool validate();
22     SendCoinsRecipient getValue();
23     // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
24     // Hence we have to set it up manually
25     QWidget *setupTabChain(QWidget *prev);
26
27 public slots:
28     void setRemoveEnabled(bool enabled);
29     void clear();
30
31 signals:
32     void removeEntry(SendCoinsEntry *entry);
33
34 private slots:
35     void on_deleteButton_clicked();
36     void on_payTo_textChanged(const QString &address);
37     void on_addressBookButton_clicked();
38     void on_pasteButton_clicked();
39
40 private:
41     Ui::SendCoinsEntry *ui;
42     WalletModel *model;
43 };
44
45 #endif // SENDCOINSENTRY_H