PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Private Types | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
CoinControlDialog Class Reference

#include <coincontroldialog.h>

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

Public Member Functions

 CoinControlDialog (QWidget *parent=nullptr, bool _forDelegation=false)
 
 ~CoinControlDialog () override
 
void setModel (WalletModel *model)
 
void updateLabels ()
 
void updateView ()
 
void refreshDialog ()
 
void clearPayAmounts ()
 
void addPayAmount (const CAmount &amount, bool isShieldedRecipient)
 
void setSelectionType (bool isTransparent)
 
bool hasModel ()
 

Public Attributes

CCoinControlcoinControl {nullptr}
 

Private Types

enum  {
  COLUMN_CHECKBOX , COLUMN_AMOUNT , COLUMN_LABEL , COLUMN_ADDRESS ,
  COLUMN_DATE , COLUMN_CONFIRMATIONS , COLUMN_TXHASH , COLUMN_VOUT_INDEX
}
 

Private Slots

void showMenu (const QPoint &)
 
void copyAmount ()
 
void copyLabel ()
 
void copyAddress ()
 
void copyTransactionHash ()
 
void lockCoin ()
 
void unlockCoin ()
 
void clipboardQuantity ()
 
void clipboardAmount ()
 
void clipboardFee ()
 
void clipboardAfterFee ()
 
void clipboardBytes ()
 
void clipboardLowOutput ()
 
void clipboardChange ()
 
void radioTreeMode (bool)
 
void radioListMode (bool)
 
void viewItemChanged (QTreeWidgetItem *, int)
 
void headerSectionClicked (int)
 
void buttonSelectAllClicked ()
 
void buttonToggleLockClicked ()
 
void updateLabelLocked ()
 

Private Member Functions

void updatePushButtonSelectAll (bool checked)
 
void sortView (int, Qt::SortOrder)
 
void inform (const QString &text)
 
void toggleItemLock (QTreeWidgetItem *item)
 
void toggleCoinLock ()
 
void loadAvailableCoin (bool treeMode, CCoinControlWidgetItem *itemWalletAddress, QFlags< Qt::ItemFlag > flgCheckbox, QFlags< Qt::ItemFlag > flgTristate, int nDisplayUnit, const QString &sWalletAddress, const Optional< QString > &stakerAddress, const QString &sWalletLabel, const uint256 &txhash, const uint32_t outIndex, const CAmount nValue, const int64_t nTime, const int nDepth, const bool isChange)
 
TotalAmounts getTotals () const
 

Private Attributes

Ui::CoinControlDialog * ui {nullptr}
 
SnackBarsnackBar {nullptr}
 
WalletModelmodel {nullptr}
 
int sortColumn
 
Qt::SortOrder sortOrder
 
bool forDelegation
 
int colCheckBoxWidth_treeMode {110}
 
std::vector< std::pair< CAmount, bool > > payAmounts {}
 
unsigned int nSelectableInputs {0}
 
bool fSelectTransparent {true}
 
QMenu * contextMenu {nullptr}
 
QTreeWidgetItem * contextMenuItem {nullptr}
 
QAction * copyTransactionHashAction {nullptr}
 
QAction * lockAction {nullptr}
 
QAction * unlockAction {nullptr}
 

Friends

class CCoinControlWidgetItem
 

Detailed Description

Definition at line 53 of file coincontroldialog.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
COLUMN_CHECKBOX 
COLUMN_AMOUNT 
COLUMN_LABEL 
COLUMN_ADDRESS 
COLUMN_DATE 
COLUMN_CONFIRMATIONS 
COLUMN_TXHASH 
COLUMN_VOUT_INDEX 

Definition at line 119 of file coincontroldialog.h.

Constructor & Destructor Documentation

◆ CoinControlDialog()

CoinControlDialog::CoinControlDialog ( QWidget *  parent = nullptr,
bool  _forDelegation = false 
)
explicit

Definition at line 41 of file coincontroldialog.cpp.

Here is the call graph for this function:

◆ ~CoinControlDialog()

CoinControlDialog::~CoinControlDialog ( )
override

Definition at line 192 of file coincontroldialog.cpp.

Member Function Documentation

◆ addPayAmount()

void CoinControlDialog::addPayAmount ( const CAmount amount,
bool  isShieldedRecipient 
)

Definition at line 852 of file coincontroldialog.cpp.

Here is the caller graph for this function:

