Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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 = 30, WATCHONLY_COLUMN_WIDTH = 23, DATE_COLUMN_WIDTH = 120, TYPE_COLUMN_WIDTH = 240,
  AMOUNT_MINIMUM_COLUMN_WIDTH = 120, MINIMUM_COLUMN_WIDTH = 23
}
 

Public Slots

void chooseDate (int idx)
 
void chooseType (int idx)
 
void chooseWatchonly (int idx)
 
void changedAmount ()
 
void changedSearch ()
 
void exportClicked ()
 
void focusTransaction (const QModelIndex &)
 
void computeSum ()
 Compute sum of all selected transactions. More...
 

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...
 
void trxAmount (QString amount)
 Send computed sum back to wallet-view. More...
 

Public Member Functions

 TransactionView (QWidget *parent=0)
 
void setModel (WalletModel *model)
 

Private Slots

void contextualMenu (const QPoint &)
 
void dateRangeChanged ()
 
void showDetails ()
 
void showAddressQRCode ()
 
void copyAddress ()
 
void editLabel ()
 
void copyLabel ()
 
void copyAmount ()
 
void copyTxID ()
 
void copyTxHex ()
 
void copyTxPlainText ()
 
void openThirdPartyTxUrl (QString url)
 
void updateWatchOnlyColumn (bool fHaveWatchOnly)
 
void updatePrivateSendVisibility ()
 
void abandonTx ()
 

Private Member Functions

QWidget * createDateRangeWidget ()
 
void updateCalendarWidgets ()
 
virtual void resizeEvent (QResizeEvent *event) override
 
void changeEvent (QEvent *e) override
 
bool eventFilter (QObject *obj, QEvent *event) override
 

Private Attributes

WalletModelmodel
 
TransactionFilterProxytransactionProxyModel
 
QTableView * transactionView
 
QComboBox * dateWidget
 
QComboBox * typeWidget
 
QComboBox * watchOnlyWidget
 
QLineEdit * search_widget
 
QLineEdit * amountWidget
 
QMenu * contextMenu
 
QSignalMapper * mapperThirdPartyTxUrls
 
QFrame * dateRangeWidget
 
QDateTimeEdit * dateFrom
 
QDateTimeEdit * dateTo
 
QAction * abandonAction
 
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 31 of file transactionview.h.

Member Enumeration Documentation

◆ ColumnWidths

Enumerator
STATUS_COLUMN_WIDTH 
WATCHONLY_COLUMN_WIDTH 
DATE_COLUMN_WIDTH 
TYPE_COLUMN_WIDTH 
AMOUNT_MINIMUM_COLUMN_WIDTH 
MINIMUM_COLUMN_WIDTH 

Definition at line 52 of file transactionview.h.

◆ DateEnum

Enumerator
All 
Today 
ThisWeek 
ThisMonth 
LastMonth 
ThisYear 
Range 

Definition at line 41 of file transactionview.h.

Constructor & Destructor Documentation

◆ TransactionView()

Member Function Documentation

◆ abandonTx

◆ changedAmount

◆ changedSearch

void TransactionView::changedSearch ( )
slot

◆ changeEvent()

void TransactionView::changeEvent ( QEvent *  e)
overrideprivate

Definition at line 675 of file transactionview.cpp.

References updateCalendarWidgets().

◆ chooseDate

◆ chooseType

void TransactionView::chooseType ( int  idx)
slot

◆ chooseWatchonly

void TransactionView::chooseWatchonly ( int  idx)
slot

◆ computeSum

◆ contextualMenu

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

◆ copyAddress

void TransactionView::copyAddress ( )
privateslot

◆ copyAmount

void TransactionView::copyAmount ( )
privateslot

◆ copyLabel

void TransactionView::copyLabel ( )
privateslot

◆ copyTxHex

void TransactionView::copyTxHex ( )
privateslot

◆ copyTxID

void TransactionView::copyTxID ( )
privateslot

◆ copyTxPlainText

void TransactionView::copyTxPlainText ( )
privateslot

◆ createDateRangeWidget()

QWidget * TransactionView::createDateRangeWidget ( )
private

◆ dateRangeChanged

