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 SaveFlags)
 Q_DECLARE_METATYPE (enum Qt::WindowModality)
 Q_DECLARE_METATYPE (enum ParameterGroup::ParameterGroupTypes)
 Q_DECLARE_METATYPE (enum ParameterGroup::ParameterGroupStates)
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.
void SetResponsefromScriptValue (const QScriptValue &obj, enum SetResponse &sr)
QScriptValue SetResponsetoScriptValue (QScriptEngine *engine, const enum SetResponse &sr)

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  SaveFlags  ) 
Q_DECLARE_METATYPE ( enum Qt::WindowModality   ) 
Q_DECLARE_METATYPE ( enum ParameterGroup::ParameterGroupTypes   ) 
Q_DECLARE_METATYPE ( enum ParameterGroup::ParameterGroupStates   ) 
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 
)

Generated on Tue Apr 20 12:02:28 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1