|
OpenMW
|
Use commands instead of manipulating the model directly. More...
#include <util.hpp>
Public Member Functions | |
| CommandDelegateFactoryCollection () | |
| ~CommandDelegateFactoryCollection () | |
| void | add (CSMWorld::ColumnBase::Display display, CommandDelegateFactory *factory) |
| CommandDelegate * | makeDelegate (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 &) | |
| CommandDelegateFactoryCollection & | operator= (const CommandDelegateFactoryCollection &) |
Private Attributes | |
| std::map < CSMWorld::ColumnBase::Display, CommandDelegateFactory * > | mFactories |
Static Private Attributes | |
| static CommandDelegateFactoryCollection * | sThis = 0 |
Use commands instead of manipulating the model directly.
|
private |
| CSVWorld::CommandDelegateFactoryCollection::CommandDelegateFactoryCollection | ( | ) |
| CSVWorld::CommandDelegateFactoryCollection::~CommandDelegateFactoryCollection | ( | ) |
| 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.
|
static |
| 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.
|
private |
|
private |
|
staticprivate |
1.8.6