KoReplaceDialog Class Reference
A generic "replace" widget. More...
#include <koReplace.h>
Inheritance diagram for KoReplaceDialog:

Public Types | |
enum | Options { PromptOnReplace = 256, BackReference = 512 } |
Public Member Functions | |
KoReplaceDialog (QWidget *parent=0, const char *name=0, long options=0, const QStringList &findStrings=QStringList(), const QStringList &replaceStrings=QStringList(), bool hasSelection=true) | |
Construct a replace dialog.read-only or rather select-only combo box with a parent object and a name. | |
virtual | ~KoReplaceDialog () |
Destructor. | |
void | setReplacementHistory (const QStringList &strings) |
Provide the list of strings to be displayed as the history of replacement strings. | |
QStringList | replacementHistory () const |
Returns the list of history items. | |
void | setOptions (long options) |
Set the options which are enabled. | |
long | options () const |
Returns the state of the options. | |
QString | replacement () const |
Returns the replacement string. | |
QWidget * | replaceExtension () |
Returns an empty widget which the user may fill with additional UI elements as required. | |
Protected Slots | |
void | slotOk () |
Private Attributes | |
KoReplaceDialogPrivate * | d |
Detailed Description
A generic "replace" widget.
- Author:
- S.R.Haque <srhaque@iee.org>
Example
To use the basic replace dialog:
To use your own extensions:
Definition at line 57 of file koReplace.h.
Member Enumeration Documentation
|
Reimplemented from KoFindDialog. Definition at line 66 of file koReplace.h. |
Constructor & Destructor Documentation
|
Construct a replace dialog.read-only or rather select-only combo box with a parent object and a name.
Definition at line 31 of file koReplace.cpp. References KoReplaceDialog(), setOptions(), and setReplacementHistory(). Referenced by KoReplaceDialog(). |
|
Destructor.
Definition at line 39 of file koReplace.cpp. |
Member Function Documentation
|
Returns the state of the options. Disabled options may be returned in an indeterminate state.
Reimplemented from KoFindDialog. Definition at line 43 of file koReplace.cpp. References BackReference, KoFindDialog::options(), options(), and PromptOnReplace. Referenced by QEditorView::doReplace(), and options(). |
|
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. Definition at line 55 of file koReplace.cpp. |
|
Returns the replacement string.
Definition at line 60 of file koReplace.cpp. Referenced by QEditorView::doReplace(), QEditorView::replace(), and slotOk(). |
|
Returns the list of history items.
Definition at line 65 of file koReplace.cpp. References KHistoryCombo::historyItems. |
|
Set the options which are enabled.
Reimplemented from KoFindDialog. Definition at line 70 of file koReplace.cpp. References BackReference, PromptOnReplace, and setOptions(). Referenced by KoReplaceDialog(), and setOptions(). |
|
Provide the list of
Definition at line 77 of file koReplace.cpp. References KHistoryCombo::clearHistory(), KHistoryCombo::setHistoryItems(), and setReplacementHistory(). Referenced by KoReplaceDialog(), and setReplacementHistory(). |
|
Reimplemented from KoFindDialog. Definition at line 85 of file koReplace.cpp. References KHistoryCombo::addToHistory(), replacement(), and KoFindDialog::slotOk(). |
Member Data Documentation
|
Reimplemented from KoFindDialog. Definition at line 145 of file koReplace.h. |
The documentation for this class was generated from the following files:
- editors/qeditor/koReplace.h
- editors/qeditor/koReplace.cpp