edbee - Qt Editor Library
|
This is the abstract base class for a textcommand. More...
#include <texteditorcommand.h>
Public Member Functions | |
TextEditorCommand () | |
The default constructor. More... | |
virtual | ~TextEditorCommand () |
A blank virtual destructor. More... | |
virtual void | execute (TextEditorController *controller)=0 |
This method should execute the given command. More... | |
virtual QString | toString ()=0 |
should return the description of the command More... | |
This is the abstract base class for a textcommand.
A textcommand is an object/class that's used for executing an operation Though the name is 'command' these commands are NOT used on the undo stack. The undostack makes use of TextChange objects!
These commands can be placed in the TextEditorCommandMap with a given name By linking this command-name in the Keymap you can register keyboard operations this way
edbee::TextEditorCommand::TextEditorCommand | ( | ) |
The default constructor.
|
virtual |
A blank virtual destructor.
|
pure virtual |
This method should execute the given command.
Implemented in edbee::RemoveCommand, edbee::SelectionCommand, edbee::NewlineCommand, edbee::TabCommand, edbee::FindCommand, edbee::DebugCommand, edbee::PasteCommand, edbee::CopyCommand, edbee::CommentCommand, edbee::CutCommand, edbee::RedoCommand, edbee::ReplaceSelectionCommand, edbee::UndoCommand, and edbee::DuplicateCommand.
|
pure virtual |
should return the description of the command
Implemented in edbee::RemoveCommand, edbee::SelectionCommand, edbee::NewlineCommand, edbee::TabCommand, edbee::FindCommand, edbee::DebugCommand, edbee::PasteCommand, edbee::CopyCommand, edbee::CommentCommand, edbee::CutCommand, edbee::RedoCommand, edbee::ReplaceSelectionCommand, edbee::UndoCommand, and edbee::DuplicateCommand.