OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
CSVWorld::ScriptErrorTable Class Reference

#include <scripterrortable.hpp>

Inheritance diagram for CSVWorld::ScriptErrorTable:
Collaboration diagram for CSVWorld::ScriptErrorTable:

Signals

void highlightError (int line, int column)
 

Public Member Functions

 ScriptErrorTable (const CSMDoc::Document &document, QWidget *parent=0)
 
void update (const std::string &source)
 
void clear ()
 
bool clearLocals (const std::string &script)
 

Private Slots

void settingChanged (const CSMPrefs::Setting *setting)
 
void cellClicked (int row, int column)
 

Private Member Functions

virtual void report (const std::string &message, const Compiler::TokenLoc &loc, Type type)
 Report error to the user. More...
 
virtual void report (const std::string &message, Type type)
 Report a file related error. More...
 
void addMessage (const std::string &message, CSMDoc::Message::Severity severity, int line=-1, int column=-1)
 
void setWarningsMode (const std::string &value)
 
- Private Member Functions inherited from Compiler::ErrorHandler
 ErrorHandler ()
 constructor More...
 
virtual ~ErrorHandler ()
 destructor More...
 
bool isGood () const
 Was compiling successful? More...
 
int countErrors () const
 Return number of errors. More...
 
int countWarnings () const
 Return number of warnings. More...
 
void warning (const std::string &message, const TokenLoc &loc)
 Generate a warning message. More...
 
void error (const std::string &message, const TokenLoc &loc)
 Generate an error message. More...
 
void endOfFile ()
 Generate an error message for an unexpected EOF. More...
 
virtual void reset ()
 Remove all previous error/warning events. More...
 
void setWarningsMode (int mode)
 // 0 ignore, 1 rate as warning, 2 rate as error More...
 
void downgradeErrors (bool downgrade)
 Treat errors as warnings. More...
 

Private Attributes

Compiler::Extensions mExtensions
 
CSMWorld::ScriptContext mContext
 

Additional Inherited Members

- Private Types inherited from Compiler::ErrorHandler
enum  Type { WarningMessage, ErrorMessage }
 

Constructor & Destructor Documentation

CSVWorld::ScriptErrorTable::ScriptErrorTable ( const CSMDoc::Document document,
QWidget parent = 0 
)

Here is the call graph for this function:

Member Function Documentation

void CSVWorld::ScriptErrorTable::addMessage ( const std::string &  message,
CSMDoc::Message::Severity  severity,
int  line = -1,
int  column = -1 
)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::ScriptErrorTable::cellClicked ( int  row,
int  column 
)
privateslot

Here is the caller graph for this function:

void CSVWorld::ScriptErrorTable::clear ( )
bool CSVWorld::ScriptErrorTable::clearLocals ( const std::string &  script)

Clear local variable cache for script.

Returns
Were there any locals that needed clearing?
void CSVWorld::ScriptErrorTable::highlightError ( int  line,
int  column 
)
signal
void CSVWorld::ScriptErrorTable::report ( const std::string &  message,
const Compiler::TokenLoc loc,
Type  type 
)
privatevirtual

Report error to the user.

Implements Compiler::ErrorHandler.

Here is the call graph for this function:

void CSVWorld::ScriptErrorTable::report ( const std::string &  message,
Type  type 
)
privatevirtual

Report a file related error.

Implements Compiler::ErrorHandler.

void CSVWorld::ScriptErrorTable::settingChanged ( const CSMPrefs::Setting setting)
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVWorld::ScriptErrorTable::setWarningsMode ( const std::string &  value)
private

Here is the call graph for this function:

void CSVWorld::ScriptErrorTable::update ( const std::string &  source)

Here is the caller graph for this function:

Member Data Documentation

CSMWorld::ScriptContext CSVWorld::ScriptErrorTable::mContext
private
Compiler::Extensions CSVWorld::ScriptErrorTable::mExtensions
private

The documentation for this class was generated from the following files: