Interfaces
#include <kregexpeditorinterface.h>
Public Member Functions | |
virtual | ~KRegExpEditorInterface () |
virtual void | doSomething (QString method, void *arguments)=0 |
virtual void | redo ()=0 |
virtual QString | regExp () const =0 |
virtual void | setMatchText (const QString &)=0 |
virtual void | setRegExp (const QString ®exp)=0 |
virtual void | undo ()=0 |
Protected Member Functions | |
virtual void | canRedo (bool)=0 |
virtual void | canUndo (bool)=0 |
virtual void | changes (bool)=0 |
Detailed Description
A graphical editor for regular expressions.
The actual editor is located in kdeutils, with an interface in kdelibs. This means that it is a bit more comlicated to create an instance of the editor, but only a little bit more complicated.
To check if kregexpeditor in kdeutils 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 94 of file kregexpeditorinterface.h.
Constructor & Destructor Documentation
|
inlinevirtual |
Definition at line 103 of file kregexpeditorinterface.h.
Member Function Documentation
|
protectedpure virtual |
This signal tells whether redo is available.
|
protectedpure virtual |
This signal tells whether undo is available.
|
protectedpure virtual |
This signal is emitted 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.
|
pure virtual |
This method allows for future changes that will not break binary compatibility.
DO NOT 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!
|
pure virtual |
|
pure virtual |
returns the regular expression of the editor in Qt3 QRegExp syntax.
Note, there is also a 'regexp' Qt property available.
|
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.
|
pure virtual |
Set the regular expression for the editor.
The syntax must be Qt3 QRegExp syntax.
|
pure virtual |
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.