Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
CoinControlDialog Class Reference

#include <coincontroldialog.h>

+ Inheritance diagram for CoinControlDialog:
+ Collaboration diagram for CoinControlDialog:

Public Member Functions

 CoinControlDialog (QWidget *parent=0)
 
 ~CoinControlDialog ()
 
void setModel (WalletModel *model)
 

Static Public Member Functions

static void updateLabels (WalletModel *, QDialog *)
 
static QString getPriorityLabel (double)
 

Static Public Attributes

static QList< qint64 > payAmounts
 
static CCoinControlcoinControl = new CCoinControl()
 

Private Types

enum  {
  COLUMN_CHECKBOX,
  COLUMN_AMOUNT,
  COLUMN_LABEL,
  COLUMN_ADDRESS,
  COLUMN_DATE,
  COLUMN_CONFIRMATIONS,
  COLUMN_PRIORITY,
  COLUMN_TXHASH,
  COLUMN_VOUT_INDEX,
  COLUMN_AMOUNT_INT64,
  COLUMN_PRIORITY_INT64,
  COLUMN_DATE_INT64
}
 

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 clipboardPriority ()
 
void clipboardLowOutput ()
 
void clipboardChange ()
 
void radioTreeMode (bool)
 
void radioListMode (bool)
 
void viewItemChanged (QTreeWidgetItem *, int)
 
void headerSectionClicked (int)
 
void buttonBoxClicked (QAbstractButton *)
 
void buttonSelectAllClicked ()
 
void updateLabelLocked ()
 

Private Member Functions

QString strPad (QString, int, QString)
 
void sortView (int, Qt::SortOrder)
 
void updateView ()
 
int getMappedColumn (int column, bool fVisibleColumn=true)
 

Private Attributes

Ui::CoinControlDialogui
 
WalletModelmodel
 
int sortColumn
 
Qt::SortOrder sortOrder
 
QMenu * contextMenu
 
QTreeWidgetItem * contextMenuItem
 
QAction * copyTransactionHashAction
 
QAction * lockAction
 
QAction * unlockAction
 

Detailed Description

Definition at line 23 of file coincontroldialog.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
COLUMN_CHECKBOX 
COLUMN_AMOUNT 
COLUMN_LABEL 
COLUMN_ADDRESS 
COLUMN_DATE 
COLUMN_CONFIRMATIONS 
COLUMN_PRIORITY 
COLUMN_TXHASH 
COLUMN_VOUT_INDEX 
COLUMN_AMOUNT_INT64 
COLUMN_PRIORITY_INT64 
COLUMN_DATE_INT64 

Definition at line 56 of file coincontroldialog.h.

Constructor & Destructor Documentation

CoinControlDialog::CoinControlDialog ( QWidget parent = 0)
explicit
CoinControlDialog::~CoinControlDialog ( )

Definition at line 133 of file coincontroldialog.cpp.

References ui.

Member Function Documentation

void CoinControlDialog::buttonBoxClicked ( QAbstractButton *  button)
privateslot

Definition at line 160 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::buttonBox, and ui.

Referenced by CoinControlDialog().

+ Here is the caller graph for this function:

void CoinControlDialog::buttonSelectAllClicked ( )
privateslot

Definition at line 167 of file coincontroldialog.cpp.

References coinControl, COLUMN_CHECKBOX, model, Ui_CoinControlDialog::treeWidget, ui, CCoinControl::UnSelectAll(), and updateLabels().

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::clipboardAfterFee ( )
privateslot

Definition at line 295 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelCoinControlAfterFee, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::clipboardAmount ( )
privateslot

Definition at line 283 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelCoinControlAmount, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::clipboardBytes ( )
privateslot

Definition at line 301 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelCoinControlBytes, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::clipboardChange ( )
privateslot

Definition at line 319 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelCoinControlChange, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::clipboardFee ( )
privateslot

Definition at line 289 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelCoinControlFee, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::clipboardLowOutput ( )
privateslot

Definition at line 313 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelCoinControlLowOutput, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::clipboardPriority ( )
privateslot

Definition at line 307 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelCoinControlPriority, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::clipboardQuantity ( )
privateslot

Definition at line 277 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelCoinControlQuantity, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::copyAddress ( )
privateslot

Definition at line 239 of file coincontroldialog.cpp.

References COLUMN_ADDRESS, contextMenuItem, Ui_CoinControlDialog::radioTreeMode, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::copyAmount ( )
privateslot

Definition at line 224 of file coincontroldialog.cpp.

References COLUMN_AMOUNT, contextMenuItem, and GUIUtil::setClipboard().

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::copyLabel ( )
privateslot

Definition at line 230 of file coincontroldialog.cpp.

References COLUMN_LABEL, contextMenuItem, Ui_CoinControlDialog::radioTreeMode, GUIUtil::setClipboard(), and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::copyTransactionHash ( )
privateslot

Definition at line 248 of file coincontroldialog.cpp.

References COLUMN_TXHASH, contextMenuItem, and GUIUtil::setClipboard().

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int CoinControlDialog::getMappedColumn ( int  column,
bool  fVisibleColumn = true 
)
inlineprivate

Definition at line 73 of file coincontroldialog.h.

