1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/apps/opencs/view/world/scriptedit.hpp

37 lines
754 B
C++
Raw Normal View History

2014-02-15 16:55:18 +00:00
#ifndef SCRIPTEDIT_H
#define SCRIPTEDIT_H
#include <qtextedit.h>
#include <QVector>
#include "../../model/world/universalid.hpp"
class QWidget;
2014-02-15 16:55:18 +00:00
namespace CSMDoc
{
class Document;
}
2014-02-15 16:55:18 +00:00
namespace CSVWorld
{
class ScriptEdit : public QTextEdit
{
Q_OBJECT
public:
ScriptEdit (QWidget* parent, const CSMDoc::Document& document);
private:
QVector<CSMWorld::UniversalId::Type> mAllowedTypes;
const CSMDoc::Document& mDocument;
2014-02-15 16:55:18 +00:00
void dragEnterEvent (QDragEnterEvent* event);
void dropEvent (QDropEvent* event);
void dragMoveEvent (QDragMoveEvent* event);
2014-02-16 17:41:42 +00:00
bool stringNeedsQuote(const std::string& id);
2014-02-15 16:55:18 +00:00
};
}
2014-02-15 21:14:27 +00:00
#endif // SCRIPTEDIT_H