50 #include "FileScript.hh"
52 #if QT_VERSION >= 0x050000
60 return QString( tr(
"OpenFlipper Scripting Files ( *.ofs )") );
72 int FileScriptPlugin::loadObject(QString _filename)
75 QFileInfo file(_filename);
78 emit log(
LOGERR,tr(
"File %1 does not exist!").arg(_filename));
83 emit functionExists (
"scripting",
"slotLoadScript(QString)", ok);
92 #if QT_VERSION < 0x050000
const DataType DATA_UNKNOWN(0)
None of the other Objects.
QScriptValue callFunction(QString _plugin, QString _functionName, std::vector< QScriptValue > _parameters)
Call a function provided by a plugin getting multiple parameters.
DataType supportedType()
Return your supported object type( e.g. DATA_TRIANGLE_MESH )