KexiSearchAndReplaceViewInterface::Options Class Reference

#include <kexisearchandreplaceiface.h>

Public Types

enum  SpecialLookInValue { AllColumns = -1 , CurrentColumn = -2 }
 
enum  TextMatching { MatchAnyPartOfField = 0 , MatchWholeField = 1 , MatchStartOfField = 2 }
 
enum  SearchDirection { SearchUp = 0 , SearchDown = 1 , SearchAllRows = 2 , DefaultSearchDirection = SearchDown }
 

Public Attributes

int columnNumber
 
TextMatching textMatching
 
SearchDirection searchDirection
 
bool caseSensitive: 1
 
bool wholeWordsOnly: 1
 
bool promptOnReplace: 1
 

Detailed Description

Specifies options for find and replace operations.

A GUI for setting these options is provided by KexiFindDialog class.

Definition at line 37 of file kexisearchandreplaceiface.h.

Member Enumeration Documentation

◆ SearchDirection

Specifies search direction.

Enumerator
SearchUp 

Search up (previous) from the current position.

SearchDown 

Search down (next) from the current position (the default)

SearchAllRows 

Search from the first to the last row.

Definition at line 61 of file kexisearchandreplaceiface.h.

◆ SpecialLookInValue

Special values for columnNumber.

Enumerator
AllColumns 

"all columns" (the default)

CurrentColumn 

"current column"

Definition at line 42 of file kexisearchandreplaceiface.h.

◆ TextMatching

Specifies possible options for text matching.

Enumerator
MatchAnyPartOfField 

Matched text can be any part of field (the default)

MatchWholeField 

Matched text must be the whole field.

MatchStartOfField 

Matched text must be at the start of field.

Definition at line 51 of file kexisearchandreplaceiface.h.

Constructor & Destructor Documentation

◆ Options()

KexiSearchAndReplaceViewInterface::Options::Options ( )

Definition at line 32 of file kexisearchandreplaceiface.cpp.

Member Data Documentation

◆ caseSensitive

bool KexiSearchAndReplaceViewInterface::Options::caseSensitive

True for searching is case-sensitive (false by default)

Definition at line 72 of file kexisearchandreplaceiface.h.

◆ columnNumber

int KexiSearchAndReplaceViewInterface::Options::columnNumber

Column number to look in, AllColumns means "all columns" (the default) and CurrentColumn means "current column".

Definition at line 48 of file kexisearchandreplaceiface.h.

◆ promptOnReplace

bool KexiSearchAndReplaceViewInterface::Options::promptOnReplace

True if question should be displayed before every replacement made (true by default)

Definition at line 78 of file kexisearchandreplaceiface.h.

◆ searchDirection

SearchDirection KexiSearchAndReplaceViewInterface::Options::searchDirection

Specifies search direction.

Definition at line 69 of file kexisearchandreplaceiface.h.

◆ textMatching

TextMatching KexiSearchAndReplaceViewInterface::Options::textMatching

Specifies possible options for text matching.

Definition at line 58 of file kexisearchandreplaceiface.h.

◆ wholeWordsOnly

bool KexiSearchAndReplaceViewInterface::Options::wholeWordsOnly

True for searching for whole words only (false by default)

Definition at line 75 of file kexisearchandreplaceiface.h.


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