Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
TransactionView Class Reference

Widget showing the transaction list for a wallet, including a filter row. More...

#include <transactionview.h>

+ Inheritance diagram for TransactionView:
+ Collaboration diagram for TransactionView:

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

QWidgetcreateDateRangeWidget ()
 
virtual void resizeEvent (QResizeEvent *event)
 

Private Attributes

WalletModelmodel
 
TransactionFilterProxytransactionProxyModel
 
QTableView * transactionView
 
QComboBoxdateWidget
 
QComboBoxtypeWidget
 
QLineEditaddressWidget
 
QLineEditamountWidget
 
QMenu * contextMenu
 
QSignalMapper * mapperThirdPartyTxUrls
 
QFramedateRangeWidget
 
QDateTimeEdit * dateFrom
 
QDateTimeEdit * dateTo
 
GUIUtil::TableViewLastColumnResizingFixercolumnResizingFixer
 

Detailed Description

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.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

TransactionView::TransactionView ( QWidget parent = 0)
explicit

Member Function Documentation

void TransactionView::changedAmount ( const QString &  amount)
slot

Definition at line 278 of file transactionview.cpp.

References OptionsModel::getDisplayUnit(), WalletModel::getOptionsModel(), model, BitcoinUnits::parse(), TransactionFilterProxy::setMinAmount(), and transactionProxyModel.

Referenced by TransactionView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::changedPrefix ( const QString &  prefix)
slot

Definition at line 271 of file transactionview.cpp.

References TransactionFilterProxy::setAddressPrefix(), and transactionProxyModel.

Referenced by TransactionView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::chooseDate ( int  idx)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::chooseType ( int  idx)
slot

Definition at line 263 of file transactionview.cpp.

References TransactionFilterProxy::setTypeFilter(), transactionProxyModel, and typeWidget.

Referenced by TransactionView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::contextualMenu ( const QPoint &  point)
privateslot

Definition at line 325 of file transactionview.cpp.

References contextMenu, and transactionView.

Referenced by TransactionView().

+ Here is the caller graph for this function:

void TransactionView::copyAddress ( )
privateslot

Definition at line 334 of file transactionview.cpp.

References TransactionTableModel::AddressRole, GUIUtil::copyEntryData(), and transactionView.

Referenced by TransactionView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::copyAmount ( )
privateslot

Definition at line 344 of file transactionview.cpp.

References GUIUtil::copyEntryData(), TransactionTableModel::FormattedAmountRole, and transactionView.

Referenced by TransactionView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::copyLabel ( )
privateslot

Definition at line 339 of file transactionview.cpp.

References GUIUtil::copyEntryData(), TransactionTableModel::LabelRole, and transactionView.

Referenced by TransactionView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::copyTxID ( )
privateslot

Definition at line 349 of file transactionview.cpp.

References GUIUtil::copyEntryData(), transactionView, and TransactionTableModel::TxIDRole.

Referenced by TransactionView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QWidget * TransactionView::createDateRangeWidget ( )
private

Definition at line 421 of file transactionview.cpp.

References dateFrom, dateRangeChanged(), dateRangeWidget, and dateTo.

Referenced by TransactionView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::dateRangeChanged ( )
privateslot

Definition at line 457 of file transactionview.cpp.

References dateFrom, dateTo, TransactionFilterProxy::setDateRange(), and transactionProxyModel.

Referenced by chooseDate(), and createDateRangeWidget().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::doubleClicked ( const QModelIndex &  _t1)
signal

Definition at line 136 of file moc_transactionview.cpp.

Referenced by TransactionView().

+ Here is the caller graph for this function:

void TransactionView::editLabel ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::exportClicked ( )
slot
void TransactionView::focusTransaction ( const QModelIndex &  idx)
slot

Definition at line 466 of file transactionview.cpp.

References transactionProxyModel, and transactionView.

void TransactionView::message ( const QString &  title,
const QString &  message,
unsigned int  style 
)
signal

Fired when a message should be reported to the user.

Definition at line 143 of file moc_transactionview.cpp.

Referenced by exportClicked().

+ Here is the caller graph for this function:

void TransactionView::openThirdPartyTxUrl ( QString  url)
privateslot

Definition at line 412 of file transactionview.cpp.

References transactionView, and TransactionTableModel::TxHashRole.

Referenced by TransactionView().

+ Here is the caller graph for this function:

void TransactionView::resizeEvent ( QResizeEvent *  event)
privatevirtual

Definition at line 478 of file transactionview.cpp.

References columnResizingFixer, GUIUtil::TableViewLastColumnResizingFixer::stretchColumnWidth(), and TransactionTableModel::ToAddress.

+ Here is the call graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void TransactionView::showDetails ( )
privateslot

Definition at line 400 of file transactionview.cpp.

References transactionView.

Referenced by TransactionView().

+ Here is the caller graph for this function:

Field Documentation

QLineEdit* TransactionView::addressWidget
private

Definition at line 65 of file transactionview.h.

Referenced by TransactionView().

QLineEdit* TransactionView::amountWidget
private

Definition at line 66 of file transactionview.h.

Referenced by TransactionView().

GUIUtil::TableViewLastColumnResizingFixer* TransactionView::columnResizingFixer
private

Definition at line 77 of file transactionview.h.

Referenced by resizeEvent(), and setModel().

QMenu* TransactionView::contextMenu
private

Definition at line 68 of file transactionview.h.

Referenced by contextualMenu(), setModel(), and TransactionView().

QDateTimeEdit* TransactionView::dateFrom
private

Definition at line 72 of file transactionview.h.

Referenced by createDateRangeWidget(), and dateRangeChanged().

QFrame* TransactionView::dateRangeWidget
private

Definition at line 71 of file transactionview.h.

Referenced by chooseDate(), and createDateRangeWidget().

QDateTimeEdit* TransactionView::dateTo
private

Definition at line 73 of file transactionview.h.

Referenced by createDateRangeWidget(), and dateRangeChanged().

QComboBox* TransactionView::dateWidget
private

Definition at line 63 of file transactionview.h.

Referenced by chooseDate(), and TransactionView().

QSignalMapper* TransactionView::mapperThirdPartyTxUrls
private

Definition at line 69 of file transactionview.h.

Referenced by setModel(), and TransactionView().

WalletModel* TransactionView::model
private

Definition at line 59 of file transactionview.h.

Referenced by changedAmount(), editLabel(), and setModel().

TransactionFilterProxy* TransactionView::transactionProxyModel
private
QTableView* TransactionView::transactionView
private
QComboBox* TransactionView::typeWidget
private

Definition at line 64 of file transactionview.h.

Referenced by chooseType(), and TransactionView().


The documentation for this class was generated from the following files: