KMyMoneyRegister::RegisterSearchLine Class Reference

#include <registersearchline.h>

Inheritance diagram for KMyMoneyRegister::RegisterSearchLine:

KLineEdit
Collaboration diagram for KMyMoneyRegister::RegisterSearchLine:

Collaboration graph
[legend]

List of all members.

Public Slots

virtual void updateSearch (const QString &s=QString::null)
virtual void reset (void)

Public Member Functions

 RegisterSearchLine (QWidget *parent=0, Register *reg=0, const char *name=0)
 RegisterSearchLine (QWidget *parent=0, const char *name=0)
 ~RegisterSearchLine ()
void setRegister (Register *reg)

Protected Slots

void queueSearch (const QString &search)
void activateSearch (void)
void slotStatusChanged (int)

Protected Member Functions

virtual bool itemMatches (const RegisterItem *item, const QString &s) const

Private Slots

void itemAdded (RegisterItem *item) const
void registerDestroyed (void)

Private Member Functions

void init (Register *reg)

Private Attributes

RegisterSearchLinePrivate *const d


Detailed Description

This class makes it easy to add a search line for filtering the items in a register based on simple text. Inspired by the idea of the kdelibs class KListViewSearchLine.

Author:
Thomas Baumgart

Constructor & Destructor Documentation

KMyMoneyRegister::RegisterSearchLine::RegisterSearchLine ( QWidget parent = 0,
Register reg = 0,
const char *  name = 0 
)

Constructs a RegisterSearchLine with reg being the register to be filtered.

If reg is null then the widget will be disabled until a register is set with setRegister().

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

Constructs a RegisterSearchLine

The widget will be disabled until a register is set with setRegister().

KMyMoneyRegister::RegisterSearchLine::~RegisterSearchLine (  ) 

Destroys the object


Member Function Documentation

void KMyMoneyRegister::RegisterSearchLine::setRegister ( Register reg  ) 

Sets the KMyMoneyRegister that is filtered by this search line. If reg is null then the widget will be disabled.

See also:
KMyMoneyRegister()

virtual bool KMyMoneyRegister::RegisterSearchLine::itemMatches ( const RegisterItem item,
const QString &  s 
) const [protected, virtual]

virtual void KMyMoneyRegister::RegisterSearchLine::updateSearch ( const QString &  s = QString::null  )  [virtual, slot]

virtual void KMyMoneyRegister::RegisterSearchLine::reset ( void   )  [virtual, slot]

void KMyMoneyRegister::RegisterSearchLine::queueSearch ( const QString &  search  )  [protected, slot]

void KMyMoneyRegister::RegisterSearchLine::activateSearch ( void   )  [protected, slot]

void KMyMoneyRegister::RegisterSearchLine::slotStatusChanged ( int   )  [protected, slot]

void KMyMoneyRegister::RegisterSearchLine::itemAdded ( RegisterItem item  )  const [private, slot]

void KMyMoneyRegister::RegisterSearchLine::registerDestroyed ( void   )  [private, slot]

void KMyMoneyRegister::RegisterSearchLine::init ( Register reg  )  [private]


Member Data Documentation

RegisterSearchLinePrivate* const KMyMoneyRegister::RegisterSearchLine::d [private]


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

Generated on Wed Jan 26 13:10:51 2011 for KMyMoney by  doxygen 1.5.6