OpenMW
apps/opencs/view/world/recordstatusdelegate.hpp
Go to the documentation of this file.
00001 #ifndef RECORDSTATUSDELEGATE_H
00002 #define RECORDSTATUSDELEGATE_H
00003 
00004 #include "util.hpp"
00005 #include <QTextOption>
00006 #include <QFont>
00007 
00008 #include "datadisplaydelegate.hpp"
00009 #include "../../model/world/record.hpp"
00010 
00011 class QIcon;
00012 class QFont;
00013 
00014 namespace CSVWorld
00015 {
00016     class RecordStatusDelegate : public DataDisplayDelegate
00017     {
00018     public:
00019 
00020         explicit RecordStatusDelegate(const ValueList& values,
00021                                       const IconList& icons,
00022                                       QUndoStack& undoStack, QObject *parent = 0);
00023 
00024         virtual bool updateEditorSetting (const QString &settingName, const QString &settingValue);
00025 
00026     };
00027 
00028     class RecordStatusDelegateFactory : public DataDisplayDelegateFactory
00029     {
00030         public:
00031 
00032             RecordStatusDelegateFactory();
00033 
00034             virtual CommandDelegate *makeDelegate (QUndoStack& undoStack, QObject *parent) const;
00036 
00037     };
00038 }
00039 #endif // RECORDSTATUSDELEGATE_HPP
00040