2013-05-29 11:38:35 +00:00
|
|
|
#ifndef RECORDSTATUSDELEGATE_H
|
|
|
|
#define RECORDSTATUSDELEGATE_H
|
|
|
|
|
|
|
|
#include "util.hpp"
|
2013-05-30 02:55:19 +00:00
|
|
|
#include <QTextOption>
|
|
|
|
#include <QFont>
|
2013-05-29 11:38:35 +00:00
|
|
|
|
2013-07-11 02:13:59 +00:00
|
|
|
#include "datadisplaydelegate.hpp"
|
|
|
|
#include "../../model/world/record.hpp"
|
|
|
|
|
2013-05-29 11:38:35 +00:00
|
|
|
class QIcon;
|
2013-05-30 02:55:19 +00:00
|
|
|
class QFont;
|
2013-05-29 11:38:35 +00:00
|
|
|
|
|
|
|
namespace CSVWorld
|
|
|
|
{
|
2013-07-11 02:13:59 +00:00
|
|
|
class RecordStatusDelegate : public DataDisplayDelegate
|
2013-05-29 11:38:35 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2013-07-11 02:13:59 +00:00
|
|
|
explicit RecordStatusDelegate(const ValueList& values,
|
|
|
|
const IconList& icons,
|
|
|
|
QUndoStack& undoStack, QObject *parent = 0);
|
2013-05-29 11:38:35 +00:00
|
|
|
};
|
|
|
|
|
2013-07-11 02:13:59 +00:00
|
|
|
class RecordStatusDelegateFactory : public DataDisplayDelegateFactory
|
2013-05-29 11:38:35 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2013-07-11 02:13:59 +00:00
|
|
|
RecordStatusDelegateFactory();
|
|
|
|
|
2013-05-29 11:38:35 +00:00
|
|
|
virtual CommandDelegate *makeDelegate (QUndoStack& undoStack, QObject *parent) const;
|
|
|
|
///< The ownership of the returned CommandDelegate is transferred to the caller.
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|
2013-07-11 02:13:59 +00:00
|
|
|
#endif // RECORDSTATUSDELEGATE_HPP
|
2013-05-29 11:38:35 +00:00
|
|
|
|