For inserting/executing forward and backwards tabs. More...
#include <tabcommand.h>
Public Types | |
enum | Direction { Forward , Backward } |
The possible directions of the tab command. More... | |
enum | { SubCoalesceId_Indent_Forward = Forward , SubCoalesceId_Indent_Backward = Backward , SubCoalesceId_Indent_InsertTab , SubCoalesceId_Indent_InsertSpaces } |
Extra possible coalesce (sub-ids) More... | |
Public Member Functions | |
TabCommand (Direction direction, bool insertTab) | |
Constructs the tabcommand. | |
virtual void | indent (TextEditorController *controller) |
indents or outdents in the given controller @parma controller the controller | |
virtual void | execute (TextEditorController *controller) override |
virtual QString | toString () override |
Returs the name of this command. | |
![]() | |
TextEditorCommand () | |
The default constructor. | |
virtual | ~TextEditorCommand () |
A blank virtual destructor. | |
virtual bool | readonly () |
Tis method should return true if it's executable in readonly mode. | |
For inserting/executing forward and backwards tabs.
anonymous enum |
edbee::TabCommand::TabCommand | ( | TabCommand::Direction | direction, |
bool | insertTab ) |
Constructs the tabcommand.
direction | the direction of the tab (Forward or Backward) |
insertTab | should we use a tab character? |
|
overridevirtual |
Implements edbee::TextEditorCommand.
|
virtual |
indents or outdents in the given controller @parma controller the controller
|
overridevirtual |
Returs the name of this command.
Implements edbee::TextEditorCommand.