edbee - Qt Editor Library
undocommand.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <QString>
10 
11 namespace edbee {
12 
14 {
15 public:
16  UndoCommand( bool soft= false );
17 
18  virtual int commandId() { return CoalesceId_None; }
19 
20  virtual void execute( TextEditorController* controller );
21  virtual QString toString();
22 
23 private:
24  bool soft_;
25 };
26 
27 } // edbee
UndoCommand(bool soft=false)
Definition: undocommand.cpp:14
virtual QString toString()
should return the description of the command
Definition: undocommand.cpp:24
Definition: undocommand.h:13
virtual void execute(TextEditorController *controller)
This method should execute the given command.
Definition: undocommand.cpp:19
This is the abstract base class for a textcommand.
Definition: texteditorcommand.h:49
Copyright 2011-2013 - Reliable Bits Software by Blommers IT.
Definition: commentcommand.cpp:22
virtual int commandId()
Definition: undocommand.h:18
The texteditor works via the controller. The controller is the central point/mediater which maps/cont...
Definition: texteditorcontroller.h:37
NO coalescing.
Definition: texteditorcommand.h:22