PIVX Core  5.6.99
P2P Digital Currency
sendmemodialog.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 https://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef PIVX_QT_SENDMEMODIALOG_H
6 #define PIVX_QT_SENDMEMODIALOG_H
7 
8 #include "focuseddialog.h"
9 
10 class WalletModel;
11 class SnackBar;
12 
13 namespace Ui {
14 class SendMemoDialog;
15 }
16 
18 {
19  Q_OBJECT
20 
21 public:
22  explicit SendMemoDialog(QWidget* parent, WalletModel* model);
24 
25  QString getMemo();
26  void setMemo(QString memo);
27  // false if the operation was cancelled clicking the 'X'. No need to perform any change in the caller side.
29  void showEvent(QShowEvent* event) override;
30 
31 public Q_SLOTS:
32  void textChanged();
33 
34 private:
36  Ui::SendMemoDialog *ui;
37  SnackBar *snackBar = nullptr;
38  bool operationResult{false};
39 
40  void inform(const QString& text);
41 
42 private Q_SLOTS:
43  void reset();
44  void accept() override;
45 };
46 
47 #endif // PIVX_QT_SENDMEMODIALOG_H
WalletModel * walletModel
void setMemo(QString memo)
void accept() override
void inform(const QString &text)
SnackBar * snackBar
bool getOperationResult()
void showEvent(QShowEvent *event) override
SendMemoDialog(QWidget *parent, WalletModel *model)
Ui::SendMemoDialog * ui
Interface to PIVX wallet from Qt view code.
Definition: walletmodel.h:109