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

Executes a paste command This usually simply pastes the text at the given location. There are two special cases: More...

#include <pastecommand.h>

+ Inheritance diagram for edbee::PasteCommand:
+ Collaboration diagram for edbee::PasteCommand:

Public Member Functions

 PasteCommand ()
 Default (blank) constructor.
 
virtual int commandId ()
 Returns the command id for coalescing this operation.
 
virtual void execute (TextEditorController *controller) override
 Execute the paste command.
 
virtual QString toString () override
 Converst the command to a string (for fetching the commandname)
 
- 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

Executes a paste command This usually simply pastes the text at the given location. There are two special cases:

  • there's a line cutting/pasing mode to copy complete lines
  • when the number of carets is equal to the number of lines, every line is pasted at a caret

Constructor & Destructor Documentation

◆ PasteCommand()

edbee::PasteCommand::PasteCommand ( )

Default (blank) constructor.

Member Function Documentation

◆ commandId()

int edbee::PasteCommand::commandId ( )
virtual

Returns the command id for coalescing this operation.

◆ execute()

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

Execute the paste command.

Parameters
controllerthe controller context this operation is executed for

Implements edbee::TextEditorCommand.

◆ toString()

QString edbee::PasteCommand::toString ( )
overridevirtual

Converst the command to a string (for fetching the commandname)

Implements edbee::TextEditorCommand.


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