1 #ifndef TRANSACTIONVIEW_H
2 #define TRANSACTIONVIEW_H
7 class TransactionFilterProxy;
19 /** Widget showing the transaction list for a wallet, including a filter row.
20 Using the filter row, the user can view or export a subset of the transactions.
22 class TransactionView : public QWidget
26 explicit TransactionView(QWidget *parent = 0);
28 void setModel(WalletModel *model);
30 // Date ranges for filter
44 TransactionFilterProxy *transactionProxyModel;
45 QTableView *transactionView;
47 QComboBox *dateWidget;
48 QComboBox *typeWidget;
49 QLineEdit *addressWidget;
50 QLineEdit *amountWidget;
54 QFrame *dateRangeWidget;
55 QDateTimeEdit *dateFrom;
56 QDateTimeEdit *dateTo;
58 QWidget *createDateRangeWidget();
61 void contextualMenu(const QPoint &);
62 void dateRangeChanged();
70 void doubleClicked(const QModelIndex&);
73 void chooseDate(int idx);
74 void chooseType(int idx);
75 void changedPrefix(const QString &prefix);
76 void changedAmount(const QString &amount);
81 #endif // TRANSACTIONVIEW_H