KAccountsView Class Reference

#include <kaccountsview.h>

Inheritance diagram for KAccountsView:

KAccountsViewDecl QWidget
Collaboration diagram for KAccountsView:

Collaboration graph

List of all members.

Public Slots

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


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

Public Member Functions

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

Protected Types

enum  AccountsViewTab { ListView = 0, IconView, MaxViewTabs }

Protected Slots

void slotUpdateNetWorth (void)
void slotTabChanged (QWidget *)
void slotSelectIcon (QIconViewItem *item)
void slotOpenContext (QIconViewItem *item)
void slotOpenObject (QIconViewItem *item)
void slotExpandCollapse (void)

Protected Member Functions

void loadAccounts (AccountsViewTab tab)
void loadListView (void)
void loadIconView (void)
bool loadSubAccounts (KMyMoneyAccountTreeItem *parent, const QStringList &accountList)
KMyMoneyAccountIconItemselectedIcon (void) const
QPoint point (const QString &str) const
QString point (const QPoint &val) const

Private Attributes

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

Detailed Description

This class implements the accounts hierarchical and iconic 'view'.

Member Enumeration Documentation


Constructor & Destructor Documentation

KAccountsView::KAccountsView ( QWidget parent = 0,
const char *  name = 0 

virtual KAccountsView::~KAccountsView (  )  [virtual]

Member Function Documentation

void KAccountsView::slotLoadAccounts ( void   )  [slot]

void KAccountsView::show ( void   )  [slot]

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

void KAccountsView::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 KAccountsView::slotUpdateIconPos ( unsigned int  action  )  [slot]

update the account objects if their icon position has changed since the last time.

action must be KMyMoneyView::preSave, otherwise this slot is a NOP.

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

void KAccountsView::loadAccounts ( AccountsViewTab  tab  )  [protected]

This method loads the accounts for the respective tab.

tab which tab should be loaded

void KAccountsView::loadListView ( void   )  [protected]

void KAccountsView::loadIconView ( void   )  [protected]

bool KAccountsView::loadSubAccounts ( KMyMoneyAccountTreeItem parent,
const QStringList &  accountList 
) [protected]

KMyMoneyAccountIconItem* KAccountsView::selectedIcon ( void   )  const [protected]

This method returns a pointer to the currently selected account icon or 0 if no icon is selected.

QPoint KAccountsView::point ( const QString &  str  )  const [protected]

QString KAccountsView::point ( const QPoint &  val  )  const [protected]

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

void KAccountsView::slotTabChanged ( QWidget  )  [protected, slot]

void KAccountsView::slotSelectIcon ( QIconViewItem item  )  [protected, slot]

void KAccountsView::slotOpenContext ( QIconViewItem item  )  [protected, slot]

void KAccountsView::slotOpenObject ( QIconViewItem item  )  [protected, slot]

void KAccountsView::slotExpandCollapse ( void   )  [protected, slot]

void KAccountsView::selectObject ( const MyMoneyObject obj  )  [signal]

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

obj const reference to object

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

This signal serves as proxy for KMyMoneyAccountTree::openContextMenu(const MyMoneyObject&)

obj const reference to object

void KAccountsView::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 object.

obj const reference to object

void KAccountsView::reparent ( const MyMoneyAccount acc,
const MyMoneyAccount parent 
) [signal]

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

acc const reference to account to be reparented
parent const reference to new parent account

Member Data Documentation

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

Search widget for the list

bool KAccountsView::m_needReload[MaxViewTabs] [private]

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

Generated on Wed Jan 26 13:05:44 2011 for KMyMoney by  doxygen 1.5.6