#include <kregexpeditorinterface.h>
Public Member Functions | |
virtual TQString | regExp () const =0 |
virtual void | setRegExp (const TQString ®exp)=0 |
virtual void | redo ()=0 |
virtual void | undo ()=0 |
virtual void | setMatchText (const TQString &)=0 |
virtual void | doSomething (TQString method, void *arguments)=0 |
Protected Member Functions | |
virtual void | canUndo (bool)=0 |
virtual void | canRedo (bool)=0 |
virtual void | changes (bool)=0 |
Detailed Description
A graphical editor for regular expressions.
The actual editor is located in tdeutils, with an interface in tdelibs. This means that it is a bit more complicated to create an instance of the editor, but only a little bit more complicated.
To check if kregexpeditor in tdeutils is installed and available use this line:
The following is a template for what you need to do to create an instance of the regular expression dialog:
Note: signals and slots must be connected to the editorDialog object, not to the editor object:
If you want to create an instance of the editor widget, i.e. not the dialog, then you must do it in the following way:
Definition at line 71 of file kregexpeditorinterface.h.
Member Function Documentation
◆ canRedo()
|
protectedpure virtual |
This signal tells whether redo is available.
◆ canUndo()
|
protectedpure virtual |
This signal tells whether undo is available.
◆ changes()
|
protectedpure virtual |
This signal is emited whenever the regular expression changes.
The argument is true when the regular expression is different from the loaded regular expression and false when it is equal to the loaded regular expression.
◆ doSomething()
|
pure virtual |
This method allows for future changes that will not break binary compatibility.
DONT USE!
KDE has a policy of keeping binary compatibility for all major version of KDE. This means that new methods can not be added to this API before KDE version 4.0.
This method is an escape door for that.
Conclusion: You should not use this method in this version of KDE!
◆ regExp()
|
pure virtual |
returns the regular expression of the editor in Qt3 QRegExp syntax.
Note, there is also a 'regexp' Qt property available.
◆ setMatchText()
|
pure virtual |
Set text to use when showing matches.
NOT IMPLEMENTED YET!
This method is not yet implemented. In later version of the widget this method will be used to give the widget a text to show matches of the regular expression on.
◆ setRegExp()
|
pure virtual |
Set the regular expression for the editor.
The syntax must be Qt3 TQRegExp syntax.
The documentation for this class was generated from the following file: