forked from teamnwah/openmw-tes3coop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
952 B
C++
38 lines
952 B
C++
#ifndef RECORDSTATUSDELEGATE_H
|
|
#define RECORDSTATUSDELEGATE_H
|
|
|
|
#include "util.hpp"
|
|
#include <QTextOption>
|
|
#include <QFont>
|
|
|
|
#include "datadisplaydelegate.hpp"
|
|
#include "../../model/world/record.hpp"
|
|
|
|
class QIcon;
|
|
class QFont;
|
|
|
|
namespace CSVWorld
|
|
{
|
|
class RecordStatusDelegate : public DataDisplayDelegate
|
|
{
|
|
public:
|
|
|
|
RecordStatusDelegate (const ValueList& values, const IconList& icons,
|
|
CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document& document,
|
|
QObject *parent = 0);
|
|
};
|
|
|
|
class RecordStatusDelegateFactory : public DataDisplayDelegateFactory
|
|
{
|
|
public:
|
|
|
|
RecordStatusDelegateFactory();
|
|
|
|
virtual CommandDelegate *makeDelegate (CSMWorld::CommandDispatcher *dispatcher, CSMDoc::Document& document, QObject *parent) const;
|
|
///< The ownership of the returned CommandDelegate is transferred to the caller.
|
|
|
|
};
|
|
}
|
|
#endif // RECORDSTATUSDELEGATE_HPP
|
|
|