Classes | Enumerations | Functions
scripttoolbox.h File Reference
#include <QObject>
#include <QVariant>
#include <QtScript>
#include <parametergroup.h>
#include "parameter.h"
#include "guiclient.h"
#include "addresscluster.h"

Classes

class  ScriptToolbox
 The ScriptToolbox provides a collection of miscellaneous utility methods used when writing xTuple ERP extension scripts. More...
 

Enumerations

enum  SaveFlags { CHECK = AddressCluster::CHECK, CHANGEONE = AddressCluster::CHANGEONE, CHANGEALL = AddressCluster::CHANGEALL }
 

Functions

void ParameterGroupStatesfromScriptValue (const QScriptValue &obj, enum ParameterGroup::ParameterGroupStates &en)
 
QScriptValue ParameterGroupStatestoScriptValue (QScriptEngine *engine, const enum ParameterGroup::ParameterGroupStates &en)
 
void ParameterGroupTypesfromScriptValue (const QScriptValue &obj, enum ParameterGroup::ParameterGroupTypes &en)
 
QScriptValue ParameterGroupTypestoScriptValue (QScriptEngine *engine, const enum ParameterGroup::ParameterGroupTypes &en)
 
 Q_DECLARE_METATYPE (enum ParameterGroup::ParameterGroupStates)
 
 Q_DECLARE_METATYPE (enum ParameterGroup::ParameterGroupTypes)
 
 Q_DECLARE_METATYPE (enum Qt::WindowModality)
 
 Q_DECLARE_METATYPE (enum GUIClient::WindowSystem)
 
 Q_DECLARE_METATYPE (enum SaveFlags)
 
void QtWindowModalityfromScriptValue (const QScriptValue &obj, enum Qt::WindowModality &en)
 
QScriptValue QtWindowModalitytoScriptValue (QScriptEngine *engine, const enum Qt::WindowModality &en)
 
void SaveFlagsfromScriptValue (const QScriptValue &obj, enum SaveFlags &en)
 
QScriptValue SaveFlagstoScriptValue (QScriptEngine *engine, const enum SaveFlags &en)
 
QString scriptHandleIncludes (QString source)
 C++ implementation of the original script include mechanism. More...
 
void SetResponsefromScriptValue (const QScriptValue &obj, enum SetResponse &sr)
 
QScriptValue SetResponsetoScriptValue (QScriptEngine *engine, const enum SetResponse &sr)
 
void WindowSystemfromScriptValue (const QScriptValue &obj, enum GUIClient::WindowSystem &en)
 
QScriptValue WindowSystemtoScriptValue (QScriptEngine *engine, const enum GUIClient::WindowSystem &en)
 

Enumeration Type Documentation

enum SaveFlags
Enumerator
CHECK 
CHANGEONE 
CHANGEALL 

Function Documentation

void ParameterGroupStatesfromScriptValue ( const QScriptValue &  obj,
enum ParameterGroup::ParameterGroupStates en 
)
QScriptValue ParameterGroupStatestoScriptValue ( QScriptEngine *  engine,
const enum ParameterGroup::ParameterGroupStates en 
)
void ParameterGroupTypesfromScriptValue ( const QScriptValue &  obj,
enum ParameterGroup::ParameterGroupTypes en 
)
QScriptValue ParameterGroupTypestoScriptValue ( QScriptEngine *  engine,
const enum ParameterGroup::ParameterGroupTypes en 
)
Q_DECLARE_METATYPE ( enum ParameterGroup::ParameterGroupStates  )
Q_DECLARE_METATYPE ( enum ParameterGroup::ParameterGroupTypes  )
Q_DECLARE_METATYPE ( enum Qt::WindowModality  )
Q_DECLARE_METATYPE ( enum GUIClient::WindowSystem  )
Q_DECLARE_METATYPE ( enum  SaveFlags)
void QtWindowModalityfromScriptValue ( const QScriptValue &  obj,
enum Qt::WindowModality &  en 
)
QScriptValue QtWindowModalitytoScriptValue ( QScriptEngine *  engine,
const enum Qt::WindowModality &  en 
)
void SaveFlagsfromScriptValue ( const QScriptValue &  obj,
enum SaveFlags en 
)
QScriptValue SaveFlagstoScriptValue ( QScriptEngine *  engine,
const enum SaveFlags en 
)
QString scriptHandleIncludes ( QString  source)

C++ implementation of the original script include mechanism.

This is the first implementation of script inclusion. It should never be called.

Deprecated:
See include.cpp for the proper way to include scripts. This function will be removed, as will all examples of its use.
See also
include
void SetResponsefromScriptValue ( const QScriptValue &  obj,
enum SetResponse sr 
)
QScriptValue SetResponsetoScriptValue ( QScriptEngine *  engine,
const enum SetResponse sr 
)
void WindowSystemfromScriptValue ( const QScriptValue &  obj,
enum GUIClient::WindowSystem en 
)
QScriptValue WindowSystemtoScriptValue ( QScriptEngine *  engine,
const enum GUIClient::WindowSystem en 
)

Generated on Fri Oct 7 2016 14:23:27 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10