edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::TextEditorCommand Class Referenceabstract

This is the abstract base class for a textcommand. More...

#include <texteditorcommand.h>

+ Inheritance diagram for edbee::TextEditorCommand:
+ Collaboration diagram for edbee::TextEditorCommand:

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...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ TextEditorCommand()

edbee::TextEditorCommand::TextEditorCommand ( )

The default constructor.

◆ ~TextEditorCommand()

edbee::TextEditorCommand::~TextEditorCommand ( )
virtual

A blank virtual destructor.

Member Function Documentation

◆ execute()

virtual void edbee::TextEditorCommand::execute ( TextEditorController controller)
pure virtual

◆ toString()

virtual QString edbee::TextEditorCommand::toString ( )
pure virtual

The documentation for this class was generated from the following files: