Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
sendcoinsentry.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef SENDCOINSENTRY_H
6 #define SENDCOINSENTRY_H
7 
8 #include "walletmodel.h"
9 
10 #include <QStackedWidget>
11 
12 class WalletModel;
13 
14 namespace Ui {
15  class SendCoinsEntry;
16 }
17 
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 
45 
46  void setFocus();
47 
48 public slots:
49  void clear();
50 
51 signals:
52  void removeEntry(SendCoinsEntry *entry);
53  void payAmountChanged();
54 
55 private slots:
56  void deleteClicked();
57  void on_payTo_textChanged(const QString &address);
60  void updateDisplayUnit();
61 
62 private:
66 
67  bool updateLabel(const QString &address);
68 };
69 
70 #endif // 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://...
void clear()
void removeEntry(SendCoinsEntry *entry)
bool isClear()
Return whether the entry is still empty and unedited.
void on_pasteButton_clicked()
WalletModel * model
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:96
SendCoinsRecipient recipient
void on_addressBookButton_clicked()
void setModel(WalletModel *model)
SendCoinsEntry(QWidget *parent=0)