Commit 40553937 authored by Jan Möbius's avatar Jan Möbius

Added the global function printToFile to list of scripting functions

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12445 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 1ae4698a
......@@ -432,6 +432,7 @@ Core::init() {
// Register print to file function :
QScriptValue printToFileFunc = scriptEngine_.newFunction(printToFileFunction);
scriptEngine_.globalObject().setProperty("printToFile", printToFileFunc);
scriptingFunctions_.push_back( "-.printToFile" );
// Register IdList Type to scripting Engine
qScriptRegisterSequenceMetaType< IdList >(&scriptEngine_);
......@@ -1209,6 +1210,14 @@ void Core::slotGetDescription(QString _function, QString& _fnDescript
QString pluginName = _function.section(".", 0, 0);
QString slotName = _function.section(".", 1, 1);
if ( pluginName == "-") {
std::cerr << "Global function, no description implemented yet!" << std::endl;
_fnDescription = "";
_parameters.clear();
_descriptions.clear();
return;
}
//handle core slots
if (pluginName == "core"){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment