![]() |
Master Core
v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
|
Widget showing the transaction list for a wallet, including a filter row. More...
#include <transactionview.h>
Public Types | |
enum | DateEnum { All, Today, ThisWeek, ThisMonth, LastMonth, ThisYear, Range } |
enum | ColumnWidths { STATUS_COLUMN_WIDTH = 23, DATE_COLUMN_WIDTH = 120, TYPE_COLUMN_WIDTH = 120, AMOUNT_MINIMUM_COLUMN_WIDTH = 120, MINIMUM_COLUMN_WIDTH = 23 } |
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 &) |
Signals | |
void | doubleClicked (const QModelIndex &) |
void | message (const QString &title, const QString &message, unsigned int style) |
Fired when a message should be reported to the user. More... | |
Public Member Functions | |
TransactionView (QWidget *parent=0) | |
void | setModel (WalletModel *model) |
Private Slots | |
void | contextualMenu (const QPoint &) |
void | dateRangeChanged () |
void | showDetails () |
void | copyAddress () |
void | editLabel () |
void | copyLabel () |
void | copyAmount () |
void | copyTxID () |
void | openThirdPartyTxUrl (QString url) |
Private Member Functions | |
QWidget * | createDateRangeWidget () |
virtual void | resizeEvent (QResizeEvent *event) |
Private Attributes | |
WalletModel * | model |
TransactionFilterProxy * | transactionProxyModel |
QTableView * | transactionView |
QComboBox * | dateWidget |
QComboBox * | typeWidget |
QLineEdit * | addressWidget |
QLineEdit * | amountWidget |
QMenu * | contextMenu |
QSignalMapper * | mapperThirdPartyTxUrls |
QFrame * | dateRangeWidget |
QDateTimeEdit * | dateFrom |
QDateTimeEdit * | dateTo |
GUIUtil::TableViewLastColumnResizingFixer * | columnResizingFixer |
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.
Definition at line 29 of file transactionview.h.
Enumerator | |
---|---|
STATUS_COLUMN_WIDTH | |
DATE_COLUMN_WIDTH | |
TYPE_COLUMN_WIDTH | |
AMOUNT_MINIMUM_COLUMN_WIDTH | |
MINIMUM_COLUMN_WIDTH |
Definition at line 50 of file transactionview.h.
Enumerator | |
---|---|
All | |
Today | |
ThisWeek | |
ThisMonth | |
LastMonth | |
ThisYear | |
Range |
Definition at line 39 of file transactionview.h.
|
explicit |
Definition at line 37 of file transactionview.cpp.
References addressWidget, All, TransactionFilterProxy::ALL_TYPES, amountWidget, changedAmount(), changedPrefix(), chooseDate(), chooseType(), contextMenu, contextualMenu(), copyAddress(), copyAmount(), copyLabel(), copyTxID(), createDateRangeWidget(), dateWidget, doubleClicked(), editLabel(), TransactionRecord::Generated, LastMonth, mapperThirdPartyTxUrls, openThirdPartyTxUrl(), TransactionRecord::Other, Range, TransactionRecord::RecvFromOther, TransactionRecord::RecvWithAddress, TransactionRecord::SendToAddress, TransactionRecord::SendToOther, TransactionRecord::SendToSelf, showDetails(), ThisMonth, ThisWeek, ThisYear, Today, transactionView, TransactionFilterProxy::TYPE(), and typeWidget.
|
slot |
Definition at line 278 of file transactionview.cpp.
References OptionsModel::getDisplayUnit(), WalletModel::getOptionsModel(), model, BitcoinUnits::parse(), TransactionFilterProxy::setMinAmount(), and transactionProxyModel.
Referenced by TransactionView().
|
slot |
Definition at line 271 of file transactionview.cpp.
References TransactionFilterProxy::setAddressPrefix(), and transactionProxyModel.
Referenced by TransactionView().
|
slot |
Definition at line 215 of file transactionview.cpp.
References All, dateRangeChanged(), dateRangeWidget, dateWidget, LastMonth, TransactionFilterProxy::MAX_DATE, TransactionFilterProxy::MIN_DATE, Range, TransactionFilterProxy::setDateRange(), ThisMonth, ThisWeek, ThisYear, Today, and transactionProxyModel.
Referenced by TransactionView().
|
slot |
Definition at line 263 of file transactionview.cpp.
References TransactionFilterProxy::setTypeFilter(), transactionProxyModel, and typeWidget.
Referenced by TransactionView().
|
privateslot |
Definition at line 325 of file transactionview.cpp.
References contextMenu, and transactionView.
Referenced by TransactionView().
|
privateslot |
Definition at line 334 of file transactionview.cpp.
References TransactionTableModel::AddressRole, GUIUtil::copyEntryData(), and transactionView.
Referenced by TransactionView().
|
privateslot |
Definition at line 344 of file transactionview.cpp.
References GUIUtil::copyEntryData(), TransactionTableModel::FormattedAmountRole, and transactionView.
Referenced by TransactionView().
|
privateslot |
Definition at line 339 of file transactionview.cpp.
References GUIUtil::copyEntryData(), TransactionTableModel::LabelRole, and transactionView.
Referenced by TransactionView().
|
privateslot |
Definition at line 349 of file transactionview.cpp.
References GUIUtil::copyEntryData(), transactionView, and TransactionTableModel::TxIDRole.
Referenced by TransactionView().
|
private |
Definition at line 421 of file transactionview.cpp.
References dateFrom, dateRangeChanged(), dateRangeWidget, and dateTo.
Referenced by TransactionView().
|
privateslot |
Definition at line 457 of file transactionview.cpp.
References dateFrom, dateTo, TransactionFilterProxy::setDateRange(), and transactionProxyModel.
Referenced by chooseDate(), and createDateRangeWidget().
|
signal |
Definition at line 136 of file moc_transactionview.cpp.
Referenced by TransactionView().
|
privateslot |
Definition at line 354 of file transactionview.cpp.
References TransactionTableModel::AddressRole, AddressTableModel::data(), EditAddressDialog::EditReceivingAddress, EditAddressDialog::EditSendingAddress, WalletModel::getAddressTableModel(), AddressTableModel::index(), EditAddressDialog::loadRow(), AddressTableModel::lookupAddress(), model, EditAddressDialog::NewSendingAddress, AddressTableModel::Receive, EditAddressDialog::setAddress(), EditAddressDialog::setModel(), transactionView, and AddressTableModel::TypeRole.
Referenced by TransactionView().
|
slot |
Definition at line 293 of file transactionview.cpp.
References CSVModelWriter::addColumn(), TransactionTableModel::AddressRole, TransactionTableModel::ConfirmedRole, TransactionTableModel::DateRole, TransactionTableModel::FormattedAmountRole, GUIUtil::getSaveFileName(), TransactionTableModel::LabelRole, message(), CClientUIInterface::MSG_ERROR, CClientUIInterface::MSG_INFORMATION, CSVModelWriter::setModel(), transactionProxyModel, TransactionTableModel::TxIDRole, TransactionTableModel::Type, and CSVModelWriter::write().
|
slot |
Definition at line 466 of file transactionview.cpp.
References transactionProxyModel, and transactionView.
|
signal |
Fired when a message should be reported to the user.
Definition at line 143 of file moc_transactionview.cpp.
Referenced by exportClicked().
|
privateslot |
Definition at line 412 of file transactionview.cpp.
References transactionView, and TransactionTableModel::TxHashRole.
Referenced by TransactionView().
|
privatevirtual |
Definition at line 478 of file transactionview.cpp.
References columnResizingFixer, GUIUtil::TableViewLastColumnResizingFixer::stretchColumnWidth(), and TransactionTableModel::ToAddress.
void TransactionView::setModel | ( | WalletModel * | model | ) |
Definition at line 165 of file transactionview.cpp.
References TransactionTableModel::Amount, AMOUNT_MINIMUM_COLUMN_WIDTH, columnResizingFixer, contextMenu, TransactionTableModel::Date, DATE_COLUMN_WIDTH, WalletModel::getOptionsModel(), OptionsModel::getThirdPartyTxUrls(), WalletModel::getTransactionTableModel(), mapperThirdPartyTxUrls, MINIMUM_COLUMN_WIDTH, model, TransactionTableModel::Status, STATUS_COLUMN_WIDTH, transactionProxyModel, transactionView, TransactionTableModel::Type, and TYPE_COLUMN_WIDTH.
Referenced by WalletView::setWalletModel().
|
privateslot |
Definition at line 400 of file transactionview.cpp.
References transactionView.
Referenced by TransactionView().
|
private |
Definition at line 65 of file transactionview.h.
Referenced by TransactionView().
|
private |
Definition at line 66 of file transactionview.h.
Referenced by TransactionView().
|
private |
Definition at line 77 of file transactionview.h.
Referenced by resizeEvent(), and setModel().
|
private |
Definition at line 68 of file transactionview.h.
Referenced by contextualMenu(), setModel(), and TransactionView().
|
private |
Definition at line 72 of file transactionview.h.
Referenced by createDateRangeWidget(), and dateRangeChanged().
|
private |
Definition at line 71 of file transactionview.h.
Referenced by chooseDate(), and createDateRangeWidget().
|
private |
Definition at line 73 of file transactionview.h.
Referenced by createDateRangeWidget(), and dateRangeChanged().
|
private |
Definition at line 63 of file transactionview.h.
Referenced by chooseDate(), and TransactionView().
|
private |
Definition at line 69 of file transactionview.h.
Referenced by setModel(), and TransactionView().
|
private |
Definition at line 59 of file transactionview.h.
Referenced by changedAmount(), editLabel(), and setModel().
|
private |
Definition at line 60 of file transactionview.h.
Referenced by changedAmount(), changedPrefix(), chooseDate(), chooseType(), dateRangeChanged(), exportClicked(), focusTransaction(), and setModel().
|
private |
Definition at line 61 of file transactionview.h.
Referenced by contextualMenu(), copyAddress(), copyAmount(), copyLabel(), copyTxID(), editLabel(), focusTransaction(), openThirdPartyTxUrl(), setModel(), showDetails(), and TransactionView().
|
private |
Definition at line 64 of file transactionview.h.
Referenced by chooseType(), and TransactionView().