OpenMW
apps/opencs/view/world/idtypedelegate.hpp
Go to the documentation of this file.
00001 #ifndef IDTYPEDELEGATE_HPP
00002 #define IDTYPEDELEGATE_HPP
00003 
00004 #include "enumdelegate.hpp"
00005 #include "util.hpp"
00006 #include "../../model/world/universalid.hpp"
00007 #include "datadisplaydelegate.hpp"
00008 
00009 namespace CSVWorld
00010 {
00011     class IdTypeDelegate : public DataDisplayDelegate
00012     {
00013         public:
00014             IdTypeDelegate (const ValueList &mValues, const IconList &icons, QUndoStack& undoStack, QObject *parent);
00015 
00016             virtual bool updateEditorSetting (const QString &settingName, const QString &settingValue);
00017 
00018     };
00019 
00020     class IdTypeDelegateFactory : public DataDisplayDelegateFactory
00021     {
00022         public:
00023 
00024             IdTypeDelegateFactory();
00025 
00026             virtual CommandDelegate *makeDelegate (QUndoStack& undoStack, QObject *parent) const;
00028     };
00029 }
00030 
00031 #endif // REFIDTYPEDELEGATE_HPP