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

#include <enumdelegate.hpp>

Inheritance diagram for CSVWorld::EnumDelegateFactory:
Collaboration diagram for CSVWorld::EnumDelegateFactory:

Public Member Functions

 EnumDelegateFactory ()
 
 EnumDelegateFactory (const char **names, bool allowNone=false)
 
 EnumDelegateFactory (const std::vector< std::string > &names, bool allowNone=false)
 
virtual CommandDelegatemakeDelegate (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
 

Constructor & Destructor Documentation

CSVWorld::EnumDelegateFactory::EnumDelegateFactory ( )
CSVWorld::EnumDelegateFactory::EnumDelegateFactory ( const char **  names,
bool  allowNone = false 
)
Parameters
namesArray of char pointer with a 0-pointer as end mark
allowNoneUse value of -1 for "none selected" (empty string)

Here is the call graph for this function:

CSVWorld::EnumDelegateFactory::EnumDelegateFactory ( const std::vector< std::string > &  names,
bool  allowNone = false 
)

Here is the call graph for this function:

Member Function Documentation

void CSVWorld::EnumDelegateFactory::add ( int  value,
const QString &  name 
)

Here is the caller graph for this function:

CSVWorld::CommandDelegate * CSVWorld::EnumDelegateFactory::makeDelegate ( CSMWorld::CommandDispatcher dispatcher,
CSMDoc::Document document,
QObject parent 
) const
virtual

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

Parameters
allowNoneUse value of -1 for "none selected" (empty string)

Implements CSVWorld::CommandDelegateFactory.

Reimplemented in CSVWorld::DataDisplayDelegateFactory, CSVWorld::RecordStatusDelegateFactory, and CSVWorld::IdTypeDelegateFactory.

Member Data Documentation

std::vector<std::pair<int, QString> > CSVWorld::EnumDelegateFactory::mValues
protected

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