Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
balancesview.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 BALANCESVIEW_H
6 #define BALANCESVIEW_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 BalancesView : public QWidget
30 {
31  Q_OBJECT
32 
33 public:
34  explicit BalancesView(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 *balancesView;
62  QTableView *view;
63 
69 
70  QMenu *contextMenu;
71  QSignalMapper *mapperThirdPartyTxUrls;
72 
74  QDateTimeEdit *dateFrom;
75  QDateTimeEdit *dateTo;
76 
78 
80 
81  virtual void resizeEvent(QResizeEvent* event);
82 
83 private slots:
84  void contextualMenu(const QPoint &);
85  //void dateRangeChanged();
86  //void showDetails();
87  //void copyAddress();
88  //void editLabel();
89  //void copyLabel();
90  //void copyAmount();
91  //void copyTxID();
92  //void openThirdPartyTxUrl(QString url);
93 
94 signals:
95  void doubleClicked(const QModelIndex&);
96 
98  void message(const QString &title, const QString &message, unsigned int style);
99 
100 public slots:
101  void propSelectorChanged(int idx);
102  void balancesCopyAddress();
103  void balancesCopyLabel();
104  void balancesCopyAmount();
105 };
106 
107 #endif // BALANCESVIEW_H
QDateTimeEdit * dateFrom
Definition: balancesview.h:74
QTableView * balancesView
Definition: balancesview.h:61
void setModel(WalletModel *model)
QFrame * dateRangeWidget
Definition: balancesview.h:73
TransactionFilterProxy * transactionProxyModel
Definition: balancesview.h:60
virtual void resizeEvent(QResizeEvent *event)
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
Definition: balancesview.h:79
QTableView * view
Definition: balancesview.h:62
void propSelectorChanged(int idx)
void balancesCopyLabel()
QWidget * createDateRangeWidget()
QDateTimeEdit * dateTo
Definition: balancesview.h:75
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
QComboBox * typeWidget
Definition: balancesview.h:66
QMenu * contextMenu
Definition: balancesview.h:70
void balancesCopyAddress()
void doubleClicked(const QModelIndex &)
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:137
QSignalMapper * mapperThirdPartyTxUrls
Definition: balancesview.h:71
QLineEdit * addressWidget
Definition: balancesview.h:67
void balancesCopyAmount()
Widget showing the transaction list for a wallet, including a filter row.
Definition: balancesview.h:29
WalletModel * model
Definition: balancesview.h:59
QLabel * propSelLabel
Definition: balancesview.h:64
BalancesView(QWidget *parent=0)
Filter the transaction list according to pre-specified rules.
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:96
QComboBox * propSelectorWidget
Definition: balancesview.h:65
QLineEdit * amountWidget
Definition: balancesview.h:68
void contextualMenu(const QPoint &)