aboutsummaryrefslogtreecommitdiff
path: root/src/qt/qrcodedialog.h
diff options
context:
space:
mode:
authorsje397 <sje397@gmail.com>2011-11-11 01:20:17 +1100
committersje397 <sje397@gmail.com>2011-12-20 22:11:24 +1100
commit22123c85f3722abad896aebb564a89d88da92e81 (patch)
tree212d80a39a64c31bc7746127306cdb4eb9ce1614 /src/qt/qrcodedialog.h
parent3528650560a2c417da2303869c743da019defc6d (diff)
downloadbitcoin-22123c85f3722abad896aebb564a89d88da92e81.tar.xz
Added QRCode generation functions via libqrencode. Switch on with USE_QRENCODE=1.
Amended build docs for Linux and OSX, and OSX makefile. Added package 'qrencode' to gitian.yml
Diffstat (limited to 'src/qt/qrcodedialog.h')
-rw-r--r--src/qt/qrcodedialog.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/qt/qrcodedialog.h b/src/qt/qrcodedialog.h
new file mode 100644
index 0000000000..7463a8810e
--- /dev/null
+++ b/src/qt/qrcodedialog.h
@@ -0,0 +1,37 @@
+#ifndef QRCODEDIALOG_H
+#define QRCODEDIALOG_H
+
+#include <QDialog>
+#include <QImage>
+
+namespace Ui {
+ class QRCodeDialog;
+}
+
+class QRCodeDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit QRCodeDialog(const QString &title, const QString &address, const QString &label, bool allowReq, QWidget *parent = 0);
+ ~QRCodeDialog();
+
+private slots:
+ void on_lnReqAmount_textChanged(const QString &arg1);
+ void on_lnLabel_textChanged(const QString &arg1);
+ void on_lnMessage_textChanged(const QString &arg1);
+ void on_btnSaveAs_clicked();
+
+ void on_chkReq_toggled(bool checked);
+
+private:
+ Ui::QRCodeDialog *ui;
+ QImage myImage;
+
+ QString getURI();
+ QString address;
+
+ void genCode();
+};
+
+#endif // QRCODEDIALOG_H