PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Types | Public Slots | Signals | Public 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 = 23, 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 hideOrphans (bool fHide)
 
void updateHideOrphans (bool fHide)
 
void chooseWatchonly (int idx)
 
void changedPrefix (const QString &prefix)
 
void changedAmount (const QString &amount)
 
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)
 
 ~TransactionView ()
 
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)
 
void updateWatchOnlyColumn (bool fHaveWatchOnly)
 

Private Member Functions

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

Private Attributes

WalletModelmodel
 
TransactionFilterProxytransactionProxyModel
 
QTableView * transactionView
 
QComboBox * dateWidget
 
QComboBox * typeWidget
 
QComboBox * watchOnlyWidget
 
QLineEdit * addressWidget
 
QLineEdit * amountWidget
 
QAction * hideOrphansAction
 
QMenu * contextMenu
 
QSignalMapper * mapperThirdPartyTxUrls
 
QFrame * dateRangeWidget
 
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 32 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 53 of file transactionview.h.

◆ DateEnum

Enumerator
All 
Today 
ThisWeek 
ThisMonth 
LastMonth 
ThisYear 
Range 

Definition at line 43 of file transactionview.h.

Constructor & Destructor Documentation

◆ TransactionView()

TransactionView::TransactionView ( QWidget *  parent = 0)
explicit

Definition at line 38 of file transactionview.cpp.

Here is the call graph for this function:

◆ ~TransactionView()

TransactionView::~TransactionView ( )

Definition at line 182 of file transactionview.cpp.

Member Function Documentation

◆ changedAmount

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

Definition at line 353 of file transactionview.cpp.

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

◆ changedPrefix

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

Definition at line 346 of file transactionview.cpp.

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

◆ chooseDate

void TransactionView::chooseDate ( int  idx)
slot

Definition at line 253 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 305 of file transactionview.cpp.

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

◆ chooseWatchonly

void TransactionView::chooseWatchonly ( int  idx)
slot

Definition at line 338 of file transactionview.cpp.

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

◆ computeSum

void TransactionView::computeSum ( )
slot

Compute sum of all selected transactions.

Definition at line 490 of file transactionview.cpp.

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

◆ contextualMenu

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

Definition at line 411 of file transactionview.cpp.

Here is the caller graph for this function:

◆ copyAddress

void TransactionView::copyAddress ( )
privateslot

Definition at line 419 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 429 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 424 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 434 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 515 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 551 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 439 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 
)
private

Definition at line 581 of file transactionview.cpp.

Here is the call graph for this function:

◆ exportClicked

void TransactionView::exportClicked ( )
slot

Definition at line 372 of file transactionview.cpp.

Here is the call graph for this function:

◆ focusTransaction

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

Definition at line 560 of file transactionview.cpp.

Here is the call graph for this function:

◆ hideOrphans

void TransactionView::hideOrphans ( bool  fHide)
slot

Definition at line 316 of file transactionview.cpp.

Here is the call graph for this function:
Here is the caller 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.

◆ openThirdPartyTxUrl

void TransactionView::openThirdPartyTxUrl ( QString  url)
privateslot

Definition at line 506 of file transactionview.cpp.

Here is the caller graph for this function:

◆ resizeEvent()

void TransactionView::resizeEvent ( QResizeEvent *  event)
privatevirtual

Definition at line 574 of file transactionview.cpp.

Here is the call graph for this function:

◆ setModel()

void TransactionView::setModel ( WalletModel model)

Definition at line 186 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 478 of file transactionview.cpp.

Here is the caller graph for this function:

◆ trxAmount

void TransactionView::trxAmount ( QString  amount)
signal

Send computed sum back to wallet-view.

Here is the caller graph for this function:

◆ updateHideOrphans

void TransactionView::updateHideOrphans ( bool  fHide)
slot

Definition at line 323 of file transactionview.cpp.

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

◆ updateWatchOnlyColumn

void TransactionView::updateWatchOnlyColumn ( bool  fHaveWatchOnly)
privateslot

Definition at line 597 of file transactionview.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ addressWidget

QLineEdit* TransactionView::addressWidget
private

Definition at line 69 of file transactionview.h.

◆ amountWidget

QLineEdit* TransactionView::amountWidget
private

Definition at line 70 of file transactionview.h.

◆ columnResizingFixer

GUIUtil::TableViewLastColumnResizingFixer* TransactionView::columnResizingFixer
private

Definition at line 82 of file transactionview.h.

◆ contextMenu

QMenu* TransactionView::contextMenu
private

Definition at line 73 of file transactionview.h.

◆ dateFrom

QDateTimeEdit* TransactionView::dateFrom
private

Definition at line 77 of file transactionview.h.

◆ dateRangeWidget

QFrame* TransactionView::dateRangeWidget
private

Definition at line 76 of file transactionview.h.

◆ dateTo

QDateTimeEdit* TransactionView::dateTo
private

Definition at line 78 of file transactionview.h.

◆ dateWidget

QComboBox* TransactionView::dateWidget
private

Definition at line 66 of file transactionview.h.

◆ hideOrphansAction

QAction* TransactionView::hideOrphansAction
private

Definition at line 71 of file transactionview.h.

◆ mapperThirdPartyTxUrls

QSignalMapper* TransactionView::mapperThirdPartyTxUrls
private

Definition at line 74 of file transactionview.h.

◆ model

WalletModel* TransactionView::model
private

Definition at line 63 of file transactionview.h.

◆ transactionProxyModel

TransactionFilterProxy* TransactionView::transactionProxyModel
private

Definition at line 64 of file transactionview.h.

◆ transactionView

QTableView* TransactionView::transactionView
private

Definition at line 65 of file transactionview.h.

◆ typeWidget

QComboBox* TransactionView::typeWidget
private

Definition at line 67 of file transactionview.h.

◆ watchOnlyWidget

QComboBox* TransactionView::watchOnlyWidget
private

Definition at line 68 of file transactionview.h.


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