diff options
Diffstat (limited to 'doc/html/qaxscriptmanager.html')
-rw-r--r-- | doc/html/qaxscriptmanager.html | 40 |
1 files changed, 20 insertions, 20 deletions
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. <a href="#details">More...</a> <p>This class is part of the <b>TQt ActiveTQt Extension</b>. <p><tt>#include <<a href="qaxscript-h.html">qaxscript.h</a>></tt> -<p>Inherits <a href="qobject.html">TQObject</a>. +<p>Inherits <a href="ntqobject.html">TQObject</a>. <p><a href="qaxscriptmanager-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> @@ -62,7 +62,7 @@ and script code. <li class=fn>TQString <a href="#scriptFileFilter"><b>scriptFileFilter</b></a> ()</li> </ul> <hr><a name="details"></a><h2>Detailed Description</h2> -<p> This class is defined in the <b>TQt <a href="activeqt.html#ActiveTQt">ActiveTQt</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main TQt API. +<p> This class is defined in the <b>TQt <a href="activentqt.html#ActiveTQt">ActiveTQt</a> Extension</b>, which can be found in the <tt>qt/extensions</tt> directory. It is not included in the main TQt API. <p> The TQAxScriptManager class provides a bridge between application objects @@ -81,10 +81,10 @@ functions using <a href="#call">call</a>(). compilers. <hr><h2>Member Function Documentation</h2> -<h3 class=fn><a name="TQAxScriptManager"></a>TQAxScriptManager::TQAxScriptManager ( <a href="qobject.html">TQObject</a> * parent = 0, const char * name = 0 ) +<h3 class=fn><a name="TQAxScriptManager"></a>TQAxScriptManager::TQAxScriptManager ( <a href="ntqobject.html">TQObject</a> * parent = 0, const char * name = 0 ) </h3> Creates a TQAxScriptManager object. <em>parent</em> and <em>name</em> are passed -on to the <a href="qobject.html">TQObject</a> constructor. +on to the <a href="ntqobject.html">TQObject</a> constructor. <p> It is usual to create one TQAxScriptManager for each document in an application. @@ -95,22 +95,22 @@ Destroys the objects, releasing all allocated resources. <h3 class=fn>void <a name="addObject"></a>TQAxScriptManager::addObject ( <a href="qaxbase.html">TQAxBase</a> * object ) </h3> Adds <em>object</em> to the manager. Scripts handled by this -manager can access the object in the code using the object's <a href="qobject.html#name-prop">name</a> property. +manager can access the object in the code using the object's <a href="ntqobject.html#name-prop">name</a> property. <p> You must add all the necessary objects before loading any scripts. -<h3 class=fn>void <a name="addObject-2"></a>TQAxScriptManager::addObject ( <a href="qobject.html">TQObject</a> * object ) +<h3 class=fn>void <a name="addObject-2"></a>TQAxScriptManager::addObject ( <a href="ntqobject.html">TQObject</a> * object ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Adds a generic COM wrapper for <em>object</em> to the manager. <em>object</em> must be exposed as a COM object using the functionality provided by the <a href="qaxserver.html">TQAxServer module.</a>. Applications using this function you must link against the qaxserver library. -<h3 class=fn><a href="qvariant.html">TQVariant</a> <a name="call"></a>TQAxScriptManager::call ( const <a href="qstring.html">TQString</a> & function, const <a href="qvariant.html">TQVariant</a> & var1 = TQVariant ( ), const <a href="qvariant.html">TQVariant</a> & var2 = TQVariant ( ), const <a href="qvariant.html">TQVariant</a> & var3 = TQVariant ( ), const <a href="qvariant.html">TQVariant</a> & var4 = TQVariant ( ), const <a href="qvariant.html">TQVariant</a> & var5 = TQVariant ( ), const <a href="qvariant.html">TQVariant</a> & var6 = TQVariant ( ), const <a href="qvariant.html">TQVariant</a> & var7 = TQVariant ( ), const <a href="qvariant.html">TQVariant</a> & var8 = TQVariant ( ) ) +<h3 class=fn><a href="ntqvariant.html">TQVariant</a> <a name="call"></a>TQAxScriptManager::call ( const <a href="ntqstring.html">TQString</a> & function, const <a href="ntqvariant.html">TQVariant</a> & var1 = TQVariant ( ), const <a href="ntqvariant.html">TQVariant</a> & var2 = TQVariant ( ), const <a href="ntqvariant.html">TQVariant</a> & var3 = TQVariant ( ), const <a href="ntqvariant.html">TQVariant</a> & var4 = TQVariant ( ), const <a href="ntqvariant.html">TQVariant</a> & var5 = TQVariant ( ), const <a href="ntqvariant.html">TQVariant</a> & var6 = TQVariant ( ), const <a href="ntqvariant.html">TQVariant</a> & var7 = TQVariant ( ), const <a href="ntqvariant.html">TQVariant</a> & var8 = TQVariant ( ) ) </h3> Calls <em>function</em>, passing the parameters <em>var1</em>, <em>var1</em>, <em>var2</em>, <em>var3</em>, <em>var4</em>, <em>var5</em>, <em>var6</em>, <em>var7</em> and <em>var8</em> as arguments and returns the value returned by the function, or an -invalid <a href="qvariant.html">TQVariant</a> if the function does not return a value or when +invalid <a href="ntqvariant.html">TQVariant</a> if the function does not return a value or when the function call failed. The call returns when the script's execution has finished. <p> In most script engines the only supported parameter type is "const @@ -124,9 +124,9 @@ TQVariant&", for example, to call a JavaScript function use <pre> - <a href="qvaluelist.html">TQValueList</a> args; + <a href="ntqvaluelist.html">TQValueList</a> args; args << 5; - script->call("setNumber(const <a href="qvariant.html">TQVariant</a>&)", args); + script->call("setNumber(const <a href="ntqvariant.html">TQVariant</a>&)", args); </pre> As with <a href="qaxbase.html#dynamicCall">dynamicCall</a> the @@ -142,12 +142,12 @@ using <a href="qaxscript.html#call">TQAxScript::call</a>() on the respective <a <p> Note that calling this function can be significantely slower than using <a href="#call">call</a>() on the respective <a href="qaxscript.html">TQAxScript</a> directly. -<h3 class=fn><a href="qvariant.html">TQVariant</a> <a name="call-2"></a>TQAxScriptManager::call ( const <a href="qstring.html">TQString</a> & function, <a href="qvaluelist.html">TQValueList</a><TQVariant> & arguments ) +<h3 class=fn><a href="ntqvariant.html">TQVariant</a> <a name="call-2"></a>TQAxScriptManager::call ( const <a href="ntqstring.html">TQString</a> & function, <a href="ntqvaluelist.html">TQValueList</a><TQVariant> & arguments ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Calls <em>function</em> passing <em>arguments</em> as parameters, and returns the result. Returns when the script's execution has finished. -<h3 class=fn>void <a name="error"></a>TQAxScriptManager::error ( <a href="qaxscript.html">TQAxScript</a> * script, int code, const <a href="qstring.html">TQString</a> & description, int sourcePosition, const <a href="qstring.html">TQString</a> & sourceText )<tt> [signal]</tt> +<h3 class=fn>void <a name="error"></a>TQAxScriptManager::error ( <a href="qaxscript.html">TQAxScript</a> * script, int code, const <a href="ntqstring.html">TQString</a> & description, int sourcePosition, const <a href="ntqstring.html">TQString</a> & sourceText )<tt> [signal]</tt> </h3> <p> This signal is emitted when an execution error occured while @@ -155,7 +155,7 @@ running <em>script</em>. <p> <em>code</em>, <em>description</em>, <em>sourcePosition</em> and <em>sourceText</em> contain information about the execution error. -<h3 class=fn><a href="qstringlist.html">TQStringList</a> <a name="functions"></a>TQAxScriptManager::functions ( <a href="qaxscript.html#FunctionFlags-enum">TQAxScript::FunctionFlags</a> flags = TQAxScript::FunctionNames ) const +<h3 class=fn><a href="ntqstringlist.html">TQStringList</a> <a name="functions"></a>TQAxScriptManager::functions ( <a href="qaxscript.html#FunctionFlags-enum">TQAxScript::FunctionFlags</a> flags = TQAxScript::FunctionNames ) const </h3> 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 <em>flags</em>. -<h3 class=fn><a href="qaxscript.html">TQAxScript</a> * <a name="load"></a>TQAxScriptManager::load ( const <a href="qstring.html">TQString</a> & code, const <a href="qstring.html">TQString</a> & name, const <a href="qstring.html">TQString</a> & language ) +<h3 class=fn><a href="qaxscript.html">TQAxScript</a> * <a name="load"></a>TQAxScriptManager::load ( const <a href="ntqstring.html">TQString</a> & code, const <a href="ntqstring.html">TQString</a> & name, const <a href="ntqstring.html">TQString</a> & language ) </h3> Loads the script source <em>code</em> using the script engine for <em>language</em>. The script can later be referred to using its <em>name</em> which should not be empty. @@ -180,7 +180,7 @@ still be available by calling its <a href="#script">script</a> directly. <p> <p>See also <a href="#addObject">addObject</a>(), <a href="#scriptNames">scriptNames</a>(), and <a href="#functions">functions</a>(). -<h3 class=fn><a href="qaxscript.html">TQAxScript</a> * <a name="load-2"></a>TQAxScriptManager::load ( const <a href="qstring.html">TQString</a> & file, const <a href="qstring.html">TQString</a> & name ) +<h3 class=fn><a href="qaxscript.html">TQAxScript</a> * <a name="load-2"></a>TQAxScriptManager::load ( const <a href="ntqstring.html">TQString</a> & file, const <a href="ntqstring.html">TQString</a> & name ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Loads the source code from the <em>file</em>. 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 <a href="#registerEngine">registerEngine</a>(). -<h3 class=fn>bool <a name="registerEngine"></a>TQAxScriptManager::registerEngine ( const <a href="qstring.html">TQString</a> & name, const <a href="qstring.html">TQString</a> & extension, const <a href="qstring.html">TQString</a> & code = TQString ( ) )<tt> [static]</tt> +<h3 class=fn>bool <a name="registerEngine"></a>TQAxScriptManager::registerEngine ( const <a href="ntqstring.html">TQString</a> & name, const <a href="ntqstring.html">TQString</a> & extension, const <a href="ntqstring.html">TQString</a> & code = TQString ( ) )<tt> [static]</tt> </h3> Registers the script engine called <em>name</em> 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. <em>extension</em>, or when loading source code that contains the string <em>code</em>. -<h3 class=fn><a href="qaxscript.html">TQAxScript</a> * <a name="script"></a>TQAxScriptManager::script ( const <a href="qstring.html">TQString</a> & name ) const +<h3 class=fn><a href="qaxscript.html">TQAxScript</a> * <a name="script"></a>TQAxScriptManager::script ( const <a href="ntqstring.html">TQString</a> & name ) const </h3> Returns the script called <em>name</em>. <p> You can use the returned pointer to call functions directly through <a href="qaxscript.html#call">TQAxScript::call</a>(), to access the script engine directly, or to delete and thus unload the script. -<h3 class=fn><a href="qstring.html">TQString</a> <a name="scriptFileFilter"></a>TQAxScriptManager::scriptFileFilter ()<tt> [static]</tt> +<h3 class=fn><a href="ntqstring.html">TQString</a> <a name="scriptFileFilter"></a>TQAxScriptManager::scriptFileFilter ()<tt> [static]</tt> </h3> Returns a file filter listing all the supported script languages. -This filter string is convenient for use with <a href="qfiledialog.html">TQFileDialog</a>. +This filter string is convenient for use with <a href="ntqfiledialog.html">TQFileDialog</a>. -<h3 class=fn><a href="qstringlist.html">TQStringList</a> <a name="scriptNames"></a>TQAxScriptManager::scriptNames () const +<h3 class=fn><a href="ntqstringlist.html">TQStringList</a> <a name="scriptNames"></a>TQAxScriptManager::scriptNames () const </h3> Returns a list with the names of all the scripts. |