void TransactionView::dateRangeChanged ( )
privateslot

◆ doubleClicked

void TransactionView::doubleClicked ( const QModelIndex &  )
signal

Referenced by TransactionView().

◆ editLabel

◆ eventFilter()

bool TransactionView::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprivate

◆ exportClicked

◆ focusTransaction

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

Definition at line 655 of file transactionview.cpp.

References computeSum(), transactionProxyModel, and transactionView.

◆ message

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

Fired when a message should be reported to the user.

Referenced by exportClicked().

◆ openThirdPartyTxUrl

void TransactionView::openThirdPartyTxUrl ( QString  url)
privateslot

Definition at line 572 of file transactionview.cpp.

References transactionView, and TransactionTableModel::TxHashRole.

Referenced by TransactionView().

◆ resizeEvent()

void TransactionView::resizeEvent ( QResizeEvent *  event)
overrideprivatevirtual

◆ setModel()

◆ showAddressQRCode

void TransactionView::showAddressQRCode ( )
privateslot

◆ showDetails

void TransactionView::showDetails ( )
privateslot

Definition at line 525 of file transactionview.cpp.

References transactionView.

Referenced by TransactionView().

◆ trxAmount

void TransactionView::trxAmount ( QString  amount)
signal

Send computed sum back to wallet-view.

Referenced by computeSum().

◆ updateCalendarWidgets()

void TransactionView::updateCalendarWidgets ( )
private

◆ updatePrivateSendVisibility

void TransactionView::updatePrivateSendVisibility ( )
privateslot

◆ updateWatchOnlyColumn

void TransactionView::updateWatchOnlyColumn ( bool  fHaveWatchOnly)
privateslot

Definition at line 707 of file transactionview.cpp.

References transactionView, TransactionTableModel::Watchonly, and watchOnlyWidget.

Referenced by setModel().

Member Data Documentation

◆ abandonAction

QAction* TransactionView::abandonAction
private

Definition at line 77 of file transactionview.h.

Referenced by contextualMenu(), and TransactionView().

◆ amountWidget

QLineEdit* TransactionView::amountWidget
private

Definition at line 69 of file transactionview.h.

Referenced by changedAmount(), and TransactionView().

◆ columnResizingFixer

GUIUtil::TableViewLastColumnResizingFixer* TransactionView::columnResizingFixer
private

Definition at line 82 of file transactionview.h.

Referenced by resizeEvent(), and setModel().

◆ contextMenu

QMenu* TransactionView::contextMenu
private

Definition at line 71 of file transactionview.h.

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

◆ dateFrom

QDateTimeEdit* TransactionView::dateFrom
private

◆ dateRangeWidget

QFrame* TransactionView::dateRangeWidget
private

Definition at line 74 of file transactionview.h.

Referenced by chooseDate(), and createDateRangeWidget().

◆ dateTo

QDateTimeEdit* TransactionView::dateTo
private

◆ dateWidget

QComboBox* TransactionView::dateWidget
private

Definition at line 65 of file transactionview.h.

Referenced by chooseDate(), and TransactionView().

◆ mapperThirdPartyTxUrls

QSignalMapper* TransactionView::mapperThirdPartyTxUrls
private

Definition at line 72 of file transactionview.h.

Referenced by setModel(), and TransactionView().

◆ model

WalletModel* TransactionView::model
private

◆ search_widget

QLineEdit* TransactionView::search_widget
private

Definition at line 68 of file transactionview.h.

Referenced by changedSearch(), eventFilter(), and TransactionView().

◆ transactionProxyModel

TransactionFilterProxy* TransactionView::transactionProxyModel
private

◆ transactionView

◆ typeWidget

QComboBox* TransactionView::typeWidget
private

Definition at line 66 of file transactionview.h.

Referenced by chooseType(), TransactionView(), and updatePrivateSendVisibility().

◆ watchOnlyWidget

QComboBox* TransactionView::watchOnlyWidget
private

Definition at line 67 of file transactionview.h.

Referenced by chooseWatchonly(), TransactionView(), and updateWatchOnlyColumn().


The documentation for this class was generated from the following files:
Released under the MIT license