NewAccountWizard::LoanDetailsPage Class Reference

#include <knewaccountwizard_p.h>

Inheritance diagram for NewAccountWizard::LoanDetailsPage:

KLoanDetailsPageDecl WizardPage< T > QWidget KMyMoneyWizardPage
Collaboration diagram for NewAccountWizard::LoanDetailsPage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LoanDetailsPage (Wizard *parent, const char *name=0)
void enterPage (void)
KMyMoneyWizardPagenextPage (void) const
virtual bool isComplete (void) const
QWidgetinitialFocusWidget (void) const
int term (void) const

Private Slots

void slotValuesChanged (void)
void slotCalculate (void)

Private Member Functions

QString updateTermWidgets (const long double term)

Private Attributes

bool m_needCalculate


Constructor & Destructor Documentation

NewAccountWizard::LoanDetailsPage::LoanDetailsPage ( Wizard parent,
const char *  name = 0 
)


Member Function Documentation

void NewAccountWizard::LoanDetailsPage::enterPage ( void   )  [virtual]

This method is called by the wizard when the page is entered from the previous page. The default implementation does nothing.

Reimplemented from KMyMoneyWizardPage.

KMyMoneyWizardPage* NewAccountWizard::LoanDetailsPage::nextPage ( void   )  const [virtual]

This method returns a pointer to the next page that should be shown when the user presses the 'Next' button.

Returns:
pointer to next wizard page

Reimplemented from KMyMoneyWizardPage.

virtual bool NewAccountWizard::LoanDetailsPage::isComplete ( void   )  const [virtual]

This returns, if all necessary data for this page has been filled. It is used to enabled the 'Next' or 'Finish' button. The button is only enabled, if this method returns true, which is the default implementation.

Return values:
false more data required from the user before we can proceed
true all data available, we allow to switch to the next page

Reimplemented from KMyMoneyWizardPage.

QWidget* NewAccountWizard::LoanDetailsPage::initialFocusWidget ( void   )  const [inline, virtual]

This method returns a pointer to the widget which should receive the focus when the page is opened.

Returns:
pointer to widget or 0 if none is to be selected The default implementation returns 0

Reimplemented from KMyMoneyWizardPage.

int NewAccountWizard::LoanDetailsPage::term ( void   )  const

This method returns the number of payments depending on the settings of m_termAmount and m_termUnit widgets

QString NewAccountWizard::LoanDetailsPage::updateTermWidgets ( const long double  term  )  [private]

This method is used to update the term widgets according to the length of the given term. The term is also converted into a string and returned.

void NewAccountWizard::LoanDetailsPage::slotValuesChanged ( void   )  [private, slot]

void NewAccountWizard::LoanDetailsPage::slotCalculate ( void   )  [private, slot]


Member Data Documentation


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

Generated on Wed Jan 26 13:11:22 2011 for KMyMoney by  doxygen 1.5.6