edbee - Qt Editor Library v0.11.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
edbee::CommentCommand Class Reference

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>

+ Inheritance diagram for edbee::CommentCommand:
+ Collaboration diagram for edbee::CommentCommand:

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
 
- Public Member Functions inherited from edbee::TextEditorCommand
 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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CommentCommand()

edbee::CommentCommand::CommentCommand ( bool block)

constructs the comment comment

Parameters
blockshould we try a block comment

Member Function Documentation

◆ execute()

void edbee::CommentCommand::execute ( TextEditorController * controller)
overridevirtual

Executes the given comment.

Parameters
controllerthe controller this command is executed for

Implements edbee::TextEditorCommand.

◆ toString()

QString edbee::CommentCommand::toString ( )
overridevirtual

converts this command to a string

Implements edbee::TextEditorCommand.


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