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

Performs a cut command. The cut command removes the selected content and places onto the clipboard. More...

#include <cutcommand.h>

+ Inheritance diagram for edbee::CutCommand:
+ Collaboration diagram for edbee::CutCommand:

Public Member Functions

virtual void execute (TextEditorController *controller) override
 Performs the cut command.
 
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

Performs a cut command. The cut command removes the selected content and places onto the clipboard.

When pressing cut without selection, the full line is cut

Member Function Documentation

◆ execute()

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

Performs the cut command.

Parameters
controllerthe controller context

Implements edbee::TextEditorCommand.

◆ toString()

QString edbee::CutCommand::toString ( )
overridevirtual

Converts this command to a string.

Implements edbee::TextEditorCommand.


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