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

The Duplicate command. Duplicates the selected line or text. More...

#include <duplicatecommand.h>

+ Inheritance diagram for edbee::DuplicateCommand:
+ Collaboration diagram for edbee::DuplicateCommand:

Public Member Functions

virtual void execute (TextEditorController *controller) override
 Executes the duplication command.
 
virtual QString toString () override
 Returns the textual representation of this command.
 
- 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

The Duplicate command. Duplicates the selected line or text.

Member Function Documentation

◆ execute()

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

Executes the duplication command.

Parameters
controllerthe active controller

Implements edbee::TextEditorCommand.

◆ toString()

QString edbee::DuplicateCommand::toString ( )
overridevirtual

Returns the textual representation of this command.

Implements edbee::TextEditorCommand.


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