Eneboo - Documentación para desarrolladores
Clases | Señales | Métodos públicos | Métodos públicos estáticos | Amigas
Referencia de la Clase QuickInterpreter

#include <quickinterpreter.h>

Diagrama de herencias de QuickInterpreter
QSEngine QObject Qt Qt

Lista de todos los miembros.

Clases

struct  Property

Señales

void runtimeError ()
void parseError ()
void warning (const QString &msg, int line)
void runProject ()
void stopProject ()
void queryGlobalFunctions (QStringList &funcs)
void toggleDebugger (bool)

Métodos públicos

 QuickInterpreter (bool deb=FALSE)
virtual ~QuickInterpreter ()
void addTopLevelObject (QObject *o)
void setTopLevelObjects (QObjectList *l)
bool hasTopLevelParent (QObject *o)
QStringList children () const
QObjectListtopLevelObjects () const
bool checkSyntax (const QString &code)
QSArgument execute (QObject *_this, const QString &code, const QString &scriptName)
QSArgument call (QObject *ctx, const QString &func, const QSList &args)
QSArgument call (QSObject ctx, const QString &func, const QSList &args)
QSArgument call (QObject *ctx, const QString &func, const QSArgumentList &args)
void clear ()
void stop ()
bool hadError () const
void warn (const QString &msg, int l)
void reinit ()
void clearSourceIdMap ()
void addSourceId (int id, QObject *o)
QObjectobjectOfSourceId (int id) const
int sourceIdOfObject (QObject *o) const
QString nameOfSourceId (int id) const
int sourceIdOfName (const QString &name) const
bool queryDispatchObjects (QObject *obj, QPtrVector< QObject > &result)
bool queryDispatchObjects (const QCString &name, void *ptr, QPtrVector< QObject > &result)
bool construct (const QString &className, const QValueList< QVariant > &args, QPtrVector< QObject > &result)
void emitToggleDebugger (bool enable)
QStringList staticGlobalObjects () const
QuickDispatchObjectFactorydispatchObjectFactory () const
QSWrapperClasswrapperClass () const
QSPointerClasspointerClass () const
QSVariantClassvariantClass () const
QSMapClass * mapClass () const
QSPointClasspointClass () const
QSSizeClasssizeClass () const
QSRectClassrectClass () const
QSColorClasscolorClass () const
QSFontClassfontClass () const
QSByteArrayClassbyteArrayClass () const
QSPixmapClasspixmapClass () const
QSApplicationClassapplicationClass () const
QSColorGroupClasscolorGroupClass () const
QSPaletteClasspaletteClass () const
QSObject wrap (QObject *o)
QSArgument convertToArgument (const QSObject &object)
bool hasFunction (const QString &function) const
bool hasVariable (const QString &variable) const
bool hasClass (const QString &className) const
QStringList functionsOf (QSObject &obj, bool includeSignature, bool includeNative=FALSE, bool includeMemberFunctions=FALSE) const
QStringList classes () const
QStringList classesOf (QSObject &obj) const
QStringList variablesOf (QSObject &obj, bool includeStatic=FALSE, bool includeCustom=FALSE, bool includeMemberVariables=FALSE) const
QSObject object (const QString &name) const
const QSClassclassOf (const QSObject &obj) const
int uniqueId () const
int userDataId () const
void setVariable (QObject *context, const QString &name, const QSArgument &value)
QSArgument variable (QObject *context, const QString &name)

Métodos públicos estáticos

static void enableTimers (bool b)
static bool timersEnabled ()
static QuickInterpreterfromEnv (QSEnv *e)
static void cleanType (QString &type)
static void cleanTypeRev (QString &type)

Amigas

class QuickScriptObject
class QuickScript

Documentación del constructor y destructor

QuickInterpreter::QuickInterpreter ( bool  deb = FALSE)
QuickInterpreter::~QuickInterpreter ( ) [virtual]

Documentación de las funciones miembro

void QuickInterpreter::addSourceId ( int  id,
QObject o 
)
void QuickInterpreter::addTopLevelObject ( QObject o)
QSApplicationClass* QuickInterpreter::applicationClass ( ) const [inline]
QSByteArrayClass* QuickInterpreter::byteArrayClass ( ) const [inline]
QSArgument QuickInterpreter::call ( QObject ctx,
const QString func,
const QSList args 
)
QSArgument QuickInterpreter::call ( QSObject  ctx,
const QString func,
const QSList args 
)
QSArgument QuickInterpreter::call ( QObject ctx,
const QString func,
const QSArgumentList args 
)
bool QuickInterpreter::checkSyntax ( const QString code)
QStringList QuickInterpreter::children ( ) const [inline]

Returns a list of child objects, or 0 if this object has no children.

The QObjectList class is defined in the qobjectlist.h header file.

The first child added is the first object in the list and the last child added is the last object in the list, i.e. new children are appended at the end.

Note that the list order changes when QWidget children are raised or lowered. A widget that is raised becomes the last object in the list, and a widget that is lowered becomes the first object in the list.

Ver también:
child(), queryList(), parent(), insertChild(), removeChild()

Reimplementado de QObject.

