1 #ifndef TRANSACTIONVIEW_H
2 #define TRANSACTIONVIEW_H
7 class TransactionFilterProxy;
20 /** Widget showing the transaction list for a wallet, including a filter row.
21 Using the filter row, the user can view or export a subset of the transactions.
23 class TransactionView : public QWidget
27 explicit TransactionView(QWidget *parent = 0);
29 void setModel(WalletModel *model, bool fShoudAddThirdPartyURL = true);
31 // Date ranges for filter
45 TransactionFilterProxy *transactionProxyModel;
46 QTableView *transactionView;
48 QComboBox *dateWidget;
49 QComboBox *typeWidget;
50 QLineEdit *addressWidget;
51 QLineEdit *amountWidget;
54 QSignalMapper *mapperThirdPartyTxUrls;
56 QFrame *dateRangeWidget;
57 QDateTimeEdit *dateFrom;
58 QDateTimeEdit *dateTo;
60 QWidget *createDateRangeWidget();
63 void contextualMenu(const QPoint &);
64 void dateRangeChanged();
72 void openThirdPartyTxUrl(QString url);
75 void doubleClicked(const QModelIndex&);
78 void chooseDate(int idx);
79 void chooseType(int idx);
80 void changedPrefix(const QString &prefix);
81 void changedAmount(const QString &amount);
83 void focusTransaction(const QModelIndex&);
87 #endif // TRANSACTIONVIEW_H