te::edit::UndoStackManager Class Reference

#include <UndoStackManager.h>

Inheritance diagram for te::edit::UndoStackManager:
te::common::Singleton< UndoStackManager >

Public Member Functions

void addUndoStack (QUndoCommand *command)
 Method that insert command Undo/Redo of type AddCommand in the Undo/Redo stack. More...
 
void addWatch (Feature *feature)
 
const std::vector< Feature * > & getAddWatches () const
 
QUndoStack * getUndoStack ()
 Method that return stack of Undo/Redo. More...
 
void reset ()
 

Static Public Member Functions

static UndoStackManagergetInstance ()
 It returns a reference to the singleton instance. More...
 

Public Attributes

int m_currentIndex
 

Protected Member Functions

 UndoStackManager ()
 It initializes the singleton instance of the repository manager. More...
 
 ~UndoStackManager ()
 Singleton destructor. More...
 

Protected Attributes

std::vector< Feature * > m_addWatches
 
QUndoStack * m_undoStack
 Undo/Redo stack. More...
 

Friends

class te::common::Singleton< UndoStackManager >
 

Detailed Description

Definition at line 49 of file UndoStackManager.h.

Constructor & Destructor Documentation

te::edit::UndoStackManager::UndoStackManager ( )
protected

It initializes the singleton instance of the repository manager.

Definition at line 41 of file UndoStackManager.cpp.

te::edit::UndoStackManager::~UndoStackManager ( )
protected

Singleton destructor.

Definition at line 46 of file UndoStackManager.cpp.

References te::common::FreeContents(), m_addWatches, and m_undoStack.

Member Function Documentation

void te::edit::UndoStackManager::addUndoStack ( QUndoCommand command)
const std::vector< te::edit::Feature * > & te::edit::UndoStackManager::getAddWatches ( ) const
QUndoStack * te::edit::UndoStackManager::getUndoStack ( )

Method that return stack of Undo/Redo.

Returns
stack

Definition at line 62 of file UndoStackManager.cpp.

References m_undoStack.

Referenced by te::edit::AddCommand::redo().

void te::edit::UndoStackManager::reset ( )

Friends And Related Function Documentation

friend class te::common::Singleton< UndoStackManager >
friend

Definition at line 51 of file UndoStackManager.h.

Member Data Documentation

std::vector<Feature*> te::edit::UndoStackManager::m_addWatches
protected

Definition at line 85 of file UndoStackManager.h.

Referenced by addWatch(), getAddWatches(), reset(), and ~UndoStackManager().

QUndoStack* te::edit::UndoStackManager::m_undoStack
protected

Undo/Redo stack.

Definition at line 87 of file UndoStackManager.h.

Referenced by addUndoStack(), getUndoStack(), reset(), and ~UndoStackManager().


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