mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-27 06:02:25 -04:00
40 lines
949 B
C++
40 lines
949 B
C++
#ifndef RECORDSTATUSDELEGATE_H
|
|
#define RECORDSTATUSDELEGATE_H
|
|
|
|
#include "datadisplaydelegate.hpp"
|
|
|
|
class QObject;
|
|
|
|
namespace CSMDoc
|
|
{
|
|
class Document;
|
|
}
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class CommandDispatcher;
|
|
}
|
|
|
|
namespace CSVWorld
|
|
{
|
|
class CommandDelegate;
|
|
|
|
class RecordStatusDelegate : public DataDisplayDelegate
|
|
{
|
|
public:
|
|
RecordStatusDelegate(const ValueList& values, const IconList& icons, CSMWorld::CommandDispatcher* dispatcher,
|
|
CSMDoc::Document& document, QObject* parent = nullptr);
|
|
};
|
|
|
|
class RecordStatusDelegateFactory : public DataDisplayDelegateFactory
|
|
{
|
|
public:
|
|
RecordStatusDelegateFactory();
|
|
|
|
CommandDelegate* makeDelegate(
|
|
CSMWorld::CommandDispatcher* dispatcher, CSMDoc::Document& document, QObject* parent) const override;
|
|
///< The ownership of the returned CommandDelegate is transferred to the caller.
|
|
};
|
|
}
|
|
#endif // RECORDSTATUSDELEGATE_HPP
|