Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

transactionview.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2015 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_QT_TRANSACTIONVIEW_H
6 #define BITCOIN_QT_TRANSACTIONVIEW_H
7 
8 #include <qt/guiutil.h>
9 
10 #include <QWidget>
11 #include <QKeyEvent>
12 
14 class WalletModel;
15 
16 QT_BEGIN_NAMESPACE
17 class QComboBox;
18 class QDateTimeEdit;
19 class QFrame;
20 class QItemSelectionModel;
21 class QLineEdit;
22 class QMenu;
23 class QModelIndex;
24 class QSignalMapper;
25 class QTableView;
26 QT_END_NAMESPACE
27 
31 class TransactionView : public QWidget
32 {
33  Q_OBJECT
34 
35 public:
36  explicit TransactionView(QWidget* parent = 0);
37 
38  void setModel(WalletModel *model);
39 
40  // Date ranges for filter
41  enum DateEnum
42  {
43  All,
50  };
51 
52  enum ColumnWidths {
59  };
60 
61 private:
64  QTableView *transactionView;
65  QComboBox *dateWidget;
66  QComboBox *typeWidget;
67  QComboBox *watchOnlyWidget;
68  QLineEdit *search_widget;
69  QLineEdit *amountWidget;
70 
71  QMenu *contextMenu;
72  QSignalMapper *mapperThirdPartyTxUrls;
73 
74  QFrame *dateRangeWidget;
75  QDateTimeEdit *dateFrom;
76  QDateTimeEdit *dateTo;
77  QAction *abandonAction;
78 
79  QWidget *createDateRangeWidget();
80  void updateCalendarWidgets();
81 
83 
84  virtual void resizeEvent(QResizeEvent* event) override;
85  void changeEvent(QEvent* e) override;
86 
87  bool eventFilter(QObject *obj, QEvent *event) override;
88 
89 private Q_SLOTS:
90  void contextualMenu(const QPoint &);
91  void dateRangeChanged();
92  void showDetails();
93  void showAddressQRCode();
94  void copyAddress();
95  void editLabel();
96  void copyLabel();
97  void copyAmount();
98  void copyTxID();
99  void copyTxHex();
100  void copyTxPlainText();
101  void openThirdPartyTxUrl(QString url);
102  void updateWatchOnlyColumn(bool fHaveWatchOnly);
104  void abandonTx();
105 
106 Q_SIGNALS:
107  void doubleClicked(const QModelIndex&);
108 
110  void message(const QString &title, const QString &message, unsigned int style);
111 
113  void trxAmount(QString amount);
114 
115 public Q_SLOTS:
116  void chooseDate(int idx);
117  void chooseType(int idx);
118  void chooseWatchonly(int idx);
119  void changedAmount();
120  void changedSearch();
121  void exportClicked();
122  void focusTransaction(const QModelIndex&);
123  void computeSum();
124 };
125 
126 #endif // BITCOIN_QT_TRANSACTIONVIEW_H
TransactionView(QWidget *parent=0)
void openThirdPartyTxUrl(QString url)
QWidget * createDateRangeWidget()
QAction * abandonAction
void focusTransaction(const QModelIndex &)
QTableView * transactionView
void chooseWatchonly(int idx)
void trxAmount(QString amount)
Send computed sum back to wallet-view.
QDateTimeEdit * dateTo
void computeSum()
Compute sum of all selected transactions.
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:221
void updateWatchOnlyColumn(bool fHaveWatchOnly)
bool eventFilter(QObject *obj, QEvent *event) override
TransactionFilterProxy * transactionProxyModel
QComboBox * watchOnlyWidget
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:100
virtual void resizeEvent(QResizeEvent *event) override
QFrame * dateRangeWidget
void updatePrivateSendVisibility()
void contextualMenu(const QPoint &)
void changeEvent(QEvent *e) override
void chooseType(int idx)
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
QDateTimeEdit * dateFrom
void doubleClicked(const QModelIndex &)
WalletModel * model
QComboBox * dateWidget
QLineEdit * search_widget
Released under the MIT license