aboutsummaryrefslogtreecommitdiff
path: root/src/qt/sendcoinsdialog.h
blob: 0f90be8165fbc615230e164a85a00762267e5b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef SENDCOINSDIALOG_H
#define SENDCOINSDIALOG_H

#include <QDialog>

namespace Ui {
    class SendCoinsDialog;
}
class WalletModel;
class SendCoinsEntry;

class SendCoinsDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SendCoinsDialog(QWidget *parent = 0);
    ~SendCoinsDialog();

    void setModel(WalletModel *model);

    // Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907)
    // Hence we have to set it up manually
    QWidget *setupTabChain(QWidget *prev);

public slots:
    void clear();
    void reject();
    void accept();
    void addEntry();
    void updateRemoveEnabled();

private:
    Ui::SendCoinsDialog *ui;
    WalletModel *model;

private slots:
    void on_sendButton_clicked();

    void removeEntry(SendCoinsEntry* entry);
};

#endif // SENDCOINSDIALOG_H