0f90be8165fbc615230e164a85a00762267e5b3b
[novacoin.git] / src / qt / sendcoinsdialog.h
1 #ifndef SENDCOINSDIALOG_H
2 #define SENDCOINSDIALOG_H
3
4 #include <QDialog>
5
6 namespace Ui {
7     class SendCoinsDialog;
8 }
9 class WalletModel;
10 class SendCoinsEntry;
11
12 class SendCoinsDialog : public QDialog
13 {
14     Q_OBJECT
15
16 public:
17     explicit SendCoinsDialog(QWidget *parent = 0);
18     ~SendCoinsDialog();
19
20     void setModel(WalletModel *model);
21
22     // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
23     // Hence we have to set it up manually
24     QWidget *setupTabChain(QWidget *prev);
25
26 public slots:
27     void clear();
28     void reject();
29     void accept();
30     void addEntry();
31     void updateRemoveEnabled();
32
33 private:
34     Ui::SendCoinsDialog *ui;
35     WalletModel *model;
36
37 private slots:
38     void on_sendButton_clicked();
39
40     void removeEntry(SendCoinsEntry* entry);
41 };
42
43 #endif // SENDCOINSDIALOG_H