#include <knewaccountwizard_p.h>
Public Member Functions | |
LoanDetailsPage (Wizard *parent, const char *name=0) | |
void | enterPage (void) |
KMyMoneyWizardPage * | nextPage (void) const |
virtual bool | isComplete (void) const |
QWidget * | initialFocusWidget (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 |
NewAccountWizard::LoanDetailsPage::LoanDetailsPage | ( | Wizard * | parent, | |
const char * | name = 0 | |||
) |
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.
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.
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.
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] |
bool NewAccountWizard::LoanDetailsPage::m_needCalculate [private] |