Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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 <qt/walletmodel.h>
9 
10 #include <QStackedWidget>
11 
12 class WalletModel;
13 
14 namespace Ui {
15  class SendCoinsEntry;
16 }
17 
23 class SendCoinsEntry : public QStackedWidget
24 {
25  Q_OBJECT
26 
27 public:
28  explicit SendCoinsEntry(QWidget* parent = 0);
30 
31  void setModel(WalletModel *model);
32  bool validate();
34 
36  bool isClear();
37 
38  void setValue(const SendCoinsRecipient &value);
39  void setAddress(const QString &address);
40  void setAmount(const CAmount &amount);
41 
45  QWidget *setupTabChain(QWidget *prev);
46 
47  void setFocus();
48 
49 public Q_SLOTS:
50  void clear();
52 
53 Q_SIGNALS:
54  void removeEntry(SendCoinsEntry *entry);
56  void payAmountChanged();
58 
59 private Q_SLOTS:
60  void deleteClicked();
62  void on_payTo_textChanged(const QString &address);
65  void updateDisplayUnit();
66 
67 protected:
68  void changeEvent(QEvent* e);
69 
70 private:
72  Ui::SendCoinsEntry *ui;
74 
76  void setButtonIcons();
77  bool updateLabel(const QString &address);
78 };
79 
80 #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()
bool validate()
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()
void removeEntry(SendCoinsEntry *entry)
void checkSubtractFeeFromAmount()
bool isClear()
Return whether the entry is still empty and unedited.
void subtractFeeFromAmountChanged()
void on_pasteButton_clicked()
void changeEvent(QEvent *e)
WalletModel * model
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:100
SendCoinsRecipient recipient
void setAmount(const CAmount &amount)
void on_addressBookButton_clicked()
void setModel(WalletModel *model)
void useAvailableBalance(SendCoinsEntry *entry)
SendCoinsEntry(QWidget *parent=0)
void useAvailableBalanceClicked()
void setButtonIcons()
Set required icons for buttons inside the dialog.
Released under the MIT license