~stellarium/stellarium/trunk

« back to all changes in this revision

Viewing changes to src/scripting/StelScriptMgr.cpp

  • Committer: Alexander Wolf
  • Date: 2014-08-12 13:16:37 UTC
  • mfrom: (6943.2.2 scripts-output)
  • Revision ID: alex.v.wolf@gmail.com-20140812131637-tg83utgrdg4t0zt4
Added new feature to scripting engine: support of output data into a separate file from scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
 
 
22
#include "StelScriptOutput.hpp"
22
23
#include "StelScriptMgr.hpp"
23
24
#include "StelMainScriptAPI.hpp"
24
25
#include "StelModuleMgr.hpp"
423
424
        emit(scriptDebug(msg));
424
425
}
425
426
 
 
427
void StelScriptMgr::output(const QString &msg)
 
428
{
 
429
        StelScriptOutput::writeLog(msg);
 
430
        emit(scriptOutput(msg));
 
431
}
 
432
 
426
433
void StelScriptMgr::scriptEnded()
427
434
{
428
435
        if (engine.hasUncaughtException())