OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
idtypedelegate.hpp
Go to the documentation of this file.
1 #ifndef IDTYPEDELEGATE_HPP
2 #define IDTYPEDELEGATE_HPP
3 
4 #include "enumdelegate.hpp"
5 #include "util.hpp"
6 #include "../../model/world/universalid.hpp"
8 
9 namespace CSVWorld
10 {
12  {
13  public:
14  IdTypeDelegate (const ValueList &mValues, const IconList &icons, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document& document, QObject *parent);
15  };
16 
18  {
19  public:
20 
22 
23  virtual CommandDelegate *makeDelegate (CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document& document, QObject *parent) const;
25  };
26 }
27 
28 #endif // REFIDTYPEDELEGATE_HPP
Definition: idtypedelegate.hpp:11
std::vector< std::pair< int, QString > > ValueList
Definition: datadisplaydelegate.hpp:19
IdTypeDelegate(const ValueList &mValues, const IconList &icons, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent)
Definition: idtypedelegate.cpp:6
std::vector< std::pair< int, QString > > mValues
Definition: enumdelegate.hpp:20
Definition: datadisplaydelegate.hpp:14
Definition: commanddispatcher.hpp:20
Definition: util.hpp:99
IdTypeDelegateFactory()
Definition: idtypedelegate.cpp:12
Definition: document.hpp:57
Definition: datadisplaydelegate.hpp:73
virtual CommandDelegate * makeDelegate(CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent) const
The ownership of the returned CommandDelegate is transferred to the caller.
Definition: idtypedelegate.cpp:23
Definition: idtypedelegate.hpp:17
std::vector< std::pair< int, QIcon > > IconList
Definition: datadisplaydelegate.hpp:18