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

#include <transactiontablemodel.h>

+ Inheritance diagram for MatrixModel:
+ Collaboration diagram for MatrixModel:

Public Member Functions

QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
 MatrixModel (CWallet *wallet, WalletModel *parent=0)
 
 MatrixModel (int numRows, int numColumns, uint *data, unsigned int propertyId)
 
 ~MatrixModel ()
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
void updateConfirmations (void)
 
void emitDataChanged (int idx)
 
int fillin (unsigned int propertyId)
 

Private Attributes

int m_numRows
 
int m_numColumns
 
uint * m_data
 
QStringList columns
 
msc_AddressTablePrivpriv
 
QList< QString > ql_lab
 
QList< QString > ql_addr
 
QList< QString > ql_avl
 
QList< QString > ql_res
 

Friends

class msc_AddressTablePriv
 
class msc_AddressTableEntryLessThan
 

Detailed Description

Definition at line 127 of file transactiontablemodel.h.

Constructor & Destructor Documentation

MatrixModel::MatrixModel ( CWallet wallet,
WalletModel parent = 0 
)

Definition at line 807 of file transactiontablemodel.cpp.

References msc_AddressTablePriv, priv, and msc_AddressTablePriv::refreshAddressTable().

+ Here is the call graph for this function:

MatrixModel::MatrixModel ( int  numRows,
int  numColumns,
uint *  data,
unsigned int  propertyId 
)

Definition at line 816 of file transactiontablemodel.cpp.

References columns, fillin(), m_numColumns, and m_numRows.

+ Here is the call graph for this function:

MatrixModel::~MatrixModel ( )

Definition at line 837 of file transactiontablemodel.cpp.

Member Function Documentation

int MatrixModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 848 of file transactiontablemodel.cpp.

References m_numColumns.

QVariant MatrixModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 782 of file transactiontablemodel.cpp.

References ql_addr, ql_avl, ql_lab, and ql_res.

void MatrixModel::emitDataChanged ( int  idx)

Definition at line 853 of file transactiontablemodel.cpp.

References columns.

Referenced by msc_AddressTablePriv::updateEntry().

+ Here is the caller graph for this function:

int MatrixModel::fillin ( unsigned int  propertyId)

Definition at line 879 of file transactiontablemodel.cpp.

References ACCEPT_RESERVE, cs_tally, FormatDivisibleMP(), mastercore::FormatIndivisibleMP(), getLabel(), getMPbalance(), mastercore::getPropertyName(), getUserAvailableMPbalance(), global_balance_money_maineco, global_balance_money_testeco, global_balance_reserved_maineco, global_balance_reserved_testeco, IsMyAddress(), mastercore::isPropertyDivisible(), LOCK, mastercore::mp_tally_map, ql_addr, ql_avl, ql_lab, ql_res, SELLOFFER_RESERVE, and mastercore::set_wallet_totals().

Referenced by MatrixModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QVariant MatrixModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const

Definition at line 858 of file transactiontablemodel.cpp.

References columns.

int MatrixModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 843 of file transactiontablemodel.cpp.

References m_numRows.

void MatrixModel::updateConfirmations ( void  )

Definition at line 801 of file transactiontablemodel.cpp.

Friends And Related Function Documentation

friend class msc_AddressTableEntryLessThan
friend

Definition at line 142 of file transactiontablemodel.h.

friend class msc_AddressTablePriv
friend

Definition at line 141 of file transactiontablemodel.h.

Referenced by MatrixModel().

Member Data Documentation

QStringList MatrixModel::columns
private

Definition at line 134 of file transactiontablemodel.h.

Referenced by emitDataChanged(), headerData(), and MatrixModel().

uint* MatrixModel::m_data
private

Definition at line 133 of file transactiontablemodel.h.

int MatrixModel::m_numColumns
private

Definition at line 132 of file transactiontablemodel.h.

Referenced by columnCount(), and MatrixModel().

int MatrixModel::m_numRows
private

Definition at line 131 of file transactiontablemodel.h.

Referenced by MatrixModel(), and rowCount().

msc_AddressTablePriv* MatrixModel::priv
private

Definition at line 135 of file transactiontablemodel.h.

Referenced by MatrixModel().

QList<QString> MatrixModel::ql_addr
private

Definition at line 137 of file transactiontablemodel.h.

Referenced by data(), and fillin().

QList<QString> MatrixModel::ql_avl
private

Definition at line 138 of file transactiontablemodel.h.

Referenced by data(), and fillin().

QList<QString> MatrixModel::ql_lab
private

Definition at line 136 of file transactiontablemodel.h.

Referenced by data(), and fillin().

QList<QString> MatrixModel::ql_res
private

Definition at line 139 of file transactiontablemodel.h.

Referenced by data(), and fillin().


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