edbee - Qt Editor Library
commentcommand.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <QString>
9 
11 
12 namespace edbee {
13 
14 class TextEditorController;
15 
20 {
21 public:
22  CommentCommand( bool block );
23  virtual void execute( TextEditorController* controller );
24  virtual QString toString();
25 
26 private:
27 
28  bool block_;
29 
30 };
31 
32 
33 } // edbee
This command is used for commenting / decommenting a line We cannot implement this truely at the mome...
Definition: commentcommand.h:19
CommentCommand(bool block)
constructs the comment comment
Definition: commentcommand.cpp:419
This is the abstract base class for a textcommand.
Definition: texteditorcommand.h:49
virtual void execute(TextEditorController *controller)
Executes the given comment.
Definition: commentcommand.cpp:427
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
virtual QString toString()
converts this command to a string
Definition: commentcommand.cpp:457