edbee - Qt Editor Library
Public Member Functions | List of all members
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)
 Performs the cut command. 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

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

Performs the cut command.

Parameters
controllerthe controller context

Implements edbee::TextEditorCommand.

◆ toString()

QString edbee::CutCommand::toString ( )
virtual

Converts this command to a string.

Implements edbee::TextEditorCommand.


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