2017-11-09 19:34:51 +01:00
|
|
|
/*
|
|
|
|
|
* This file is part of the Flowee project
|
|
|
|
|
* Copyright (C) 2011-2015 The Bitcoin Core developers
|
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2013-11-04 16:20:43 +01:00
|
|
|
|
2018-01-16 10:47:52 +00:00
|
|
|
#ifndef FLOWEE_QT_SIGNVERIFYMESSAGEDIALOG_H
|
|
|
|
|
#define FLOWEE_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 00:13:08 -05: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();
|
|
|
|
|
};
|
|
|
|
|
|
2018-01-16 10:47:52 +00:00
|
|
|
#endif
|