org.kde.koala

Class KReplaceDialog

public class KReplaceDialog extends KFindDialog

etail: 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. xample: To use the basic replace dialog:
 
To use your own extensions:
 

Author: S.R.Haque

UNKNOWN: A generic "replace" dialog.

Field Summary
static intBackReference
static intPromptOnReplace
Constructor Summary
protected KReplaceDialog(Class dummy)
KReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings, boolean hasSelection)
Construct a replace dialog.read-only or rather select-only combo box with a parent object and a name.
KReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings)
KReplaceDialog(QWidget parent, String name, long options, String[] findStrings)
KReplaceDialog(QWidget parent, String name, long options)
KReplaceDialog(QWidget parent, String name)
KReplaceDialog(QWidget parent)
KReplaceDialog()
Method Summary
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
longoptions()
Returns the state of the options.
QWidgetreplaceExtension()
Returns an empty widget which the user may fill with additional UI elements as required.
Stringreplacement()
Returns the replacement string.
ArrayListreplacementHistory()
Returns the list of history items.
voidsetOptions(long options)
Set the options which are enabled.
voidsetReplacementHistory(String[] history)
Provide the list of strings to be displayed as the history of replacement strings.
voidshowEvent(QShowEvent arg1)
protected voidslotOk()

Field Detail

BackReference

public static final int BackReference

PromptOnReplace

public static final int PromptOnReplace

Constructor Detail

KReplaceDialog

protected KReplaceDialog(Class dummy)

KReplaceDialog

public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings, boolean hasSelection)
Construct a replace dialog.read-only or rather select-only combo box with a parent object and a name.

Parameters: parent The parent object of this widget name The name of this widget options A bitfield of the Options to be enabled. findStrings A String[] to insert in the combo box of text to find replaceStrings A String[] to insert in the combo box of text to replace with hasSelection Whether a selection exists

UNKNOWN: Construct a replace dialog.

KReplaceDialog

public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings)

KReplaceDialog

public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings)

KReplaceDialog

public KReplaceDialog(QWidget parent, String name, long options)

KReplaceDialog

public KReplaceDialog(QWidget parent, String name)

KReplaceDialog

public KReplaceDialog(QWidget parent)

KReplaceDialog

public KReplaceDialog()

Method Detail

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

options

public long options()
Returns the state of the options. Disabled options may be returned in an indeterminate state.

See Also: KReplaceDialog

UNKNOWN: Returns the state of the options.

replaceExtension

public QWidget 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.

UNKNOWN: Returns an empty widget which the user may fill with additional UI elements as required.

replacement

public String replacement()
Returns the replacement string.

UNKNOWN: Returns the replacement string.

replacementHistory

public ArrayList replacementHistory()
Returns the list of history items.

See Also: KReplaceDialog

UNKNOWN: Returns the list of history items.

setOptions

public void setOptions(long options)
Set the options which are enabled.

Parameters: options The setting of the Options.

UNKNOWN: Set the options which are enabled.

setReplacementHistory

public void setReplacementHistory(String[] history)
Provide the list of strings to be displayed as the history of replacement strings. strings might get truncated if it is too long.

Parameters: history The replacement history.

See Also: KReplaceDialog

UNKNOWN: Provide the list of strings to be displayed as the history of replacement strings.

showEvent

public void showEvent(QShowEvent arg1)

slotOk

protected void slotOk()