OpenMW
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
CSVWorld::CommandDelegateFactoryCollection Class Reference

Use commands instead of manipulating the model directly. More...

#include <util.hpp>

List of all members.

Public Member Functions

 CommandDelegateFactoryCollection ()
 ~CommandDelegateFactoryCollection ()
void add (CSMWorld::ColumnBase::Display display, CommandDelegateFactory *factory)
CommandDelegatemakeDelegate (CSMWorld::ColumnBase::Display display, QUndoStack &undoStack, QObject *parent) const

Static Public Member Functions

static const
CommandDelegateFactoryCollection
get ()

Private Member Functions

 CommandDelegateFactoryCollection (const CommandDelegateFactoryCollection &)
CommandDelegateFactoryCollectionoperator= (const CommandDelegateFactoryCollection &)

Private Attributes

std::map
< CSMWorld::ColumnBase::Display,
CommandDelegateFactory * > 
mFactories

Static Private Attributes

static
CommandDelegateFactoryCollection
sThis = 0

Detailed Description

Use commands instead of manipulating the model directly.


Constructor & Destructor Documentation


Member Function Documentation

The ownership of \æ factory is transferred to *this.

This function must not be called more than once per value of \æ display.

CSVWorld::CommandDelegate * CSVWorld::CommandDelegateFactoryCollection::makeDelegate ( CSMWorld::ColumnBase::Display  display,
QUndoStack &  undoStack,
QObject *  parent 
) const

The ownership of the returned CommandDelegate is transferred to the caller.

If no factory is registered for display, a CommandDelegate will be returned.

CommandDelegateFactoryCollection& CSVWorld::CommandDelegateFactoryCollection::operator= ( const CommandDelegateFactoryCollection ) [private]

Member Data Documentation


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