OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CSVWorld::CommandDelegateFactoryCollection Class Reference

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

#include <util.hpp>

Collaboration diagram for CSVWorld::CommandDelegateFactoryCollection:

Public Member Functions

 CommandDelegateFactoryCollection ()
 
 ~CommandDelegateFactoryCollection ()
 
void add (CSMWorld::ColumnBase::Display display, CommandDelegateFactory *factory)
 
CommandDelegatemakeDelegate (CSMWorld::ColumnBase::Display display, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, 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

CSVWorld::CommandDelegateFactoryCollection::CommandDelegateFactoryCollection ( const CommandDelegateFactoryCollection )
private
CSVWorld::CommandDelegateFactoryCollection::CommandDelegateFactoryCollection ( )
CSVWorld::CommandDelegateFactoryCollection::~CommandDelegateFactoryCollection ( )

Member Function Documentation

void CSVWorld::CommandDelegateFactoryCollection::add ( CSMWorld::ColumnBase::Display  display,
CommandDelegateFactory factory 
)

The ownership of factory is transferred to *this.

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

Here is the caller graph for this function:

const CSVWorld::CommandDelegateFactoryCollection & CSVWorld::CommandDelegateFactoryCollection::get ( )
static

Here is the caller graph for this function:

CSVWorld::CommandDelegate * CSVWorld::CommandDelegateFactoryCollection::makeDelegate ( CSMWorld::ColumnBase::Display  display,
CSMWorld::CommandDispatcher dispatcher,
CSMDoc::Document document,
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.

Here is the caller graph for this function:

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

Member Data Documentation

std::map<CSMWorld::ColumnBase::Display, CommandDelegateFactory *> CSVWorld::CommandDelegateFactoryCollection::mFactories
private
CSVWorld::CommandDelegateFactoryCollection * CSVWorld::CommandDelegateFactoryCollection::sThis = 0
staticprivate

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