kalzium
Search Class Reference
#include <search.h>
Inheritance diagram for Search:

Detailed Description
Represent a search.
Definition at line 34 of file search.h.
Public Types | |
| enum | SearchKind { SearchByName = 0x01, SearchBySymbol = 0x02, SearchAll = 0xFF } |
Public Slots | |
| void | doSearch (const QString &text, SearchKind kind) |
| void | resetSearch () |
Signals | |
| void | searchChanged () |
| void | searchReset () |
Public Member Functions | |
| Search () | |
| QString | searchText () const |
| SearchKind | searchKind () const |
| bool | isActive () const |
| const QList< Element * > & | foundElements () const |
| bool | matches (Element *el) const |
Member Enumeration Documentation
| enum Search::SearchKind |
Constructor & Destructor Documentation
| Search::Search | ( | ) |
Member Function Documentation
| QString Search::searchText | ( | ) | const |
| Search::SearchKind Search::searchKind | ( | ) | const |
| bool Search::isActive | ( | ) | const |
is the current Search active?
- Returns:
- whether this search is active
Definition at line 40 of file search.cpp.
| const QList< Element * > & Search::foundElements | ( | ) | const |
| bool Search::matches | ( | Element * | el | ) | const |
| void Search::doSearch | ( | const QString & | text, | |
| SearchKind | kind | |||
| ) | [slot] |
Search the text by looking at the element using the specified kind.
Definition at line 55 of file search.cpp.
| void Search::resetSearch | ( | ) | [slot] |
| void Search::searchChanged | ( | ) | [signal] |
The current search has changed (ie the found elements have changed).
| void Search::searchReset | ( | ) | [signal] |
The current search has been reset.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference