KAccountSelectDlg Class Reference

#include <kaccountselectdlg.h>

Inheritance diagram for KAccountSelectDlg:

KAccountSelectDlgDecl QDialog
Collaboration diagram for KAccountSelectDlg:

Collaboration graph
[legend]

List of all members.

Public Slots

int exec ()

Public Member Functions

 KAccountSelectDlg (const KMyMoneyUtils::categoryTypeE type, const QString &purpose="General", QWidget *parent=0, const char *name=0)
 ~KAccountSelectDlg ()
void setDescription (const QString &msg)
void setHeader (const QString &msg)
void setAccount (const MyMoneyAccount &account, const QString &id)
const QString & selectedAccount (void) const
void setMode (const int mode)
void showAbortButton (const bool visible)
bool aborted (void) const

Protected Slots

void slotCreateAccount (void)
void slotCreateInstitution (void)
void abort (void)
void slotReloadWidget (void)

Private Attributes

QString m_purpose
MyMoneyAccount m_account
int m_mode
KMyMoneyUtils::categoryTypeE m_accountType
bool m_aborted


Detailed Description

Author:
Thomas Baumgart

Constructor & Destructor Documentation

KAccountSelectDlg::KAccountSelectDlg ( const KMyMoneyUtils::categoryTypeE  type,
const QString &  purpose = "General",
QWidget parent = 0,
const char *  name = 0 
)

KAccountSelectDlg::~KAccountSelectDlg (  ) 


Member Function Documentation

void KAccountSelectDlg::setDescription ( const QString &  msg  ) 

This method is used to setup the descriptive text in the account selection dialog box. The msg should contain a descriptive text about the purpose of the dialog and it's options.

Parameters:
msg const reference to QString object containing the text.

void KAccountSelectDlg::setHeader ( const QString &  msg  ) 

This method is used to setup the buddy text of the account selection box. the msg should contain a short text which is placed above the selection box with the account names.

Parameters:
msg const reference to QString object containing the text.

void KAccountSelectDlg::setAccount ( const MyMoneyAccount account,
const QString &  id 
)

This method is used to pass information to the account selection dialog which will be used as initial selection in the account selection combo box and during account creation.

Parameters:
account MyMoneyAccount filled with the relevant and available information
id account id to be used.

const QString& KAccountSelectDlg::selectedAccount ( void   )  const

This method returns the name of the selected account in the combo box.

Returns:
QString containing the id of the selected account

void KAccountSelectDlg::setMode ( const int  mode  ) 

This method is used to set the mode of the dialog. Two modes are supplied: a) select or create and b) create only. If mode is 0, select or create is selected, otherwise create only is selected.

Parameters:
mode selected mode

void KAccountSelectDlg::showAbortButton ( const bool  visible  ) 

This method allows to control the visibilty of the abort button in this dialog according to the the parameter visible.

Parameters:
visible true shows the abort button, false hides it.

bool KAccountSelectDlg::aborted ( void   )  const [inline]

This method is used to determine if the user pressed the 'Skip' or the 'Abort' button. The return value is valid only, if the exec() function of the dialog returns false.

Return values:
false Dialog was left using the 'Skip' button
true Dialog was left using the 'Abort' button

int KAccountSelectDlg::exec (  )  [slot]

Reimplemented from QDialog

void KAccountSelectDlg::slotCreateAccount ( void   )  [protected, slot]

This slot is used to fire up the new account wizard and preset it with the values found in m_account. If an account was created using the wizard, this will be the selected account.

void KAccountSelectDlg::slotCreateInstitution ( void   )  [protected, slot]

This slot is used to fire up the new institution dialog

void KAccountSelectDlg::abort ( void   )  [protected, slot]

This slot is used to react on the abort button

void KAccountSelectDlg::slotReloadWidget ( void   )  [protected, slot]

This is the slot which will be called if the engine data is changed.


Member Data Documentation

QString KAccountSelectDlg::m_purpose [private]


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

Generated on Wed Jan 26 13:05:41 2011 for KMyMoney by  doxygen 1.5.6