Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
transactionview.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef TRANSACTIONVIEW_H
6 #define TRANSACTIONVIEW_H
7 
8 #include "guiutil.h"
9 
10 #include <QWidget>
11 
13 class WalletModel;
14 
15 QT_BEGIN_NAMESPACE
16 class QComboBox;
17 class QDateTimeEdit;
18 class QFrame;
19 class QLineEdit;
20 class QMenu;
21 class QModelIndex;
22 class QSignalMapper;
23 class QTableView;
24 QT_END_NAMESPACE
25 
29 class TransactionView : public QWidget
30 {
31  Q_OBJECT
32 
33 public:
34  explicit TransactionView(QWidget *parent = 0);
35 
36  void setModel(WalletModel *model);
37 
38  // Date ranges for filter
39  enum DateEnum
40  {
41  All,
48  };
49 
50  enum ColumnWidths {
56  };
57 
58 private:
61  QTableView *transactionView;
62 
67 
68  QMenu *contextMenu;
69  QSignalMapper *mapperThirdPartyTxUrls;
70 
72  QDateTimeEdit *dateFrom;
73  QDateTimeEdit *dateTo;
74 
76 
78 
79  virtual void resizeEvent(QResizeEvent* event);
80 
81 private slots:
82  void contextualMenu(const QPoint &);
83  void dateRangeChanged();
84  void showDetails();
85  void copyAddress();
86  void editLabel();
87  void copyLabel();
88  void copyAmount();
89  void copyTxID();
90  void openThirdPartyTxUrl(QString url);
91 
92 signals:
93  void doubleClicked(const QModelIndex&);
94 
96  void message(const QString &title, const QString &message, unsigned int style);
97 
98 public slots:
99  void chooseDate(int idx);
100  void chooseType(int idx);
101  void changedPrefix(const QString &prefix);
102  void changedAmount(const QString &amount);
103  void exportClicked();
104  void focusTransaction(const QModelIndex&);
105 
106 };
107 
108 #endif // TRANSACTIONVIEW_H
void changedPrefix(const QString &prefix)
TransactionView(QWidget *parent=0)
void openThirdPartyTxUrl(QString url)
QWidget * createDateRangeWidget()
void focusTransaction(const QModelIndex &)
QTableView * transactionView
QDateTimeEdit * dateTo
const char * url
Definition: rpcconsole.cpp:35
virtual void resizeEvent(QResizeEvent *event)
QSignalMapper * mapperThirdPartyTxUrls
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
Widget showing the transaction list for a wallet, including a filter row.
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:137
void changedAmount(const QString &amount)
TransactionFilterProxy * transactionProxyModel
void chooseDate(int idx)
void setModel(WalletModel *model)
QLineEdit * amountWidget
QComboBox * typeWidget
Filter the transaction list according to pre-specified rules.
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:96
QFrame * dateRangeWidget
QLineEdit * addressWidget
void contextualMenu(const QPoint &)
void chooseType(int idx)
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
QDateTimeEdit * dateFrom
void doubleClicked(const QModelIndex &)
WalletModel * model
QComboBox * dateWidget