edbee - Qt Editor Library
Public Types | Public Member Functions | List of all members
edbee::TabCommand Class Reference

For inserting/executing forward and backwards tabs. More...

#include <tabcommand.h>

+ Inheritance diagram for edbee::TabCommand:
+ Collaboration diagram for edbee::TabCommand:

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

Detailed Description

For inserting/executing forward and backwards tabs.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Extra possible coalesce (sub-ids)

Enumerator
SubCoalesceId_Indent_Forward 
SubCoalesceId_Indent_Backward 
SubCoalesceId_Indent_InsertTab 
SubCoalesceId_Indent_InsertSpaces 

◆ Direction

The possible directions of the tab command.

Enumerator
Forward 
Backward 

Constructor & Destructor Documentation

◆ TabCommand()

edbee::TabCommand::TabCommand ( TabCommand::Direction  direction,
bool  insertTab 
)

Constructs the tabcommand.

Parameters
directionthe direction of the tab (Forward or Backward)
insertTabshould we use a tab character?

Member Function Documentation

◆ execute()

void edbee::TabCommand::execute ( TextEditorController controller)
virtual
Todo:
: Refactor :)

Implements edbee::TextEditorCommand.

◆ indent()

void edbee::TabCommand::indent ( TextEditorController controller)
virtual

indents or outdents in the given controller controller the controller

◆ toString()

QString edbee::TabCommand::toString ( )
virtual

Returs the name of this command.

Implements edbee::TextEditorCommand.


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