OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vartypedelegate.hpp
Go to the documentation of this file.
1 #ifndef CSV_WORLD_VARTYPEDELEGATE_H
2 #define CSV_WORLD_VARTYPEDELEGATE_H
3 
5 
6 #include "enumdelegate.hpp"
7 
8 namespace CSVWorld
9 {
11  {
12  private:
13 
14  virtual void addCommands (QAbstractItemModel *model,
15  const QModelIndex& index, int type) const;
16 
17  public:
18 
19  VarTypeDelegate (const std::vector<std::pair<int, QString> >& values,
20  CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document& document, QObject *parent);
21  };
22 
24  {
25  std::vector<std::pair<int, QString> > mValues;
26 
27  public:
28 
32 
34  CSMDoc::Document& document, QObject *parent) const;
36 
37  void add (ESM::VarType type);
38  };
39 }
40 
41 #endif
VarType
Definition: variant.hpp:12
VarTypeDelegate(const std::vector< std::pair< int, QString > > &values, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent)
Definition: vartypedelegate.cpp:46
virtual void addCommands(QAbstractItemModel *model, const QModelIndex &index, int type) const
Definition: vartypedelegate.cpp:9
void add(ESM::VarType type)
Definition: vartypedelegate.cpp:74
Definition: variant.hpp:14
VarTypeDelegateFactory(ESM::VarType type0=ESM::VT_Unknown, ESM::VarType type1=ESM::VT_Unknown, ESM::VarType type2=ESM::VT_Unknown, ESM::VarType type3=ESM::VT_Unknown)
Definition: vartypedelegate.cpp:52
Definition: commanddispatcher.hpp:20
Definition: vartypedelegate.hpp:23
Definition: util.hpp:99
virtual CommandDelegate * makeDelegate(CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent) const
The ownership of the returned CommandDelegate is transferred to the caller.
Definition: vartypedelegate.cpp:68
Definition: document.hpp:57
Integer value that represents an enum and is interacted with via a combobox.
Definition: enumdelegate.hpp:16
std::vector< std::pair< int, QString > > mValues
Definition: vartypedelegate.hpp:25
Definition: vartypedelegate.hpp:10
Definition: util.hpp:53