KReplaceDialog Class Reference
A generic "replace" dialog. More...
#include <kreplacedialog.h>
Inheritance diagram for KReplaceDialog:

Public Types | |
enum | Options { PromptOnReplace = 256, BackReference = 512 } |
Public Member Functions | |
KReplaceDialog (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 | ~KReplaceDialog () |
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 () |
virtual void | showEvent (QShowEvent *) |
Detailed Description
A generic "replace" dialog.
- Author:
- S.R.Haque <srhaque@iee.org>
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:
Definition at line 57 of file kreplacedialog.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 39 of file kreplacedialog.cpp. References KStdAccel::name(), and setOptions(). |
|
Destructor.
Definition at line 48 of file kreplacedialog.cpp. |
Member Function Documentation
|
Provide the list of
Definition at line 99 of file kreplacedialog.cpp. |
|
Returns the list of history items.
Definition at line 87 of file kreplacedialog.cpp. |
|
Set the options which are enabled.
Reimplemented from KFindDialog. Definition at line 92 of file kreplacedialog.cpp. References KFindDialog::setOptions(). Referenced by KReplaceDialog(). |
|
Returns the state of the options. Disabled options may be returned in an indeterminate state.
Reimplemented from KFindDialog. Definition at line 59 of file kreplacedialog.cpp. References KFindDialog::options(), and options(). Referenced by options(). |
|
Returns the replacement string.
Definition at line 82 of file kreplacedialog.cpp. |
|
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 71 of file kreplacedialog.cpp. |
The documentation for this class was generated from the following files: