You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

signverifymessagedialog.h 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Copyright (c) 2011-2015 The Starwels developers
  2. // Distributed under the MIT software license, see the accompanying
  3. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  4. #ifndef STARWELS_QT_SIGNVERIFYMESSAGEDIALOG_H
  5. #define STARWELS_QT_SIGNVERIFYMESSAGEDIALOG_H
  6. #include <QDialog>
  7. class PlatformStyle;
  8. class WalletModel;
  9. namespace Ui {
  10. class SignVerifyMessageDialog;
  11. }
  12. class SignVerifyMessageDialog : public QDialog
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit SignVerifyMessageDialog(const PlatformStyle *platformStyle, QWidget *parent);
  17. ~SignVerifyMessageDialog();
  18. void setModel(WalletModel *model);
  19. void setAddress_SM(const QString &address);
  20. void setAddress_VM(const QString &address);
  21. void showTab_SM(bool fShow);
  22. void showTab_VM(bool fShow);
  23. protected:
  24. bool eventFilter(QObject *object, QEvent *event);
  25. private:
  26. Ui::SignVerifyMessageDialog *ui;
  27. WalletModel *model;
  28. const PlatformStyle *platformStyle;
  29. private Q_SLOTS:
  30. /* sign message */
  31. void on_addressBookButton_SM_clicked();
  32. void on_pasteButton_SM_clicked();
  33. void on_signMessageButton_SM_clicked();
  34. void on_copySignatureButton_SM_clicked();
  35. void on_clearButton_SM_clicked();
  36. /* verify message */
  37. void on_addressBookButton_VM_clicked();
  38. void on_verifyMessageButton_VM_clicked();
  39. void on_clearButton_VM_clicked();
  40. };
  41. #endif // STARWELS_QT_SIGNVERIFYMESSAGEDIALOG_H