|
OpenMW
|
#include <enumdelegate.hpp>
Public Member Functions | |
| EnumDelegateFactory () | |
| EnumDelegateFactory (const char **names, bool allowNone=false) | |
| EnumDelegateFactory (const std::vector< std::string > &names, bool allowNone=false) | |
| virtual CommandDelegate * | makeDelegate (CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent) const |
| The ownership of the returned CommandDelegate is transferred to the caller. More... | |
| void | add (int value, const QString &name) |
Public Member Functions inherited from CSVWorld::CommandDelegateFactory | |
| virtual | ~CommandDelegateFactory () |
Protected Attributes | |
| std::vector< std::pair< int, QString > > | mValues |
| CSVWorld::EnumDelegateFactory::EnumDelegateFactory | ( | ) |
| CSVWorld::EnumDelegateFactory::EnumDelegateFactory | ( | const char ** | names, |
| bool | allowNone = false |
||
| ) |
| names | Array of char pointer with a 0-pointer as end mark |
| allowNone | Use value of -1 for "none selected" (empty string) |
| CSVWorld::EnumDelegateFactory::EnumDelegateFactory | ( | const std::vector< std::string > & | names, |
| bool | allowNone = false |
||
| ) |
| void CSVWorld::EnumDelegateFactory::add | ( | int | value, |
| const QString & | name | ||
| ) |
|
virtual |
The ownership of the returned CommandDelegate is transferred to the caller.
| allowNone | Use value of -1 for "none selected" (empty string) |
Implements CSVWorld::CommandDelegateFactory.
Reimplemented in CSVWorld::DataDisplayDelegateFactory, CSVWorld::RecordStatusDelegateFactory, and CSVWorld::IdTypeDelegateFactory.
|
protected |
1.8.6