Bitcoin Core 29.99.0
P2P Digital Currency
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
TransactionView Class Reference

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

#include <transactionview.h>

Inheritance diagram for TransactionView:
[legend]
Collaboration diagram for TransactionView:
[legend]

Public Types

enum  DateEnum {
  All , Today , ThisWeek , ThisMonth ,
  LastMonth , ThisYear , Range
}
 
enum  ColumnWidths {
  STATUS_COLUMN_WIDTH = 30 , DATE_COLUMN_WIDTH = 120 , TYPE_COLUMN_WIDTH = 113 , AMOUNT_MINIMUM_COLUMN_WIDTH = 120 ,
  MINIMUM_COLUMN_WIDTH = 23
}
 

Public Slots

void chooseDate (int idx)
 
void chooseType (int idx)
 
void changedAmount ()
 
void changedSearch ()
 
void exportClicked ()
 
void closeOpenedDialogs ()
 
void focusTransaction (const QModelIndex &)
 
void focusTransaction (const Txid &txid)
 

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 bumpedFee (const Txid &txid)
 

Public Member Functions

 TransactionView (const PlatformStyle *platformStyle, QWidget *parent=nullptr)
 
 ~TransactionView ()
 
void setModel (WalletModel *model)
 

Protected Member Functions

void changeEvent (QEvent *e) override
 

Private Slots

void contextualMenu (const QPoint &)
 
void dateRangeChanged ()
 
void showDetails ()
 
void copyAddress ()
 
void editLabel ()
 
void copyLabel ()
 
void copyAmount ()
 
void copyTxID ()
 
void copyTxHex ()
 
void copyTxPlainText ()
 
void openThirdPartyTxUrl (QString url)
 
void abandonTx ()
 
void bumpFee (bool checked)
 

Private Member Functions

QWidget * createDateRangeWidget ()
 
bool eventFilter (QObject *obj, QEvent *event) override
 

Private Attributes

WalletModelmodel {nullptr}
 
TransactionFilterProxytransactionProxyModel {nullptr}
 
QTableView * transactionView {nullptr}
 
QComboBox * dateWidget
 
QComboBox * typeWidget
 
QLineEdit * search_widget
 
QLineEdit * amountWidget
 
QMenu * contextMenu
 
QFrame * dateRangeWidget
 
QDateTimeEdit * dateFrom
 
QDateTimeEdit * dateTo
 
QAction * abandonAction {nullptr}
 
QAction * bumpFeeAction {nullptr}
 
QAction * copyAddressAction {nullptr}
 
QAction * copyLabelAction {nullptr}
 
const PlatformStylem_platform_style
 
QList< TransactionDescDialog * > m_opened_dialogs
 

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 34 of file transactionview.h.

Member Enumeration Documentation

◆ ColumnWidths

Enumerator
STATUS_COLUMN_WIDTH 
DATE_COLUMN_WIDTH 
TYPE_COLUMN_WIDTH 
AMOUNT_MINIMUM_COLUMN_WIDTH 
MINIMUM_COLUMN_WIDTH 

Definition at line 56 of file transactionview.h.

◆ DateEnum

Enumerator
All 
Today 
ThisWeek 
ThisMonth 
LastMonth 
ThisYear 
Range 

Definition at line 45 of file transactionview.h.

Constructor & Destructor Documentation

◆ TransactionView()

TransactionView::TransactionView ( const PlatformStyle platformStyle,
QWidget *  parent = nullptr 
)
explicit

Definition at line 43 of file transactionview.cpp.

Here is the call graph for this function:

◆ ~TransactionView()

TransactionView::~TransactionView ( )

Definition at line 192 of file transactionview.cpp.

Member Function Documentation

◆ abandonTx

void TransactionView::abandonTx ( )
privateslot

Definition at line 381 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ bumpedFee

void TransactionView::bumpedFee ( const Txid txid)
signal
Here is the caller graph for this function:

◆ bumpFee

void TransactionView::bumpFee ( bool  checked)
privateslot

Definition at line 395 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changedAmount

void TransactionView::changedAmount ( )
slot

Definition at line 305 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changedSearch

void TransactionView::changedSearch ( )
slot

Definition at line 298 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changeEvent()

void TransactionView::changeEvent ( QEvent *  e)
overrideprotected

Definition at line 238 of file transactionview.cpp.

◆ chooseDate

void TransactionView::chooseDate ( int  idx)
slot

Definition at line 243 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ chooseType

