Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F10615374
transactionview.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
transactionview.h
View Options
#ifndef TRANSACTIONVIEW_H
#define TRANSACTIONVIEW_H
#include
<QWidget>
class
WalletModel
;
class
TransactionFilterProxy
;
QT_BEGIN_NAMESPACE
class
QTableView
;
class
QComboBox
;
class
QLineEdit
;
class
QModelIndex
;
class
QMenu
;
class
QFrame
;
class
QDateTimeEdit
;
QT_END_NAMESPACE
/** Widget showing the transaction list for a wallet, including a filter row.
Using the filter row, the user can view or export a subset of the transactions.
*/
class
TransactionView
:
public
QWidget
{
Q_OBJECT
public
:
explicit
TransactionView
(
QWidget
*
parent
=
0
);
void
setModel
(
WalletModel
*
model
);
// Date ranges for filter
enum
DateEnum
{
All
,
Today
,
ThisWeek
,
ThisMonth
,
LastMonth
,
ThisYear
,
Range
};
private
:
WalletModel
*
model
;
TransactionFilterProxy
*
transactionProxyModel
;
QTableView
*
transactionView
;
QComboBox
*
dateWidget
;
QComboBox
*
typeWidget
;
QLineEdit
*
addressWidget
;
QLineEdit
*
amountWidget
;
QMenu
*
contextMenu
;
QFrame
*
dateRangeWidget
;
QDateTimeEdit
*
dateFrom
;
QDateTimeEdit
*
dateTo
;
QWidget
*
createDateRangeWidget
();
private
slots
:
void
contextualMenu
(
const
QPoint
&
);
void
dateRangeChanged
();
void
showDetails
();
void
copyAddress
();
void
editLabel
();
void
copyLabel
();
void
copyAmount
();
signals
:
void
doubleClicked
(
const
QModelIndex
&
);
public
slots
:
void
chooseDate
(
int
idx
);
void
chooseType
(
int
idx
);
void
changedPrefix
(
const
QString
&
prefix
);
void
changedAmount
(
const
QString
&
amount
);
void
exportClicked
();
void
focusTransaction
(
const
QModelIndex
&
);
};
#endif
// TRANSACTIONVIEW_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 23, 10:05 (23 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4514961
Default Alt Text
transactionview.h (1 KB)
Attached To
rSTAGING Bitcoin ABC staging
Event Timeline
Log In to Comment