Raven Core  3.0.0
P2P Digital Currency
sendcoinsentry.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_QT_SENDCOINSENTRY_H
7 #define RAVEN_QT_SENDCOINSENTRY_H
8 
9 #include "walletmodel.h"
10 
11 #include <QStackedWidget>
12 
13 class WalletModel;
14 class PlatformStyle;
15 
16 namespace Ui {
17  class SendCoinsEntry;
18 }
19 
25 class SendCoinsEntry : public QStackedWidget
26 {
27  Q_OBJECT
28 
29 public:
30  explicit SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent = 0);
31  ~SendCoinsEntry();
32 
33  void setModel(WalletModel *model);
34  bool validate();
35  SendCoinsRecipient getValue();
36 
38  bool isClear();
39 
40  void setValue(const SendCoinsRecipient &value);
41  void setAddress(const QString &address);
42 
46  QWidget *setupTabChain(QWidget *prev);
47 
48  void setFocus();
49 
50 public Q_SLOTS:
51  void clear();
52 
53 Q_SIGNALS:
54  void removeEntry(SendCoinsEntry *entry);
55  void payAmountChanged();
56  void subtractFeeFromAmountChanged();
57 
58 private Q_SLOTS:
59  void deleteClicked();
60  void on_payTo_textChanged(const QString &address);
61  void on_addressBookButton_clicked();
62  void on_pasteButton_clicked();
63  void updateDisplayUnit();
64 
65 private:
67  Ui::SendCoinsEntry *ui;
70 
71  bool updateLabel(const QString &address);
72 };
73 
74 #endif // RAVEN_QT_SENDCOINSENTRY_H
Ui::SendCoinsEntry * ui
A single entry in the dialog for sending ravens.
WalletModel * model
Interface to Raven wallet from Qt view code.
Definition: walletmodel.h:165
SendCoinsRecipient recipient
const PlatformStyle * platformStyle