void TransactionView::chooseType ( int  idx)
slot

Definition at line 290 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeOpenedDialogs

void TransactionView::closeOpenedDialogs ( )
slot

Definition at line 620 of file transactionview.cpp.

Here is the caller graph for this function:

◆ contextualMenu

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

Definition at line 357 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyAddress

void TransactionView::copyAddress ( )
privateslot

Definition at line 417 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyAmount

void TransactionView::copyAmount ( )
privateslot

Definition at line 427 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyLabel

void TransactionView::copyLabel ( )
privateslot

Definition at line 422 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyTxHex

void TransactionView::copyTxHex ( )
privateslot

Definition at line 437 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyTxID

void TransactionView::copyTxID ( )
privateslot

Definition at line 432 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyTxPlainText

void TransactionView::copyTxPlainText ( )
privateslot

Definition at line 442 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createDateRangeWidget()

QWidget * TransactionView::createDateRangeWidget ( )
private

Definition at line 519 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dateRangeChanged

void TransactionView::dateRangeChanged ( )
privateslot

Definition at line 555 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ doubleClicked

void TransactionView::doubleClicked ( const QModelIndex &  )
signal
Here is the caller graph for this function:

◆ editLabel

void TransactionView::editLabel ( )
privateslot

Definition at line 447 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventFilter()

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

Definition at line 601 of file transactionview.cpp.

Here is the call graph for this function:

◆ exportClicked

void TransactionView::exportClicked ( )
slot

Definition at line 319 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ focusTransaction [1/2]

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

Definition at line 564 of file transactionview.cpp.

Here is the caller graph for this function:

◆ focusTransaction [2/2]

void TransactionView::focusTransaction ( const Txid txid)
slot

Definition at line 574 of file transactionview.cpp.

Here is the call graph for this function:

◆ message

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

Fired when a message should be reported to the user.

Here is the caller graph for this function:

◆ openThirdPartyTxUrl

void TransactionView::openThirdPartyTxUrl ( QString  url)
privateslot

Definition at line 510 of file transactionview.cpp.

Here is the caller graph for this function:

◆ setModel()

void TransactionView::setModel ( WalletModel model)

Definition at line 199 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ showDetails

void TransactionView::showDetails ( )
privateslot

Definition at line 493 of file transactionview.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ abandonAction

QAction* TransactionView::abandonAction {nullptr}
private

Definition at line 82 of file transactionview.h.

◆ amountWidget

QLineEdit* TransactionView::amountWidget
private

Definition at line 75 of file transactionview.h.

◆ bumpFeeAction

QAction* TransactionView::bumpFeeAction {nullptr}
private

Definition at line 83 of file transactionview.h.

◆ contextMenu

QMenu* TransactionView::contextMenu
private

Definition at line 77 of file transactionview.h.

◆ copyAddressAction

QAction* TransactionView::copyAddressAction {nullptr}
private

Definition at line 84 of file transactionview.h.

◆ copyLabelAction

QAction* TransactionView::copyLabelAction {nullptr}
private

Definition at line 85 of file transactionview.h.

◆ dateFrom

QDateTimeEdit* TransactionView::dateFrom
private

Definition at line 80 of file transactionview.h.

◆ dateRangeWidget

QFrame* TransactionView::dateRangeWidget
private

Definition at line 79 of file transactionview.h.

◆ dateTo

QDateTimeEdit* TransactionView::dateTo
private

Definition at line 81 of file transactionview.h.

◆ dateWidget

QComboBox* TransactionView::dateWidget
private

Definition at line 72 of file transactionview.h.

◆ m_opened_dialogs

QList<TransactionDescDialog*> TransactionView::m_opened_dialogs
private

Definition at line 93 of file transactionview.h.

◆ m_platform_style

const PlatformStyle* TransactionView::m_platform_style
private

Definition at line 91 of file transactionview.h.

◆ model

WalletModel* TransactionView::model {nullptr}
private

Definition at line 68 of file transactionview.h.

◆ search_widget

QLineEdit* TransactionView::search_widget
private

Definition at line 74 of file transactionview.h.

◆ transactionProxyModel

TransactionFilterProxy* TransactionView::transactionProxyModel {nullptr}
private

Definition at line 69 of file transactionview.h.

◆ transactionView

QTableView* TransactionView::transactionView {nullptr}
private

Definition at line 70 of file transactionview.h.

◆ typeWidget

QComboBox* TransactionView::typeWidget
private

Definition at line 73 of file transactionview.h.


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