edbee - Qt Editor Library
|
This command can be used to replace the current selection with a given text. More...
#include <replaceselectioncommand.h>
Public Member Functions | |
ReplaceSelectionCommand (const QString &text, int caolesceId) | |
The constructor of the replaceSelection command. More... | |
virtual int | commandId () |
virtual void | execute (TextEditorController *controller) |
Executes the replace selection command. More... | |
virtual QString | toString () |
Converts the current command to a string. More... | |
Public Member Functions inherited from edbee::TextEditorCommand | |
TextEditorCommand () | |
The default constructor. More... | |
virtual | ~TextEditorCommand () |
A blank virtual destructor. More... | |
This command can be used to replace the current selection with a given text.
edbee::ReplaceSelectionCommand::ReplaceSelectionCommand | ( | const QString & | text, |
int | coalesceId | ||
) |
The constructor of the replaceSelection command.
text | the text to replace |
coalesceId | the coalesceId top merge undo operations |
|
inlinevirtual |
|
virtual |
Executes the replace selection command.
controller | the controller context this command runs ons |
Implements edbee::TextEditorCommand.
|
virtual |
Converts the current command to a string.
Implements edbee::TextEditorCommand.