Anoncoin  0.9.4
P2P Digital Currency
receiverequestdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef QRCODEDIALOG_H
7 #define QRCODEDIALOG_H
8 
9 #include "walletmodel.h"
10 
11 #include <QDialog>
12 #include <QImage>
13 #include <QLabel>
14 
15 namespace Ui {
17 }
18 class OptionsModel;
19 QT_BEGIN_NAMESPACE
20 class QMenu;
21 QT_END_NAMESPACE
22 
23 /* Label widget for QR code. This image can be dragged, dropped, copied and saved
24  * to disk.
25  */
26 class QRImageWidget : public QLabel
27 {
28  Q_OBJECT
29 
30 public:
31  explicit QRImageWidget(QWidget *parent = 0);
32  QImage exportImage();
33 
34 public slots:
35  void saveImage();
36  void copyImage();
37 
38 protected:
39  virtual void mousePressEvent(QMouseEvent *event);
40  virtual void contextMenuEvent(QContextMenuEvent *event);
41 
42 private:
43  QMenu *contextMenu;
44 };
45 
46 class ReceiveRequestDialog : public QDialog
47 {
48  Q_OBJECT
49 
50 public:
51  explicit ReceiveRequestDialog(QWidget *parent = 0);
53 
55  void setInfo(const SendCoinsRecipient &info);
56 
57 private slots:
58  void on_btnCopyURI_clicked();
60 
61  void update();
62 
63 private:
67 };
68 
69 #endif // QRCODEDIALOG_H
QRImageWidget(QWidget *parent=0)
Ui::ReceiveRequestDialog * ui
SendCoinsRecipient info
ReceiveRequestDialog(QWidget *parent=0)
void setInfo(const SendCoinsRecipient &info)
virtual void contextMenuEvent(QContextMenuEvent *event)
Interface from Qt to configuration data structure for Anoncoin client.
Definition: optionsmodel.h:27
virtual void mousePressEvent(QMouseEvent *event)
void setModel(OptionsModel *model)