edbee - Qt Editor Library
tabcommand.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
10 namespace edbee {
11 
14 {
15 public:
17  enum Direction{
20  };
21 
23  enum {
28  };
29 
30 
31  TabCommand( Direction direction, bool insertTab );
32 
33  virtual void indent( TextEditorController* controller );
34  virtual void execute( TextEditorController* controller );
35  virtual QString toString();
36 
37 private:
38  Direction dir_;
39  bool insertTab_;
40 };
41 
42 } // edbee
Definition: tabcommand.h:19
TabCommand(Direction direction, bool insertTab)
Constructs the tabcommand.
Definition: tabcommand.cpp:22
Definition: tabcommand.h:18
This is the abstract base class for a textcommand.
Definition: texteditorcommand.h:49
virtual QString toString()
Returs the name of this command.
Definition: tabcommand.cpp:175
Direction
The possible directions of the tab command.
Definition: tabcommand.h:17
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
The texteditor works via the controller. The controller is the central point/mediater which maps/cont...
Definition: texteditorcontroller.h:37
For inserting/executing forward and backwards tabs.
Definition: tabcommand.h:13
virtual void execute(TextEditorController *controller)
Definition: tabcommand.cpp:98
virtual void indent(TextEditorController *controller)
indents or outdents in the given controller controller the controller
Definition: tabcommand.cpp:31