KCategoriesView Class Reference
This class contains the implementation of the categories view.
More...
#include <kcategoriesview.h>
Inheritance diagram for KCategoriesView:
Collaboration diagram for KCategoriesView:
[legend]List of all members.
Detailed Description
- Author:
- Michael Edwardes, Thomas Baumgart
While named "categories view", this view actually displays all accounts that are children of the global "Income" and "Expense" accounts. Even though categories are internally just accounts as well, the distinction between categories and accounts in the user interface is done for better usability and clarity.
The main functionality in the categories view is actually implemented in the KMyMoneyAccountTree. Signals from user actions are connect to other signals/slots in KCategoriesView and relayed to KMyMoneyView. A typical example is the selectObject() signal that eventually results in enabling/disabling the user actions for the categories view.
For the categories view three user actions are important (all created in kmymoney2.cpp): category_new, category_edit and category_delete. They are accessible from either the main menu or the context menu.
Constructor & Destructor Documentation
| KCategoriesView::KCategoriesView |
( |
QWidget * |
parent = 0, |
|
|
const char * |
name = 0 |
|
) |
|
|
Member Function Documentation
|
|
This method returns an icon according to the account type passed in the argument type.
- Parameters:
-
|
| void KCategoriesView::loadAccounts |
( |
void |
|
) |
[protected] |
|
| void KCategoriesView::openContextMenu |
( |
const MyMoneyObject & |
obj |
) |
[signal] |
|
| void KCategoriesView::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. |
| void KCategoriesView::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. |
|
|
This signal is emitted, when the user selected to reparent the account acc to be a subordinate account of parent.
- Parameters:
-
| acc | const reference to account to be reparented |
| parent | const reference to new parent account |
|
| void KCategoriesView::selectObject |
( |
const MyMoneyObject & |
|
) |
[signal] |
|
| void KCategoriesView::show |
( |
void |
|
) |
[slot] |
|
|
|
Override the base class behaviour to include all updates that happened in the meantime. |
| void KCategoriesView::slotLoadAccounts |
( |
void |
|
) |
[slot] |
|
| void KCategoriesView::slotUpdateProfit |
( |
void |
|
) |
[protected, slot] |
|
Member Data Documentation
|
|
Search widget for the list |
The documentation for this class was generated from the following file:
Generated on Sun Sep 7 04:04:04 2008 for KMyMoney by
1.4.1