Merge branch '0.6.0.x' into 0.6.x
[novacoin.git] / src / qt / qrcodedialog.h
1 #ifndef QRCODEDIALOG_H
2 #define QRCODEDIALOG_H
3
4 #include <QDialog>
5 #include <QImage>
6
7 namespace Ui {
8     class QRCodeDialog;
9 }
10
11 class QRCodeDialog : public QDialog
12 {
13     Q_OBJECT
14
15 public:
16     explicit QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent = 0);
17     ~QRCodeDialog();
18
19 private slots:
20     void on_lnReqAmount_textChanged(const QString &arg1);
21     void on_lnLabel_textChanged(const QString &arg1);
22     void on_lnMessage_textChanged(const QString &arg1);
23     void on_btnSaveAs_clicked();
24
25     void on_chkReqPayment_toggled(bool checked);
26
27 private:
28     Ui::QRCodeDialog *ui;
29     QImage myImage;
30
31     QString getURI();
32     QString address;
33
34     void genCode();
35 };
36
37 #endif // QRCODEDIALOG_H