edbee - Qt Editor Library
Public Member Functions | List of all members
edbee::EmptyDocumentChange Class Reference

a document text-change that doesn't do anyhting :-) More...

#include <change.h>

+ Inheritance diagram for edbee::EmptyDocumentChange:
+ Collaboration diagram for edbee::EmptyDocumentChange:

Public Member Functions

virtual bool isPersistenceRequired ()
 Empty change doesn't do anything. More...
 
virtual void execute (TextDocument *)
 does nothing More...
 
virtual void revert (TextDocument *)
 does nothing More...
 
virtual QString toString ()
 returns the name of the textchange More...
 
- Public Member Functions inherited from edbee::Change
virtual ~Change ()
 a virtual empty destructor More...
 
virtual bool giveAndMerge (TextDocument *document, Change *textChange)
 Gives the change and merges it if possible. This method should return false if the change couldn't be merged. When the method returns true the ownership of the given textchange is transfered to this class. More...
 
virtual bool canUndo ()
 This method should return true if the change can be reverted. More...
 
virtual TextEditorControllercontrollerContext ()
 A text command can belong to a controller/view When it's a view only command. The undo only applies only to this view warning a DOCUMENT change may NEVER return a controllerContext!! More...
 
bool isDocumentChange ()
 this method can be used to check if the given change is a document change More...
 
virtual bool isGroup ()
 This method returns true if this change is a group change. When an object is group change it should be inherited by TextChangeGroup. More...
 

Detailed Description

a document text-change that doesn't do anyhting :-)

Member Function Documentation

◆ execute()

void edbee::EmptyDocumentChange::execute ( TextDocument )
virtual

does nothing

Implements edbee::Change.

◆ isPersistenceRequired()

bool edbee::EmptyDocumentChange::isPersistenceRequired ( )
virtual

Empty change doesn't do anything.

Reimplemented from edbee::Change.

◆ revert()

void edbee::EmptyDocumentChange::revert ( TextDocument )
virtual

does nothing

Reimplemented from edbee::Change.

◆ toString()

QString edbee::EmptyDocumentChange::toString ( )
virtual

returns the name of the textchange

Implements edbee::Change.


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