KMyMoneyAccountCombo Class Reference

#include <kmymoneyaccountcombo.h>

Inheritance diagram for KMyMoneyAccountCombo:

KComboBox
Collaboration diagram for KMyMoneyAccountCombo:

Collaboration graph
[legend]

List of all members.

Public Slots

void slotButtonPressed (void)
void slotSelected (const QString &)

Signals

void accountSelected (const QString &)
void pressed ()
void released ()
void clicked ()

Public Member Functions

 KMyMoneyAccountCombo (QWidget *parent=0, const char *name=0)
 ~KMyMoneyAccountCombo ()
int count (void) const
int loadList (const QString &baseName, const QValueList< QString > &accountIdList, const bool clear=true)
QStringList accountList (const QValueList< MyMoneyAccount::accountTypeE > &list=QValueList< MyMoneyAccount::accountTypeE >()) const
int loadList (KMyMoneyUtils::categoryTypeE typeMask)
int loadList (const QValueList< int > &list)
int loadList (MyMoneyAccount::accountTypeE type)
void setSelected (const QString &id)
void setSelected (const MyMoneyAccount &acc)
QStringList selectedAccounts (void) const
virtual void keyPressEvent (QKeyEvent *e)

Protected Member Functions

void mousePressEvent (QMouseEvent *e)
void mouseReleaseEvent (QMouseEvent *e)
void setText (const QString &txt)

Private Attributes

kMyMoneyAccountCompletionm_completion
bool m_mlbDown


Detailed Description

Author:
Thomas Baumgart

Constructor & Destructor Documentation

KMyMoneyAccountCombo::KMyMoneyAccountCombo ( QWidget parent = 0,
const char *  name = 0 
)

KMyMoneyAccountCombo::~KMyMoneyAccountCombo (  ) 


Member Function Documentation

int KMyMoneyAccountCombo::count ( void   )  const

Method returns how many items are in the account selector list.

int KMyMoneyAccountCombo::loadList ( const QString &  baseName,
const QValueList< QString > &  accountIdList,
const bool  clear = true 
)

This method loads the set of accounts into the widget as defined by the parameter accountIdList. accountIdList is a QValueList of account ids.

Parameters:
baseName QString which should be used as group text
accountIdList QValueList of QString account ids which should be loaded into the widget
clear if true (default) clears the widget before populating
Returns:
This method returns the number of accounts loaded into the list

QStringList KMyMoneyAccountCombo::accountList ( const QValueList< MyMoneyAccount::accountTypeE > &  list = QValueListMyMoneyAccount::accountTypeE >()  )  const

int KMyMoneyAccountCombo::loadList ( KMyMoneyUtils::categoryTypeE  typeMask  ) 

int KMyMoneyAccountCombo::loadList ( const QValueList< int > &  list  ) 

int KMyMoneyAccountCombo::loadList ( MyMoneyAccount::accountTypeE  type  ) 

void KMyMoneyAccountCombo::setSelected ( const QString &  id  ) 

void KMyMoneyAccountCombo::setSelected ( const MyMoneyAccount acc  ) 

QStringList KMyMoneyAccountCombo::selectedAccounts ( void   )  const

This method returns the list of selected account id's. If no account is selected, the list is empty.

Returns:
list of selected accounts

virtual void KMyMoneyAccountCombo::keyPressEvent ( QKeyEvent *  e  )  [virtual]

void KMyMoneyAccountCombo::slotButtonPressed ( void   )  [slot]

void KMyMoneyAccountCombo::slotSelected ( const QString &   )  [slot]

void KMyMoneyAccountCombo::accountSelected ( const QString &   )  [signal]

void KMyMoneyAccountCombo::pressed (  )  [signal]

void KMyMoneyAccountCombo::released (  )  [signal]

void KMyMoneyAccountCombo::clicked (  )  [signal]

void KMyMoneyAccountCombo::mousePressEvent ( QMouseEvent *  e  )  [protected]

void KMyMoneyAccountCombo::mouseReleaseEvent ( QMouseEvent *  e  )  [protected]

void KMyMoneyAccountCombo::setText ( const QString &  txt  )  [protected]


Member Data Documentation


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

Generated on Wed Jan 26 13:07:48 2011 for KMyMoney by  doxygen 1.5.6