KInstitutionsView Class Reference

#include <kinstitutionsview.h>

Inheritance diagram for KInstitutionsView:

KInstitutionsViewDecl QWidget
Collaboration diagram for KInstitutionsView:

Collaboration graph
[legend]

List of all members.

Public Slots

void slotLoadAccounts (void)
void show (void)
void polish (void)
void slotReconcileAccount (const MyMoneyAccount &acc, const QDate &reconciliationDate, const MyMoneyMoney &endingBalance)

Signals

void selectObject (const MyMoneyObject &)
void openContextMenu (const MyMoneyObject &obj)
void openObject (const MyMoneyObject &obj)
void reparent (const MyMoneyAccount &acc, const MyMoneyInstitution &institution)

Public Member Functions

 KInstitutionsView (QWidget *parent=0, const char *name=0)
virtual ~KInstitutionsView ()

Protected Slots

void slotUpdateNetWorth (void)

Protected Member Functions

void loadAccounts (void)
void loadSubAccounts (KMyMoneyAccountTreeItem *parent, const QString &institutionId)
void loadSubAccounts (KMyMoneyAccountTreeItem *parent)

Private Member Functions

const QPixmap accountImage (const MyMoneyAccount::accountTypeE type) const

Private Attributes

MyMoneyAccount m_reconciliationAccount
QMap< QString, MyMoneyAccountm_accountMap
QMap< QString, MyMoneySecuritym_securityMap
QMap< QString, unsigned long > m_transactionCountMap
bool m_needReload
 set if a view needs to be reloaded during show()


Detailed Description

Author:
Thomas Baumgart This class implements the institutions hierarchical 'view'.

Constructor & Destructor Documentation

KInstitutionsView::KInstitutionsView ( QWidget parent = 0,
const char *  name = 0 
)

virtual KInstitutionsView::~KInstitutionsView (  )  [virtual]


Member Function Documentation

void KInstitutionsView::slotLoadAccounts ( void   )  [slot]

void KInstitutionsView::show ( void   )  [slot]

Override the base class behaviour to include all updates that happened in the meantime.

void KInstitutionsView::polish ( void   )  [slot]

Override the base class behaviour to restore the layout. Do not do this in show() because show() itself may change the layout in undesired ways.

void KInstitutionsView::slotReconcileAccount ( const MyMoneyAccount acc,
const QDate &  reconciliationDate,
const MyMoneyMoney endingBalance 
) [slot]

void KInstitutionsView::loadAccounts ( void   )  [protected]

void KInstitutionsView::loadSubAccounts ( KMyMoneyAccountTreeItem parent,
const QString &  institutionId 
) [protected]

void KInstitutionsView::loadSubAccounts ( KMyMoneyAccountTreeItem parent  )  [protected]

void KInstitutionsView::slotUpdateNetWorth ( void   )  [protected, slot]

const QPixmap KInstitutionsView::accountImage ( const MyMoneyAccount::accountTypeE  type  )  const [private]

This method returns an icon according to the account type passed in the argument type.

Parameters:
type account type as defined in MyMoneyAccount::accountTypeE

void KInstitutionsView::selectObject ( const MyMoneyObject  )  [signal]

This signal serves as proxy for KMyMoneyAccountTree::selectObject()

void KInstitutionsView::openContextMenu ( const MyMoneyObject obj  )  [signal]

void KInstitutionsView::openObject ( const MyMoneyObject obj  )  [signal]

This signal will be emitted when the left mouse button is double clicked (actually the KDE executed setting is used) on an account or institution.

void KInstitutionsView::reparent ( const MyMoneyAccount acc,
const MyMoneyInstitution institution 
) [signal]

This signal is emitted, when the user selected to reparent the account acc to be a subordinate account of institution.

Parameters:
acc const reference to account to be reparented
institution const reference to new institution


Member Data Documentation

QMap<QString, unsigned long> KInstitutionsView::m_transactionCountMap [private]


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

Generated on Wed Jan 26 13:07:36 2011 for KMyMoney by  doxygen 1.5.6