Subversion Repositories public iLand

Rev

Rev 671 | Rev 697 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 671 Rev 674
Line 30... Line 30...
30
30
31
#include "climateconverter.h"
31
#include "climateconverter.h"
32
#include "csvfile.h"
32
#include "csvfile.h"
33
#include "scriptglobal.h"
33
#include "scriptglobal.h"
34
#include "mapgrid.h"
34
#include "mapgrid.h"
-
 
35
#include "modules.h"
35
36
36
#include <QtScript>
37
#include <QtScript>
37
#include <QTextEdit>
38
#include <QTextEdit>
38
QObject *Management::scriptOutput = 0;
39
QObject *Management::scriptOutput = 0;
39
40
Line 112... Line 113...
112
    mEngine->globalObject().setProperty("Globals", glb);
113
    mEngine->globalObject().setProperty("Globals", glb);
113
    // other object types
114
    // other object types
114
    ClimateConverter::addToScriptEngine(*mEngine);
115
    ClimateConverter::addToScriptEngine(*mEngine);
115
    CSVFile::addToScriptEngine(*mEngine);
116
    CSVFile::addToScriptEngine(*mEngine);
116
    MapGridWrapper::addToScriptEngine(*mEngine);
117
    MapGridWrapper::addToScriptEngine(*mEngine);
-
 
118
    // setup scripting for modules
-
 
119
    GlobalSettings::instance()->model()->modules()->setupScripting(mEngine);
117
120
118
    // default values for removal fractions
121
    // default values for removal fractions
119
    // 100% of the stem, 0% of foliage and branches
122
    // 100% of the stem, 0% of foliage and branches
120
    mRemoveFoliage = 0.;
123
    mRemoveFoliage = 0.;
121
    mRemoveBranch = 0.;
124
    mRemoveBranch = 0.;