twisterp2pblockchainnetworkbittorrentmicrobloggingipv6social-networkdhtdecentralizedp2p-networktwister-servertwister-ipv6twister-coretwisterarmy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
968 B
54 lines
968 B
14 years ago
|
#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
|