◆ buttonSelectAllClicked

void CoinControlDialog::buttonSelectAllClicked ( )
privateslot

Definition at line 215 of file coincontroldialog.cpp.

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

◆ buttonToggleLockClicked

void CoinControlDialog::buttonToggleLockClicked ( )
privateslot

Definition at line 269 of file coincontroldialog.cpp.

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

◆ clearPayAmounts()

void CoinControlDialog::clearPayAmounts ( )

Definition at line 847 of file coincontroldialog.cpp.

Here is the caller graph for this function:

◆ clipboardAfterFee

void CoinControlDialog::clipboardAfterFee ( )
privateslot

Definition at line 385 of file coincontroldialog.cpp.

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

◆ clipboardAmount

void CoinControlDialog::clipboardAmount ( )
privateslot

Definition at line 371 of file coincontroldialog.cpp.

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

◆ clipboardBytes

void CoinControlDialog::clipboardBytes ( )
privateslot

Definition at line 392 of file coincontroldialog.cpp.

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

◆ clipboardChange

void CoinControlDialog::clipboardChange ( )
privateslot

Definition at line 406 of file coincontroldialog.cpp.

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

◆ clipboardFee

void CoinControlDialog::clipboardFee ( )
privateslot

Definition at line 378 of file coincontroldialog.cpp.

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

◆ clipboardLowOutput

void CoinControlDialog::clipboardLowOutput ( )
privateslot

Definition at line 399 of file coincontroldialog.cpp.

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

◆ clipboardQuantity

void CoinControlDialog::clipboardQuantity ( )
privateslot

Definition at line 364 of file coincontroldialog.cpp.

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

◆ copyAddress

void CoinControlDialog::copyAddress ( )
privateslot

Definition at line 321 of file coincontroldialog.cpp.

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

◆ copyAmount

void CoinControlDialog::copyAmount ( )
privateslot

Definition at line 306 of file coincontroldialog.cpp.

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

◆ copyLabel

void CoinControlDialog::copyLabel ( )
privateslot

Definition at line 312 of file coincontroldialog.cpp.

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

◆ copyTransactionHash

void CoinControlDialog::copyTransactionHash ( )
privateslot

Definition at line 330 of file coincontroldialog.cpp.

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

◆ getTotals()

TotalAmounts CoinControlDialog::getTotals ( ) const
private

Definition at line 500 of file coincontroldialog.cpp.

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

◆ hasModel()

bool CoinControlDialog::hasModel ( )
inline

Definition at line 68 of file coincontroldialog.h.

Here is the caller graph for this function:

◆ headerSectionClicked

void CoinControlDialog::headerSectionClicked ( int  logicalIndex)
privateslot

Definition at line 422 of file coincontroldialog.cpp.

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

◆ inform()

void CoinControlDialog::inform ( const QString &  text)
private

Definition at line 839 of file coincontroldialog.cpp.

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

◆ loadAvailableCoin()

void CoinControlDialog::loadAvailableCoin ( bool  treeMode,
CCoinControlWidgetItem itemWalletAddress,
QFlags< Qt::ItemFlag >  flgCheckbox,
QFlags< Qt::ItemFlag >  flgTristate,
int  nDisplayUnit,
const QString &  sWalletAddress,
const Optional< QString > &  stakerAddress,
const QString &  sWalletLabel,
const uint256 txhash,
const uint32_t  outIndex,
const CAmount  nValue,
const int64_t  nTime,
const int  nDepth,
const bool  isChange 
)
private

Definition at line 659 of file coincontroldialog.cpp.

Here is the call graph for this function:

◆ lockCoin

void CoinControlDialog::lockCoin ( )
privateslot

Definition at line 336 of file coincontroldialog.cpp.

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

◆ radioListMode

void CoinControlDialog::radioListMode ( bool  checked)
privateslot

Definition at line 446 of file coincontroldialog.cpp.

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

◆ radioTreeMode

void CoinControlDialog::radioTreeMode ( bool  checked)
privateslot

Definition at line 439 of file coincontroldialog.cpp.

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

◆ refreshDialog()

void CoinControlDialog::refreshDialog ( )

Definition at line 832 of file coincontroldialog.cpp.

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

◆ setModel()

void CoinControlDialog::setModel ( WalletModel model)

Definition at line 203 of file coincontroldialog.cpp.

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

◆ setSelectionType()

void CoinControlDialog::setSelectionType ( bool  isTransparent)
inline

