PIVX Core  5.6.99
P2P Digital Currency
walletoptionswidget.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_SETTINGS_WALLETOPTIONSWIDGET_H
6 #define PIVX_QT_SETTINGS_WALLETOPTIONSWIDGET_H
7 
8 #include "pwidget.h"
9 #include <QDataWidgetMapper>
10 #include <QWidget>
11 namespace Ui {
13 }
14 
16 {
17  Q_OBJECT
18 
19 public:
20  explicit SettingsWalletOptionsWidget(PIVXGUI* _window, QWidget *parent = nullptr);
22 
23  void setMapper(QDataWidgetMapper *mapper);
24 
26  bool saveWalletOnlyOptions();
27 
28  void saveMapPortOptions();
29 
30 Q_SIGNALS:
31  void saveSettings();
33 
34 public Q_SLOTS:
35  void onResetClicked();
36 
37 private:
38  Ui::SettingsWalletOptionsWidget *ui;
39 
40  void loadWalletModel() override;
41  void loadClientModel() override;
42  void reloadWalletOptions();
43 
44  void setSpinBoxStakeSplitThreshold(double val);
45  double getSpinBoxStakeSplitThreshold() const;
46 
47  // Enable or disable the network activity
48  void setNetworkActivity(bool active);
49 };
50 
51 #endif // PIVX_QT_SETTINGS_WALLETOPTIONSWIDGET_H
PIVX GUI main class.
Definition: pivxgui.h:46
void setMapper(QDataWidgetMapper *mapper)
Ui::SettingsWalletOptionsWidget * ui
SettingsWalletOptionsWidget(PIVXGUI *_window, QWidget *parent=nullptr)
void setSpinBoxStakeSplitThreshold(double val)