Bugfix: Replace "URL" with "URI" where we aren't actually working with URLs
[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 class SendCoinsRecipient;
12
13 QT_BEGIN_NAMESPACE
14 class QUrl;
15 QT_END_NAMESPACE
16
17 /** Dialog for sending bitcoins */
18 class SendCoinsDialog : public QDialog
19 {
20     Q_OBJECT
21
22 public:
23     explicit SendCoinsDialog(QWidget *parent = 0);
24     ~SendCoinsDialog();
25
26     void setModel(WalletModel *model);
27
28     /** Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue http://bugreports.qt.nokia.com/browse/QTBUG-10907).
29      */
30     QWidget *setupTabChain(QWidget *prev);
31
32     void pasteEntry(const SendCoinsRecipient &rv);
33     void handleURI(const QString &uri);
34
35 public slots:
36     void clear();
37     void reject();
38     void accept();
39     SendCoinsEntry *addEntry();
40     void updateRemoveEnabled();
41     void setBalance(qint64 balance, qint64 unconfirmedBalance);
42
43 private:
44     Ui::SendCoinsDialog *ui;
45     WalletModel *model;
46     bool fNewRecipientAllowed;
47
48 private slots:
49     void on_sendButton_clicked();
50
51     void removeEntry(SendCoinsEntry* entry);
52 };
53
54 #endif // SENDCOINSDIALOG_H