edbee - Qt Editor Library
Public Member Functions | List of all members
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 More...
 
virtual void execute (TextEditorController *controller)
 Executes the given comment. More...
 
virtual QString toString ()
 converts this command to a string More...
 
- Public Member Functions inherited from edbee::TextEditorCommand
 TextEditorCommand ()
 The default constructor. More...
 
virtual ~TextEditorCommand ()
 A blank virtual destructor. More...
 

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)
virtual

Executes the given comment.

Parameters
controllerthe controller this command is executed for

Implements edbee::TextEditorCommand.

◆ toString()

QString edbee::CommentCommand::toString ( )
virtual

converts this command to a string

Implements edbee::TextEditorCommand.


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