2015-12-13 17:58:29 +01:00
|
|
|
// Copyright (c) 2011-2015 The Bitcoin Core developers
|
2014-12-13 05:09:33 +01:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2013-11-04 16:20:43 +01:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#ifndef BITCOIN_QT_SIGNVERIFYMESSAGEDIALOG_H
|
|
|
|
#define BITCOIN_QT_SIGNVERIFYMESSAGEDIALOG_H
|
2012-06-15 09:48:26 +02:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
2015-07-28 15:20:14 +02:00
|
|
|
class PlatformStyle;
|
2013-04-13 07:13:08 +02:00
|
|
|
class WalletModel;
|
|
|
|
|
2012-06-15 09:48:26 +02:00
|
|
|
namespace Ui {
|
|
|
|
class SignVerifyMessageDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class SignVerifyMessageDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-07-28 15:20:14 +02:00
|
|
|
explicit SignVerifyMessageDialog(const PlatformStyle *platformStyle, QWidget *parent);
|
2012-06-15 09:48:26 +02:00
|
|
|
~SignVerifyMessageDialog();
|
|
|
|
|
|
|
|
void setModel(WalletModel *model);
|
2013-01-10 14:04:32 +01:00
|
|
|
void setAddress_SM(const QString &address);
|
|
|
|
void setAddress_VM(const QString &address);
|
2012-06-15 09:48:26 +02:00
|
|
|
|
|
|
|
void showTab_SM(bool fShow);
|
|
|
|
void showTab_VM(bool fShow);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool eventFilter(QObject *object, QEvent *event);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::SignVerifyMessageDialog *ui;
|
|
|
|
WalletModel *model;
|
2015-07-28 15:20:14 +02:00
|
|
|
const PlatformStyle *platformStyle;
|
2012-06-15 09:48:26 +02:00
|
|
|
|
2015-07-14 13:59:05 +02:00
|
|
|
private Q_SLOTS:
|
2012-06-15 09:48:26 +02:00
|
|
|
/* sign message */
|
|
|
|
void on_addressBookButton_SM_clicked();
|
|
|
|
void on_pasteButton_SM_clicked();
|
|
|
|
void on_signMessageButton_SM_clicked();
|
|
|
|
void on_copySignatureButton_SM_clicked();
|
|
|
|
void on_clearButton_SM_clicked();
|
|
|
|
/* verify message */
|
|
|
|
void on_addressBookButton_VM_clicked();
|
|
|
|
void on_verifyMessageButton_VM_clicked();
|
|
|
|
void on_clearButton_VM_clicked();
|
|
|
|
};
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_QT_SIGNVERIFYMESSAGEDIALOG_H
|