Moka controlers
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
controler-undo-redo.hh File Reference

Go to the source code of this file.

Functions

int getNbMaxUndos () const
 
void setNbMaxUndos (int ANumber)
 
bool getUndoOnFile () const
 
void setUndoOnFile (bool ABool)
 
virtual bool undo (int AStep=1)
 
virtual bool redo (int AStep=1)
 
bool emptyUndoRedo ()
 
virtual void undoRedoPreSave ()
 
virtual void undoRedoPostSaveOk ()
 
virtual void undoRedoPostSaveFailed ()
 
Méthodes de sauvegarde dans la pile d'undo/redo :
void emptyUndoList ()
 
void emptyRedoList ()
 
void basicPreSave ()
 
void basicPostSaveOk ()
 
void basicPostSaveFailed ()
 
std::string getUndoRedoStatus () const
 
std::string getFilename (int AIndex) const
 
int getNewFileIndex ()
 
virtual std::ostringstream * saveModel ()
 
virtual bool loadModel (std::ostringstream *AStream)
 
bool existsFile (const std::string &AFilename)
 
void recupLastUndoFromFile ()
 
void saveLastUndoOnFile ()
 
void recupFromFiles ()
 
bool basicUndo (int AStep=1)
 
bool basicRedo (int AStep=1)
 

Variables

bool FUndoOnFile
 
int FNbMaxUndos
 
int FLastFileIndex
 
std::list< std::ostringstream * > FUndos
 
std::list< std::ostringstream * > FRedos
 
std::ostringstream * FActu
 

Function Documentation

void basicPostSaveFailed ( )
protected
void basicPostSaveOk ( )
protected
void basicPreSave ( )
protected
bool basicRedo ( int  AStep = 1)
protected
bool basicUndo ( int  AStep = 1)
protected
void emptyRedoList ( )
protected
void emptyUndoList ( )
protected
bool emptyUndoRedo ( )

emptyUndoRedo

Pour vider la pile des undo / redo

bool existsFile ( const std::string &  AFilename)
protected
std::string getFilename ( int  AIndex) const
protected
int getNbMaxUndos ( ) const
int getNewFileIndex ( )
protected
bool getUndoOnFile ( ) const
std::string getUndoRedoStatus ( ) const
protected
virtual bool loadModel ( std::ostringstream *  AStream)
protectedvirtual
void recupFromFiles ( )
protected
void recupLastUndoFromFile ( )
protected
virtual bool redo ( int  AStep = 1)
virtual
void saveLastUndoOnFile ( )
protected
virtual std::ostringstream* saveModel ( )
protectedvirtual
void setNbMaxUndos ( int  ANumber)
void setUndoOnFile ( bool  ABool)
virtual bool undo ( int  AStep = 1)
virtual

undo

Termine l'opération en cours (si nécessaire) et passe en mode MODE_SELECTION avant d'effectuer l'undo.

virtual void undoRedoPostSaveFailed ( )
protectedvirtual
virtual void undoRedoPostSaveOk ( )
protectedvirtual
virtual void undoRedoPreSave ( )
protectedvirtual

Variable Documentation

std::ostringstream* FActu

Definition at line 99 of file controler-undo-redo.hh.

int FLastFileIndex

Definition at line 96 of file controler-undo-redo.hh.

int FNbMaxUndos

Definition at line 95 of file controler-undo-redo.hh.

std::list<std::ostringstream*> FRedos

Definition at line 98 of file controler-undo-redo.hh.

bool FUndoOnFile

Definition at line 94 of file controler-undo-redo.hh.

std::list<std::ostringstream*> FUndos

Definition at line 97 of file controler-undo-redo.hh.