PIVX Core  5.6.99
P2P Digital Currency
signmessagewidgets.h
Go to the documentation of this file.
1 // Copyright (c) 2019 The PIVX Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_SETTINGS_SIGNMESSAGEWIDGETS_H
6 #define PIVX_QT_SETTINGS_SIGNMESSAGEWIDGETS_H
7 
8 #include "contactsdropdown.h"
9 #include "pwidget.h"
10 #include <QWidget>
11 
12 namespace Ui {
14 }
15 
17 {
18  Q_OBJECT
19 
20 public:
21  explicit SettingsSignMessageWidgets(PIVXGUI* _window, QWidget *parent = nullptr);
23 
24  void setAddress_SM(const QString& address);
25  void showEvent(QShowEvent *event) override;
26 protected:
27  void resizeEvent(QResizeEvent *event) override;
28 public Q_SLOTS:
30  void onVerifyMessage();
31  void onGoClicked();
32  void onClearAll();
33  void onAddressesClicked();
34  void onModeSelected(bool isSign);
35  void updateMode();
36 private:
37  Ui::SettingsSignMessageWidgets *ui;
38  QAction *btnContact;
40  bool isSign = true;
41  void resizeMenu();
42 };
43 
44 #endif // PIVX_QT_SETTINGS_SIGNMESSAGEWIDGETS_H
PIVX GUI main class.
Definition: pivxgui.h:46
SettingsSignMessageWidgets(PIVXGUI *_window, QWidget *parent=nullptr)
Ui::SettingsSignMessageWidgets * ui
void resizeEvent(QResizeEvent *event) override
void setAddress_SM(const QString &address)
ContactsDropdown * menuContacts
void showEvent(QShowEvent *event) override