QStringList QuickInterpreter::classes ( ) const
QStringList QuickInterpreter::classesOf ( QSObject obj) const
const QSClass * QuickInterpreter::classOf ( const QSObject obj) const
void QuickInterpreter::cleanType ( QString type) [static]
void QuickInterpreter::cleanTypeRev ( QString type) [static]
void QuickInterpreter::clear ( void  )

Clear the interpreter's memory. Otherwise, function declarations and global variables will be remembered after each invokation of QSEngine::evaluate.

Reimplementado de QSEngine.

void QuickInterpreter::clearSourceIdMap ( )
QSColorClass* QuickInterpreter::colorClass ( ) const [inline]
QSColorGroupClass* QuickInterpreter::colorGroupClass ( ) const [inline]
bool QuickInterpreter::construct ( const QString className,
const QValueList< QVariant > &  args,
QPtrVector< QObject > &  result 
)
QSArgument QuickInterpreter::convertToArgument ( const QSObject object)
QuickDispatchObjectFactory* QuickInterpreter::dispatchObjectFactory ( ) const [inline]
void QuickInterpreter::emitToggleDebugger ( bool  enable) [inline]
void QuickInterpreter::enableTimers ( bool  b) [static]
QSArgument QuickInterpreter::execute ( QObject _this,
const QString code,
const QString scriptName 
)
QSFontClass* QuickInterpreter::fontClass ( ) const [inline]
QuickInterpreter * QuickInterpreter::fromEnv ( QSEnv e) [static]

Retrieves a pointer to the interpreter class from an environment pointer.

QStringList QuickInterpreter::functionsOf ( QSObject obj,
bool  includeSignature,
bool  includeNative = FALSE,
bool  includeMemberFunctions = FALSE 
) const
bool QuickInterpreter::hadError ( ) const
bool QuickInterpreter::hasClass ( const QString className) const
bool QuickInterpreter::hasFunction ( const QString function) const
bool QuickInterpreter::hasTopLevelParent ( QObject o)
bool QuickInterpreter::hasVariable ( const QString variable) const
QSMapClass* QuickInterpreter::mapClass ( ) const [inline]
QString QuickInterpreter::nameOfSourceId ( int  id) const
QSObject QuickInterpreter::object ( const QString name) const
QObject * QuickInterpreter::objectOfSourceId ( int  id) const
QSPaletteClass* QuickInterpreter::paletteClass ( ) const [inline]
void QuickInterpreter::parseError ( ) [signal]
QSPixmapClass* QuickInterpreter::pixmapClass ( ) const [inline]
QSPointClass* QuickInterpreter::pointClass ( ) const [inline]
QSPointerClass* QuickInterpreter::pointerClass ( ) const [inline]
bool QuickInterpreter::queryDispatchObjects ( QObject obj,
QPtrVector< QObject > &  result 
)
bool QuickInterpreter::queryDispatchObjects ( const QCString name,
void *  ptr,
QPtrVector< QObject > &  result 
)
void QuickInterpreter::queryGlobalFunctions ( QStringList funcs) [signal]
QSRectClass* QuickInterpreter::rectClass ( ) const [inline]
void QuickInterpreter::reinit ( )
void QuickInterpreter::runProject ( ) [signal]
void QuickInterpreter::runtimeError ( ) [signal]
void QuickInterpreter::setTopLevelObjects ( QObjectList l)
void QuickInterpreter::setVariable ( QObject context,
const QString name,
const QSArgument value 
)
QSSizeClass* QuickInterpreter::sizeClass ( ) const [inline]
int QuickInterpreter::sourceIdOfName ( const QString name) const
int QuickInterpreter::sourceIdOfObject ( QObject o) const
QStringList QuickInterpreter::staticGlobalObjects ( ) const [inline]
void QuickInterpreter::stop ( void  )
void QuickInterpreter::stopProject ( ) [signal]
bool QuickInterpreter::timersEnabled ( ) [static]
void QuickInterpreter::toggleDebugger ( bool  ) [signal]
QObjectList* QuickInterpreter::topLevelObjects ( ) const [inline]
int QuickInterpreter::uniqueId ( ) const [inline]
int QuickInterpreter::userDataId ( ) const [inline]
QSArgument QuickInterpreter::variable ( QObject context,
const QString name 
)
QStringList QuickInterpreter::variablesOf ( QSObject obj,
bool  includeStatic = FALSE,
bool  includeCustom = FALSE,
bool  includeMemberVariables = FALSE 
) const
QSVariantClass* QuickInterpreter::variantClass ( ) const [inline]
void QuickInterpreter::warn ( const QString msg,
int  l 
)

Emit warning message msg for line l.

Reimplementado de QSEngine.

void QuickInterpreter::warning ( const QString msg,
int  l 
) [signal]

This signal is emitted on each non-fatal error msg at line l.

Reimplementado de QSEngine.

QSObject QuickInterpreter::wrap ( QObject o)
QSWrapperClass* QuickInterpreter::wrapperClass ( ) const [inline]

Documentación de las funciones relacionadas y clases amigas

friend class QuickScript [friend]
friend class QuickScriptObject [friend]

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'