Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
transactionview.h
Go to the documentation of this file.
1 #ifndef TRANSACTIONVIEW_H
2 #define TRANSACTIONVIEW_H
3 
4 #include <QWidget>
5 
6 class WalletModel;
8 
9 QT_BEGIN_NAMESPACE
10 class QTableView;
11 class QComboBox;
12 class QLineEdit;
13 class QModelIndex;
14 class QMenu;
15 class QFrame;
16 class QDateTimeEdit;
17 QT_END_NAMESPACE
18 
22 class TransactionView : public QWidget
23 {
24  Q_OBJECT
25 
26 public:
27  explicit TransactionView(QWidget *parent = 0);
28 
29  void setModel(WalletModel *model);
30 
31  // Date ranges for filter
32  enum DateEnum
33  {
34  All,
41  };
42 
43 private:
46  QTableView *transactionView;
47 
48  QComboBox *dateWidget;
49  QComboBox *typeWidget;
50  QLineEdit *addressWidget;
51  QLineEdit *amountWidget;
52 
53  QMenu *contextMenu;
54 
55  QFrame *dateRangeWidget;
56  QDateTimeEdit *dateFrom;
57  QDateTimeEdit *dateTo;
58 
59  QWidget *createDateRangeWidget();
60 
61 private slots:
62  void contextualMenu(const QPoint &);
63  void dateRangeChanged();
64  void showDetails();
65  void copyAddress();
66  void editLabel();
67  void copyLabel();
68  void copyAmount();
69  void copyTxID();
70 
71 signals:
72  void doubleClicked(const QModelIndex&);
73 
74 public slots:
75  void chooseDate(int idx);
76  void chooseType(int idx);
77  void changedPrefix(const QString &prefix);
78  void changedAmount(const QString &amount);
79  void exportClicked();
80  void focusTransaction(const QModelIndex&);
81 
82 };
83 
84 #endif // TRANSACTIONVIEW_H
void changedPrefix(const QString &prefix)
TransactionView(QWidget *parent=0)
QWidget * createDateRangeWidget()
void focusTransaction(const QModelIndex &)
QTableView * transactionView
QDateTimeEdit * dateTo
Widget showing the transaction list for a wallet, including a filter row.
void changedAmount(const QString &amount)
TransactionFilterProxy * transactionProxyModel
void chooseDate(int idx)
void setModel(WalletModel *model)
QLineEdit * amountWidget
QComboBox * typeWidget
Filter the transaction list according to pre-specified rules.
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:36
QFrame * dateRangeWidget
QLineEdit * addressWidget
void contextualMenu(const QPoint &)
void chooseType(int idx)
QDateTimeEdit * dateFrom
void doubleClicked(const QModelIndex &)
WalletModel * model
QComboBox * dateWidget