PRCYCoin  2.0.0.7rc1
P2P Digital Currency
historypage.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 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 BITCOIN_QT_HISTORYPAGE_H
6 #define BITCOIN_QT_HISTORYPAGE_H
7 
8 #include "guiutil.h"
9 #include "togglebutton.h"
10 #include "transactiontablemodel.h"
11 
12 #include <QAbstractTableModel>
13 #include <QDialog>
14 #include <QHeaderView>
15 #include <QItemSelection>
16 #include <QKeyEvent>
17 #include <QMenu>
18 #include <QPoint>
19 #include <QSettings>
20 #include <QTimeEdit>
21 #include <QVariant>
22 #include <QSizeGrip>
23 
24 class WalletModel;
25 
26 namespace Ui
27 {
28 class HistoryPage;
29 }
30 
31 QT_BEGIN_NAMESPACE
32 class QModelIndex;
33 class QDataWidgetMapper;
34 QT_END_NAMESPACE
35 
37 class HistoryPage : public QDialog
38 {
39  Q_OBJECT
40 
41 public:
42  explicit HistoryPage(QWidget* parent = 0);
43  ~HistoryPage();
44  void setModel(WalletModel* model);
45 
46 public Q_SLOTS:
47  void updateFilter();
48  void syncTime(QDateTimeEdit* calendar, QTimeEdit* clock);
49 
50 protected:
51  virtual void keyPressEvent(QKeyEvent* event);
52 
53 private:
54  Ui::HistoryPage* ui;
57  QAbstractTableModel* tableModel;
58 
59  QTimeEdit* timeEditTo;
60  QTimeEdit* timeEditFrom;
61 
62  QString allAddressString="All";
63  QSettings settings;
64 
65  void initWidgets();
66  void connectWidgets();
67  virtual void resizeEvent(QResizeEvent* event);
68  void updateTableData(CWallet *wallet);
69  void updateAddressBookData(CWallet *wallet);
70 
71 public Q_SLOTS:
72  void on_cellClicked(int row, int column);
73  void updateTableData();
74 };
75 
76 #endif // BITCOIN_QT_HISTORYPAGE_H
HistoryPage::HistoryPage
HistoryPage(QWidget *parent=0)
Definition: historypage.cpp:34
HistoryPage::timeEditTo
QTimeEdit * timeEditTo
Definition: historypage.h:59
transactiontablemodel.h
HistoryPage::resizeEvent
virtual void resizeEvent(QResizeEvent *event)
Definition: historypage.cpp:172
HistoryPage::columnResizingFixer
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
Definition: historypage.h:55
HistoryPage::ui
Ui::HistoryPage * ui
Definition: historypage.h:54
WalletModel
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:102
HistoryPage::connectWidgets
void connectWidgets()
Definition: historypage.cpp:78
GUIUtil::TableViewLastColumnResizingFixer
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:179
HistoryPage::model
WalletModel * model
Definition: historypage.h:56
HistoryPage::settings
QSettings settings
Definition: historypage.h:63
HistoryPage::~HistoryPage
~HistoryPage()
Definition: historypage.cpp:49
HistoryPage::updateAddressBookData
void updateAddressBookData(CWallet *wallet)
Definition: historypage.cpp:247
HistoryPage::updateTableData
void updateTableData()
Definition: historypage.cpp:185
HistoryPage::tableModel
QAbstractTableModel * tableModel
Definition: historypage.h:57
HistoryPage::updateFilter
void updateFilter()
Definition: historypage.cpp:257
guiutil.h
HistoryPage
Dialog for options page.
Definition: historypage.h:37
HistoryPage::timeEditFrom
QTimeEdit * timeEditFrom
Definition: historypage.h:60
HistoryPage::allAddressString
QString allAddressString
Definition: historypage.h:62
Ui
Definition: 2faconfirmdialog.h:7
CWallet
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
Definition: wallet.h:243
HistoryPage::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event)
Definition: historypage.cpp:180
HistoryPage::initWidgets
void initWidgets()
Definition: historypage.cpp:53
togglebutton.h
HistoryPage::syncTime
void syncTime(QDateTimeEdit *calendar, QTimeEdit *clock)
Definition: historypage.cpp:310
HistoryPage::on_cellClicked
void on_cellClicked(int row, int column)
Definition: historypage.cpp:94
HistoryPage::setModel
void setModel(WalletModel *model)
Definition: historypage.cpp:315