#include <knewaccountdlg.h>
Public Member Functions | |
KNewAccountDlg (const MyMoneyAccount &account, bool isEditing, bool categoryEditor, QWidget *parent=0, const char *name=0, const QString &title=QString::null) | |
const MyMoneyAccount & | account (void) |
const MyMoneyAccount & | parentAccount (void) |
void | setOpeningBalance (const MyMoneyMoney &balance) |
const MyMoneyMoney | openingBalance (void) const |
void | setOpeningBalanceShown (bool shown) |
void | addTab (QWidget *w, const QString &name) |
Protected Slots | |
void | okClicked () |
void | slotSelectionChanged (QListViewItem *item) |
void | slotAccountTypeChanged (const QString &type) |
void | slotVatChanged (bool) |
void | slotVatAssignmentChanged (bool) |
void | slotNewClicked (void) |
void | slotCheckFinished (void) |
void | slotLoadInstitutions (const QString &) |
void | slotAdjustMinBalanceAbsoluteEdit (const QString &) |
void | slotAdjustMinBalanceEarlyEdit (const QString &) |
void | slotAdjustMaxCreditAbsoluteEdit (const QString &) |
void | slotAdjustMaxCreditEarlyEdit (const QString &) |
Protected Member Functions | |
void | resizeEvent (QResizeEvent *e) |
void | displayOnlineBankingStatus (void) |
void | adjustEditWidgets (kMyMoneyEdit *dst, kMyMoneyEdit *src, char mode, int corr) |
Private Slots | |
void | timerDone (void) |
Private Member Functions | |
void | initParentWidget (QString parentId, const QString &accountId) |
void | showSubAccounts (QStringList accounts, KMyMoneyAccountTreeBaseItem *parentItem, const QString &parentId, const QString &accountId) |
void | loadVatAccounts (void) |
void | storeKVP (const QString &key, kMyMoneyEdit *widget) |
void | storeKVP (const QString &key, KLineEdit *widget) |
void | storeKVP (const QString &key, const QString &text, const QString &value) |
void | loadKVP (const QString &key, kMyMoneyEdit *widget) |
void | loadKVP (const QString &key, KLineEdit *widget) |
Private Attributes | |
MyMoneyAccount | m_account |
MyMoneyAccount | m_parentAccount |
bool | m_bSelectedParentAccount |
KMyMoneyAccountTreeBaseItem * | m_parentItem |
KMyMoneyAccountTreeBaseItem * | m_accountItem |
bool | m_categoryEditor |
bool | m_isEditing |
int | m_idPropFutureValue |
int | m_idPropLastValue |
int | m_idPropMaxCredit |
int | m_idPropMinBalance |
KNewAccountDlg::KNewAccountDlg | ( | const MyMoneyAccount & | account, | |
bool | isEditing, | |||
bool | categoryEditor, | |||
QWidget * | parent = 0 , |
|||
const char * | name = 0 , |
|||
const QString & | title = QString::null | |||
) |
This is the constructor of the dialog. The parameters define the environment in which the dialog will be used. Depending on the environment, certain rules apply and will be handled by the dialog.
account | The original data to be used to create the account. In case of isEditing is false, the account id, the parent account id and the list of all child accounts will be cleared. | |
isEditing | If false , rules for new account creation apply. If true , rules for account editing apply | |
categoryEditor | If false , rules for asset/liability accounts apply. If true , rules for income/expense account apply. | |
parent | Pointer to parent object (passed to QDialog). Default is 0. | |
name | Name of the object (passed to QDialog). Default is 0. | |
title | Caption of the object (passed to QDialog). Default is empty string. |
void KNewAccountDlg::initParentWidget | ( | QString | parentId, | |
const QString & | accountId | |||
) | [private] |
void KNewAccountDlg::showSubAccounts | ( | QStringList | accounts, | |
KMyMoneyAccountTreeBaseItem * | parentItem, | |||
const QString & | parentId, | |||
const QString & | accountId | |||
) | [private] |
void KNewAccountDlg::loadVatAccounts | ( | void | ) | [private] |
void KNewAccountDlg::storeKVP | ( | const QString & | key, | |
kMyMoneyEdit * | widget | |||
) | [private] |
void KNewAccountDlg::storeKVP | ( | const QString & | key, | |
KLineEdit * | widget | |||
) | [private] |
void KNewAccountDlg::storeKVP | ( | const QString & | key, | |
const QString & | text, | |||
const QString & | value | |||
) | [private] |
void KNewAccountDlg::loadKVP | ( | const QString & | key, | |
kMyMoneyEdit * | widget | |||
) | [private] |
void KNewAccountDlg::loadKVP | ( | const QString & | key, | |
KLineEdit * | widget | |||
) | [private] |
const MyMoneyAccount& KNewAccountDlg::account | ( | void | ) |
This method returns the edited account object.
const MyMoneyAccount& KNewAccountDlg::parentAccount | ( | void | ) |
This method returns the parent account of the edited account object.
void KNewAccountDlg::setOpeningBalance | ( | const MyMoneyMoney & | balance | ) |
const MyMoneyMoney KNewAccountDlg::openingBalance | ( | void | ) | const [inline] |
void KNewAccountDlg::setOpeningBalanceShown | ( | bool | shown | ) |
void KNewAccountDlg::addTab | ( | QWidget * | w, | |
const QString & | name | |||
) |
This method adds an additional tab pointed to with w to the tab widget. This tab is usually defined by a plugin (eg. online banking). If w is zero, this is a NOP. name is used as the text to be placed on the tab.
void KNewAccountDlg::resizeEvent | ( | QResizeEvent * | e | ) | [protected] |
void KNewAccountDlg::displayOnlineBankingStatus | ( | void | ) | [protected] |
void KNewAccountDlg::adjustEditWidgets | ( | kMyMoneyEdit * | dst, | |
kMyMoneyEdit * | src, | |||
char | mode, | |||
int | corr | |||
) | [protected] |
void KNewAccountDlg::okClicked | ( | ) | [protected, slot] |
void KNewAccountDlg::slotSelectionChanged | ( | QListViewItem * | item | ) | [protected, slot] |
void KNewAccountDlg::slotAccountTypeChanged | ( | const QString & | type | ) | [protected, slot] |
void KNewAccountDlg::slotVatChanged | ( | bool | ) | [protected, slot] |
void KNewAccountDlg::slotVatAssignmentChanged | ( | bool | ) | [protected, slot] |
void KNewAccountDlg::slotNewClicked | ( | void | ) | [protected, slot] |
void KNewAccountDlg::slotCheckFinished | ( | void | ) | [protected, slot] |
void KNewAccountDlg::slotLoadInstitutions | ( | const QString & | ) | [protected, slot] |
void KNewAccountDlg::slotAdjustMinBalanceAbsoluteEdit | ( | const QString & | ) | [protected, slot] |
void KNewAccountDlg::slotAdjustMinBalanceEarlyEdit | ( | const QString & | ) | [protected, slot] |
void KNewAccountDlg::slotAdjustMaxCreditAbsoluteEdit | ( | const QString & | ) | [protected, slot] |
void KNewAccountDlg::slotAdjustMaxCreditEarlyEdit | ( | const QString & | ) | [protected, slot] |
void KNewAccountDlg::timerDone | ( | void | ) | [private, slot] |
MyMoneyAccount KNewAccountDlg::m_account [private] |
bool KNewAccountDlg::m_bSelectedParentAccount [private] |
bool KNewAccountDlg::m_categoryEditor [private] |
bool KNewAccountDlg::m_isEditing [private] |
int KNewAccountDlg::m_idPropFutureValue [private] |
int KNewAccountDlg::m_idPropLastValue [private] |
int KNewAccountDlg::m_idPropMaxCredit [private] |
int KNewAccountDlg::m_idPropMinBalance [private] |