edbee - Qt Editor Library
pastecommand.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 
10 namespace edbee {
11 
12 class TextEditorController;
13 
20 {
21 public:
22  PasteCommand();
23 
24  virtual int commandId();
25 
26  virtual void execute( TextEditorController* controller );
27  virtual QString toString();
28 };
29 
30 } // edbee
PasteCommand()
Default (blank) constructor.
Definition: pastecommand.cpp:28
virtual QString toString()
Converst the command to a string (for fetching the commandname)
Definition: pastecommand.cpp:86
This is the abstract base class for a textcommand.
Definition: texteditorcommand.h:49
virtual void execute(TextEditorController *controller)
Execute the paste command.
Definition: pastecommand.cpp:42
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
virtual int commandId()
Returns the command id for coalescing this operation.
Definition: pastecommand.cpp:34
Executes a paste command This usually simply pastes the text at the given location. There are two special cases:
Definition: pastecommand.h:19
The texteditor works via the controller. The controller is the central point/mediater which maps/cont...
Definition: texteditorcontroller.h:37