This command is used for commenting / decommenting a line We cannot implement this truely at the moment, we first need support for making scope-based 'environment-variables' so we can creating something like TM_COMMENT_START. More...
#include <commentcommand.h>
Public Member Functions | |
CommentCommand (bool block) | |
constructs the comment comment | |
virtual void | execute (TextEditorController *controller) override |
Executes the given comment. | |
virtual QString | toString () override |
converts this command to a string | |
![]() | |
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. | |
This command is used for commenting / decommenting a line We cannot implement this truely at the moment, we first need support for making scope-based 'environment-variables' so we can creating something like TM_COMMENT_START.
edbee::CommentCommand::CommentCommand | ( | bool | block | ) |
constructs the comment comment
block | should we try a block comment |
|
overridevirtual |
Executes the given comment.
controller | the controller this command is executed for |
Implements edbee::TextEditorCommand.
|
overridevirtual |
converts this command to a string
Implements edbee::TextEditorCommand.