Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
Model::AllTreeManagers Class Reference

The AllTreeManagers class contains all existing tree managers. More...

Public Member Functions

 AllTreeManagers (const AllTreeManagers &)=delete
 
 ~AllTreeManagers ()
 
TreeManagerfind (Node *root) const
 Returns the TreeManager object that has as its root node the node indicated. More...
 
const QList< TreeManager * > & loadedManagers () const
 Returns a list to all currently loaded tree managers. More...
 
TreeManagermanagerOfOwningUndoStack (Node *node, const NodeOwningCommand *excludeCommand=nullptr) const
 
NodenodeForId (NodeIdType id) const
 
AllTreeManagersoperator= (const AllTreeManagers &)=delete
 

Static Public Member Functions

static void cleanup ()
 Closes all loaded tree managers. More...
 
static void init ()
 Registers types with the meta object system of Qt to allow signals and slots to work with lists. More...
 
static AllTreeManagersinstance ()
 

Private Member Functions

 AllTreeManagers ()
 
void add (TreeManager *manager)
 Adds manager the list of tree managers. More...
 
TreeManagerremove (TreeManager *manager)
 Removes manager from the list of tree managers. More...
 

Private Attributes

QList< TreeManager * > loadedManagers_
 A list of all TreeManager objects that are currently instantiated. More...
 

Friends

class TreeManager
 

Detailed Description

The AllTreeManagers class contains all existing tree managers.

Constructor & Destructor Documentation

◆ ~AllTreeManagers()

Model::AllTreeManagers::~AllTreeManagers ( )

◆ AllTreeManagers() [1/2]

Model::AllTreeManagers::AllTreeManagers ( const AllTreeManagers )
delete

◆ AllTreeManagers() [2/2]

Model::AllTreeManagers::AllTreeManagers ( )
private

Member Function Documentation

◆ add()

void Model::AllTreeManagers::add ( TreeManager manager)
private

Adds manager the list of tree managers.

This manager will take ownership of manager.

Newly created instances of TreeManager call this method in their constructors.

◆ cleanup()

void Model::AllTreeManagers::cleanup ( )
static

Closes all loaded tree managers.

◆ find()

TreeManager * Model::AllTreeManagers::find ( Node root) const

Returns the TreeManager object that has as its root node the node indicated.

◆ init()

void Model::AllTreeManagers::init ( )
static

Registers types with the meta object system of Qt to allow signals and slots to work with lists.

◆ instance()

AllTreeManagers & Model::AllTreeManagers::instance ( )
static

◆ loadedManagers()

const QList< TreeManager * > & Model::AllTreeManagers::loadedManagers ( ) const
inline

Returns a list to all currently loaded tree managers.

◆ managerOfOwningUndoStack()

TreeManager * Model::AllTreeManagers::managerOfOwningUndoStack ( Node node,
const NodeOwningCommand excludeCommand = nullptr 
) const

◆ nodeForId()

Node * Model::AllTreeManagers::nodeForId ( NodeIdType  id) const

◆ operator=()

AllTreeManagers& Model::AllTreeManagers::operator= ( const AllTreeManagers )
delete

◆ remove()

TreeManager * Model::AllTreeManagers::remove ( TreeManager manager)
private

Removes manager from the list of tree managers.

This manager will give up ownership of manager.

The removed tree manager is returned. This method is called in the desctructor of TreeManager.

Friends And Related Function Documentation

◆ TreeManager

friend class TreeManager
friend

Member Data Documentation

◆ loadedManagers_

QList<TreeManager*> Model::AllTreeManagers::loadedManagers_
private

A list of all TreeManager objects that are currently instantiated.

This is used to find the TreeManager corresponding to a particular root object.