class KReplaceDialog |
|
A generic "replace" dialog.
Author S.R.Haque 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:
|
|
Construct a replace dialog.read-only or rather select-only combo box with a
parent object and a name.
parent - The parent object of this widget options - A bitfield of the Options to be enabled. findStrings - A QStringList to insert in the combo box of text to find replaceStrings - A QStringList to insert in the combo box of text to replace with hasSelection - Whether a selection exists |
|
Returns the state of the options. Disabled options may be returned in
an indeterminate state.
See also setOptions |
|
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. |
|
Returns the replacement string. |
|
Returns the list of history items.
See also setReplacementHistory |
|
Set the options which are enabled.
options - The setting of the Options. |
|
Provide the list of strings to be displayed as the history
of replacement strings. strings might get truncated if it is
too long.
history - The replacement history. See also replacementHistory |
|
PromptOnReplace | - 256 | - | ||
BackReference | - 512 | - |