kMyMoneyCompletion Class Reference

#include <kmymoneycompletion.h>

Inheritance diagram for kMyMoneyCompletion:

QVBox kMyMoneyAccountCompletion
Collaboration diagram for kMyMoneyCompletion:

Collaboration graph

List of all members.

Public Slots

void slotMakeCompletion (const QString &txt)
void slotItemSelected (QListViewItem *item, const QPoint &pos, int col)


void itemSelected (const QString &id)

Public Member Functions

 kMyMoneyCompletion (QWidget *parent=0, const char *name=0)
virtual ~kMyMoneyCompletion ()
virtual void show (void)
virtual void hide (void)
void setSelected (const QString &id)
virtual KMyMoneySelectorselector (void) const

Protected Member Functions

virtual bool eventFilter (QObject *, QEvent *)
void adjustSize (const int count)
void adjustSize (void)
void connectSignals (QWidget *widget, KListView *lv)
void show (bool presetSelected)

Protected Attributes

QString m_id
QRegExp m_lastCompletion

Static Protected Attributes

static const int MAX_ITEMS

Detailed Description

Thomas Baumgart

Constructor & Destructor Documentation

kMyMoneyCompletion::kMyMoneyCompletion ( QWidget parent = 0,
const char *  name = 0 

virtual kMyMoneyCompletion::~kMyMoneyCompletion (  )  [virtual]

Member Function Documentation

virtual void kMyMoneyCompletion::show ( void   )  [inline, virtual]

Re-implemented for internal reasons. API is unaffected.

virtual void kMyMoneyCompletion::hide ( void   )  [virtual]

Re-implemented for internal reasons. API is unaffected.

void kMyMoneyCompletion::setSelected ( const QString &  id  ) 

This method sets the current account with id id as the current selection.

id id of account to be selected

virtual KMyMoneySelector* kMyMoneyCompletion::selector ( void   )  const [inline, virtual]

Reimplemented in kMyMoneyAccountCompletion.

void kMyMoneyCompletion::slotMakeCompletion ( const QString &  txt  )  [slot]

Reimplemented in kMyMoneyAccountCompletion.

void kMyMoneyCompletion::slotItemSelected ( QListViewItem item,
const QPoint &  pos,
int  col 
) [slot]

virtual bool kMyMoneyCompletion::eventFilter ( QObject ,
QEvent *   
) [protected, virtual]

Reimplemented from kMyMoneyAccountSelector to get events from the viewport (to hide this widget on mouse-click, Escape-presses, etc.

void kMyMoneyCompletion::adjustSize ( const int  count  )  [protected]

This method resizes the widget to show a maximum of count or MAX_ITEMS items.

count maximum number to be shown if < MAX_ITEMS

void kMyMoneyCompletion::adjustSize ( void   )  [protected]

This method counts the number of items currently visible and calls adjustSize(count).

void kMyMoneyCompletion::connectSignals ( QWidget widget,
KListView lv 
) [protected]

void kMyMoneyCompletion::show ( bool  presetSelected  )  [protected]

void kMyMoneyCompletion::itemSelected ( const QString &  id  )  [signal]

Member Data Documentation

QString kMyMoneyCompletion::m_id [protected]

const int kMyMoneyCompletion::MAX_ITEMS [static, protected]

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

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