mirror of https://github.com/OpenMW/openmw.git
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.
46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
10 years ago
|
#ifndef CSV_WORLD_SCRIPTERRORTABLE_H
|
||
|
#define CSV_WORLD_SCRIPTERRORTABLE_H
|
||
|
|
||
|
#include <QTableWidget>
|
||
|
|
||
|
#include <components/compiler/errorhandler.hpp>
|
||
|
#include <components/compiler/extensions.hpp>
|
||
|
|
||
|
#include "../../model/world/scriptcontext.hpp"
|
||
|
#include "../../model/doc/messages.hpp"
|
||
|
|
||
|
namespace CSMDoc
|
||
|
{
|
||
|
class Document;
|
||
|
}
|
||
|
|
||
|
namespace CSVWorld
|
||
|
{
|
||
|
class ScriptErrorTable : public QTableWidget, private Compiler::ErrorHandler
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
Compiler::Extensions mExtensions;
|
||
|
CSMWorld::ScriptContext mContext;
|
||
|
|
||
|
virtual void report (const std::string& message, const Compiler::TokenLoc& loc, Type type);
|
||
|
///< Report error to the user.
|
||
|
|
||
|
virtual void report (const std::string& message, Type type);
|
||
|
///< Report a file related error
|
||
|
|
||
|
void addMessage (const std::string& message, CSMDoc::Message::Severity severity,
|
||
|
int line = -1);
|
||
|
|
||
|
public:
|
||
|
|
||
|
ScriptErrorTable (const CSMDoc::Document& document, QWidget *parent = 0);
|
||
|
|
||
|
void updateUserSetting (const QString& name, const QStringList& value);
|
||
|
|
||
|
void update (const std::string& source);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|