aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactionview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/transactionview.h')
-rw-r--r--src/qt/transactionview.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/qt/transactionview.h b/src/qt/transactionview.h
new file mode 100644
index 0000000000..e75dcc2593
--- /dev/null
+++ b/src/qt/transactionview.h
@@ -0,0 +1,53 @@
+#ifndef TRANSACTIONVIEW_H
+#define TRANSACTIONVIEW_H
+
+#include <QWidget>
+
+class TransactionTableModel;
+class TransactionFilterProxy;
+
+QT_BEGIN_NAMESPACE
+class QTableView;
+class QComboBox;
+class QLineEdit;
+QT_END_NAMESPACE
+
+class TransactionView : public QWidget
+{
+ Q_OBJECT
+public:
+ explicit TransactionView(QWidget *parent = 0);
+
+ void setModel(TransactionTableModel *model);
+
+ enum DateEnum
+ {
+ All,
+ Today,
+ ThisWeek,
+ ThisMonth,
+ ThisYear,
+ Range
+ };
+
+private:
+ TransactionTableModel *model;
+ TransactionFilterProxy *transactionProxyModel;
+ QTableView *transactionView;
+
+ QComboBox *dateWidget;
+ QComboBox *typeWidget;
+ QLineEdit *addressWidget;
+ QLineEdit *amountWidget;
+
+signals:
+
+public slots:
+ void chooseDate(int idx);
+ void chooseType(int idx);
+ void changedPrefix(const QString &prefix);
+ void changedAmount(const QString &amount);
+
+};
+
+#endif // TRANSACTIONVIEW_H