kexi
KexiSearchAndReplaceViewInterface Class Reference
#include <kexisearchandreplaceiface.h>
Inheritance diagram for KexiSearchAndReplaceViewInterface:

Detailed Description
An interface used by Kexi views (KexiViewBase) supporting search/replace features.
Definition at line 29 of file kexisearchandreplaceiface.h.
Public Member Functions | |
KexiSearchAndReplaceViewInterface () | |
virtual | ~KexiSearchAndReplaceViewInterface () |
virtual bool | setupFindAndReplace (QStringList &columnNames, QStringList &columnCaptions, QString ¤tColumnName)=0 |
virtual tristate | find (const QVariant &valueToFind, const KexiSearchAndReplaceViewInterface::Options &options, bool next)=0 |
virtual tristate | findNextAndReplace (const QVariant &valueToFind, const QVariant &replacement, const KexiSearchAndReplaceViewInterface::Options &options, bool replaceAll)=0 |
Classes | |
class | Options |
Specifies options for find and replace operations. More... |
Member Function Documentation
virtual bool KexiSearchAndReplaceViewInterface::setupFindAndReplace | ( | QStringList & | columnNames, | |
QStringList & | columnCaptions, | |||
QString & | currentColumnName | |||
) | [pure virtual] |
Sets up data for find/replace dialog, based on view's data model. columnNames should contain column name, columnCaptions should contain column captions, and currentColumnName should beset to current column's name. Implementation should set up values and return true if find/replace dialog should be filled.
Implemented in KexiDataAwareView.
virtual tristate KexiSearchAndReplaceViewInterface::find | ( | const QVariant & | valueToFind, | |
const KexiSearchAndReplaceViewInterface::Options & | options, | |||
bool | next | |||
) | [pure virtual] |
Finds valueToFind within the view. options are used to control the process. Selection is moved to found value.
- Returns:
- true if value has been found, false if value has not been found, and cancelled if there is nothing to find or there is no data to search in. If next is true, "find next" is performed, else "find previous" is performed.
Implemented in KexiDataAwareView.
virtual tristate KexiSearchAndReplaceViewInterface::findNextAndReplace | ( | const QVariant & | valueToFind, | |
const QVariant & | replacement, | |||
const KexiSearchAndReplaceViewInterface::Options & | options, | |||
bool | replaceAll | |||
) | [pure virtual] |
Finds valueToFind within the view and replaces with replacement options are used to control the process.
- Returns:
- true if value has been found and replaced, false if value has not been found and replaced, and cancelled if there is nothing to find or there is no data to search in or the data is read only. If replaceAll is true, all found values are replaced.
Implemented in KexiDataAwareView.
The documentation for this class was generated from the following files: