#include <kinvestmentview.h>
Public Slots | |
void | slotLoadView (void) |
bool | slotSelectAccount (const QString &accountId, const QString &transactionId=QString(), const bool reconciliation=false) |
bool | slotSelectAccount (const MyMoneyObject &acc) |
void | show (void) |
Signals | |
void | accountSelected (const QString &accountId, const QString &transactionId) |
void | accountSelected (const MyMoneyObject &) |
void | investmentRightMouseClick (void) |
Public Member Functions | |
KInvestmentView (QWidget *parent=0, const char *name=0) | |
~KInvestmentView () | |
void | reconcileAccount (void) |
Protected Slots | |
void | slotListContextMenu (KListView *lv, QListViewItem *item, const QPoint &point) |
void | slotSelectionChanged (QListViewItem *item) |
Protected Member Functions | |
void | loadAccounts (void) |
void | clear (void) |
void | loadView (void) |
Private Attributes | |
Private *const | d |
KInvestmentView::KInvestmentView | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
KInvestmentView::~KInvestmentView | ( | ) |
void KInvestmentView::reconcileAccount | ( | void | ) |
Start reconciliation for the account in the current view
void KInvestmentView::slotLoadView | ( | void | ) | [slot] |
This slot is used to reload all data from the MyMoneyFile engine. All existing data in the view will be discarded. Call this e.g. if a new file has been loaded.
bool KInvestmentView::slotSelectAccount | ( | const QString & | accountId, | |
const QString & | transactionId = QString() , |
|||
const bool | reconciliation = false | |||
) | [slot] |
This slot is used to select the correct ledger view type for the account specified by id
. If transactionId
is not empty, then the respective transaction will be selected.
accountId | Internal id used for the account to show | |
transactionId | Internal id used for the transaction to select | |
reconciliation | if true, the account will be selected in reconciliation mode. If false, it will be selected in regular ledger mode. |
true | selection of account referenced by id succeeded | |
false | selection of account failed |
bool KInvestmentView::slotSelectAccount | ( | const MyMoneyObject & | acc | ) | [slot] |
This method is provided for convenience and acts as the method above.
void KInvestmentView::show | ( | void | ) | [slot] |
void KInvestmentView::loadAccounts | ( | void | ) | [protected] |
This method reloads the account selection combo box of the view with all asset and liability accounts from the engine. If the account id of the current account held in m_accountId
is empty or if the referenced account does not exist in the engine, the first account found in the list will be made the current account.
void KInvestmentView::clear | ( | void | ) | [protected] |
clear the view
void KInvestmentView::loadView | ( | void | ) | [protected] |
void KInvestmentView::slotListContextMenu | ( | KListView * | lv, | |
QListViewItem * | item, | |||
const QPoint & | point | |||
) | [protected, slot] |
This slot receives the signal from the listview lv
control that the context menu was requested for item
at point
.
void KInvestmentView::slotSelectionChanged | ( | QListViewItem * | item | ) | [protected, slot] |
void KInvestmentView::accountSelected | ( | const QString & | accountId, | |
const QString & | transactionId | |||
) | [signal] |
This signal is emitted, if an account has been selected which cannot handled by this view.
void KInvestmentView::accountSelected | ( | const MyMoneyObject & | ) | [signal] |
void KInvestmentView::investmentRightMouseClick | ( | void | ) | [signal] |
Private* const KInvestmentView::d [private] |