PIVX Core  5.6.99
P2P Digital Currency
sendcustomfeedialog.h
Go to the documentation of this file.
1 // Copyright (c) 2019-2020 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_SENDCUSTOMFEEDIALOG_H
6 #define PIVX_QT_SENDCUSTOMFEEDIALOG_H
7 
8 #include "focuseddialog.h"
9 #include "policy/feerate.h"
10 #include "snackbar.h"
11 
12 class PIVXGUI;
13 class WalletModel;
14 
15 namespace Ui {
17 }
18 
20 {
21  Q_OBJECT
22 
23 public:
24  explicit SendCustomFeeDialog(PIVXGUI* parent, WalletModel* model);
26 
27  void showEvent(QShowEvent* event) override;
29  bool isCustomFeeChecked();
30  void clear();
31 
32 public Q_SLOTS:
33  void onRecommendedChecked();
34  void onCustomChecked();
35  void updateFee();
36  void onChangeTheme(bool isLightTheme, QString& theme);
37 
38 protected Q_SLOTS:
39  void accept() override;
40 
41 private:
42  Ui::SendCustomFeeDialog* ui;
45  SnackBar* snackBar = nullptr;
46  void inform(const QString& text);
47 };
48 
49 #endif // PIVX_QT_SENDCUSTOMFEEDIALOG_H
Fee rate in PIV per kilobyte: CAmount / kB.
Definition: feerate.h:20
PIVX GUI main class.
Definition: pivxgui.h:46
void inform(const QString &text)
Ui::SendCustomFeeDialog * ui
void showEvent(QShowEvent *event) override
void onChangeTheme(bool isLightTheme, QString &theme)
SendCustomFeeDialog(PIVXGUI *parent, WalletModel *model)
Interface to PIVX wallet from Qt view code.
Definition: walletmodel.h:109
bool isLightTheme()
Definition: qtutils.cpp:210