Definition at line 67 of file coincontroldialog.h.

Here is the caller graph for this function:

◆ showMenu

void CoinControlDialog::showMenu ( const QPoint &  point)
privateslot

Definition at line 278 of file coincontroldialog.cpp.

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

◆ sortView()

void CoinControlDialog::sortView ( int  column,
Qt::SortOrder  order 
)
private

Definition at line 413 of file coincontroldialog.cpp.

Here is the caller graph for this function:

◆ toggleCoinLock()

void CoinControlDialog::toggleCoinLock ( )
private

Definition at line 251 of file coincontroldialog.cpp.

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

◆ toggleItemLock()

void CoinControlDialog::toggleItemLock ( QTreeWidgetItem *  item)
private

Definition at line 231 of file coincontroldialog.cpp.

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

◆ unlockCoin

void CoinControlDialog::unlockCoin ( )
privateslot

Definition at line 349 of file coincontroldialog.cpp.

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

◆ updateLabelLocked

void CoinControlDialog::updateLabelLocked ( )
privateslot

Definition at line 477 of file coincontroldialog.cpp.

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

◆ updateLabels()

void CoinControlDialog::updateLabels ( )

Definition at line 585 of file coincontroldialog.cpp.

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

◆ updatePushButtonSelectAll()

void CoinControlDialog::updatePushButtonSelectAll ( bool  checked)
private

Definition at line 857 of file coincontroldialog.cpp.

Here is the caller graph for this function:

◆ updateView()

void CoinControlDialog::updateView ( )

Definition at line 740 of file coincontroldialog.cpp.

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

◆ viewItemChanged

void CoinControlDialog::viewItemChanged ( QTreeWidgetItem *  item,
int  column 
)
privateslot

Definition at line 453 of file coincontroldialog.cpp.

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

Friends And Related Function Documentation

◆ CCoinControlWidgetItem

friend class CCoinControlWidgetItem
friend

Definition at line 129 of file coincontroldialog.h.

Member Data Documentation

◆ coinControl

CCoinControl* CoinControlDialog::coinControl {nullptr}

Definition at line 70 of file coincontroldialog.h.

◆ colCheckBoxWidth_treeMode

int CoinControlDialog::colCheckBoxWidth_treeMode {110}
private

Definition at line 79 of file coincontroldialog.h.

◆ contextMenu

QMenu* CoinControlDialog::contextMenu {nullptr}
private

Definition at line 87 of file coincontroldialog.h.

◆ contextMenuItem

QTreeWidgetItem* CoinControlDialog::contextMenuItem {nullptr}
private

Definition at line 88 of file coincontroldialog.h.

◆ copyTransactionHashAction

QAction* CoinControlDialog::copyTransactionHashAction {nullptr}
private

Definition at line 89 of file coincontroldialog.h.

◆ forDelegation

bool CoinControlDialog::forDelegation
private

Definition at line 78 of file coincontroldialog.h.

◆ fSelectTransparent

bool CoinControlDialog::fSelectTransparent {true}
private

Definition at line 85 of file coincontroldialog.h.

◆ lockAction

QAction* CoinControlDialog::lockAction {nullptr}
private

Definition at line 90 of file coincontroldialog.h.

◆ model

WalletModel* CoinControlDialog::model {nullptr}
private

Definition at line 75 of file coincontroldialog.h.

◆ nSelectableInputs

unsigned int CoinControlDialog::nSelectableInputs {0}
private

Definition at line 82 of file coincontroldialog.h.

◆ payAmounts

std::vector<std::pair<CAmount, bool> > CoinControlDialog::payAmounts {}
private

Definition at line 81 of file coincontroldialog.h.

◆ snackBar

SnackBar* CoinControlDialog::snackBar {nullptr}
private

Definition at line 74 of file coincontroldialog.h.

◆ sortColumn

int CoinControlDialog::sortColumn
private

Definition at line 76 of file coincontroldialog.h.

◆ sortOrder

Qt::SortOrder CoinControlDialog::sortOrder
private

Definition at line 77 of file coincontroldialog.h.

◆ ui

Ui::CoinControlDialog* CoinControlDialog::ui {nullptr}
private

Definition at line 73 of file coincontroldialog.h.

◆ unlockAction

QAction* CoinControlDialog::unlockAction {nullptr}
private

Definition at line 91 of file coincontroldialog.h.


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