Dogecoin Core  1.14.2
P2P Digital Currency
sendcoinsentry.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin 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 BITCOIN_QT_SENDCOINSENTRY_H
6 #define BITCOIN_QT_SENDCOINSENTRY_H
7 
8 #include "walletmodel.h"
9 
10 #include <QStackedWidget>
11 
12 class WalletModel;
13 class PlatformStyle;
14 
15 namespace Ui {
16  class SendCoinsEntry;
17 }
18 
24 class SendCoinsEntry : public QStackedWidget
25 {
26  Q_OBJECT
27 
28 public:
29  explicit SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent = 0);
31 
32  void setModel(WalletModel *model);
33  bool validate();
35 
37  bool isClear();
38 
39  void setValue(const SendCoinsRecipient &value);
40  void setAddress(const QString &address);
41 
45  QWidget *setupTabChain(QWidget *prev);
46 
47  void setFocus();
48 
49 public Q_SLOTS:
50  void clear();
51 
52 Q_SIGNALS:
56 
57 private Q_SLOTS:
58  void deleteClicked();
59  void on_payTo_textChanged(const QString &address);
62  void updateDisplayUnit();
63 
64 private:
66  Ui::SendCoinsEntry *ui;
69 
70  bool updateLabel(const QString &address);
71 };
72 
73 #endif // BITCOIN_QT_SENDCOINSENTRY_H
A single entry in the dialog for sending bitcoins.
WalletModel * model
void setFocus()
bool updateLabel(const QString &address)
void setAddress(const QString &address)
bool isClear()
Return whether the entry is still empty and unedited.
void subtractFeeFromAmountChanged()
~SendCoinsEntry()
SendCoinsRecipient recipient
void setValue(const SendCoinsRecipient &value)
SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent=0)
void updateDisplayUnit()
void on_payTo_textChanged(const QString &address)
void on_pasteButton_clicked()
void setModel(WalletModel *model)
void removeEntry(SendCoinsEntry *entry)
void payAmountChanged()
QWidget * setupTabChain(QWidget *prev)
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://...
const PlatformStyle * platformStyle
void deleteClicked()
bool validate()
void clear()
void on_addressBookButton_clicked()
Ui::SendCoinsEntry * ui
SendCoinsRecipient getValue()
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:99