KMyMoneyRegister::InvestTransaction Class Reference

#include <transaction.h>

Inheritance diagram for KMyMoneyRegister::InvestTransaction:

KMyMoneyRegister::Transaction KMyMoneyRegister::RegisterItem KMyMoneyRegister::InvestTransactionDownloaded
Collaboration diagram for KMyMoneyRegister::InvestTransaction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 InvestTransaction (Register *parent, const MyMoneyTransaction &transaction, const MyMoneySplit &split, int uniqueId)
virtual ~InvestTransaction ()
virtual const QString & sortSecurity (void) const
virtual const char * className (void)
bool formCellText (QString &txt, int &align, int row, int col, QPainter *painter=0)
void registerCellText (QString &txt, int &align, int row, int col, QPainter *painter=0)
int registerColWidth (int col, const QFontMetrics &cellFontMetrics)
void setupForm (KMyMoneyTransactionForm::TransactionForm *form)
void loadTab (KMyMoneyTransactionForm::TransactionForm *)
int numColsForm (void) const
void arrangeWidgetsInForm (QMap< QString, QWidget * > &editWidgets)
void arrangeWidgetsInRegister (QMap< QString, QWidget * > &editWidgets)
void tabOrderInForm (QWidgetList &tabOrderWidgets) const
void tabOrderInRegister (QWidgetList &tabOrderWidgets) const
KMyMoneyRegister::Action actionType (void) const
int numRowsRegister (bool expanded) const
int numRowsRegister (void) const
TransactionEditorcreateEditor (TransactionEditorContainer *regForm, const KMyMoneyRegister::SelectedTransactions &list, const QDate &lastPostDate)
void splits (MyMoneySplit &assetAccountSplit, QValueList< MyMoneySplit > &interestSplits, QValueList< MyMoneySplit > &feeSplits) const

Protected Member Functions

bool haveShares (void) const
bool haveFees (void) const
bool haveInterest (void) const
bool havePrice (void) const
bool haveAmount (void) const
bool haveAssetAccount (void) const
bool haveSplitRatio (void) const
void activity (QString &txt, MyMoneySplit::investTransactionTypeE type) const

Private Attributes

QValueList< MyMoneySplitm_feeSplits
QValueList< MyMoneySplitm_interestSplits
MyMoneySplit m_assetAccountSplit
MyMoneySecurity m_security
MyMoneySecurity m_currency
MyMoneySplit::investTransactionTypeE m_transactionType
QString m_feeCategory
QString m_interestCategory
MyMoneyMoney m_feeAmount
MyMoneyMoney m_interestAmount
MyMoneyMoney m_totalAmount


Constructor & Destructor Documentation

KMyMoneyRegister::InvestTransaction::InvestTransaction ( Register parent,
const MyMoneyTransaction transaction,
const MyMoneySplit split,
int  uniqueId 
)

virtual KMyMoneyRegister::InvestTransaction::~InvestTransaction (  )  [inline, virtual]


Member Function Documentation

virtual const QString& KMyMoneyRegister::InvestTransaction::sortSecurity ( void   )  const [inline, virtual]

Reimplemented from KMyMoneyRegister::RegisterItem.

virtual const char* KMyMoneyRegister::InvestTransaction::className ( void   )  [inline, virtual]

bool KMyMoneyRegister::InvestTransaction::formCellText ( QString &  txt,
int &  align,
int  row,
int  col,
QPainter *  painter = 0 
) [virtual]

Reimplemented from KMyMoneyRegister::Transaction.

void KMyMoneyRegister::InvestTransaction::registerCellText ( QString &  txt,
int &  align,
int  row,
int  col,
QPainter *  painter = 0 
) [virtual]

Reimplemented from KMyMoneyRegister::Transaction.

int KMyMoneyRegister::InvestTransaction::registerColWidth ( int  col,
const QFontMetrics &  cellFontMetrics 
) [virtual]

Reimplemented from KMyMoneyRegister::Transaction.

void KMyMoneyRegister::InvestTransaction::setupForm ( KMyMoneyTransactionForm::TransactionForm form  )  [virtual]

Reimplemented from KMyMoneyRegister::Transaction.

void KMyMoneyRegister::InvestTransaction::loadTab ( KMyMoneyTransactionForm::TransactionForm  )  [inline, virtual]

provide NOP here as the investment transaction form does not supply a tab

Implements KMyMoneyRegister::Transaction.

int KMyMoneyRegister::InvestTransaction::numColsForm ( void   )  const [inline, virtual]

Reimplemented from KMyMoneyRegister::RegisterItem.

void KMyMoneyRegister::InvestTransaction::arrangeWidgetsInForm ( QMap< QString, QWidget * > &  editWidgets  )  [virtual]

void KMyMoneyRegister::InvestTransaction::arrangeWidgetsInRegister ( QMap< QString, QWidget * > &  editWidgets  )  [virtual]

void KMyMoneyRegister::InvestTransaction::tabOrderInForm ( QWidgetList &  tabOrderWidgets  )  const [virtual]

void KMyMoneyRegister::InvestTransaction::tabOrderInRegister ( QWidgetList &  tabOrderWidgets  )  const [virtual]

KMyMoneyRegister::Action KMyMoneyRegister::InvestTransaction::actionType ( void   )  const [inline, virtual]

int KMyMoneyRegister::InvestTransaction::numRowsRegister ( bool  expanded  )  const [virtual]

This method returns the number of register rows required for a certain item in expanded (expanded equals true) or collapsed (expanded is false) mode.

Parameters:
expanded returns number of maximum rows required for this item to display all information (used for ledger lens and register edit mode) or the minimum number of rows required.
Returns:
number of rows required for mode selected by expanded

Implements KMyMoneyRegister::Transaction.

int KMyMoneyRegister::InvestTransaction::numRowsRegister ( void   )  const [inline, virtual]

Provided for internal reasons. No API change. See RegisterItem::numRowsRegister()

Implements KMyMoneyRegister::Transaction.

Reimplemented in KMyMoneyRegister::InvestTransactionDownloaded.

TransactionEditor* KMyMoneyRegister::InvestTransaction::createEditor ( TransactionEditorContainer regForm,
const KMyMoneyRegister::SelectedTransactions list,
const QDate &  lastPostDate 
) [virtual]

This method creates an editor for the transaction

Implements KMyMoneyRegister::Transaction.

void KMyMoneyRegister::InvestTransaction::splits ( MyMoneySplit assetAccountSplit,
QValueList< MyMoneySplit > &  interestSplits,
QValueList< MyMoneySplit > &  feeSplits 
) const

bool KMyMoneyRegister::InvestTransaction::haveShares ( void   )  const [protected]

bool KMyMoneyRegister::InvestTransaction::haveFees ( void   )  const [protected]

bool KMyMoneyRegister::InvestTransaction::haveInterest ( void   )  const [protected]

bool KMyMoneyRegister::InvestTransaction::havePrice ( void   )  const [protected]

bool KMyMoneyRegister::InvestTransaction::haveAmount ( void   )  const [protected]

bool KMyMoneyRegister::InvestTransaction::haveAssetAccount ( void   )  const [protected]

bool KMyMoneyRegister::InvestTransaction::haveSplitRatio ( void   )  const [protected]

void KMyMoneyRegister::InvestTransaction::activity ( QString &  txt,
MyMoneySplit::investTransactionTypeE  type 
) const [protected]

Returns textual representation of the activity identified by type.

Parameters:
txt reference to QString where to store the result
type activity represented as investTransactionTypeE


Member Data Documentation


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

Generated on Wed Jan 26 13:11:06 2011 for KMyMoney by  doxygen 1.5.6