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 (QUndoStack &undoStack, QObject *parent) const |
The ownership of the returned CommandDelegate is transferred to the caller. | |
void | add (int value, const QString &name) |
Protected Attributes | |
std::vector< std::pair< int, QString > > | mValues |
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 | ||
) |
CSVWorld::CommandDelegate * CSVWorld::EnumDelegateFactory::makeDelegate | ( | QUndoStack & | undoStack, |
QObject * | parent | ||
) | const [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.
std::vector<std::pair<int, QString> > CSVWorld::EnumDelegateFactory::mValues [protected] |