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.

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

Singleton destructor.

Member Function Documentation

void te::edit::UndoStackManager::addUndoStack ( QUndoCommand *  command)

Method that insert command Undo/Redo of type AddCommand in the Undo/Redo stack.

Parameters
commandcommand
void te::edit::UndoStackManager::addWatch ( Feature feature)
const std::vector<Feature*>& te::edit::UndoStackManager::getAddWatches ( ) const
static UndoStackManager & te::common::Singleton< UndoStackManager >::getInstance ( )
staticinherited

It returns a reference to the singleton instance.

Returns
A reference to the singleton instance.
QUndoStack* te::edit::UndoStackManager::getUndoStack ( )

Method that return stack of Undo/Redo.

Returns
stack
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.

int te::edit::UndoStackManager::m_currentIndex

Definition at line 75 of file UndoStackManager.h.

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

Undo/Redo stack.

Definition at line 87 of file UndoStackManager.h.


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