Bitcoin ABC  0.24.7
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 
9 
10 #include <QStackedWidget>
11 
12 class WalletModel;
13 class PlatformStyle;
14 
15 namespace interfaces {
16 class Node;
17 } // namespace interfaces
18 
19 namespace Ui {
20 class SendCoinsEntry;
21 }
22 
28 class SendCoinsEntry : public QStackedWidget {
29  Q_OBJECT
30 
31 public:
33  QWidget *parent = nullptr);
35 
36  void setModel(WalletModel *model);
37  bool validate(interfaces::Node &node);
39 
41  bool isClear();
42 
43  void setValue(const SendCoinsRecipient &value);
44  void setAddress(const QString &address);
45  void setAmount(const Amount amount);
46 
51  QWidget *setupTabChain(QWidget *prev);
52 
53  void setFocus();
54 
55 public Q_SLOTS:
56  void clear();
58 
59 Q_SIGNALS:
60  void removeEntry(SendCoinsEntry *entry);
62  void payAmountChanged();
64 
65 private Q_SLOTS:
66  void deleteClicked();
68  void on_payTo_textChanged(const QString &address);
71  void updateDisplayUnit();
72 
73 private:
75  Ui::SendCoinsEntry *ui;
78 
79  bool updateLabel(const QString &address);
80 };
81 
82 #endif // BITCOIN_QT_SENDCOINSENTRY_H
interfaces
Definition: dummywallet.cpp:12
SendCoinsEntry::setAddress
void setAddress(const QString &address)
Definition: sendcoinsentry.cpp:266
SendCoinsEntry::SendCoinsEntry
SendCoinsEntry(const PlatformStyle *platformStyle, WalletModel *model, QWidget *parent=nullptr)
Definition: sendcoinsentry.cpp:23
SendCoinsEntry::~SendCoinsEntry
~SendCoinsEntry()
Definition: sendcoinsentry.cpp:68
WalletModel
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:47
SendCoinsEntry::payAmountChanged
void payAmountChanged()
SendCoinsEntry::setValue
void setValue(const SendCoinsRecipient &value)
Definition: sendcoinsentry.cpp:220
SendCoinsEntry::updateLabel
bool updateLabel(const QString &address)
Definition: sendcoinsentry.cpp:296
SendCoinsEntry::deleteClicked
void deleteClicked()
Definition: sendcoinsentry.cpp:140
SendCoinsEntry::setFocus
void setFocus()
Definition: sendcoinsentry.cpp:280
SendCoinsEntry::setupTabChain
QWidget * setupTabChain(QWidget *prev)
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://...
Definition: sendcoinsentry.cpp:208
SendCoinsEntry::ui
Ui::SendCoinsEntry * ui
Definition: sendcoinsentry.h:75
SendCoinsEntry::on_payTo_textChanged
void on_payTo_textChanged(const QString &address)
Definition: sendcoinsentry.cpp:90
SendCoinsEntry::clear
void clear()
Definition: sendcoinsentry.cpp:114
SendCoinsEntry::updateDisplayUnit
void updateDisplayUnit()
Definition: sendcoinsentry.cpp:284
SendCoinsRecipient
Definition: sendcoinsrecipient.h:23
SendCoinsEntry::isClear
bool isClear()
Return whether the entry is still empty and unedited.
Definition: sendcoinsentry.cpp:275
SendCoinsEntry::validate
bool validate(interfaces::Node &node)
Definition: sendcoinsentry.cpp:148
SendCoinsEntry::model
WalletModel * model
Definition: sendcoinsentry.h:76
Amount
Definition: amount.h:19
SendCoinsEntry::setAmount
void setAmount(const Amount amount)
Definition: sendcoinsentry.cpp:271
interfaces::Node
Top-level interface for a bitcoin node (bitcoind process).
Definition: node.h:55
SendCoinsEntry::setModel
void setModel(WalletModel *model)
Definition: sendcoinsentry.cpp:94
SendCoinsEntry::useAvailableBalance
void useAvailableBalance(SendCoinsEntry *entry)
Ui
Definition: addressbookpage.h:14
SendCoinsEntry::recipient
SendCoinsRecipient recipient
Definition: sendcoinsentry.h:74
SendCoinsEntry::useAvailableBalanceClicked
void useAvailableBalanceClicked()
Definition: sendcoinsentry.cpp:144
SendCoinsEntry::removeEntry
void removeEntry(SendCoinsEntry *entry)
SendCoinsEntry::checkSubtractFeeFromAmount
void checkSubtractFeeFromAmount()
Definition: sendcoinsentry.cpp:136
SendCoinsEntry
A single entry in the dialog for sending bitcoins.
Definition: sendcoinsentry.h:28
SendCoinsEntry::on_addressBookButton_clicked
void on_addressBookButton_clicked()
Definition: sendcoinsentry.cpp:77
SendCoinsEntry::subtractFeeFromAmountChanged
void subtractFeeFromAmountChanged()
SendCoinsEntry::platformStyle
const PlatformStyle * platformStyle
Definition: sendcoinsentry.h:77
SendCoinsEntry::on_pasteButton_clicked
void on_pasteButton_clicked()
Definition: sendcoinsentry.cpp:72
PlatformStyle
Definition: platformstyle.h:13
sendcoinsrecipient.h
SendCoinsEntry::getValue
SendCoinsRecipient getValue()
Definition: sendcoinsentry.cpp:189