KMyMoneyRegister::StdTransaction Class Reference

#include <transaction.h>

Inheritance diagram for KMyMoneyRegister::StdTransaction:

KMyMoneyRegister::Transaction KMyMoneyRegister::RegisterItem KMyMoneyRegister::StdTransactionDownloaded KMyMoneyRegister::StdTransactionMatched KMyMoneyRegister::StdTransactionScheduled
Collaboration diagram for KMyMoneyRegister::StdTransaction:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 StdTransaction (Register *parent, const MyMoneyTransaction &transaction, const MyMoneySplit &split, int uniqueId)
virtual ~StdTransaction ()
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 *form)
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)
virtual bool showRowInForm (int row) const
virtual void setShowRowInForm (int row, bool show)

Protected Member Functions

void setupFormHeader (const QString &id)

Private Attributes

bool m_showAccountRow


Constructor & Destructor Documentation

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

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


Member Function Documentation

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

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

Reimplemented from KMyMoneyRegister::Transaction.

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

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

Reimplemented from KMyMoneyRegister::Transaction.

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

Reimplemented from KMyMoneyRegister::Transaction.

void KMyMoneyRegister::StdTransaction::loadTab ( KMyMoneyTransactionForm::TransactionForm form  )  [virtual]

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

Reimplemented from KMyMoneyRegister::RegisterItem.

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

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

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

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

KMyMoneyRegister::Action KMyMoneyRegister::StdTransaction::actionType ( void   )  const [virtual]

int KMyMoneyRegister::StdTransaction::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.

Reimplemented in KMyMoneyRegister::StdTransactionMatched.

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

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

Implements KMyMoneyRegister::Transaction.

Reimplemented in KMyMoneyRegister::StdTransactionDownloaded.

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

This method creates an editor for the transaction

Implements KMyMoneyRegister::Transaction.

virtual bool KMyMoneyRegister::StdTransaction::showRowInForm ( int  row  )  const [virtual]

Return information if row should be shown (true ) or hidden (false ) in the form. Default is true.

Reimplemented from KMyMoneyRegister::Transaction.

virtual void KMyMoneyRegister::StdTransaction::setShowRowInForm ( int  row,
bool  show 
) [virtual]

Control visibility of row in the transaction form. Only row 0 has an effect, others return true.

Reimplemented from KMyMoneyRegister::Transaction.

void KMyMoneyRegister::StdTransaction::setupFormHeader ( const QString &  id  )  [protected]


Member Data Documentation


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

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