cctw  0.2.1
cctwscriptengine.h
Go to the documentation of this file.
1 #ifndef CCTWQTSCRIPTENGINE_H
2 #define CCTWQTSCRIPTENGINE_H
3 
4 #include <QScriptEngine>
5 class CctwApplication;
6 
7 class CctwScriptEngine : public QScriptEngine
8 {
9  Q_OBJECT
10 public:
11  explicit CctwScriptEngine(CctwApplication *app, QObject *parent = 0);
12 
13 signals:
14 
15 public slots:
16  void checkForExceptions();
17 
18 public:
20 
21 private:
22  static QScriptValue printFunc(QScriptContext *context, QScriptEngine *engine);
23  static QScriptValue waitFunc(QScriptContext *context, QScriptEngine *engine);
24  static QScriptValue loadPreferencesFunc(QScriptContext *context, QScriptEngine *engine);
25  static QScriptValue executeScriptFileFunc(QScriptContext *context, QScriptEngine *engine);
26  static QScriptValue showHelpFunc(QScriptContext *context, QScriptEngine *engine);
27  static QScriptValue showVersionFunc(QScriptContext *context, QScriptEngine *engine);
28  static QScriptValue setThreadsFunc(QScriptContext *context, QScriptEngine *engine);
29  static QScriptValue setInputDataFunc(QScriptContext *context, QScriptEngine *engine);
30  static QScriptValue setInputChunksFunc(QScriptContext *context, QScriptEngine *engine);
31  static QScriptValue setInputDatasetFunc(QScriptContext *context, QScriptEngine *engine);
32  static QScriptValue setMaskFunc(QScriptContext *context, QScriptEngine *engine);
33  static QScriptValue setAnglesFunc(QScriptContext *context, QScriptEngine *engine);
34  static QScriptValue setOmegaFunc(QScriptContext *context, QScriptEngine *engine);
35  static QScriptValue setTwoThetaFunc(QScriptContext *context, QScriptEngine *engine);
36  static QScriptValue setPhiFunc(QScriptContext *context, QScriptEngine *engine);
37  static QScriptValue setChiFunc(QScriptContext *context, QScriptEngine *engine);
38  static QScriptValue setWeightsFunc(QScriptContext *context, QScriptEngine *engine);
39  static QScriptValue setOutputDataFunc(QScriptContext *context, QScriptEngine *engine);
40  static QScriptValue setOutputDimsFunc(QScriptContext *context, QScriptEngine *engine);
41  static QScriptValue setOutputChunksFunc(QScriptContext *context, QScriptEngine *engine);
42  static QScriptValue setOutputDatasetFunc(QScriptContext *context, QScriptEngine *engine);
43  static QScriptValue transformFunc(QScriptContext *context, QScriptEngine *engine);
44  static QScriptValue setSubsetFunc(QScriptContext *context, QScriptEngine *engine);
45  static QScriptValue dependenciesFunc(QScriptContext *context, QScriptEngine *engine);
46  static QScriptValue noDependenciesFunc(QScriptContext *context, QScriptEngine *engine);
47  static QScriptValue normalizationFunc(QScriptContext *context, QScriptEngine *engine);
48  static QScriptValue compressionFunc(QScriptContext *context, QScriptEngine *engine);
49  static QScriptValue inputProjectFunc(QScriptContext *context, QScriptEngine *engine);
50  static QScriptValue outputProjectFunc(QScriptContext *context, QScriptEngine *engine);
51  static QScriptValue setProjectOutputFunc(QScriptContext *context, QScriptEngine *engine);
52  static QScriptValue mergeInputFunc(QScriptContext *context, QScriptEngine *engine);
53  static QScriptValue mergeOutputFunc(QScriptContext *context, QScriptEngine *engine);
54 
55 // typedef QObject *QObjectP;
56 
57 // static QScriptValue QObjectToScriptValue(QScriptEngine *engine, const QObjectP &object);
58 // static void QObjectFromScriptValue(const QScriptValue& value, QObjectP &object);
59 
60 private:
62 };
63 
64 #endif // CCTWQTSCRIPTENGINE_H
static QScriptValue mergeOutputFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue inputProjectFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue transformFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue showVersionFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setOutputDataFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue mergeInputFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue waitFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setChiFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue dependenciesFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setPhiFunc(QScriptContext *context, QScriptEngine *engine)
CctwScriptEngine(CctwApplication *app, QObject *parent=0)
static QScriptValue outputProjectFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setOutputDimsFunc(QScriptContext *context, QScriptEngine *engine)
CctwApplication * m_Application
static QScriptValue executeScriptFileFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setWeightsFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setInputChunksFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setInputDatasetFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setOutputChunksFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setThreadsFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setProjectOutputFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setMaskFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setSubsetFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setOmegaFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setOutputDatasetFunc(QScriptContext *context, QScriptEngine *engine)
CctwApplication * application() const
static QScriptValue setAnglesFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue loadPreferencesFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setTwoThetaFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue noDependenciesFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue printFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue setInputDataFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue compressionFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue normalizationFunc(QScriptContext *context, QScriptEngine *engine)
static QScriptValue showHelpFunc(QScriptContext *context, QScriptEngine *engine)