From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/qaxscriptmanager.html | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'doc/html/qaxscriptmanager.html') diff --git a/doc/html/qaxscriptmanager.html b/doc/html/qaxscriptmanager.html index 028941751..0c4bcb0fa 100644 --- a/doc/html/qaxscriptmanager.html +++ b/doc/html/qaxscriptmanager.html @@ -36,7 +36,7 @@ and script code. More...

This class is part of the TQt ActiveTQt Extension.

#include <qaxscript.h> -

Inherits TQObject. +

Inherits TQObject.

List of all member functions.

Public Members


Detailed Description

-

This class is defined in the TQt ActiveTQt Extension, which can be found in the qt/extensions directory. It is not included in the main TQt API. +

This class is defined in the TQt ActiveTQt Extension, which can be found in the qt/extensions directory. It is not included in the main TQt API.

The TQAxScriptManager class provides a bridge between application objects @@ -81,10 +81,10 @@ functions using call(). compilers.


Member Function Documentation

-

TQAxScriptManager::TQAxScriptManager ( TQObject * parent = 0, const char * name = 0 ) +

TQAxScriptManager::TQAxScriptManager ( TQObject * parent = 0, const char * name = 0 )

Creates a TQAxScriptManager object. parent and name are passed -on to the TQObject constructor. +on to the TQObject constructor.

It is usual to create one TQAxScriptManager for each document in an application. @@ -95,22 +95,22 @@ Destroys the objects, releasing all allocated resources.

void TQAxScriptManager::addObject ( TQAxBase * object )

Adds object to the manager. Scripts handled by this -manager can access the object in the code using the object's name property. +manager can access the object in the code using the object's name property.

You must add all the necessary objects before loading any scripts. -

void TQAxScriptManager::addObject ( TQObject * object ) +

void TQAxScriptManager::addObject ( TQObject * object )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Adds a generic COM wrapper for object to the manager. object must be exposed as a COM object using the functionality provided by the TQAxServer module.. Applications using this function you must link against the qaxserver library. -

TQVariant TQAxScriptManager::call ( const TQString & function, const TQVariant & var1 = TQVariant ( ), const TQVariant & var2 = TQVariant ( ), const TQVariant & var3 = TQVariant ( ), const TQVariant & var4 = TQVariant ( ), const TQVariant & var5 = TQVariant ( ), const TQVariant & var6 = TQVariant ( ), const TQVariant & var7 = TQVariant ( ), const TQVariant & var8 = TQVariant ( ) ) +

TQVariant TQAxScriptManager::call ( const TQString & function, const TQVariant & var1 = TQVariant ( ), const TQVariant & var2 = TQVariant ( ), const TQVariant & var3 = TQVariant ( ), const TQVariant & var4 = TQVariant ( ), const TQVariant & var5 = TQVariant ( ), const TQVariant & var6 = TQVariant ( ), const TQVariant & var7 = TQVariant ( ), const TQVariant & var8 = TQVariant ( ) )

Calls function, passing the parameters var1, var1, var2, var3, var4, var5, var6, var7 and var8 as arguments and returns the value returned by the function, or an -invalid TQVariant if the function does not return a value or when +invalid TQVariant if the function does not return a value or when the function call failed. The call returns when the script's execution has finished.

In most script engines the only supported parameter type is "const @@ -124,9 +124,9 @@ TQVariant&", for example, to call a JavaScript function use

-    TQValueList args;
+    TQValueList args;
     args << 5;
-    script->call("setNumber(const TQVariant&)", args);
+    script->call("setNumber(const TQVariant&)", args);
     
As with dynamicCall the @@ -142,12 +142,12 @@ using TQAxScript::call() on the respective Note that calling this function can be significantely slower than using call() on the respective TQAxScript directly. -

TQVariant TQAxScriptManager::call ( const TQString & function, TQValueList<TQVariant> & arguments ) +

TQVariant TQAxScriptManager::call ( const TQString & function, TQValueList<TQVariant> & arguments )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Calls function passing arguments as parameters, and returns the result. Returns when the script's execution has finished. -

void TQAxScriptManager::error ( TQAxScript * script, int code, const TQString & description, int sourcePosition, const TQString & sourceText ) [signal] +

void TQAxScriptManager::error ( TQAxScript * script, int code, const TQString & description, int sourcePosition, const TQString & sourceText ) [signal]

This signal is emitted when an execution error occured while @@ -155,7 +155,7 @@ running script.

code, description, sourcePosition and sourceText contain information about the execution error. -

TQStringList TQAxScriptManager::functions ( TQAxScript::FunctionFlags flags = TQAxScript::FunctionNames ) const +

TQStringList TQAxScriptManager::functions ( TQAxScript::FunctionFlags flags = TQAxScript::FunctionNames ) const

Returns a list with all the functions that are available. Functions provided by script engines that don't support @@ -163,7 +163,7 @@ introspection are not included in the list. The functions are either provided with full prototypes or only as names, depending on the value of flags. -

TQAxScript * TQAxScriptManager::load ( const TQString & code, const TQString & name, const TQString & language ) +

TQAxScript * TQAxScriptManager::load ( const TQString & code, const TQString & name, const TQString & language )

Loads the script source code using the script engine for language. The script can later be referred to using its name which should not be empty. @@ -180,7 +180,7 @@ still be available by calling its script directly.

See also addObject(), scriptNames(), and functions(). -

TQAxScript * TQAxScriptManager::load ( const TQString & file, const TQString & name ) +

TQAxScript * TQAxScriptManager::load ( const TQString & file, const TQString & name )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Loads the source code from the file. The script can later be @@ -193,7 +193,7 @@ default ".js" files are interpreted as JScript files, and ".vbs" and ".dsm" files are interpreted as VBScript. Additional script engines can be registered using registerEngine(). -

bool TQAxScriptManager::registerEngine ( const TQString & name, const TQString & extension, const TQString & code = TQString ( ) ) [static] +

bool TQAxScriptManager::registerEngine ( const TQString & name, const TQString & extension, const TQString & code = TQString ( ) ) [static]

Registers the script engine called name and returns TRUE if the engine was found; otherwise does nothing and returns FALSE. @@ -201,19 +201,19 @@ engine was found; otherwise does nothing and returns FALSE. extension, or when loading source code that contains the string code. -

TQAxScript * TQAxScriptManager::script ( const TQString & name ) const +

TQAxScript * TQAxScriptManager::script ( const TQString & name ) const

Returns the script called name.

You can use the returned pointer to call functions directly through TQAxScript::call(), to access the script engine directly, or to delete and thus unload the script. -

TQString TQAxScriptManager::scriptFileFilter () [static] +

TQString TQAxScriptManager::scriptFileFilter () [static]

Returns a file filter listing all the supported script languages. -This filter string is convenient for use with TQFileDialog. +This filter string is convenient for use with TQFileDialog. -

TQStringList TQAxScriptManager::scriptNames () const +

TQStringList TQAxScriptManager::scriptNames () const

Returns a list with the names of all the scripts. -- cgit v1.2.1