2015-12-13 14:51:43 +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>
|
|
|
|
|
2013-04-13 07:13:08 +02:00
|
|
|
class WalletModel;
|
|
|
|
|
2020-11-17 20:45:22 +01:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QButtonGroup;
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
2012-06-15 09:48:26 +02:00
|
|
|
namespace Ui {
|
|
|
|
class SignVerifyMessageDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class SignVerifyMessageDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-07-26 13:20:19 +02:00
|
|
|
explicit SignVerifyMessageDialog(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:
|
2021-06-15 14:24:53 +02:00
|
|
|
bool eventFilter(QObject *object, QEvent *event) override;
|
2012-06-15 09:48:26 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::SignVerifyMessageDialog *ui;
|
|
|
|
WalletModel *model;
|
2020-11-17 20:45:22 +01:00
|
|
|
QButtonGroup* pageButtons;
|
|
|
|
|
|
|
|
void showEvent(QShowEvent* event) override;
|
2012-06-15 09:48:26 +02:00
|
|
|
|
2015-07-14 13:59:05 +02:00
|
|
|
private Q_SLOTS:
|
2020-07-14 15:10:51 +02:00
|
|
|
/** custom tab buttons clicked */
|
|
|
|
void showPage(int index);
|
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
|