PIVX Core  5.6.99
P2P Digital Currency
navmenuwidget.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2021 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_NAVMENUWIDGET_H
6 #define PIVX_QT_NAVMENUWIDGET_H
7 
8 #include "pwidget.h"
9 #include <QWidget>
10 
11 class PIVXGUI;
12 
13 namespace Ui {
14 class NavMenuWidget;
15 }
16 
17 class NavMenuWidget : public PWidget
18 {
19  Q_OBJECT
20 
21 public:
22  explicit NavMenuWidget(PIVXGUI* mainWindow, QWidget *parent = nullptr);
24 
25  void loadWalletModel() override;
26  virtual void showEvent(QShowEvent *event) override;
27 
28 public Q_SLOTS:
29  void selectSettings();
30  void onShowHideColdStakingChanged(bool show);
31 
32 private Q_SLOTS:
33  void onSendClicked();
34  void onDashboardClicked();
35  void onAddressClicked();
36  void onMasterNodesClicked();
37  void onColdStakingClicked();
38  void onGovClicked();
39  void onSettingsClicked();
40  void onReceiveClicked();
41  void updateButtonStyles();
42 private:
43  Ui::NavMenuWidget *ui;
44  QList<QWidget*> btns;
45 
46  void connectActions();
47  void onNavSelected(QWidget* active, bool startup = false);
48 
49  bool init = false;
50 };
51 
52 #endif // PIVX_QT_NAVMENUWIDGET_H
void onSettingsClicked()
void onMasterNodesClicked()
void onSendClicked()
NavMenuWidget(PIVXGUI *mainWindow, QWidget *parent=nullptr)
void onDashboardClicked()
void loadWalletModel() override
void onColdStakingClicked()
virtual void showEvent(QShowEvent *event) override
void onAddressClicked()
void updateButtonStyles()
Ui::NavMenuWidget * ui
Definition: navmenuwidget.h:43
void onNavSelected(QWidget *active, bool startup=false)
QList< QWidget * > btns
Definition: navmenuwidget.h:44
void connectActions()
Actions.
void onShowHideColdStakingChanged(bool show)
void onReceiveClicked()
PIVX GUI main class.
Definition: pivxgui.h:46