References COLUMN_AMOUNT, COLUMN_AMOUNT_INT64, COLUMN_DATE, COLUMN_DATE_INT64, COLUMN_PRIORITY, and COLUMN_PRIORITY_INT64.

Referenced by headerSectionClicked(), and sortView().

+ Here is the caller graph for this function:

QString CoinControlDialog::getPriorityLabel ( double  dPriority)
static

Definition at line 403 of file coincontroldialog.cpp.

References AllowFree().

Referenced by updateLabels(), and updateView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::headerSectionClicked ( int  logicalIndex)
privateslot

Definition at line 334 of file coincontroldialog.cpp.

References COLUMN_ADDRESS, COLUMN_CHECKBOX, COLUMN_LABEL, getMappedColumn(), sortColumn, sortOrder, sortView(), Ui_CoinControlDialog::treeWidget, and ui.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::lockCoin ( )
privateslot

Definition at line 254 of file coincontroldialog.cpp.

References COLUMN_CHECKBOX, COLUMN_TXHASH, COLUMN_VOUT_INDEX, contextMenuItem, WalletModel::lockCoin(), model, and updateLabelLocked().

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::radioListMode ( bool  checked)
privateslot

Definition at line 364 of file coincontroldialog.cpp.

References model, and updateView().

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::radioTreeMode ( bool  checked)
privateslot

Definition at line 357 of file coincontroldialog.cpp.

References model, and updateView().

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::setModel ( WalletModel model)

Definition at line 138 of file coincontroldialog.cpp.

References WalletModel::getAddressTableModel(), WalletModel::getOptionsModel(), model, updateLabelLocked(), updateLabels(), and updateView().

Referenced by SendCoinsDialog::coinControlButtonClicked().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 189 of file coincontroldialog.cpp.

References COLUMN_TXHASH, COLUMN_VOUT_INDEX, contextMenu, contextMenuItem, copyTransactionHashAction, WalletModel::isLockedCoin(), lockAction, model, Ui_CoinControlDialog::treeWidget, ui, and unlockAction.

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 325 of file coincontroldialog.cpp.

References getMappedColumn(), sortColumn, sortOrder, Ui_CoinControlDialog::treeWidget, and ui.

Referenced by CoinControlDialog(), headerSectionClicked(), and updateView().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString CoinControlDialog::strPad ( QString  s,
int  nPadLength,
QString  sPadding 
)
private

Definition at line 151 of file coincontroldialog.cpp.

Referenced by updateView().

+ Here is the caller graph for this function:

void CoinControlDialog::unlockCoin ( )
privateslot

Definition at line 267 of file coincontroldialog.cpp.

References COLUMN_CHECKBOX, COLUMN_TXHASH, COLUMN_VOUT_INDEX, contextMenuItem, model, WalletModel::unlockCoin(), and updateLabelLocked().

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::updateLabelLocked ( )
privateslot

Definition at line 423 of file coincontroldialog.cpp.

References Ui_CoinControlDialog::labelLocked, WalletModel::listLockedCoins(), model, and ui.

Referenced by lockCoin(), setModel(), and unlockCoin().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CoinControlDialog::updateLabels ( WalletModel model,
QDialog dialog 
)
static
void CoinControlDialog::updateView ( )
private
void CoinControlDialog::viewItemChanged ( QTreeWidgetItem *  item,
int  column 
)
privateslot

Definition at line 371 of file coincontroldialog.cpp.

References coinControl, COLUMN_CHECKBOX, COLUMN_TXHASH, COLUMN_VOUT_INDEX, model, CCoinControl::Select(), Ui_CoinControlDialog::treeWidget, ui, CCoinControl::UnSelect(), and updateLabels().

Referenced by CoinControlDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

CCoinControl * CoinControlDialog::coinControl = new CCoinControl()
static
QMenu* CoinControlDialog::contextMenu
private

Definition at line 46 of file coincontroldialog.h.

Referenced by CoinControlDialog(), and showMenu().

QTreeWidgetItem* CoinControlDialog::contextMenuItem
private
QAction* CoinControlDialog::copyTransactionHashAction
private

Definition at line 48 of file coincontroldialog.h.

Referenced by CoinControlDialog(), and showMenu().

QAction* CoinControlDialog::lockAction
private

Definition at line 49 of file coincontroldialog.h.

Referenced by CoinControlDialog(), and showMenu().

WalletModel* CoinControlDialog::model
private
QList< qint64 > CoinControlDialog::payAmounts
static

Definition at line 37 of file coincontroldialog.h.

Referenced by SendCoinsDialog::coinControlUpdateLabels(), and updateLabels().

int CoinControlDialog::sortColumn
private

Definition at line 43 of file coincontroldialog.h.

Referenced by headerSectionClicked(), sortView(), and updateView().

Qt::SortOrder CoinControlDialog::sortOrder
private

Definition at line 44 of file coincontroldialog.h.

Referenced by headerSectionClicked(), sortView(), and updateView().

Ui::CoinControlDialog* CoinControlDialog::ui
private
QAction* CoinControlDialog::unlockAction
private

Definition at line 50 of file coincontroldialog.h.

Referenced by CoinControlDialog(), and showMenu().


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