BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
sendcoinsentry.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2018 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 <qt/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(interfaces::Node& node);
35 
37  bool isClear();
38 
39  void setValue(const SendCoinsRecipient &value);
40  void setAddress(const QString &address);
41  void setAmount(const CAmount &amount);
42 
46  QWidget *setupTabChain(QWidget *prev);
47 
48  void setFocus();
49 
50 public Q_SLOTS:
51  void clear();
53 
54 Q_SIGNALS:
55  void removeEntry(SendCoinsEntry *entry);
57  void payAmountChanged();
59 
60 private Q_SLOTS:
61  void deleteClicked();
63  void on_payTo_textChanged(const QString &address);
66  void updateDisplayUnit();
67 
68 private:
70  Ui::SendCoinsEntry *ui;
73 
74  bool updateLabel(const QString &address);
75 };
76 
77 #endif // BITCOIN_QT_SENDCOINSENTRY_H
Ui::SendCoinsEntry * ui
void setValue(const SendCoinsRecipient &value)
void payAmountChanged()
void setFocus()
SendCoinsRecipient getValue()
void setAddress(const QString &address)
~SendCoinsEntry()
bool updateLabel(const QString &address)
void deleteClicked()
void on_payTo_textChanged(const QString &address)
void updateDisplayUnit()
A single entry in the dialog for sending bitcoins.
QWidget * setupTabChain(QWidget *prev)
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://...
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:12
void clear()
bool validate(interfaces::Node &node)
void removeEntry(SendCoinsEntry *entry)
void checkSubtractFeeFromAmount()
bool isClear()
Return whether the entry is still empty and unedited.
void subtractFeeFromAmountChanged()
void on_pasteButton_clicked()
WalletModel * model
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:125
SendCoinsRecipient recipient
void setAmount(const CAmount &amount)
void on_addressBookButton_clicked()
void setModel(WalletModel *model)
void useAvailableBalance(SendCoinsEntry *entry)
SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent=0)
const PlatformStyle * platformStyle
void useAvailableBalanceClicked()
Top-level interface for a bitcoin node (bsha3d process).
Definition: node.h:35