Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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