neobytes/src/qt/transactionview.h

77 lines
1.4 KiB
C
Raw Normal View History

#ifndef TRANSACTIONVIEW_H
#define TRANSACTIONVIEW_H
#include <QWidget>
class WalletModel;
class TransactionFilterProxy;
QT_BEGIN_NAMESPACE
class QTableView;
class QComboBox;
class QLineEdit;
class QModelIndex;
class QMenu;
2011-07-22 18:30:25 +02:00
class QFrame;
class QDateTimeEdit;
QT_END_NAMESPACE
class TransactionView : public QWidget
{
Q_OBJECT
public:
explicit TransactionView(QWidget *parent = 0);
void setModel(WalletModel *model);
enum DateEnum
{
All,
Today,
ThisWeek,
ThisMonth,
2011-07-01 20:28:11 +02:00
LastMonth,
ThisYear,
Range
};
private:
WalletModel *model;
TransactionFilterProxy *transactionProxyModel;
QTableView *transactionView;
QComboBox *dateWidget;
QComboBox *typeWidget;
QLineEdit *addressWidget;
QLineEdit *amountWidget;
QMenu *contextMenu;
2011-07-22 18:30:25 +02:00
QFrame *dateRangeWidget;
QDateTimeEdit *dateFrom;
QDateTimeEdit *dateTo;
QWidget *createDateRangeWidget();
private slots:
void contextualMenu(const QPoint &);
2011-07-22 18:30:25 +02:00
void dateRangeChanged();
signals:
void doubleClicked(const QModelIndex&);
public slots:
void chooseDate(int idx);
void chooseType(int idx);
void changedPrefix(const QString &prefix);
void changedAmount(const QString &amount);
void exportClicked();
void showDetails();
void copyAddress();
void editLabel();
void copyLabel();
};
#endif // TRANSACTIONVIEW_H