Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
sendcoinsentry.h
Go to the documentation of this file.
1 #ifndef SENDCOINSENTRY_H
2 #define SENDCOINSENTRY_H
3 
4 #include <QFrame>
5 
6 namespace Ui {
7  class SendCoinsEntry;
8 }
9 class WalletModel;
10 class SendCoinsRecipient;
11 
13 class SendCoinsEntry : public QFrame
14 {
15  Q_OBJECT
16 
17 public:
18  explicit SendCoinsEntry(QWidget *parent = 0);
20 
21  void setModel(WalletModel *model);
22  bool validate();
24 
26  bool isClear();
27 
28  void setValue(const SendCoinsRecipient &value);
29  void setAddress(const QString &address);
30 
33  QWidget *setupTabChain(QWidget *prev);
34 
35  void setFocus();
36 
37 public slots:
38  void setRemoveEnabled(bool enabled);
39  void clear();
40 
41 signals:
42  void removeEntry(SendCoinsEntry *entry);
43  void payAmountChanged();
44 
45 private slots:
47  void on_payTo_textChanged(const QString &address);
50  void updateDisplayUnit();
51 
52 private:
53  Ui::SendCoinsEntry *ui;
55 };
56 
57 #endif // SENDCOINSENTRY_H
LRUHandle * prev
Definition: cache.cc:30
Ui::SendCoinsEntry * ui
void setValue(const SendCoinsRecipient &value)
void payAmountChanged()
std::string * value
Definition: version_set.cc:270
void setFocus()
SendCoinsRecipient getValue()
Definition: aboutdialog.h:6
void setAddress(const QString &address)
~SendCoinsEntry()
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 on_deleteButton_clicked()
void removeEntry(SendCoinsEntry *entry)
void setRemoveEnabled(bool enabled)
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:36
void on_addressBookButton_clicked()
void setModel(WalletModel *model)
SendCoinsEntry(QWidget *parent=0)