edbee - Qt Editor Library
|
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. More... | |
virtual void | indent (TextEditorController *controller) |
indents or outdents in the given controller controller the controller More... | |
virtual void | execute (TextEditorController *controller) |
virtual QString | toString () |
Returs the name of this command. More... | |
Public Member Functions inherited from edbee::TextEditorCommand | |
TextEditorCommand () | |
The default constructor. More... | |
virtual | ~TextEditorCommand () |
A blank virtual destructor. More... | |
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? |
|
virtual |
Implements edbee::TextEditorCommand.
|
virtual |
indents or outdents in the given controller controller the controller
|
virtual |
Returs the name of this command.
Implements edbee::TextEditorCommand.