Changeset View
Changeset View
Standalone View
Standalone View
src/qt/receiverequestdialog.h
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_RECEIVEREQUESTDIALOG_H | #ifndef BITCOIN_QT_RECEIVEREQUESTDIALOG_H | ||||
#define BITCOIN_QT_RECEIVEREQUESTDIALOG_H | #define BITCOIN_QT_RECEIVEREQUESTDIALOG_H | ||||
#include "walletmodel.h" | #include "walletmodel.h" | ||||
#include <QDialog> | #include <QDialog> | ||||
#include <QImage> | #include <QImage> | ||||
#include <QLabel> | #include <QLabel> | ||||
#include <QPainter> | #include <QPainter> | ||||
class OptionsModel; | class OptionsModel; | ||||
class Config; | |||||
namespace Ui { | namespace Ui { | ||||
class ReceiveRequestDialog; | class ReceiveRequestDialog; | ||||
} | } | ||||
QT_BEGIN_NAMESPACE | QT_BEGIN_NAMESPACE | ||||
class QMenu; | class QMenu; | ||||
QT_END_NAMESPACE | QT_END_NAMESPACE | ||||
Show All 20 Lines | |||||
private: | private: | ||||
QMenu *contextMenu; | QMenu *contextMenu; | ||||
}; | }; | ||||
class ReceiveRequestDialog : public QDialog { | class ReceiveRequestDialog : public QDialog { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
explicit ReceiveRequestDialog(QWidget *parent = 0); | explicit ReceiveRequestDialog(const Config *cfg, QWidget *parent = 0); | ||||
~ReceiveRequestDialog(); | ~ReceiveRequestDialog(); | ||||
void setModel(OptionsModel *model); | void setModel(OptionsModel *model); | ||||
void setInfo(const SendCoinsRecipient &info); | void setInfo(const SendCoinsRecipient &info); | ||||
private Q_SLOTS: | private Q_SLOTS: | ||||
void on_btnCopyURI_clicked(); | void on_btnCopyURI_clicked(); | ||||
void on_btnCopyAddress_clicked(); | void on_btnCopyAddress_clicked(); | ||||
void update(); | void update(); | ||||
private: | private: | ||||
Ui::ReceiveRequestDialog *ui; | Ui::ReceiveRequestDialog *ui; | ||||
OptionsModel *model; | OptionsModel *model; | ||||
SendCoinsRecipient info; | SendCoinsRecipient info; | ||||
const Config *cfg; | |||||
}; | }; | ||||
#endif // BITCOIN_QT_RECEIVEREQUESTDIALOG_H | #endif // BITCOIN_QT_RECEIVEREQUESTDIALOG_H |