OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
recordstatusdelegate.hpp
Go to the documentation of this file.
1 #ifndef RECORDSTATUSDELEGATE_H
2 #define RECORDSTATUSDELEGATE_H
3 
4 #include "util.hpp"
5 #include <QTextOption>
6 #include <QFont>
7 
9 #include "../../model/world/record.hpp"
10 
11 class QIcon;
12 class QFont;
13 
14 namespace CSVWorld
15 {
17  {
18  public:
19 
20  RecordStatusDelegate (const ValueList& values, const IconList& icons,
21  CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document& document,
22  QObject *parent = 0);
23  };
24 
26  {
27  public:
28 
30 
31  virtual CommandDelegate *makeDelegate (CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document& document, QObject *parent) const;
33 
34  };
35 }
36 #endif // RECORDSTATUSDELEGATE_HPP
37 
std::vector< std::pair< int, QString > > ValueList
Definition: datadisplaydelegate.hpp:19
RecordStatusDelegate(const ValueList &values, const IconList &icons, CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent=0)
Definition: recordstatusdelegate.cpp:9
virtual CommandDelegate * makeDelegate(CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document &document, QObject *parent) const
The ownership of the returned CommandDelegate is transferred to the caller.
Definition: recordstatusdelegate.cpp:17
Definition: recordstatusdelegate.hpp:25
Definition: datadisplaydelegate.hpp:14
RecordStatusDelegateFactory()
Definition: recordstatusdelegate.cpp:23
Definition: commanddispatcher.hpp:20
Definition: util.hpp:99
Definition: document.hpp:57
Definition: datadisplaydelegate.hpp:73
std::vector< std::pair< int, QIcon > > IconList
Definition: datadisplaydelegate.hpp:18
Definition: recordstatusdelegate.hpp:16