Use standard C99 (and Qt) types for 64-bit integers
[novacoin.git] / src / qt / sendcoinsdialog.h
1 #ifndef SENDCOINSDIALOG_H
2 #define SENDCOINSDIALOG_H
3
4 #include <QtGlobal>
5 #include <QDialog>
6
7 namespace Ui {
8     class SendCoinsDialog;
9 }
10 class WalletModel;
11 class SendCoinsEntry;
12 class SendCoinsRecipient;
13
14 QT_BEGIN_NAMESPACE
15 class QUrl;
16 QT_END_NAMESPACE
17
18 /** Dialog for sending bitcoins */
19 class SendCoinsDialog : public QDialog
20 {
21     Q_OBJECT
22
23 public:
24     explicit SendCoinsDialog(QWidget *parent = 0);
25     ~SendCoinsDialog();
26
27     void setModel(WalletModel *model);
28
29     /** 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).
30      */
31     QWidget *setupTabChain(QWidget *prev);
32
33     void pasteEntry(const SendCoinsRecipient &rv);
34     void handleURL(const QUrl *url);
35
36 public slots:
37     void clear();
38     void reject();
39     void accept();
40     SendCoinsEntry *addEntry();
41     void updateRemoveEnabled();
42     void setBalance(qint64 balance, qint64 unconfirmedBalance);
43
44 private:
45     Ui::SendCoinsDialog *ui;
46     WalletModel *model;
47
48 private slots:
49     void on_sendButton_clicked();
50
51     void removeEntry(SendCoinsEntry* entry);
52 };
53
54 #endif // SENDCOINSDIALOG_H