class KReplaceDialog

A generic "replace" dialog. More...

Definition#include <kreplacedialog.h>
InheritsKFindDialog [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Protected Slots


Detailed Description

Detail

This widget inherits from KFindDialog and implements the following additional functionalities: a replacement string object and an area for a user-defined widget to extend the dialog.

Example

To use the basic replace dialog:



To use your own extensions:



enum Options { PromptOnReplace = 256, BackReference = 512 }

Options

 KReplaceDialog ( QWidget *parent = 0, const char *name = 0, long options = 0, const QStringList &findStrings = QStringList(), const QStringList &replaceStrings = QStringList(), bool hasSelection = true )

KReplaceDialog

Construct a replace dialog.read-only or rather select-only combo box with a parent object and a name.

Parameters:
parentThe parent object of this widget
nameThe name of this widget
optionsA bitfield of the Options to be enabled.
hasSelectionWhether a selection exists

 ~KReplaceDialog ()

~KReplaceDialog

[virtual]

Destructor.

void  setReplacementHistory ( const QStringList &strings )

setReplacementHistory

Provide the list of strings to be displayed as the history of replacement strings. strings might get truncated if it is too long.

Parameters:
historyThe replacement history.

See also: replacementHistory

QStringList  replacementHistory ()

replacementHistory

[const]

Returns the list of history items.

See also: setReplacementHistory

void  setOptions ( long options )

setOptions

Set the options which are enabled.

Parameters:
optionsThe setting of the Options.

Reimplemented from KFindDialog.

long  options ()

options

[const]

Returns the state of the options. Disabled options may be returned in an indeterminate state.

See also: setOptions

Reimplemented from KFindDialog.

QString  replacement ()

replacement

[const]

Returns the replacement string.

QWidgetreplaceExtension ()

replaceExtension

Returns an empty widget which the user may fill with additional UI elements as required. The widget occupies the width of the dialog, and is positioned immediately the regular expression support widgets for the replacement string.

void  slotOk ()

slotOk

[protected slots slot]

Reimplemented from KFindDialog.

void  showEvent ( QShowEvent * )

showEvent

[protected slots virtual slot]

Reimplemented from KFindDialog.