Anoncoin  0.9.4
P2P Digital Currency
sendcoinsentry.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef SENDCOINSENTRY_H
7 #define SENDCOINSENTRY_H
8 
9 #include "walletmodel.h"
10 
11 #include <QStackedWidget>
12 
13 class WalletModel;
14 
15 namespace Ui {
16  class SendCoinsEntry;
17 }
18 
24 class SendCoinsEntry : public QStackedWidget
25 {
26  Q_OBJECT
27 
28 public:
29  explicit SendCoinsEntry(QWidget *parent = 0);
31 
32  void setModel(WalletModel *model);
33  bool validate();
35 
37  bool isClear();
38 
39  void setValue(const SendCoinsRecipient &value);
40  void setAddress(const QString &address);
41 
45  QWidget *setupTabChain(QWidget *prev);
46 
47  void setFocus();
48 
49 public slots:
50  void clear();
51 
52 signals:
53  void removeEntry(SendCoinsEntry *entry);
54  void payAmountChanged();
55 
56 private slots:
57  void deleteClicked();
58  void on_payTo_textChanged(const QString &address);
61  void updateDisplayUnit();
62 
63 private:
67 
68  bool updateLabel(const QString &address);
69 };
70 
71 #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 anoncoins.
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 Anoncoin wallet from Qt view code.
Definition: walletmodel.h:97
SendCoinsRecipient recipient
void on_addressBookButton_clicked()
void setModel(WalletModel *model)
SendCoinsEntry(QWidget *parent=0)