diff --git a/doc/editions.doc b/doc/editions.doc index 2f6f5e43..0ed203a9 100644 --- a/doc/editions.doc +++ b/doc/editions.doc @@ -118,13 +118,6 @@ Editions. X - - ActiveQt extension
- Support for building and hosting ActiveX controls on Windows. -
- - X - QMotif extension
Motif co-existence and migration support. diff --git a/doc/html/activentqt.html b/doc/html/activentqt.html deleted file mode 100644 index 98522d96..00000000 --- a/doc/html/activentqt.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - -The ActiveTQt framework - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

The ActiveTQt framework

- - -

-

These modules are part of the TQt - Enterprise Edition and are not part of the Free or -Non-Commercial Editions. -

TQt's ActiveX support allows TQt/Windows developers to: -

    -
  1. Access and use ActiveX controls provided by any ActiveX server -in their TQt applications. -
  2. Make their TQt applications available as ActiveX servers, with -any number of TQt widgets as ActiveX controls. -
-

ActiveTQt Modules -

-

The framework consists of two modules. -

TQAxContainer -

-

The TQAxContainer module is a static -library implementing TQObject and TQWidget subclasses, TQAxObject and -TQAxWidget, that act as a containers for COM objects and ActiveX -controls. If built against a shared TQt library TQAxWidget integrates -as a widget plugin into TQt Designer. -

The module also provides classes TQAxScript, TQAxScriptManager and -TQAxScriptEngine that allow using Windows Script Host technologies to -script COM objects embedded in the TQt applications. -

Examples include a -web browser application embedding Microsoft Internet Explorer, and an -address book example synchronizing the contents with Microsoft -Outlook. -

TQAxServer -

-

The TQAxServer module is a -static library that implements functionality for in-process and -executable COM servers. This module provides the TQAxAggregated, -TQAxBindable and TQAxFactory classes. -

Examples include in- and -out-of-process servers providing different TQWidget subclasses as -ActiveX controls, as well as a walkthrough how to use those objects in a .NET environment. -

Additional Information -

-

- - -


- -
Copyright © 2007 -TrolltechTrademarks -
TQt 3.3.8
-
- diff --git a/doc/html/activeqt-dotnet.html b/doc/html/activeqt-dotnet.html deleted file mode 100644 index e61772f8..00000000 --- a/doc/html/activeqt-dotnet.html +++ /dev/null @@ -1,459 +0,0 @@ - - - - - -Walkthrough: Using TQt objects in Microsoft .NET - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

Walkthrough: Using TQt objects in Microsoft .NET

- - - - - - - - -

Introduction -

-

In the following walkthrough we will show how TQt objects can be used -in a .NET environment, and how .NET objects can be used in a TQt -environment. -

TQt vs .NET -

-

TQt is a C++ library and is compiled into traditional, native -binaries that make full use of the performance provided by the -runtime environment. -

One of the key concepts of .NET is the idea of "intermediate language -code" - the source code is compiled into a bytecode format, and at -runtime, that bytecode is executed in a virtual machine - the Common Language Runtime (CLR). -

Another key concept is that of managed code. This is essentially -intermediate language code written in such a way that the CLR can take -care of the memory management, i.e. the CLR will do automatic garbage -collection, so the application code does not need to explicitly free -the memory for unused objects. -

The MS compilers for C# and VB.NET will only produce managed -code. Such programs cannot directly call normal, native functions -or classes. (1) -

The MS C++ compiler for .NET on the other hand, can produce both -normal and managed code. To write a C++ class that can be compiled -into managed code, the developer must flag the class as managed using -the __gc keyword, and restrict the code to only use the subset of -C++ known as "Managed Extensions for C++", or MC++ for short. The -advantage is that MC++ code can freely call and use normal C++ -functions and classes. And it also works the other way around: normal -C++ code can call managed functions and use managed classes (e.g. the -entire .NET framework class library), including managed functions and -classes implemented in C# or VB.NET. This feature of mixing managed -and normal C++ code immensely eases the interoperability with .NET, -and is by Microsoft referred to as the "It Just Works" (IJW) feature. -

This document demonstrates two different ways of integrating normal -C++ code (that uses TQt) with managed .NET code. First, the manual way -is presented, which includes using a thin MC++ wrapper class around -the normal TQt/C++ class. Then, the automated way is presented, which -utilizes the ActiveTQt framework as a generic bridge. The advantage of -the first method is that it gives the application developer full -control, while the second method requires less coding and relieves the -developer of dealing with the conversion between managed and normal -data objects. -

The impatient reader, who right away wants to see a TQPushButton and a -custom TQt widget (TQAxWidget2) run in a .NET GUI application is referred to the example -directory of ActiveTQt. It contains the result of this walkthrough -using both C# and VB.NET, created with Visual Studio.NET (not 2003). -Load examples/dotnet/walkthrough/csharp.csproj, -examples/dotnet/walkthrough/vb.vbproj -(2) -or examples/dotnet/wrapper/wrapper.sln into the IDE and run -the solution. -

Walkthrough: .NET interop with MC++ and IJW -

-

Normal C++ classes and functions can be used from managed .NET code by -providing thin wrapper classes written in MC++. The wrapper class will -take care of forwarding the calls to the normal C++ functions or -methods, and converting parameter data as necessary. Since the wrapper -class is a managed class, it can be used without further ado in any -managed .NET application, whether written in C#, VB.NET, MC++ or other -managed programming language. -

- -

    // native TQt/C++ class
-    class Worker : public TQObject
-    {
-        TQ_OBJECT
-        TQ_PROPERTY(TQString statusString READ statusString WRITE setStatusString)
-    public:
-        Worker();
-
-        TQString statusString() const;
-
-    public slots:
-        void setStatusString(const TQString &string);
-
-    signals:
-        void statusStringChanged(const TQString &string);
-
-    private:
-        TQString status;
-    };
-
-

The TQt class has nothing unusual for TQt users, and as even the TQt -specialities like TQ_PROPERTY, slots and signals are -implemented with straight C++ they don't cause any trouble when -compiling this class with any C++ compiler. -

- -

    class Worker;
-
-    // .NET class
-    public __gc class netWorker
-    {
-    public:
-        netWorker();
-        ~netWorker();
-
-        __property String *get_StatusString();
-        __property void set_StatusString(String *string);
-
-        __event void statusStringChanged(String *args);
-
-    private:
-        Worker *workerObject;
-    };
-
-

The .NET wrapper class uses keywords that are part of MC++ to indicate -that the class is managed/garbage collected (__gc), and that StatusString should be accessible as a property in languages that -support this concept (__property). We also declare an event -function statusStringChanged(String*) (__event), the -equivalent of the respective signal in the TQt class. -

Before we can start implementing the wrapper class we need a way to -convert TQt's datatypes (and potentionally your own) into .NET -datatypes, e.g. TQString objects need to be converted into objects -of type String*. -

When operating on managed objects in normal C++ code, a little extra -care must be taken because of the CLR's garbage collection. A normal -pointer variable should not (3) be used to refer to a managed -object. The reason is that the garbage collection can kick in at any -time and move the object to another place on the heap, leaving you -with an invalid pointer. -

However, two methods are provided that solves this problem easily. The -first is to use a pinned pointer, i.e. declare the pointer variable -with the __pin keyword. This guarantees that the object pointed to -will not be moved by the garbage collector. It is recommended that -this method not be used to keep a references to managed objects for a -long time, since it will decrease the efficiency of the garbage -collector. The second way is to use the gcroot smartpointer -template type. This lets you create safe pointers to managed -objects. E.g. a variable of type gcroot<String> will always point -to the String object, even if it has been moved by the garbage -collector, and it can be used just like a normal pointer. -

- -

    #include <tqstring.h>
-
-    #using <mscorlib.dll>
-    #include <vcclr.h>
-
-    using namespace System;
-
-    String *TQStringToString(const TQString &tqstring)
-    {
-        return new String(tqstring.ucs2());
-    }
-
-

    TQString StringToTQString(String *string)
-    {
-        wchar_t __pin *chars = PtrToStringChars(string);
-        return TQString::fromUcs2(chars);
-    }
-
-

The convertor functions can then be used in the wrapper class -implementation to call the functions in the native C++ class. -

- -

    #include "networker.h"
-    #include "worker.h"
-    #include "tools.h"
-
-    netWorker::netWorker()
-    {
-        workerObject = new Worker();
-    }
-
-

    netWorker::~netWorker()
-    {
-        delete workerObject;
-    }
-
-

The constructor and destructor simply create and destroy the TQt -object wrapped using the C++ operators new and delete. -

    String *netWorker::get_StatusString()
-    {
-        return TQStringToString(workerObject->statusString());
-    }
-
-

The netWorker class delegates calls from the .NET code to the native -code. Although the transition between those two worlds implies a small -performance hit for each function call, and for the type conversion, -this should be negligible since we are anyway going to run within the -CLR. -

    void netWorker::set_StatusString(String *string)
-    {
-        workerObject->setStatusString(StringToTQString(string));
-        __raise statusStringChanged(string);
-    }
-
-

The property setter calls the native TQt class before firing the -event using the __raise keyword. -

This wrapper class can now be used in .NET code, e.g. using C++, C#, -Visual Basic or any other programming language available for .NET. -

- -

    using System;
-
-    namespace WrapperApp
-    {
-            class App
-            {
-                    void Run()
-                    {
-                            netWorker worker = new netWorker();
-
-                            worker.statusStringChanged += new netWorker.__Delegate_statusStringChanged(onStatusStringChanged);
-
-                            System.Console.Out.WriteLine(worker.StatusString);
-
-                            System.Console.Out.WriteLine("Working cycle begins...");
-                            worker.StatusString = "Working";
-                            worker.StatusString = "Lunch Break";
-                            worker.StatusString = "Working";
-                            worker.StatusString = "Idle";
-                            System.Console.Out.WriteLine("Working cycle ends...");
-                    }
-
-                    private void onStatusStringChanged(string str)
-                    {
-                            System.Console.Out.WriteLine(str);
-                    }
-
-                    [STAThread]
-                    static void Main(string[] args)
-                    {
-                            App app = new App();
-                            app.Run();
-                    }
-            }
-    }
-
-

Walkthrough: .NET/COM Interop with ActiveTQt -

-

Fortunately .NET provides a generic wrapper for COM objects, the -Runtime Callable Wrapper (RCW). This RCW is a proxy for the -COM object and is generated by the CLR when a .NET Framework client -activates a COM object. This provides a generic way to reuse COM -objects in a .NET Framework project. -

Making a TQObject class into a COM object is easily achieved with -ActiveTQt and demonstrated in the examples. The walkthrough will use the TQt classes implemented -in those examples, so the first thing to do is to make sure that those -examples have been built correctly, e.g. by opening the demonstration pages in Internet -Explorer to verify that the controls are functional. -

Starting a Project -

-

Start Visual Studio.NET, and create a new C# project for writing a -Windows application. This will present you with an empty form in -Visual Studio's dialog editor. You should see the toolbox, which -presents you with a number of available controls and objects in -different categories. If you right-click on the toolbox it allows -you to add new tabs. We will add the tab "TQt". -

Importing TQt Widgets -

-

The category only has a pointer tool by default, and we have to add -the TQt objects we want to use in our form. Right-click on the empty -space, and select "Customize". This opens a dialog that has two -tabs, "COM Components" and ".NET Framework Components". We used -ActiveTQt to wrap TQWidgets into COM objects, so we select the "COM -Components" page, and look for the classes we want to use, e.g. -"TQPushButton" and "TQAxWidget2". -

When we select those widgets and close the dialog the two widgets -will now be available from the toolbox as grey squares with their -name next to it (4) . -

Using TQt Widgets -

-

We can now add an instance of TQAxWidget2 and a TQPushButton to -the form. Visual Studio will automatically generate the RCW for the -object servers. The TQAxWidget2 instance takes most of the upper -part of the form, with the TQPushButton in the lower right corner. -

In the property editor of Visual Studio we can modify the properties -of our controls - TQPushButton exposes the TQWidget API and has many -properties, while TQAxWidget2 has only the Visual Studio standard -properties in addition to its own property "lineWidth" in the -"Miscellaneous" category. The objects are named "axTQPushButton1" and -"axTQAxWidget21", and since especially the last name is a bit -confusing we rename the objects to "resetButton" and "circleWidget". -

We can also change the TQt properties, e.g. set the "text" property -of the resetButton to "Reset", and the "lineWidth" property of the -circleWidget to 5. We can also put those objects into the layout -system that Visual Studio's dialog editor provides, e.g. by setting -the anchors of the circleWidget to "Left, Top, Right, Bottom", and -the anchors of the resetButton to "Bottom, Right". -

Now we can compile and start the project, which will open a user -interface with our two TQt widgets. If we can resize the dialog, -the widgets will resize appropriately. -

Handling TQt Signals -

-

We will now implement event handlers for the widgets. Select the -circleWidget and select the "Events" page in the property -editor. The widget exposes events because the TQAxWidget2 class has -the "StockEvents" attribute set in its class definition. We implement -the event handler circleClicked for the ClickEvent to increase -the line width by one for every click: -

- -

                    private void circleClicked(object sender, System.EventArgs e)
-                    {
-                            this.circleWidget.lineWidth++;
-                    }
-
-

In general we can implement a default event handler by double -clicking on the widget in the form, but the default events for -our widgets are right now not defined. -

We will also implement an event handler for the clicked signal -emitted by TQPushButton. Add the event handler resetLineWidth to -the clicked event, and implement the generated function: -

                    private void resetLineWidth(object sender, System.EventArgs e)
-                    {
-                            this.circleWidget.lineWidth = 1;
-                            this.resetButton.setFocus();
-                    }
-
-

We reset the property to 1, and also call the setFocus() slot -to simulate the user style on Windows, where a button grabs focus -when you click it (so that you can click it again with the spacebar). -

If we now compile and run the project we can click on the circle -widget to increase its line width, and press the reset button to -set the line width back to 1. -

Summary -

-

Using ActiveTQt as a universal interoperability bridge between the -.NET world and the native world of TQt is very easy, and makes it -often unnecessary to implement a lot of handwritten wrapper classes. -Instead, the TQAxFactory implementation in the otherwise completely -cross-platform TQt project provides the glue that .NET needs to to -generate the RCW. -

If this is not sufficient we can implement our own wrapper classes -thanks to the C++ extensions provided by Microsoft. -

Limitations -

-

All the limitations when using ActiveTQt are implied when using this -technique to interoperate with .NET, e.g. the datatypes we can use -in the APIs can only be those supported by ActiveTQt and COM. However, -since this includes subclasses of TQObject and TQWidget we can wrap -any of our datatypes into a TQObject subclass to make its API -available to .NET. This has the positive side effect that the same -API is automatically available in TQSA, the cross platform -scripting solution for TQt applications, and to COM clients in general. -

When using the "IJW" method, in priciple the only limitation is the -time required to write the wrapper classes and data type conversion -functions. -

Performance Considerations -

-

Every call from CLR bytecode to native code implies a small -performance hit, and necessary type conversions introduce an -additional delay with every layer that exists between the two -frameworks. Consequently every approach to mix .NET and native -code should try to minimize the communication necessary between -the different worlds. -

As ActiveTQt introduces three layers at once - the RCW, COM and finally -ActiveTQt itself - the performance penalty when using the generic -TQt/ActiveTQt/COM/RCW/.NET bridge is larger than when using a -hand-crafted IJW-wrapper class. The execution speed however is still -sufficient for connecting to and modifying interactive elements in a -user interface, and as soon as the benefit of using TQt and C++ to -implement and compile performance critical algorithms into native code -kicks in, ActiveTQt becomes a valid choice for making even non-visual -parts of your application accessible to .NET. -

-


-
  1. -The .NET framework provides Platform Invocation -Services - P/Invoke - that enable managed code to call native C (not -C++) functions located in DLLs directly. The resulting application -then becomes partially unmanaged. Back...
  2. - -You will notice that in the generated code the following line is -commented out:
    -    ' VB is case insensitive, but our C++ controls are not.
    -    ' Me.resetButton.enabled = True
    -    
    - -This line is regenerated without comment whenever you change the -dialog, in which case you have to comment it out again to be able -to run the project. This is a bug in the original version of -Visual Studio.NET, and is fixed in the 2003 edition. - Back...
  3. -Indeed, the compiler will in -many cases disallow it. Back...
  4. -Icons could be added by modifying the -way the controls register themselves. Back...
-

See also The TQAxServer Examples. - - -


- -
Copyright © 2007 -TrolltechTrademarks -
TQt 3.3.8
-
- diff --git a/doc/html/activeqt-examples.html b/doc/html/activeqt-examples.html deleted file mode 100644 index 16f8fc18..00000000 --- a/doc/html/activeqt-examples.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - -ActiveTQt Examples - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

ActiveTQt Examples

- - -The following pages list example programs for using ActiveX controls -in a TQt application, and for writing ActiveX controls using TQt. -

- - -


- -
Copyright © 2007 -TrolltechTrademarks -
TQt 3.3.8
-
- diff --git a/doc/html/activeqt-tools-dumpdoc.html b/doc/html/activeqt-tools-dumpdoc.html deleted file mode 100644 index c6a95a48..00000000 --- a/doc/html/activeqt-tools-dumpdoc.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - -The DumpDoc Tool - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

The DumpDoc Tool

- - - -The dumpcoc tool generates TQt-style documentation for any -COM object and writes it into the file specified. -

Call dumpdoc with the following command line parameters: -

- - - - - -
Option -Result -
-o file -Writes output to file -
object -Generate documentation for object -
-v -Print version information -
-h -Print help -
-

object must be an object installed on the local machine (ie. -remote objects are not supported), and can include subobjects -accessible through properties, ie. -Outlook.Application/Session/CurrentUser -

The generated file will be an HTML file using TQt documentation -style. -

To build the tool you must first build the -TQAxContainer library. -Then run your make tool in tools/dumpdoc. -

See also ActiveTQt Tools. - - -


- -
Copyright © 2007 -TrolltechTrademarks -
TQt 3.3.8
-
- diff --git a/doc/html/activeqt-tools-idc.html b/doc/html/activeqt-tools-idc.html deleted file mode 100644 index 6aac57b2..00000000 --- a/doc/html/activeqt-tools-idc.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - -The IDC Tool - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

The IDC Tool

- - - -The IDC tool is part of the ActiveTQt build system and makes -it possible to turn any TQt binary into a full COM object server -with only a few lines of code. -

IDC understands the following command line parameters: -

- - - - - - -
Option -Result -
dll -idl idl -version x.y -Writes the IDL of the server dll to the file idl. The -type library wll have version x.y. -
dll -tlb tlb -Replaces the type library in dll with tlb -
-v -Print version information -
-regserver dll -Register the COM server dll -
-unregserver -Unregister the COM server dll -
-

It is usually never necessary to invoke IDC manually, as the -qmake build system takes care of adding the required post -processing steps to the build process. See the -ActiveTQt build system -documentation for details. -

See also ActiveTQt Tools. - - -


- -
Copyright © 2007 -TrolltechTrademarks -
TQt 3.3.8
-
- diff --git a/doc/html/activeqt-tools-testcon.html b/doc/html/activeqt-tools-testcon.html deleted file mode 100644 index 079a1fdd..00000000 --- a/doc/html/activeqt-tools-testcon.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - -An ActiveX Test Container - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

An ActiveX Test Container

- - - -This application implements a generic test container for ActiveX -controls. You can insert ActiveX controls installed on your -system, and execute methods and modify properties. The container -will log information about events and property changes as well -as debug output in the log window. -

The GUI has been implemented utilizing the TQt Designer integration -of the TQAxContainer module. Parts of the code use internals of the TQt -meta object and ActiveTQt framework and are not recommended to be used in -application code. -

Use the application to view the slots, signals and porperties -available through the TQAxWidget class when instantiated with a -certain ActiveX, and to test ActiveX controls you implement or -want to use in your TQt application. -

The application can load and execute script files in JavaScript, -VBScript, Perl and Python to program the controls loaded. Example -script files using the TQAxWidget2 class are available in the scripts -subdirectory. -

Note that the qmake project of this example includes a resource file -testcon.rc with a version resource. This is required by some -ActiveX controls (ie. Shockwave ActiveX Controls), which might crash -or misbehave otherwise if such version information is missing. -

To build the tool you must first build the -TQAxContainer library. -Then run your make tool in tools/testcon and -run the resulting testcon.exe. -

See also ActiveTQt Tools. - - -


- -
Copyright © 2007 -TrolltechTrademarks -
TQt 3.3.8
-
- diff --git a/doc/html/activeqt-tools.html b/doc/html/activeqt-tools.html deleted file mode 100644 index a83e8ace..00000000 --- a/doc/html/activeqt-tools.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - -ActiveTQt Tools - - - - - - - -
- -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

ActiveTQt Tools

- - -The following page list tool programs for ActiveTQt. - -

-
The DumpDoc Tool -
The IDC Tool -
An ActiveX Test Container -
- -


- -
Copyright © 2007 -TrolltechTrademarks -
TQt 3.3.8
-
- diff --git a/doc/html/annotated.html b/doc/html/annotated.html index 7517ba52..46ba20db 100644 --- a/doc/html/annotated.html +++ b/doc/html/annotated.html @@ -47,15 +47,6 @@ body { background: #ffffff; color: black; } TQAsciiDictTemplate class that provides a dictionary based on char* keys TQAsciiDictIteratorIterator for TQAsciiDict collections TQAssistantClientMeans of using TQt Assistant as an application's help tool -TQAxAggregatedAbstract base class for implementations of additional COM interfaces -TQAxBaseAbstract class that provides an API to initalize and access a COM object -TQAxBindableInterface between a TQWidget and an ActiveX client -TQAxFactoryDefines a factory for the creation of COM components -TQAxObjectTQObject that wraps a COM object -TQAxScriptWrapper around script code -TQAxScriptEngineWrapper around a script engine -TQAxScriptManagerBridge between application objects and script code -TQAxWidgetTQWidget that wraps an ActiveX control TQBig5CodecConversion to and from the Big5 encoding TQBig5hkscsCodecConversion to and from the Big5-HKSCS encoding TQBitArrayArray of bits diff --git a/doc/html/classes.html b/doc/html/classes.html index 26a56a3e..b718c60d 100644 --- a/doc/html/classes.html +++ b/doc/html/classes.html @@ -170,8 +170,8 @@ classes, see TQt's Main Classes. TQTextDrag -TQAxAggregated -* + + TQDomDocumentFragment TQIntCache @@ -181,8 +181,8 @@ classes, see TQt's Main Classes. TQTextEdit -TQAxBase -* + + TQDomDocumentType TQIntCacheIterator @@ -192,8 +192,8 @@ classes, see TQt's Main Classes. TQTextEncoder -TQAxBindable -* + + TQDomElement TQIntDict @@ -203,8 +203,8 @@ classes, see TQt's Main Classes. TQTextIStream -TQAxFactory -* + + TQDomEntity TQIntDictIterator @@ -214,8 +214,8 @@ classes, see TQt's Main Classes. TQTextOStream -TQAxObject -* + + TQDomEntityReference TQIntValidator @@ -225,8 +225,8 @@ classes, see TQt's Main Classes. TQTextStream -TQAxScript -* + + TQDomImplementation TQIODevice @@ -236,8 +236,8 @@ classes, see TQt's Main Classes. TQThread -TQAxScriptEngine -* + + TQDomNamedNodeMap J TQJisCodec @@ -247,8 +247,8 @@ classes, see TQt's Main Classes. TQThreadStorage -TQAxScriptManager -* + + TQDomNode K TQKbdDriverFactory @@ -258,8 +258,8 @@ classes, see TQt's Main Classes. TQTime -TQAxWidget -* + + TQDomNodeList TQKbdDriverPlugin @@ -962,7 +962,7 @@ classes, see TQt's Main Classes. -

* Extension classes of TQt/Embedded, ActiveTQt, Motif, and Netscape. +

* Extension classes of TQt/Embedded, Motif, and Netscape. diff --git a/doc/html/editions.html b/doc/html/editions.html index f863ec37..38ceaa0a 100644 --- a/doc/html/editions.html +++ b/doc/html/editions.html @@ -108,8 +108,6 @@ Well-formed XML parser with SAX interface and DOM Level 1. X -ActiveTQt extension
-Support for building and hosting ActiveX controls on Windows.
X diff --git a/doc/html/examples.html b/doc/html/examples.html index 874a30ec..90edce8a 100644 --- a/doc/html/examples.html +++ b/doc/html/examples.html @@ -61,9 +61,7 @@ in a line-by-line coverage please refer to the tutorials

TQt Extensions: Assorted Examples

Miscellaneous Examples diff --git a/doc/html/functions.html b/doc/html/functions.html index 920d5484..06cce268 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -89,7 +89,7 @@ abort: TQMimeSourceFactory
  • addFilePath: TQMimeSourceFactory
  • addFilter: TQFileDialog
  • addItem: - TQAxScriptEngine TQBoxLayout TQGridLayout TQLayout TQToolBox
  • addLabel: + TQBoxLayout TQGridLayout TQLayout TQToolBox
  • addLabel: TQHeader
  • addLayout: TQBoxLayout TQGridLayout
  • addLeftWidget: TQFileDialog
  • addLibraryPath: @@ -100,7 +100,6 @@ abort: TQGridLayout
  • addMultiCellLayout: TQGridLayout
  • addMultiCellWidget: TQGridLayout
  • addObject: - TQAxScriptManager
  • addOperation: TQNetworkProtocol
  • addPage: TQDial TQRangeControl TQWizard
  • addPath: TQUrl
  • addRightWidget: @@ -154,7 +153,6 @@ abort: TQButton
  • animated: TQCanvasItem
  • answerRect: TQDragMoveEvent
  • appID: - TQAxFactory
  • append: TQCString TQIconDrag TQPtrList TQSqlCursor TQSqlIndex TQSqlRecord TQString TQTextEdit TQValueList TQValueVector TQXmlAttributes
  • appendChild: TQDomNode
  • appendData: TQDomCharacterData
  • applicationContext: @@ -208,7 +206,6 @@ abort: TQVariant
  • asUInt: TQVariant
  • asULongLong: TQVariant
  • asVariant: - TQAxBase
  • ascent: TQFontMetrics
  • ascii: TQKeyEvent TQString
  • assign: TQMemArray
  • assistantClosed: @@ -318,7 +315,6 @@ c: TQIconViewItem
  • calculateField: TQSqlCursor
  • calibrate: TQWSMouseHandler
  • call: - TQAxScript TQAxScriptManager
  • canCast: TQVariant
  • canConvert: TQMacMime TQWindowsMime
  • canDecode: TQColorDrag TQIconDrag TQImageDrag TQTextDrag TQUriDrag
  • canDelete: @@ -390,13 +386,12 @@ c: TQGLContext
  • chunkSize: TQCanvas
  • chunks: TQCanvasRectangle
  • classID: - TQAxFactory
  • classInfo: TQMetaObject
  • className: TQMetaObject TQObject
  • cleanDirPath: TQDir
  • cleanText: TQSpinBox
  • cleanup: TQColor TQCursor TQFontManager
  • clear: - TQAccel TQAsciiCache TQAsciiDict TQAxBase TQCache TQClipboard TQComboBox TQDict TQDomNode TQIconView TQIntCache TQIntDict TQLabel TQLineEdit TQListBox TQListView TQMap TQMenuBar TQMenuData TQObjectCleanupHandler TQPixmapCache TQPopupMenu TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSplashScreen TQSqlCursor TQSqlField TQSqlForm TQSqlRecord TQStatusBar TQTextEdit TQToolBar TQToolTip TQTranslator TQValueList TQValueVector TQVariant TQXmlAttributes
  • clearArguments: + TQAccel TQAsciiCache TQAsciiDict TQCache TQClipboard TQComboBox TQDict TQDomNode TQIconView TQIntCache TQIntDict TQLabel TQLineEdit TQListBox TQListView TQMap TQMenuBar TQMenuData TQObjectCleanupHandler TQPixmapCache TQPopupMenu TQPtrCollection TQPtrDict TQPtrList TQPtrQueue TQPtrStack TQPtrVector TQSplashScreen TQSqlCursor TQSqlField TQSqlForm TQSqlRecord TQStatusBar TQTextEdit TQToolBar TQToolTip TQTranslator TQValueList TQValueVector TQVariant TQXmlAttributes
  • clearArguments: TQProcess
  • clearBit: TQBitArray
  • clearCalibration: TQWSMouseHandler
  • clearCell: @@ -419,7 +414,6 @@ c: TQWidget
  • clicked: TQButton TQButtonGroup TQCheckBox TQHeader TQIconView TQListBox TQListView TQPushButton TQRadioButton TQTable TQTextEdit TQWhatsThis
  • client: TQWSWindow
  • clientSite: - TQAxBindable
  • clientWindows: TQWSServer
  • clipRegion: TQPainter TQWidget
  • clipboard: TQApplication
  • clipper: @@ -536,10 +530,8 @@ c: TQWidget
  • contextMenuRequested: TQIconView TQListBox TQListView TQTable
  • contexts: TQStyleSheetItem
  • control: - TQAxBase
  • controlAt: TQAccessibleInterface
  • controlPoints: TQCanvasSpline
  • controllingUnknown: - TQAxAggregated
  • convertBitOrder: TQImage
  • convertDepth: TQImage
  • convertDepthWithPalette: TQImage
  • convertFromImage: @@ -563,8 +555,7 @@ c: TQMacMime
  • country: TQLocale
  • countryToString: TQLocale
  • create: - TQAxFactory TQGLContext TQGfxDriverFactory TQGfxDriverPlugin TQImage TQKbdDriverFactory TQKbdDriverPlugin TQMouseDriverFactory TQMouseDriverPlugin TQNPlugin TQSqlDriverPlugin TQStyleFactory TQStylePlugin TQWidget TQWidgetFactory TQWidgetPlugin
  • createAggregate: - TQAxBindable
  • createAlphaMask: + TQGLContext TQGfxDriverFactory TQGfxDriverPlugin TQImage TQKbdDriverFactory TQKbdDriverPlugin TQMouseDriverFactory TQMouseDriverPlugin TQNPlugin TQSqlDriverPlugin TQStyleFactory TQStylePlugin TQWidget TQWidgetFactory TQWidgetPlugin
  • createAggregate: TQImage
  • createAttribute: TQDomDocument
  • createAttributeNS: TQDomDocument
  • createCDATASection: @@ -582,9 +573,6 @@ c: TQTextCodecPlugin
  • createGfx: TQScreen
  • createHeuristicMask: TQImage TQPixmap
  • createHostWindow: - TQAxWidget
  • createObject: - TQAxFactory
  • createObjectWrapper: - TQAxFactory
  • createPixmap: TQIconFactory
  • createPopupMenu: TQLineEdit TQTextEdit
  • createProcessingInstruction: TQDomDocument
  • createQuery: @@ -743,9 +731,6 @@ dark: TQRangeControl
  • direction: TQBoxLayout TQChar
  • dirty: TQFont
  • disableClassInfo: - TQAxBase
  • disableEventSink: - TQAxBase
  • disableMetaObject: - TQAxBase
  • disabled: TQPalette
  • discardCommand: TQSessionManager
  • disconnect: TQObject TQScreen TQSignal
  • disconnectItem: @@ -843,7 +828,6 @@ dark: TQComboBox
  • dx: TQWMatrix
  • dy: TQWMatrix
  • dynamicCall: - TQAxBase TQAxObject TQAxWidget
  • echoMode: TQLineEdit
  • editBuffer: TQSqlCursor
  • editCell: @@ -891,7 +875,6 @@ echoMode: TQNPWidget
  • enterLoop: TQEventLoop
  • enterWhatsThisMode: TQWhatsThis
  • entered: - TQAxScript
  • entities: TQDomDocumentType
  • entityResolver: TQXmlReader
  • entryColor: TQGLColormap
  • entryInfoList: @@ -907,7 +890,7 @@ echoMode: TQWidget
  • eraseRect: TQPainter
  • erased: TQPaintEvent
  • error: - TQAssistantClient TQAxScript TQAxScriptManager TQFtp TQHttp TQSocket TQSocketDevice TQStyleSheet TQXmlErrorHandler
  • errorCode: + TQAssistantClient TQFtp TQHttp TQSocket TQSocketDevice TQStyleSheet TQXmlErrorHandler
  • errorCode: TQNetworkOperation
  • errorHandler: TQXmlReader
  • errorString: TQFile TQFtp TQHttp TQRegExp TQXmlContentHandler TQXmlDTDHandler TQXmlDeclHandler TQXmlEntityResolver TQXmlErrorHandler TQXmlLexicalHandler
  • escape: @@ -915,9 +898,7 @@ echoMode: TQObject TQWidget
  • eventFilter: TQListView TQObject TQScrollView TQSpinBox
  • eventLoop: TQApplication
  • eventsID: - TQAxFactory
  • exactMatch: TQFont TQFontInfo TQRegExp
  • exception: - TQAxBase
  • exec: TQApplication TQDialog TQEventLoop TQPopupMenu TQSqlDatabase TQSqlQuery
  • executedQuery: TQSqlQuery
  • exists: TQDir TQFile TQFileInfo
  • exit: @@ -929,7 +910,6 @@ echoMode: TQListView
  • expandedTo: TQSize
  • expanding: TQBoxLayout TQGridLayout TQLayout TQLayoutItem TQSizePolicy TQSpacerItem TQWidgetItem
  • exposeToSuperClass: - TQAxFactory
  • extension: TQDialog TQFileInfo
  • externalEntityDecl: TQXmlDeclHandler
  • falseText: @@ -938,7 +918,6 @@ falseText: TQFont TQFontInfo TQTextEdit
  • fatalError: TQXmlErrorHandler
  • feature: TQXmlReader
  • featureList: - TQAxFactory
  • fetch: TQSqlResult
  • fetchData: TQXmlInputSource
  • fetchFirst: TQSqlResult
  • fetchLast: @@ -974,7 +953,7 @@ falseText: TQBoxLayout TQGridLayout
  • finish: TQSplashScreen
  • finishButton: TQWizard
  • finished: - TQAxScript TQMovie TQNetworkProtocol TQThread TQUrlOperator
  • first: + TQMovie TQNetworkProtocol TQThread TQUrlOperator
  • first: TQDataBrowser TQFocusData TQPtrList TQSqlQuery TQValueList TQValueVector
  • firstChild: TQDomNode TQListView TQListViewItem
  • firstItem: TQIconView TQListBox
  • firstRecordAvailable: @@ -1049,10 +1028,7 @@ falseText: TQValueList TQValueVector
  • fullPage: TQPrinter
  • fullSpan: TQCustomMenuItem
  • functions: - TQAxScript TQAxScriptManager
  • -gamma: TQImageIO
  • generateDocumentation: - TQAxBase
  • generateFontDisplayLists: TQGLContext
  • geometry: TQLayoutItem TQWidget
  • get: TQFontManager TQFtp TQHttp TQUrlOperator
  • getColor: @@ -1138,7 +1114,6 @@ hScrollBarMode: TQBoxLayout TQGridLayout TQLayoutItem TQSizePolicy
  • hasHelpButton: TQTabDialog
  • hasHost: TQUrl
  • hasIntrospection: - TQAxScriptEngine
  • hasKey: TQHttpHeader
  • hasLocalData: TQThreadStorage
  • hasMarkedText: TQMultiLineEdit
  • hasMouse: @@ -1160,7 +1135,6 @@ hScrollBarMode: TQLabel
  • hasSelectedText: TQLineEdit TQTextEdit
  • hasStaticBackground: TQScrollView
  • hasStockEvents: - TQAxFactory
  • hasUser: TQUrl
  • hasViewXForm: TQPainter
  • hasWorldXForm: TQPainter
  • hash: @@ -1243,12 +1217,9 @@ icon: TQTableSelection
  • initCursor: TQScreen
  • initDevice: TQScreen
  • initialize: - TQAxBase TQColor TQCursor TQFontManager TQWindowsMime
  • initializeActive: - TQAxBase
  • initializeGL: + TQColor TQCursor TQFontManager TQWindowsMime
  • initializeActive: TQGLWidget
  • initializeLicensed: - TQAxBase
  • initializeOverlayGL: TQGLWidget
  • initializeRemote: - TQAxBase
  • initialized: TQGLContext
  • inputFormatList: TQImage
  • inputFormats: TQImage TQImageDecoder TQImageIO
  • inputMask: @@ -1294,7 +1265,6 @@ icon: TQApplication
  • instance: TQNPStream TQNPWidget
  • intValue: TQLCDNumber
  • interfaceID: - TQAxFactory
  • internalEntityDecl: TQXmlDeclHandler
  • internalSubset: TQDomDocumentType
  • interpretText: TQSpinBox
  • intersect: @@ -1407,7 +1377,7 @@ icon: TQLineEdit TQTextEdit
  • isMovingEnabled: TQDockWindow TQHeader
  • isNotation: TQDomNode TQDomNotation
  • isNull: - TQAxBase TQCString TQChar TQDate TQDateTime TQDomImplementation TQDomNode TQGuardedPtr TQHostAddress TQIconSet TQImage TQMemArray TQMovie TQPicture TQPixmap TQPoint TQPtrVector TQRect TQRegion TQSize TQSqlCursor TQSqlField TQSqlQuery TQSqlRecord TQSqlResult TQString TQTime TQUuid TQVariant
  • isNumber: + TQCString TQChar TQDate TQDateTime TQDomImplementation TQDomNode TQGuardedPtr TQHostAddress TQIconSet TQImage TQMemArray TQMovie TQPicture TQPixmap TQPoint TQPtrVector TQRect TQRegion TQSize TQSqlCursor TQSqlField TQSqlQuery TQSqlRecord TQSqlResult TQString TQTime TQUuid TQVariant
  • isNumber: TQChar
  • isOn: TQAction TQButton TQCheckBox TQCheckListItem TQPushButton TQRadioButton
  • isOpen: TQAssistantClient TQIODevice TQListView TQListViewItem TQSqlDatabase TQSqlDriver
  • isOpenError: @@ -1449,8 +1419,6 @@ icon: TQCanvasItem TQIconViewItem TQListBox TQListBoxItem TQListView TQListViewItem TQTable
  • isSeparator: TQCustomMenuItem
  • isSequentialAccess: TQIODevice
  • isServer: - TQAxFactory
  • isService: - TQAxFactory
  • isSessionRestored: TQApplication
  • isSetType: TQMetaProperty
  • isSharing: TQGLContext TQGLWidget
  • isShown: @@ -1477,7 +1445,7 @@ icon: TQLineEdit TQTextEdit
  • isUndoRedoEnabled: TQTextEdit
  • isUpdatesEnabled: TQWidget
  • isValid: - TQAccessibleInterface TQAxScriptEngine TQCanvasPixmapArray TQCanvasPolygonalItem TQColor TQDate TQDateTime TQGLContext TQGLWidget TQHttpHeader TQRect TQRegExp TQSize TQSocketDevice TQSqlQuery TQSqlResult TQTime TQUrl TQUrlInfo TQVariant
  • isVerticalSliderPressed: + TQAccessibleInterface TQCanvasPixmapArray TQCanvasPolygonalItem TQColor TQDate TQDateTime TQGLContext TQGLWidget TQHttpHeader TQRect TQRegExp TQSize TQSocketDevice TQSqlQuery TQSqlResult TQTime TQUrl TQUrlInfo TQVariant
  • isVerticalSliderPressed: TQScrollView
  • isVerticallyStretchable: TQDockWindow
  • isVirtualDesktop: TQDesktopWidget
  • isVisible: @@ -1597,7 +1565,7 @@ label: TQListViewItem
  • listViewItem: TQStyleOption
  • listen: TQSocketDevice
  • load: - TQAxScript TQAxScriptManager TQImage TQLibrary TQPicture TQPixmap TQTranslator
  • loadCharmap: + TQImage TQLibrary TQPicture TQPixmap TQTranslator
  • loadCharmap: TQTextCodec
  • loadCharmapFile: TQTextCodec
  • loadFromData: TQImage TQPixmap
  • loadImages: @@ -1701,7 +1669,7 @@ m11: TQErrorMessage TQSplashScreen TQStatusBar TQXmlParseException
  • messageChanged: TQSplashScreen TQStatusBar
  • messages: TQTranslator
  • metaObject: - TQAxFactory TQObject
  • method: + TQObject
  • method: TQHttpRequestHeader
  • metric: TQPicture TQPixmap TQWidget
  • mibEnum: TQEucJpCodec TQTextCodec
  • mibEnums: @@ -1837,7 +1805,7 @@ name: TQMetaObject
  • number: TQSqlError TQString
  • object: - TQAccessibleObject TQAxAggregated
  • objectTrees: + TQAccessibleObject
  • objectTrees: TQObject
  • offset: TQDirectPainter TQDockWindow TQHeader TQImage
  • offsetX: TQCanvasPixmap
  • offsetY: @@ -2060,10 +2028,7 @@ packImage: TQProgressBar TQProgressDialog
  • progressString: TQProgressBar
  • property: TQMetaObject TQObject TQSqlPropertyMap TQXmlReader
  • propertyBag: - TQAxBase
  • propertyChanged: - TQAxBase TQAxBindable
  • propertyNames: TQMetaObject
  • propertyWritable: - TQAxBase
  • protocol: TQSocketDevice TQUrl
  • protocolDetail: TQNetworkOperation
  • provides: TQDropEvent TQMimeSource
  • publicId: @@ -2123,12 +2088,10 @@ tqAddPostRoutine: TQUrl
  • queryAccessibleInterface: TQAccessible
  • queryChild: TQAccessibleInterface
  • queryInterface: - TQAxAggregated TQAxBase TQAxScriptEngine
  • queryList: TQObject
  • queryParent: TQAccessibleInterface
  • querySubControl: TQStyle
  • querySubControlMetrics: TQStyle
  • querySubObject: - TQAxBase TQAxObject TQAxWidget
  • question: TQMessageBox
  • quit: TQApplication
  • qwsDecoration: TQApplication
  • qwsEvent: @@ -2197,9 +2160,7 @@ rBottom: TQDataBrowser TQDataTable TQDataView TQDir TQFileInfo TQSplitter TQWSServer
  • regExp: TQRegExpValidator
  • region: TQDirectPainter TQPaintEvent TQWSDecoration
  • registerClass: - TQAxFactory
  • registerDecoderFactory: TQImageDecoder
  • registerEngine: - TQAxScriptManager
  • registerNetworkProtocol: TQNetworkProtocol
  • registerSocketNotifier: TQEventLoop
  • registerSqlDriver: TQSqlDatabase
  • rehighlight: @@ -2271,11 +2232,9 @@ rBottom: TQAsciiDict TQCString TQDict TQIntDict TQMap TQPtrDict TQPtrList TQString
  • replaceChild: TQDomNode
  • replaceData: TQDomCharacterData
  • reportError: - TQAxBindable
  • request: TQHttp
  • requestFinished: TQHttp
  • requestPhase2: TQSessionManager
  • requestPropertyChange: - TQAxBindable
  • requestRead: TQNPStream
  • requestStarted: TQHttp
  • requested: TQWSWindow
  • requestedFormat: @@ -2369,13 +2328,6 @@ sRect: TQWSServer
  • screenSaverActive: TQWSServer
  • screenSize: TQScreen
  • script: - TQAxScriptManager
  • scriptCode: - TQAxScript
  • scriptEngine: - TQAxScript
  • scriptFileFilter: - TQAxScriptManager
  • scriptLanguage: - TQAxScriptEngine
  • scriptName: - TQAxScript TQFontDatabase
  • scriptNames: - TQAxScriptManager
  • scriptSample: TQFontDatabase
  • scriptable: TQMetaProperty
  • scroll: TQWidget
  • scrollBarsEnabled: @@ -2427,8 +2379,6 @@ sRect: TQObject
  • separator: TQDateEdit TQDir TQTimeEdit
  • serialNumber: TQMimeSource TQPalette TQPixmap
  • serverDirPath: - TQAxFactory
  • serverFilePath: - TQAxFactory
  • servers: TQDns
  • sessionId: TQApplication TQSessionManager
  • sessionKey: TQApplication TQSessionManager
  • set: @@ -2569,7 +2519,6 @@ sRect: TQFileDialog
  • setContentsPreviewEnabled: TQFileDialog
  • setContexts: TQStyleSheetItem
  • setControl: - TQAxBase
  • setControlPoints: TQCanvasSpline
  • setCoords: TQRect
  • setCornerWidget: TQScrollView TQTabWidget
  • setCreator: @@ -2924,8 +2873,6 @@ sRect: TQPrinter
  • setProgress: TQProgressBar TQProgressDialog
  • setProperty: TQObject TQSqlPropertyMap TQXmlReader
  • setPropertyBag: - TQAxBase
  • setPropertyWritable: - TQAxBase
  • setProtocol: TQUrl
  • setProtocolDetail: TQNetworkOperation
  • setQuality: TQImageIO
  • setQuery: @@ -3020,7 +2967,7 @@ sRect: TQColorDialog
  • setStartDragDistance: TQApplication
  • setStartDragTime: TQApplication
  • setState: - TQAxScriptEngine TQButton TQCheckListItem TQIODevice TQNetworkOperation
  • setStaticBackground: + TQButton TQCheckListItem TQIODevice TQNetworkOperation
  • setStaticBackground: TQScrollView
  • setStatus: TQIODevice TQImageIO
  • setStatusTip: TQAction
  • setStencil: @@ -3181,7 +3128,6 @@ sRect: TQToolTipGroup
  • showToolTips: TQIconView TQListView
  • shutdownDevice: TQScreen
  • signal: - TQAxBase
  • signalNames: TQMetaObject
  • signalsBlocked: TQObject
  • simpleHeuristicNameMatch: TQTextCodec
  • simplifyWhiteSpace: @@ -3251,21 +3197,19 @@ sRect: TQCanvasLine
  • startPrefixMapping: TQXmlContentHandler
  • startRename: TQListViewItem
  • startServer: - TQAxFactory
  • startTimer: TQObject
  • startedNextCopy: TQUrlOperator
  • startingUp: TQApplication
  • startsWith: TQString
  • state: - TQAccessibleInterface TQAxScriptEngine TQButton TQCheckBox TQCheckListItem TQContextMenuEvent TQFtp TQHttp TQIODevice TQKeyEvent TQMouseEvent TQNetworkOperation TQPushButton TQRadioButton TQSocket TQWheelEvent
  • stateAfter: + TQAccessibleInterface TQButton TQCheckBox TQCheckListItem TQContextMenuEvent TQFtp TQHttp TQIODevice TQKeyEvent TQMouseEvent TQNetworkOperation TQPushButton TQRadioButton TQSocket TQWheelEvent
  • stateAfter: TQKeyEvent TQMouseEvent
  • stateChange: TQCheckListItem
  • stateChanged: - TQAxScript TQButton TQCheckBox TQFtp TQHttp TQPushButton TQRadioButton
  • statistics: + TQButton TQCheckBox TQFtp TQHttp TQPushButton TQRadioButton
  • statistics: TQAsciiCache TQAsciiDict TQCache TQDict TQIntCache TQIntDict TQPtrDict
  • status: TQIODevice TQImageIO TQNPInstance
  • statusBar: TQMainWindow
  • statusCode: TQHttpResponseHeader
  • statusTip: TQAction
  • stayTopLevel: - TQAxFactory
  • stencil: TQGLFormat
  • step: TQMovie
  • stepChange: TQRangeControl
  • stepDown: @@ -3274,7 +3218,6 @@ sRect: TQMovie
  • stereo: TQGLFormat
  • stop: TQNetworkProtocol TQSound TQTimer TQUrlOperator
  • stopServer: - TQAxFactory
  • stored: TQMetaProperty
  • streamAsFile: TQNPInstance
  • streamDestroyed: TQNPInstance
  • stretch: @@ -3474,7 +3417,6 @@ tab: TQDirectPainter TQScreen
  • transformationMode: TQWMatrix
  • translate: TQApplication TQPainter TQPointArray TQRegion TQWMatrix
  • translateKeyEvent: - TQAxWidget
  • translation: TQTranslatorMessage
  • transpose: TQSize TQSizePolicy
  • treeStepSize: TQListView
  • triggerUpdate: @@ -3488,7 +3430,6 @@ tab: TQCheckListItem
  • type: TQApplication TQCheckListItem TQEvent TQMetaProperty TQNPStream TQSocketDevice TQSocketNotifier TQSqlError TQSqlField TQSqlFieldInfo TQVariant TQXmlAttributes
  • typeID: TQSqlFieldInfo
  • typeLibID: - TQAxFactory
  • typeName: TQVariant
  • typeToName: TQVariant
  • ucs2: @@ -3510,7 +3451,6 @@ ucs2: TQApplication TQMutex
  • unparsedEntityDecl: TQXmlDTDHandler
  • unpause: TQMovie
  • unregisterClass: - TQAxFactory
  • unregisterDecoderFactory: TQImageDecoder
  • unregisterSocketNotifier: TQEventLoop
  • unsetCursor: TQWidget
  • unsetDevice: @@ -3558,7 +3498,6 @@ vScrollBarMode: TQImage
  • validChunk: TQCanvas
  • validate: TQDoubleValidator TQIntValidator TQRegExpValidator TQValidator
  • validateLicenseKey: - TQAxFactory
  • validator: TQComboBox TQLineEdit TQSpinBox
  • value: TQDataTable TQDial TQDomAttr TQHttpHeader TQHttpRequestHeader TQLCDNumber TQRangeControl TQScrollBar TQSignal TQSlider TQSpinBox TQSqlField TQSqlQuery TQSqlRecord TQXmlAttributes
  • valueChange: TQDial TQRangeControl TQSlider TQSpinBox
  • valueChanged: @@ -3605,7 +3544,7 @@ wait: TQWidget
  • wheelScrollLines: TQApplication
  • whiteSpaceMode: TQStyleSheetItem
  • widget: - TQAxAggregated TQDockWindow TQLayoutItem TQNPInstance TQSqlForm TQStyleOption TQWidgetItem TQWidgetStack
  • widgetAt: + TQDockWindow TQLayoutItem TQNPInstance TQSqlForm TQStyleOption TQWidgetItem TQWidgetStack
  • widgetAt: TQApplication
  • widgetSizePolicy: TQMacStyle
  • widgetToField: TQSqlForm
  • widgets: diff --git a/doc/html/headerfilesynonyms b/doc/html/headerfilesynonyms index 60e35841..9f0a59c8 100644 --- a/doc/html/headerfilesynonyms +++ b/doc/html/headerfilesynonyms @@ -7,9 +7,6 @@ tqimageconsumer.h ntqasyncimageio.h tqimageformat.h ntqasyncimageio.h tqimageformattype.h ntqasyncimageio.h tqimagedecoder.h ntqasyncimageio.h -qaxaggregated.h qaxbindable.h -qaxscriptengine.h qaxscript.h -qaxscriptmanager.h qaxscript.h qbig5hkscscodec.h ntqbig5codec.h qbitval.h ntqbitarray.h qcacheiterator.h ntqcache.h diff --git a/doc/html/headers.html b/doc/html/headers.html index 2b7644ca..3fe93f35 100644 --- a/doc/html/headers.html +++ b/doc/html/headers.html @@ -44,12 +44,6 @@ body { background: #ffffff; color: black; }
  • ntqassistantclient.h
  • ntqasyncimageio.h
  • ntqasyncio.h -
  • qaxbase.h -
  • qaxbindable.h -
  • qaxfactory.h -
  • qaxobject.h -
  • qaxscript.h -
  • qaxwidget.h
  • ntqbig5codec.h
  • ntqbitarray.h
  • ntqbitmap.h diff --git a/doc/html/hierarchy.html b/doc/html/hierarchy.html index c38689fa..f859b051 100644 --- a/doc/html/hierarchy.html +++ b/doc/html/hierarchy.html @@ -51,10 +51,6 @@ classes in the TQt API.
  • TQIODeviceSource -
  • TQAxAggregated -
  • TQAxBase -
  • TQAxBindable -
  • TQAxFactory
  • TQBitVal
  • TQCacheIterator
  • TQCanvasPixmapArray @@ -314,12 +310,8 @@ classes in the TQt API.
  • TQApplication
  • TQAssistantClient -
  • TQAxObject -
  • TQAxScript -
  • TQAxScriptManager
  • TQCanvas
  • TQClipboard
  • TQCopChannel @@ -404,7 +396,6 @@ classes in the TQt API.
  • TQWidget
  • Draws an ellipse with center at (x + w/2, y + h/2) and size (w, h). -

    Examples: drawdemo/drawdemo.cpp, multiple/ax2.h, picture/picture.cpp, and tictac/tictac.cpp. +

    Examples: drawdemo/drawdemo.cpp, picture/picture.cpp, and tictac/tictac.cpp.

    void TQPainter::drawEllipse ( const TQRect & r )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. @@ -969,7 +969,7 @@ constructor that takes a TQColor argument and creates a solid pattern brush.

    See also drawRect(). -

    Examples: listboxcombo/listboxcombo.cpp, multiple/ax1.h, progress/progress.cpp, qdir/qdir.cpp, qfd/fontdisplayer.cpp, themes/metal.cpp, and themes/wood.cpp. +

    Examples: listboxcombo/listboxcombo.cpp, progress/progress.cpp, qdir/qdir.cpp, qfd/fontdisplayer.cpp, themes/metal.cpp, and themes/wood.cpp.

    void TQPainter::fillRect ( const TQRect & r, const TQBrush & brush )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. @@ -1075,7 +1075,7 @@ This is an overloaded member function, provided for convenience. It behaves esse

    Returns the painter's current pen.

    See also setPen(). -

    Examples: multiple/ax2.h, progress/progress.cpp, and themes/wood.cpp. +

    Examples: progress/progress.cpp, and themes/wood.cpp.

    TQPoint TQPainter::pos () const

    This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code. @@ -1243,7 +1243,7 @@ Sets a new painter pen. defines the text color.

    See also pen(). -

    Examples: desktop/desktop.cpp, drawdemo/drawdemo.cpp, multiple/ax2.h, progress/progress.cpp, t9/cannon.cpp, themes/metal.cpp, and themes/wood.cpp. +

    Examples: desktop/desktop.cpp, drawdemo/drawdemo.cpp, progress/progress.cpp, t9/cannon.cpp, themes/metal.cpp, and themes/wood.cpp.

    void TQPainter::setPen ( PenStyle style )

    This is an overloaded member function, provided for convenience. It behaves essentially like the above function. diff --git a/doc/html/ntqpen.html b/doc/html/ntqpen.html index ff962fce..c42331f0 100644 --- a/doc/html/ntqpen.html +++ b/doc/html/ntqpen.html @@ -245,7 +245,7 @@ the same as a line width of 1. The cap and join style have no effect on 0-width lines.

    See also width(). -

    Examples: multiple/ax2.h, progress/progress.cpp, and scribble/scribble.h. +

    Examples: progress/progress.cpp, and scribble/scribble.h.

    PenStyle TQPen::style () const

    diff --git a/doc/html/ntqrect.html b/doc/html/ntqrect.html index b71a12db..2bf09570 100644 --- a/doc/html/ntqrect.html +++ b/doc/html/ntqrect.html @@ -180,7 +180,6 @@ Constructs a rectangle with topLeft as the top-left corner and Adds xp1, yp1, xp2 and yp2 respectively to the existing coordinates of the rectangle. -

    Examples: multiple/ax1.h and multiple/ax2.h.

    int TQRect::bottom () const

    diff --git a/doc/html/ntqslider.html b/doc/html/ntqslider.html index d4a9e202..72bc6a33 100644 --- a/doc/html/ntqslider.html +++ b/doc/html/ntqslider.html @@ -289,7 +289,7 @@ Implements the virtual TQRangeControl functio

    This signal is emitted when the slider value is changed, with the new slider value as its argument. -

    Examples: rangecontrols/rangecontrols.cpp, simple/main.cpp, t12/lcdrange.cpp, t5/main.cpp, t6/main.cpp, t7/lcdrange.cpp, and xform/xform.cpp. +

    Examples: rangecontrols/rangecontrols.cpp, t12/lcdrange.cpp, t5/main.cpp, t6/main.cpp, t7/lcdrange.cpp, and xform/xform.cpp.


    Property Documentation

    int lineStep

    This property holds the current line step. diff --git a/doc/html/overviews-list.html b/doc/html/overviews-list.html index b6e4d255..1cf238cb 100644 --- a/doc/html/overviews-list.html +++ b/doc/html/overviews-list.html @@ -79,7 +79,6 @@ body { background: #ffffff; color: black; }

  • Keyboard Focus Overview
  • Standard Accelerators
  • TQt-based LiveConnect Plugins -
  • ActiveX support
  • Motif Support Extension
  • OpenGL Overlays (X11)
  • Setting the Application Icon diff --git a/doc/html/plugins.html b/doc/html/plugins.html index 879f4210..bb2ecbc4 100644 --- a/doc/html/plugins.html +++ b/doc/html/plugins.html @@ -35,8 +35,6 @@ body { background: #ffffff; color: black; }

    These classes deal with shared libraries, (e.g. .so and DLL files), and with TQt plugins.

    See the plugins documentation. -

    See also the ActiveTQt framework for -Windows.

    TQGfxDriverPluginAbstract base for TQt/Embedded graphics driver plugins diff --git a/doc/html/propertydocs b/doc/html/propertydocs index 931a617f..efed087f 100644 --- a/doc/html/propertydocs +++ b/doc/html/propertydocs @@ -189,63 +189,6 @@ calls to their <a href="ntqaction.html#setVisible">QAction::setVisible< <p>Get this property's value with <a href="ntqassistantclient.html#isOpen">isOpen</a>(). - - QAxBase::control - -<p>This property holds the name of the COM object wrapped by this QAxBase object. -<p>Setting this property initilializes the COM object. Any COM object -previously set is shut down. -<p> The most efficient way to set this property is by using the -registered component's UUID, e.g. -<pre> - ctrl-&gt;setControl( "{8E27C92B-1264-101C-8A2F-040224009C02}" ); - </pre> - -The second fastest way is to use the registered control's class -name (with or without version number), e.g. -<pre> - ctrl-&gt;setControl( "MSCal.Calendar" ); - </pre> - -The slowest, but easiest way to use is to use the control's full -name, e.g. -<pre> - ctrl-&gt;setControl( "Calendar Control 9.0" ); - </pre> - -<p> If the component's UUID is used the following patterns can be used -to initialize the control on a remote machine, to initialize a -licensed control or to connect to a running object: -<ul> -<li> To initialize the control on a different machine use the following -pattern: -<pre> - &lt;domain/username&gt;:&lt;password&gt;@server/{8E27C92B-1264-101C-8A2F-040224009C02} - </pre> - -<li> To initialize a licensed control use the following pattern: -<pre> - {8E27C92B-1264-101C-8A2F-040224009C02}:&lt;LicenseKey&gt; - </pre> - -<li> To connect to an already running object use the following pattern: -<pre> - {8E27C92B-1264-101C-8A2F-040224009C02}&amp; - </pre> - -</ul> -The first two patterns can be combined, e.g. to initialize a licensed -control on a remote machine: -<pre> - ctrl-&gt;setControl("DOMAIN/user:password@server/{8E27C92B-1264-101C-8A2F-040224009C02}:LicenseKey"); - </pre> - -<p> The control's read function always returns the control's UUID, if provided including the license -key, and the name of the server, but not including the username, the domain or the password. - -<p>Set this property's value with <a href="qaxbase.html#setControl">setControl</a>() and get this property's value with <a href="qaxbase.html#control">control</a>(). - - QButton::accel diff --git a/doc/html/propertyindex b/doc/html/propertyindex index 0dfdbbfb..2b56c227 100644 --- a/doc/html/propertyindex +++ b/doc/html/propertyindex @@ -12,7 +12,6 @@ "QActionGroup/exclusive" qactiongroup.html#exclusive-prop "QActionGroup/usesDropDown" qactiongroup.html#usesDropDown-prop "QAssistantClient/open" ntqassistantclient.html#open-prop -"QAxBase/control" qaxbase.html#control-prop "QButton/accel" ntqbutton.html#accel-prop "QButton/autoRepeat" ntqbutton.html#autoRepeat-prop "QButton/down" ntqbutton.html#down-prop diff --git a/doc/html/qaxaggregated-members.html b/doc/html/qaxaggregated-members.html deleted file mode 100644 index 6468c613..00000000 --- a/doc/html/qaxaggregated-members.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - -TQAxAggregated Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxAggregated

    - -

    This is the complete list of member functions for -TQAxAggregated, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxaggregated.html b/doc/html/qaxaggregated.html deleted file mode 100644 index 167feb5b..00000000 --- a/doc/html/qaxaggregated.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - -TQAxAggregated Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxAggregated Class Reference
    [TQAxServer module]

    - -

    The TQAxAggregated class is an abstract base class for implementations of -additional COM interfaces. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxbindable.h> -

    List of all member functions. -

    Public Members

    -
      -
    • virtual long queryInterface ( const TQUuid & iid, void ** iface ) = 0
    • -
    -

    Protected 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. -

    - -The TQAxAggregated class is an abstract base class for implementations of -additional COM interfaces. - -

    - -

    Create a subclass of TQAxAggregated and reimplement -queryInterface() to support additional COM interfaces. Use -multiple inheritance from those COM interfaces. Implement the -IUnknown interface of those COM interfaces by delegating the calls -to QueryInterface(), AddRef() and Release() to the interface -provided by controllingUnknown(). -

    Use the widget() method if you need to make calls to the TQWidget -implementing the ActiveX control. You must not store that pointer -in your subclass (unless you use TQGuardedPtr), as the TQWidget can -be destroyed by the ActiveTQt framework at any time. - -


    Member Function Documentation

    -

    IUnknown * TQAxAggregated::controllingUnknown () const [protected] -

    - -

    Returns the IUnknown interface of the ActiveX control. Implement -the IUnknown interface in your TQAxAggregated subclass to delegate -calls to QueryInterface(), AddRef() and Release() to the interface -provided by this function. -

    -    HRESULT AxImpl::QueryInterface( REFIID iid, void **iface )
    -    {
    -        return controllingUnknown()->QueryInterface( iid, iface );
    -    }
    -
    -    unsigned long AxImpl::AddRef()
    -    {
    -        return controllingUnknown()->AddRef();
    -    }
    -
    -    unsigned long AxImpl::Release()
    -    {
    -        return controllingUnknown()->Release();
    -    }
    -    
    - -

    The TQAXAGG_IUNKNOWN macro expands to the code above, and you can -use it in the class declaration of your subclass. - -

    TQObject * TQAxAggregated::object () const [protected] -

    - -

    Returns a pointer to the TQObject subclass implementing the COM object. -This function might return 0. -

    Warning: -You must not store the returned pointer, unless you use a -TQGuardedPtr, since the TQObject can be destroyed by ActiveTQt at any -time. - -

    long TQAxAggregated::queryInterface ( const TQUuid & iid, void ** iface ) [pure virtual] -

    - -

    Reimplement this pure virtual function to support additional COM -interfaces. Set the value of iface to point to this object to -support the interface iid. Note that you must cast the this pointer to the appropriate superclass. -

    -    long AxImpl::queryInterface( const TQUuid &iid, void **iface )
    -    {
    -        *iface = 0;
    -        if ( iid == IID_ISomeCOMInterface )
    -            *iface = (ISomeCOMInterface*)this;
    -        else
    -            return E_NOINTERFACE;
    -
    -        AddRef();
    -        return S_OK;
    -    }
    -    
    - -

    Return the standard COM results S_OK (interface is supported) or -E_NOINTERFACE (requested interface is not supported). -

    Warning: -Even though you must implement the IUnknown interface if you -implement any COM interface you must not support the IUnknown -interface in your queryInterface() implementation. - -

    TQWidget * TQAxAggregated::widget () const [protected] -

    - -

    Returns a pointer to the TQWidget subclass implementing the ActiveX control. -This function might return 0. -

    Warning: -You must not store the returned pointer, unless you use a -TQGuardedPtr, since the TQWidget can be destroyed by ActiveTQt at any -time. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxbase-h.html b/doc/html/qaxbase-h.html deleted file mode 100644 index ca385c3b..00000000 --- a/doc/html/qaxbase-h.html +++ /dev/null @@ -1,209 +0,0 @@ - - - - - -qaxbase.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    qaxbase.h

    - -

    This is the verbatim text of the qaxbase.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/qaxbase.h   3.3.8   edited Jan 11 14:46 $
    -**
    -** Declaration of the TQAxBase class
    -**
    -** Copyright (C) 2001-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the Active TQt integration.
    -**
    -** Licensees holding valid TQt Enterprise Edition
    -** licenses for Windows may use this file in accordance with the TQt Commercial
    -** License Agreement provided with the Software.
    -**
    -** This file is not available for use under any other license without
    -** express written permission from the copyright holder.
    -**
    -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    -**
    -** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
    -**   information about TQt Commercial License Agreements.
    -**
    -** Contact info@trolltech.com if any conditions of this licensing are
    -** not clear to you.
    -**
    -**********************************************************************/
    -
    -#ifndef UNICODE
    -#define UNICODE
    -#endif
    -
    -#ifndef TQAXBASE_H
    -#define TQAXBASE_H
    -
    -#include <ntqvariant.h>
    -#include <tqobject.h>
    -
    -struct IUnknown;
    -struct TQUuid;
    -class TQAxEventSink;
    -class TQAxObject;
    -class TQAxBasePrivate;
    -
    -class TQAxBase
    -{
    -#ifdef Q_QDOC
    -#error "The Symbol Q_QDOC is reserved for documentation purposes."
    -    TQ_PROPERTY( TQString control READ control WRITE setControl )
    -#endif
    -public:
    -#ifndef Q_QDOC
    -    typedef TQMap<TQCString, TQVariant> PropertyBag;
    -#endif
    -
    -    TQAxBase( IUnknown *iface = 0 );
    -    virtual ~TQAxBase();
    -
    -    TQString control() const;
    -
    -    long queryInterface( const TQUuid &, void** ) const;
    -
    -    TQVariant dynamicCall( const TQCString&, const TQVariant &v1 = TQVariant(), 
    -					   const TQVariant &v2 = TQVariant(),
    -					   const TQVariant &v3 = TQVariant(),
    -					   const TQVariant &v4 = TQVariant(),
    -					   const TQVariant &v5 = TQVariant(),
    -					   const TQVariant &v6 = TQVariant(),
    -					   const TQVariant &v7 = TQVariant(),
    -					   const TQVariant &v8 = TQVariant() );
    -    TQVariant dynamicCall( const TQCString&, TQValueList<TQVariant> &vars );
    -    TQAxObject *querySubObject( const TQCString &name, const TQVariant &v1 = TQVariant(),
    -					    const TQVariant &v2 = TQVariant(),
    -					    const TQVariant &v3 = TQVariant(),
    -					    const TQVariant &v4 = TQVariant(),
    -					    const TQVariant &v5 = TQVariant(),
    -					    const TQVariant &v6 = TQVariant(),
    -					    const TQVariant &v7 = TQVariant(),
    -					    const TQVariant &v8 = TQVariant() );
    -
    -    virtual TQMetaObject *metaObject() const;
    -    virtual bool tqt_invoke( int, TQUObject* );
    -    virtual bool tqt_property( int, int, TQVariant* );
    -    virtual bool tqt_emit( int, TQUObject* ) = 0;
    -    virtual const char *className() const = 0;
    -    virtual TQObject *qObject() = 0;
    -
    -    PropertyBag propertyBag() const;
    -    void setPropertyBag( const PropertyBag& );
    -
    -    TQString generateDocumentation();
    -
    -    virtual bool propertyWritable( const char* ) const;
    -    virtual void setPropertyWritable( const char*, bool );
    -
    -    bool isNull() const;
    -
    -    TQVariant asVariant() const;
    -
    -#ifdef Q_QDOC
    -#error "The Symbol Q_QDOC is reserved for documentation purposes."
    -    enum PropertyBag {};
    -signals:
    -    void signal(const TQString&,int,void*);
    -    void propertyChanged(const TQString&);
    -    void exception(int,const TQString&,const TQString&,const TQString&);
    -#endif
    -
    -public:
    -    virtual void clear();
    -    bool setControl( const TQString& );
    -
    -    void disableMetaObject();
    -    void disableClassInfo();
    -    void disableEventSink();
    -
    -protected:
    -    virtual bool initialize( IUnknown** ptr );
    -    bool initializeRemote(IUnknown** ptr);
    -    bool initializeLicensed(IUnknown** ptr);
    -    bool initializeActive(IUnknown** ptr);
    -
    -private:
    -    bool initializeLicensedHelper(void *factory, const TQString &key, IUnknown **ptr);
    -    TQAxBasePrivate *d;
    -
    -    static TQMetaObject *staticMetaObject() { return 0; }
    -    virtual TQMetaObject *parentMetaObject() const = 0;
    -    bool internalInvoke( const TQCString &name, void *out, TQVariant var[], TQCString &type );
    -
    -    TQString ctrl;
    -};
    -
    -inline TQString TQAxBase::generateDocumentation()
    -{
    -    extern TQString qax_generateDocumentation(TQAxBase *, TQAxBasePrivate *);
    -    return qax_generateDocumentation(this, d);
    -}
    -
    -#ifndef TQT_NO_DATASTREAM
    -inline TQDataStream &operator >>( TQDataStream &s, TQAxBase &c )
    -{
    -    TQAxBase::PropertyBag bag;
    -    c.qObject()->blockSignals( TRUE );
    -    TQString control;
    -    s >> control;
    -    c.setControl( control );
    -    s >> bag;
    -    c.setPropertyBag( bag );
    -    c.qObject()->blockSignals( FALSE );
    -
    -    return s;
    -}
    -
    -inline TQDataStream &operator <<( TQDataStream &s, const TQAxBase &c )
    -{
    -    TQAxBase::PropertyBag bag = c.propertyBag();
    -    s << c.control();
    -    s << bag;
    -
    -    return s;
    -}
    -#endif // TQT_NO_DATASTREAM
    -
    -#endif // TQAXBASE_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxbase-members.html b/doc/html/qaxbase-members.html deleted file mode 100644 index a3fb0fe3..00000000 --- a/doc/html/qaxbase-members.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - -TQAxBase Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxBase

    - -

    This is the complete list of member functions for -TQAxBase, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxbase.html b/doc/html/qaxbase.html deleted file mode 100644 index a78a0cc6..00000000 --- a/doc/html/qaxbase.html +++ /dev/null @@ -1,658 +0,0 @@ - - - - - -TQAxBase Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxBase Class Reference
    [TQAxContainer module]

    - -

    The TQAxBase class is an abstract class that provides an API -to initalize and access a COM object. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxbase.h> -

    Inherited by TQAxObject and TQAxWidget. -

    List of all member functions. -

    Public Members

    -
      -
    • TQAxBase ( IUnknown * iface = 0 )
    • -
    • virtual ~TQAxBase ()
    • -
    • TQString control () const
    • -
    • long queryInterface ( const TQUuid & uuid, void ** iface ) const
    • -
    • TQVariant dynamicCall ( const TQCString & 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 dynamicCall ( const TQCString & function, TQValueList<TQVariant> & vars )
    • -
    • TQAxObject * querySubObject ( const TQCString & name, 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 ( ) )
    • -
    • PropertyBag propertyBag () const
    • -
    • void setPropertyBag ( const PropertyBag & bag )
    • -
    • TQString generateDocumentation ()
    • -
    • virtual bool propertyWritable ( const char * prop ) const
    • -
    • virtual void setPropertyWritable ( const char * prop, bool ok )
    • -
    • bool isNull () const
    • -
    • TQVariant asVariant () const
    • -
    • enum PropertyBag { }
    • -
    • virtual void clear ()
    • -
    • bool setControl ( const TQString & )
    • -
    • void disableMetaObject ()
    • -
    • void disableClassInfo ()
    • -
    • void disableEventSink ()
    • -
    -

    Signals

    -
      -
    • void signal ( const TQString & name, int argc, void * argv )
    • -
    • void propertyChanged ( const TQString & name )
    • -
    • void exception ( int code, const TQString & source, const TQString & desc, const TQString & help )
    • -
    -

    Properties

    -
      -
    • TQString control - the name of the COM object wrapped by this TQAxBase object
    • -
    -

    Protected 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. -

    - -

    The TQAxBase class is an abstract class that provides an API -to initalize and access a COM object. - -

    - -

    TQAxBase is an abstract class that cannot be used directly, and is -instantiated through the subclasses TQAxObject and TQAxWidget. This -class provides the API to access the COM object directly -through its IUnknown implementation. If the COM object implements -the IDispatch interface, the properties and methods of that object -become available as TQt properties and slots. -

    -    connect( buttonBack, TQ_SIGNAL(clicked()), webBrowser, TQ_SLOT(GoBack()) );
    -    
    - -

    Properties exposed by the object's IDispatch implementation can be -read and written through the property system provided by the TQt -Object Model (both subclasses are TQObjects, so you can use setProperty() and property() as with TQObject). Properties -with multiple parameters are not supported. -

    -    activeX->setProperty( "text", "some text" );
    -    int value = activeX->property( "value" );
    -    
    - -

    Write-functions for properties and other methods exposed by the -object's IDispatch implementation can be called directly using -dynamicCall(), or indirectly as slots connected to a signal. -

    -    webBrowser->dynamicCall( "GoHome()" );
    -    
    - -

    Outgoing events supported by the COM object are emitted as -standard TQt signals. -

    -    connect( webBrowser, TQ_SIGNAL(TitleChanged(const TQString&)),
    -             this, TQ_SLOT(setCaption(const TQString&)) );
    -    
    - -

    TQAxBase transparently converts between COM data types and the -equivalent TQt data types. Some COM types have no equivalent TQt data structure. -

    Supported COM datatypes are listed in the first column of following table. -The second column is the TQt type that can be used with the TQObject property -functions. The third column is the TQt type that is used in the prototype of -generated signals and slots for in-parameters, and the last column is the TQt -type that is used in the prototype of signals and slots for out-parameters. -

    - - - - - - - - - - - - - - - - - - -
    COM type -TQt property -in-parameter -out-parameter -
    VARIANT_BOOL -bool -bool -bool& -
    BSTR -TQString -const TQString& -TQString& -
    char, short, int, long -int -int -int& -
    uchar, ushort, uint, ulong -uint -uint -uint& -
    float, double -double -double -double& -
    DATE -TQDateTime -const TQDateTime& -TQDateTime& -
    CY -TQ_LLONG -TQ_LLONG -TQ_LLONG& -
    OLE_COLOR -TQColor -const TQColor& -TQColor& -
    SAFEARRAY(VARIANT) -TQValueList<TQVariant> -const TQValueList<TQVariant>& -TQValueList<TQVariant>& -
    SAFEARRAY(BYTE) -TQByteArray -const TQByteArray& -TQByteArray& -
    SAFEARRAY(BSTR) -TQStringList -const TQStringList& -TQStringList& -
    VARIANT -type-dependent -const TQVariant& -TQVariant& -
    IFontDisp* -TQFont -const TQFont& -TQFont& -
    IPictureDisp* -TQPixmap -const TQPixmap& -TQPixmap& -
    IDispatch* -TQAxObject* (read-only) -TQAxBase::asVariant() -TQAxObject* (return value) -
    IUnknown* -TQAxObject* (read-only) -TQAxBase::asVariant() -TQAxObject* (return value) -
    SCODE, DECIMAL -unsupported -unsupported -unsupported -
    -

    Supported are also enumerations, and typedefs to supported types. -

    To call the methods of a COM interface described by the following IDL -

    -    dispinterface IControl
    -    {
    -    properties:
    -        [id(1)] BSTR text;
    -        [id(2)] IFontDisp *font;
    -
    -    methods:
    -        [id(6)] void showColumn( [in] int i );
    -        [id(3)] bool addColumn( [in] BSTR t );
    -        [id(4)] int fillList( [in, out] SAFEARRAY(VARIANT) *list );
    -        [id(5)] IDispatch *item( [in] int i );
    -    };
    -    
    - -use the TQAxBase API like this: -
    -    TQAxObject object( "<CLSID>" );
    -
    -    TQString text = object.property( "text" ).toString();
    -    object.setProperty( "font", TQFont( "Times New Roman", 12 ) );
    -
    -    connect( this, TQ_SIGNAL(clicked(int)), &object, TQ_SLOT(showColumn(int)) );
    -    bool ok = object.dynamicCall( "addColumn(const TQString&)", "Column 1" ).toBool();
    -
    -    TQValueList<TQVariant> varlist;
    -    TQValueList<TQVariant> parameters;
    -    parameters << TQVariant( varlist );
    -    int n = object.dynamicCall( "fillList(TQValueList<TQVariant>&)", parameters ).toInt();
    -
    -    TQAxObject *item = object.querySubItem( "item(int)", 5 );
    -    
    - -

    Note that the TQValueList the object should fill has to be provided as an -element in the parameter list of TQVariants. -

    If you need to access properties or pass parameters of unsupported -datatypes you must access the COM object directly through its -IDispatch implementation or other interfaces. Those interfaces can be -retrieved through queryInterface(). -

    -    IUnknown *iface = 0;
    -    activeX->queryInterface( IID_IUnknown, (void**)&iface );
    -    if ( iface ) {
    -        // use the interface
    -        iface->Release();
    -    }
    -    
    - -

    To get the definition of the COM interfaces you will have to use the header -files provided with the component you want to use. Some compilers can also -import type libraries using the #import compiler directive. See the component -documentation to find out which type libraries you have to import, and how to use -them. -

    If you need to react to events that pass parameters of unsupported -datatypes you can use the generic signal that delivers the event -data as provided by the COM event. - -


    Member Type Documentation

    -

    TQAxBase::PropertyBag

    - -

    A TQMap that can store properties as name:value pairs. - -


    Member Function Documentation

    -

    TQAxBase::TQAxBase ( IUnknown * iface = 0 ) -

    -Creates a TQAxBase object that wraps the COM object iface. If iface is 0 (the default), use setControl() to instantiate a COM -object. - -

    TQAxBase::~TQAxBase () [virtual] -

    -Shuts down the COM object and destroys the TQAxBase object. -

    See also clear(). - -

    TQVariant TQAxBase::asVariant () const -

    -Returns a TQVariant that wraps the COM object. The variant can -then be used as a parameter in e.g. dynamicCall(). - -

    void TQAxBase::clear () [virtual] -

    -Disconnects and destroys the COM object. -

    If you reimplement this function you must also reimplement the -destructor to call clear(), and call this implementation at the -end of your clear() function. - -

    TQString TQAxBase::control () const -

    Returns the name of the COM object wrapped by this TQAxBase object. -See the "control" property for details. -

    void TQAxBase::disableClassInfo () -

    -Disables the class info generation for this ActiveX container. If -you don't require any class information about the ActiveX control -use this function to speed up the meta object generation. -

    Note that this function must be called immediately after -construction of the object (without passing an object identifier), -and before calling TQAxWidget->setControl(). - -

    void TQAxBase::disableEventSink () -

    -Disables the event sink implementation for this ActiveX container. -If you don't intend to listen to the ActiveX control's events use -this function to speed up the meta object generation. -

    Some ActiveX controls might be unstable when connected to an event -sink. To get OLE events you must use standard COM methods to -register your own event sink. Use queryInterface() to get access -to the raw COM object. -

    Note that this function should be called immediately after -construction of the object (without passing an object identifier), -and before calling TQAxWidget->setControl(). - -

    void TQAxBase::disableMetaObject () -

    -Disables the meta object generation for this ActiveX container. -This also disables the event sink and class info generation. If -you don't intend to use the TQt meta object implementation call -this function to speed up the meta object generation. -

    Some ActiveX controls might be unstable when used with OLE -automation. Use standard COM methods to use those controls through -the COM interfaces provided by queryInterface(). -

    Note that this function must be called immediately after -construction of the object (without passing an object identifier), -and before calling TQAxWidget->setControl(). - -

    TQVariant TQAxBase::dynamicCall ( const TQCString & 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 the COM object's method function, passing the -parameters var1, var1, var2, var3, var4, var5, -var6, var7 and var8, and returns the value returned by -the method, or an invalid TQVariant if the method does not return -a value or when the function call failed. -

    If function is a method of the object the string must be provided -as the full prototype, for example as it would be written in a -TQObject::connect() call. -

    -    activeX->dynamicCall( "Navigate(const TQString&)", "www.trolltech.com" );
    -    
    - -

    Alternatively a function can be called passing the parameters embedded -in the string, e.g. above function can also be invoked using -

    -    activeX->dynamicCall("Navigate(\"www.trolltech.com\");
    -    
    - -All parameters are passed as strings; it depends on the control whether -they are interpreted correctly, and is slower than using the prototype -with correctly typed parameters. -

    If function is a property the string has to be the name of the -property. The property setter is called when var1 is a valid TQVariant, -otherwise the getter is called. -

    -    activeX->dynamicCall( "Value", 5 );
    -    TQString text = activeX->dynamicCall( "Text" ).toString();
    -    
    - -Note that it is faster to get and set properties using -TQObject::property() and TQObject::setProperty(). -

    It is only possible to call functions through dynamicCall() that -have parameters or return values of datatypes supported by -TQVariant. See the TQAxBase class documentation for a list of -supported and unsupported datatypes. If you want to call functions -that have unsupported datatypes in the parameter list, use -queryInterface() to retrieve the appropriate COM interface, and -use the function directly. -

    -    IWebBrowser2 *webBrowser = 0;
    -    activeX->queryInterface( IID_IWebBrowser2, (void**)&webBrowser );
    -    if ( webBrowser ) {
    -        webBrowser->Navigate2( pvarURL );
    -        webBrowser->Release();
    -    }
    -    
    - -

    This is also more efficient. - -

    Example: qutlook/centralwidget.cpp. -

    TQVariant TQAxBase::dynamicCall ( const TQCString & function, TQValueList<TQVariant> & vars ) -

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

    Calls the COM object's method function, passing the -parameters in vars, and returns the value returned by -the method. If the method does not return a value or when -the function call failed this function returns an invalid -TQVariant object. -

    The TQVariant objects in vars are updated when the method has -out-parameters. - -

    void TQAxBase::exception ( int code, const TQString & source, const TQString & desc, const TQString & help ) [signal] -

    - -

    This signal is emitted when the COM object throws an exception while called using the OLE automation -interface IDispatch. code, source, desc and help provide information about the exception as -provided by the COM server and can be used to provide useful feedback to the end user. help includes -the help file, and the help context ID in brackets, e.g. "filename [id]". - -

    TQString TQAxBase::generateDocumentation () -

    - -

    Returns a rich text string with documentation for the -wrapped COM object. Dump the string to an HTML-file, -or use it in e.g. a TQTextBrowser widget. - -

    bool TQAxBase::initialize ( IUnknown ** ptr ) [virtual protected] -

    -This virtual function is called by setControl() and creates the -requested COM object. ptr is set to the object's IUnknown -implementation. The function returns TRUE if the object -initialization succeeded; otherwise the function returns FALSE. -

    The default implementation interprets the string returned by -control(), and calls initializeRemote(), initializeLicensed() -or initializeActive() if the string matches the respective -patterns. If no pattern is matched, or if remote or licensed -initialization fails, CoCreateInstance is used directly to create -the object. -

    See the control property documentation for details about -supported patterns. -

    The interface returned in ptr must be referenced exactly once -when this function returns. The interface provided by e.g. -CoCreateInstance is already referenced, and there is no need to -reference it again. - -

    bool TQAxBase::initializeActive ( IUnknown ** ptr ) [protected] -

    -Returns an active instance running on the current machine, and returns the -IUnknown interface to the running object in ptr. This function returns TRUE -if successful, otherwise returns FALSE. -

    This function is called by initialize() if the control string contains the -substring "}&". -

    See also initialize(). - -

    bool TQAxBase::initializeLicensed ( IUnknown ** ptr ) [protected] -

    -Creates an instance of a licensed control, and returns the IUnknown interface -to the object in ptr. This functions returns TRUE if successful, otherwise -returns FALSE. -

    This function is called by initialize() if the control string contains the -substring "}:". The license key needs to follow this substring. -

    See also initialize(). - -

    bool TQAxBase::initializeRemote ( IUnknown ** ptr ) [protected] -

    -Creates the instance on a remote server, and returns the IUnknown interface -to the object in ptr. This function returns TRUE if successful, otherwise -returns FALSE. -

    This function is called by initialize() if the control string contains the -substring "/{". The information about the remote machine needs to be provided -in front of the substring. -

    See also initialize(). - -

    bool TQAxBase::isNull () const -

    -Returns TRUE if there is no COM object loaded by this wrapper; -otherwise return FALSE. -

    See also control. - -

    PropertyBag TQAxBase::propertyBag () const -

    -Returns a name:value map of all the properties exposed by the COM -object. -

    This is more efficient than getting multiple properties -individually if the COM object supports property bags. -

    Warning: It is not guaranteed that the property bag implementation -of the COM object returns all properties, or that the properties -returned are the same as those available through the IDispatch -interface. - -

    void TQAxBase::propertyChanged ( const TQString & name ) [signal] -

    - -

    If the COM object supports property notification, this signal gets -emitted when the property called name is changed. - -

    bool TQAxBase::propertyWritable ( const char * prop ) const [virtual] -

    -Returns TRUE if the property prop is writable; otherwise -returns FALSE. By default, all properties are writable. -

    Warning: -Depending on the control implementation this setting might be -ignored for some properties. -

    See also setPropertyWritable() and propertyChanged(). - -

    long TQAxBase::queryInterface ( const TQUuid & uuid, void ** iface ) const -

    -Requests the interface uuid from the COM object and sets the -value of iface to the provided interface, or to 0 if the -requested interface could not be provided. -

    Returns the result of the QueryInterface implementation of the COM object. -

    See also control. - -

    TQAxObject * TQAxBase::querySubObject ( const TQCString & name, 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 ( ) ) -

    -Returns a pointer to a TQAxObject wrapping the COM object provided -by the method or property name, passing passing the parameters -var1, var1, var2, var3, var4, var5, var6, -var7 and var8. -

    If name is provided by a method the string must include the -full function prototype. -

    If name is a property the string must be the name of the property, -and var1, ... var8 are ignored. -

    The returned TQAxObject is a child of this object (which is either of -type TQAxObject or TQAxWidget), and is deleted when this object is -deleted. It is however safe to delete the returned object yourself, -and you should do so when you iterate over lists of subobjects. -

    COM enabled applications usually have an object model publishing -certain elements of the application as dispatch interfaces. Use -this method to navigate the hierarchy of the object model, e.g. -

    -    TQAxWidget outlook( "Outlook.Application" );
    -    TQAxObject *session = outlook.querySubObject( "Session" );
    -    if ( session ) {
    -        TQAxObject *defFolder = session->querySubObject(
    -                                "GetDefaultFolder(OlDefaultFolders)",
    -                                "olFolderContacts" );
    -        //...
    -    }
    -    
    - - -

    Example: qutlook/centralwidget.cpp. -

    bool TQAxBase::setControl ( const TQString & ) -

    Sets the name of the COM object wrapped by this TQAxBase object. -See the "control" property for details. -

    void TQAxBase::setPropertyBag ( const PropertyBag & bag ) -

    -Sets the properties of the COM object to the corresponding values -in bag. -

    Warning: -You should only set property bags that have been returned by the -propertyBag function, as it cannot be guaranteed that the property -bag implementation of the COM object supports the same properties -that are available through the IDispatch interface. -

    See also propertyBag(). - -

    void TQAxBase::setPropertyWritable ( const char * prop, bool ok ) [virtual] -

    -Sets the property prop to writable if ok is TRUE, otherwise -sets prop to be read-only. By default, all properties are -writable. -

    Warning: -Depending on the control implementation this setting might be -ignored for some properties. -

    See also propertyWritable() and propertyChanged(). - -

    void TQAxBase::signal ( const TQString & name, int argc, void * argv ) [signal] -

    - -

    This generic signal gets emitted when the COM object issues the -event name. argc is the number of parameters provided by the -event (DISPPARAMS.cArgs), and argv is the pointer to the -parameter values (DISPPARAMS.rgvarg). Note that the order of parameter -values is turned around, ie. the last element of the array is the first -parameter in the function. -

    -    void Receiver::slot( const TQString &name, int argc, void *argv )
    -    {
    -        VARIANTARG *params = (VARIANTARG*)argv;
    -        if ( name.startsWith( "BeforeNavigate2(" ) ) {
    -            IDispatch *pDisp = params[argc-1].pdispVal;
    -            VARIANTARG URL = *params[argc-2].pvarVal;
    -            VARIANTARG Flags = *params[argc-3].pvarVal;
    -            VARIANTARG TargetFrameName = *params[argc-4].pvarVal;
    -            VARIANTARG PostData = *params[argc-5].pvarVal;
    -            VARIANTARG Headers = *params[argc-6].pvarVal;
    -            bool *Cancel = params[argc-7].pboolVal;
    -        }
    -    }
    -    
    - -

    Use this signal if the event has parameters of unsupported data -types. Otherwise, connect directly to the signal name. - -


    Property Documentation

    -

    TQString control

    -

    This property holds the name of the COM object wrapped by this TQAxBase object. -

    Setting this property initilializes the COM object. Any COM object -previously set is shut down. -

    The most efficient way to set this property is by using the -registered component's UUID, e.g. -

    -    ctrl->setControl( "{8E27C92B-1264-101C-8A2F-040224009C02}" );
    -    
    - -The second fastest way is to use the registered control's class -name (with or without version number), e.g. -
    -    ctrl->setControl( "MSCal.Calendar" );
    -    
    - -The slowest, but easiest way to use is to use the control's full -name, e.g. -
    -    ctrl->setControl( "Calendar Control 9.0" );
    -    
    - -

    If the component's UUID is used the following patterns can be used -to initialize the control on a remote machine, to initialize a -licensed control or to connect to a running object: -

      -
    • To initialize the control on a different machine use the following -pattern: -
      -    <domain/username>:<password>@server/{8E27C92B-1264-101C-8A2F-040224009C02}
      -    
      - -
    • To initialize a licensed control use the following pattern: -
      -    {8E27C92B-1264-101C-8A2F-040224009C02}:<LicenseKey>
      -    
      - -
    • To connect to an already running object use the following pattern: -
      -    {8E27C92B-1264-101C-8A2F-040224009C02}&
      -    
      - -
    -The first two patterns can be combined, e.g. to initialize a licensed -control on a remote machine: -
    -    ctrl->setControl("DOMAIN/user:password@server/{8E27C92B-1264-101C-8A2F-040224009C02}:LicenseKey");
    -    
    - -

    The control's read function always returns the control's UUID, if provided including the license -key, and the name of the server, but not including the username, the domain or the password. - -

    Set this property's value with setControl() and get this property's value with control(). - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxbindable-h.html b/doc/html/qaxbindable-h.html deleted file mode 100644 index cffd64e0..00000000 --- a/doc/html/qaxbindable-h.html +++ /dev/null @@ -1,133 +0,0 @@ - - - - - -qaxbindable.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    qaxbindable.h

    - -

    This is the verbatim text of the qaxbindable.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/qaxbindable.h   3.3.8   edited Jan 11 14:46 $
    -**
    -** Declaration of the TQAxBindable class
    -**
    -** Copyright (C) 2001-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the Active TQt integration.
    -**
    -** Licensees holding valid TQt Enterprise Edition
    -** licenses for Windows may use this file in accordance with the TQt Commercial
    -** License Agreement provided with the Software.
    -**
    -** This file is not available for use under any other license without
    -** express written permission from the copyright holder.
    -**
    -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    -**
    -** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
    -**   information about TQt Commercial License Agreements.
    -**
    -** Contact info@trolltech.com if any conditions of this licensing are
    -** not clear to you.
    -**
    -**********************************************************************/
    -
    -#ifndef TQAXBINDABLE_H
    -#define TQAXBINDABLE_H
    -
    -#include <tqwidget.h>
    -#include <private/qcom_p.h>
    -
    -struct IAxServerBase;
    -struct IUnknown;
    -
    -class TQAxAggregated
    -{
    -    friend class TQAxServerBase;
    -public:
    -    virtual long queryInterface( const TQUuid &iid, void **iface ) = 0;
    -
    -protected:
    -    virtual ~TQAxAggregated();
    -
    -    IUnknown *controllingUnknown() const
    -    { return controlling_unknown; }
    -    TQWidget *widget() const 
    -    { 
    -	if ( the_object && the_object->isWidgetType() )
    -	    return (TQWidget*)the_object;
    -	return 0;
    -    }
    -    TQObject *object() const { return the_object; }
    -
    -private:
    -    IUnknown *controlling_unknown;
    -    TQObject *the_object;
    -};
    -
    -#define TQAXAGG_IUNKNOWN \
    -    HRESULT WINAPI QueryInterface( REFIID iid, LPVOID *iface ) { \
    -    return controllingUnknown()->QueryInterface( iid, iface ); } \
    -    ULONG WINAPI AddRef() {return controllingUnknown()->AddRef(); } \
    -    ULONG WINAPI Release() {return controllingUnknown()->Release(); } \
    -
    -
    -class TQAxBindable
    -{
    -    friend class TQAxServerBase;
    -public:
    -    TQAxBindable();
    -    virtual ~TQAxBindable();
    -    
    -    virtual TQAxAggregated *createAggregate();
    -    static void reportError( int code, const TQString &src, const TQString &desc, const TQString &help = TQString::null );
    -
    -protected:
    -    bool requestPropertyChange( const char *property );
    -    void propertyChanged( const char *property );
    -
    -    IUnknown *clientSite() const;
    -
    -private:
    -    IAxServerBase *activex;
    -};
    -
    -#endif // TQAXBINDABLE_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxbindable-members.html b/doc/html/qaxbindable-members.html deleted file mode 100644 index 7d1afdc6..00000000 --- a/doc/html/qaxbindable-members.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - -TQAxBindable Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxBindable

    - -

    This is the complete list of member functions for -TQAxBindable, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxbindable.html b/doc/html/qaxbindable.html deleted file mode 100644 index cdce7391..00000000 --- a/doc/html/qaxbindable.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - -TQAxBindable Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxBindable Class Reference
    [TQAxServer module]

    - -

    The TQAxBindable class provides an interface between a -TQWidget and an ActiveX client. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxbindable.h> -

    List of all member functions. -

    Public Members

    - -

    Static Public Members

    -
      -
    • void reportError ( int code, const TQString & src, const TQString & desc, const TQString & context = TQString::null )
    • -
    -

    Protected 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. -

    - -The TQAxBindable class provides an interface between a -TQWidget and an ActiveX client. - -

    - -

    The functions provided by this class allow an ActiveX control to -communicate property changes to a client application. Inherit -your control class from both TQWidget (directly or indirectly) and -this class to get access to this class's functions. The meta object compiler requires you to inherit from -TQWidget first. -

    -    class MyActiveX : public TQWidget, public TQAxBindable
    -    {
    -        TQ_OBJECT
    -        TQ_PROPERTY( int value READ value WRITE setValue )
    -    public:
    -        MyActiveX( TQWidget *parent = 0, const char *name = 0 );
    -        ...
    -
    -        int value() const;
    -        void setValue( int );
    -    };
    -    
    - -

    When implementing the property write function, use -requestPropertyChange() to get permission from the ActiveX client -application to change this property. When the property changes, -call propertyChanged() to notify the ActiveX client application -about the change. If a fatal error occurs in the control, use the -static reportError() function to notify the client. -

    Use the interface returned by clientSite() to call the ActiveX -client. To implement additional COM interfaces in your ActiveX -control, reimplement createAggregate() to return a new object of a -TQAxAggregated subclass. - -


    Member Function Documentation

    -

    TQAxBindable::TQAxBindable () -

    -Constructs an empty TQAxBindable object. - -

    TQAxBindable::~TQAxBindable () [virtual] -

    -Destroys the TQAxBindable object. - -

    IUnknown * TQAxBindable::clientSite () const [protected] -

    -Returns a pointer to the client site interface for this ActiveX object, -or null if no client site has been set. -

    Call QueryInterface() on the returned interface to get the interface you -want to call. - -

    TQAxAggregated * TQAxBindable::createAggregate () [virtual] -

    -Reimplement this function when you want to implement additional -COM interfaces in the ActiveX control, or when you want to provide -alternative implementations of COM interfaces. Return a new object -of a TQAxAggregated subclass. -

    The default implementation returns the null pointer. - -

    void TQAxBindable::propertyChanged ( const char * property ) [protected] -

    -Call this function to notify the client that is hosting this -ActiveX control that the property property has been changed. -

    This function is usually called at the end of the property's write -function. -

    See also requestPropertyChange(). - -

    void TQAxBindable::reportError ( int code, const TQString & src, const TQString & desc, const TQString & context = TQString::null ) [static] -

    - -

    Reports an error to the client application. code is a -control-defined error code. desc is a human-readable description -of the error intended for the application user. src is the name -of the source for the error, typically the ActiveX server name. context can be the location of a help file with more information -about the error. If context ends with a number in brackets, -e.g. [12], this number will be interpreted as the context ID in -the help file. - -

    bool TQAxBindable::requestPropertyChange ( const char * property ) [protected] -

    -Call this function to request permission to change the property -property from the client that is hosting this ActiveX control. -Returns TRUE if the client allows the change; otherwise returns -FALSE. -

    This function is usually called first in the write function for property, and writing is abandoned if the function returns FALSE. -

    -    void MyActiveTQt::setText( const TQString &text )
    -    {
    -        if ( !requestPropertyChange( "text" ) )
    -            return;
    -
    -        // update property
    -
    -        propertyChanged( "text" );
    -    }
    -    
    - -

    See also propertyChanged(). - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxcontainer-example-qutlook.html b/doc/html/qaxcontainer-example-qutlook.html deleted file mode 100644 index 13407f8e..00000000 --- a/doc/html/qaxcontainer-example-qutlook.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - -In Sync with Outlook - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    In Sync with Outlook

    - - - -This example is a modified version of the standard -TQt addressbook example. -

    It demonstrates the use of TQAxObject and querySubObject to instantiate and -navigate the Outlook Object Model, and the use of the TQt property system to -read and write values of items in the Outlook contact folder. -

    - -The modifications in the class declaration of the central widget are -a forward declaration of the TQAxObject class and the IDispatch interface, -and a new TQListViewItem subclass ABListViewItem that implements a -constructor and a destructor and has a member contact_item of type -TQAxObject. -

        class TQAxObject;
    -    struct IDispatch;
    -
    -    class ABListViewItem : public TQListViewItem
    -    {
    -    public:
    -        ABListViewItem( TQListView *listview, TQString firstName, TQString lastName, TQString address, TQString eMail, TQAxObject *contact );
    -        ~ABListViewItem();
    -
    -        TQAxObject *contactItem() const;
    -
    -    private:
    -        TQAxObject *contact_item;
    -    };
    -
    -

    The ABCentralWidget gets a destructor, a new protected function setupOutlook, -a new protected slot updateOutlook, and also three members of type TQAxObject. -

            void findEntries();
    -
    -        void updateOutlook();
    -
    -    protected:
    -        void setupTabWidget();
    -        void setupListView();
    -        void setupOutlook();
    -
    -        TQAxObject *outlook, *outlookSession, *contactItems;
    -
    -        TQGridLayout *mainGrid;
    -
    -

    - -The implementation of the ABListViewItem class is trivial: -

        ABListViewItem::ABListViewItem( TQListView *listview,
    -                                    TQString firstName,
    -                                    TQString lastName,
    -                                    TQString address,
    -                                    TQString eMail,
    -                                    TQAxObject *contact )
    -    : TQListViewItem( listview, firstName, lastName, address, eMail ), contact_item( contact )
    -    {
    -    }
    -
    -    ABListViewItem::~ABListViewItem()
    -    {
    -        delete contact_item;
    -    }
    -
    -    TQAxObject *ABListViewItem::contactItem() const
    -    {
    -        return contact_item;
    -    }
    -
    The ABCentralWidget constructor initializes the TQAxObject pointers to zero and -calls the setupOutlook function. The ABCentralWidget destructor calls the -Logoff method of the outlookSession object. -
        ABCentralWidget::ABCentralWidget( TQWidget *parent, const char *name )
    -        : TQWidget( parent, name ), outlook( 0 ), outlookSession( 0 ), contactItems( 0 )
    -    {
    -        mainGrid = new TQGridLayout( this, 2, 1, 5, 5 );
    -
    -        setupTabWidget();
    -        setupListView();
    -        setupOutlook();
    -
    -        mainGrid->setRowStretch( 0, 0 );
    -        mainGrid->setRowStretch( 1, 1 );
    -    }
    -
    -    ABCentralWidget::~ABCentralWidget()
    -    {
    -        if ( outlookSession )
    -            outlookSession->dynamicCall( "Logoff()" );
    -    }
    -
    The setupOutlook implementation creates a TQAxObject to wrap the -Outlook.Application COM object. -
        void ABCentralWidget::setupOutlook()
    -    {
    -        outlook = new TQAxObject( "Outlook.Application", this );
    -
    The call to querySubObject returns a new TQAxObject wrapper around the -"Session" object of the Outlook Object hierarchy. If the call fails for -some reason setupOutlook returns, otherwise it calls the "Logon" method -of the Session object. -
            // Get a session object
    -        outlookSession = outlook->querySubObject( "Session" );
    -        if ( !outlookSession )
    -            return;
    -        // Login; doesn't hurt if you are already running and logged on...
    -        outlookSession->dynamicCall( "Logon()" );
    -
    The following call to querySubObject returns a new TQAxObject wrapper -around the default folder for "contacts". -
            // Get the default folder for contacts
    -        TQAxObject *defFolder = outlookSession->querySubObject( "GetDefaultFolder(OlDefaultFolders)", "olFolderContacts" );
    -
    querySubObject is then used again to get the list of all items in the -folder. The connect statement connects the new ABCentralWidget slot -to the signals provided by the "Items" COM object. Finally, it calls the -updateOutlook function to populate the listview. -
            // Get all items
    -        if ( defFolder ) {
    -            contactItems = defFolder->querySubObject( "Items" );
    -            connect( contactItems, TQ_SIGNAL(ItemAdd(IDispatch*)), this, TQ_SLOT(updateOutlook()) );
    -            connect( contactItems, TQ_SIGNAL(ItemChange(IDispatch*)), this, TQ_SLOT(updateOutlook()) );
    -            connect( contactItems, TQ_SIGNAL(ItemRemove()), this, TQ_SLOT(updateOutlook()) );
    -        }
    -
    -        updateOutlook();
    -    }
    -
    -

    The implementation of the updateOutlook slot clears the listview, and uses -querySubObject to iterate through the list of items. For every item provided a new -ABListViewItem object is created and filled with the properties of the item -object. The object returned by querySubObject is a child of the callee (ie. "contactItems"), -but the list view item should take ownership to provide a cleaner relation between -entries, so the item has to be removed from its parent object. -

        void ABCentralWidget::updateOutlook()
    -    {
    -        listView->clear();
    -        if ( !contactItems )
    -            return;
    -
    -        TQAxObject *item = contactItems->querySubObject( "GetFirst()" );
    -        while ( item ) {
    -            TQString firstName = item->property( "FirstName" ).toString();
    -            TQString lastName = item->property( "LastName" ).toString();
    -            TQString address = item->property( "HomeAddress" ).toString();
    -            TQString email = item->property( "Email1Address" ).toString();
    -
    -            (void)new ABListViewItem( listView, firstName, lastName, address, email, item );
    -            // the listviewitem takes ownership
    -            item->parent()->removeChild( item );
    -
    -            item = contactItems->querySubObject( "GetNext()" );
    -        }
    -    }
    -
    -

    The addEntry implementation calls the CreateItem method of the Outlook.Application -object to create a new contact item, and creates a new ABListViewItem if the call -succeeds. -

        void ABCentralWidget::addEntry()
    -    {
    -        if ( !iFirstName->text().isEmpty() || !iLastName->text().isEmpty() ||
    -             !iAddress->text().isEmpty() || !iEMail->text().isEmpty() ) {
    -            TQAxObject *contactItem = outlook->querySubObject( "CreateItem(OlItemType)", "olContactItem" );
    -            if ( contactItem ) {
    -                contactItem->setProperty( "FirstName", iFirstName->text() );
    -                contactItem->setProperty( "LastName", iLastName->text() );
    -                contactItem->setProperty( "HomeAddress", iAddress->text() );
    -                contactItem->setProperty( "Email1Address", iEMail->text() );
    -                contactItem->dynamicCall( "Save()" );
    -
    -                new ABListViewItem( listView, iFirstName->text(),
    -                    iLastName->text(), iAddress->text(), iEMail->text(), contactItem );
    -            }
    -        }
    -
    -        iFirstName->setText( "" );
    -        iLastName->setText( "" );
    -        iAddress->setText( "" );
    -        iEMail->setText( "" );
    -    }
    -
    -

    The changeEntry implementation updates the values in the contact item of the current -listview item as well as the values of the listview item itself. -

        void ABCentralWidget::changeEntry()
    -    {
    -        ABListViewItem *item = (ABListViewItem*)listView->currentItem();
    -
    -        if ( item &&
    -             ( !iFirstName->text().isEmpty() || !iLastName->text().isEmpty() ||
    -               !iAddress->text().isEmpty() || !iEMail->text().isEmpty() ) ) {
    -
    -            TQAxObject *contactItem = item->contactItem();
    -            contactItem->setProperty( "FirstName", iFirstName->text() );
    -            contactItem->setProperty( "LastName", iLastName->text() );
    -            contactItem->setProperty( "HomeAddress", iAddress->text() );
    -            contactItem->setProperty( "Email1Address", iEMail->text() );
    -            contactItem->dynamicCall( "Save()" );
    -
    -            item->setText( 0, iFirstName->text() );
    -            item->setText( 1, iLastName->text() );
    -            item->setText( 2, iAddress->text() );
    -            item->setText( 3, iEMail->text() );
    -        }
    -    }
    -
    -

    To build the example you must first build the TQAxContainer -library. Then run your make tool in examples/qutlook and run the resulting qutlok.exe. -

    See also The TQAxContainer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxcontainer-example-webbrowser.html b/doc/html/qaxcontainer-example-webbrowser.html deleted file mode 100644 index 46ccbb40..00000000 --- a/doc/html/qaxcontainer-example-webbrowser.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - -A Web Browser - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    A Web Browser

    - - - -This example utilizes the Microsoft Web Browser ActiveX control -to implement a fully functional Web Browser application. The -user interface has been developed using the TQt Designer -integration of the TQAxWidget class. -

    The code demonstrates how the TQt application can communicate -with the embedded ActiveX controls using signals, slots and the -dynamicCall() function. Most signal and slot connections have -already been set up within TQt Designer. -

    - -

        void MainWindow::init()
    -    {
    -        pb = new TQProgressBar( statusBar() );
    -        pb->setPercentageVisible( FALSE );
    -        pb->hide();
    -        statusBar()->addWidget( pb, 0, TRUE );
    -
    -        connect( WebBrowser, TQ_SIGNAL(ProgressChange(int,int)), this, TQ_SLOT(setProgress(int,int)) );
    -        connect( WebBrowser, TQ_SIGNAL(StatusTextChange(const TQString&)), statusBar(), TQ_SLOT(message(const TQString&)) );
    -
    -        WebBrowser->dynamicCall( "GoHome()" );
    -    }
    -
    The init() function is implemented to create a progress bar as -the child of the status bar, and to connect Internet Explorer's -ProgressChange() and StatusTextChange() signals to the -respective displays. -

    Finally the GoHome() function of Internet Explorer is invoked -using the TQAxBase::dynamicCall() dynamicCall() API. -

        void MainWindow::go()
    -    {
    -        actionStop->setEnabled( TRUE );
    -        WebBrowser->dynamicCall( "Navigate(const TQString&)", addressEdit->text() );
    -    }
    -
    The go() function calls the NavigateTo() function of Internet -Explorer, passing the text of the address bar as the argument. -

        void MainWindow::setTitle( const TQString &title )
    -    {
    -        setCaption( "TQt WebBrowser - " + title );
    -    }
    -
    The setTitle() slot is connected to the TitleChange() signal -of Internet Explorer, and updates the caption of the window -using the provided title string. -

        void MainWindow::setProgress( int a, int b )
    -    {
    -        if ( a <= 0 || b <= 0 ) {
    -            pb->hide();
    -            return;
    -        }
    -        pb->show();
    -        pb->setTotalSteps( b );
    -        pb->setProgress( a );
    -    }
    -
    -    void MainWindow::setCommandState( int cmd, bool on )
    -    {
    -        switch ( cmd ) {
    -        case 1:
    -            actionForward->setEnabled( on );
    -            break;
    -        case 2:
    -            actionBack->setEnabled( on );
    -            break;
    -        }
    -    }
    -
    -    void MainWindow::navigateBegin()
    -    {
    -        actionStop->setEnabled( TRUE );
    -    }
    -
    -    void MainWindow::navigateComplete()
    -    {
    -        actionStop->setEnabled( FALSE );
    -    }
    -
    The setProgress(), setCommandState(), navigateBegin() and -navigateComplete() slots are connected to the respective -signals of Internet Explorer and update the user interface. -

    The rest of the implementation is not related to ActiveTQt and -omitted for brevity. -

    To build the example you must first build the -TQAxContainer library. -Then run your make tool in examples/webbrowser and -run the resulting webbrowser.exe. -

    See also The TQAxContainer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxcontainer-examples.html b/doc/html/qaxcontainer-examples.html deleted file mode 100644 index e12b7264..00000000 --- a/doc/html/qaxcontainer-examples.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - -The TQAxContainer Examples - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    The TQAxContainer Examples

    - - - -The following example programs illustrate the embedding of ActiveX -controls using the TQAxContainer module. -

    For more information see the TQAxContainer documentation. - -

    -
    In Sync with Outlook -
    A Web Browser -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxcontainer.html b/doc/html/qaxcontainer.html deleted file mode 100644 index a23260a3..00000000 --- a/doc/html/qaxcontainer.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - -The TQAxContainer Module - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    The TQAxContainer Module

    - - -

    -

    -

    - - -

    Introduction -

    -

    The TQAxContainer module provides a library implementing a TQWidget -subclass, TQAxWidget, that acts as a container for ActiveX -controls, and a TQObject subclass, TQAxObject, that can be used to -easily access non-visual COM objects. Scripting COM objects embedded -using these classes is possible through the TQAxScript, TQAxScriptManager -and TQAxScriptEngine classes. -

    This module is part of the ActiveTQt - framework. (To make an application into an ActiveX server -see the TQAxServer module.) -

    The module consists of six classes -

      -
    1. TQAxBase is an abstract class that provides an API to initialize -and access a COM/ActiveX object. -
    2. TQAxObject provides a TQObject that wraps a COM object. -
    3. TQAxWidget is a TQWidget that wraps an ActiveX control. -
    4. TQAxScriptManager, TQAxScript and TQAxScriptEngine provide an -interface to the Windows Script Host. -
    -

    Some example applications -that use standard ActiveX controls to provide high level user -interface functionality are provided. -

    Building the library -

    -

    In the activeqt directory (usually TQTDIR/extensions/activeqt) -enter the container subdirectory and run qmake to generate the -makefile, and use the make tool (nmake for VC++, make for Borland) -to build the library. The library qaxcontainer.lib will be linked -into TQTDIR/lib. -

    If you have a shared configuration of TQt enter the plugin subdirectory -and run qmake and your make tool to build a plugin that integrates the -TQAxWidget class into TQt Designer. -

    Using the library -

    -

    To build TQt applications that can host COM objects and ActiveX controls -link the application against the TQAxContainer module by adding -

    -    LIBS += qaxcontainer.lib
    -    
    - -

    to the application's .pro file. -

    Distributing TQAxContainer applications -

    -

    The TQAxContainer library is static, so there is no need to redistribute -any additional files when using this module. Note however that the -ActiveX server binaries you are using might not be installed on the -target system, so you have to ship them with your package and register -them during the installation process of your application. -

    Instantiating COM objects -

    -

    To instantiate a COM object use the TQAxBase::setControl() API, or pass -the name of the object directly into the constructor of the TQAxBase -subclass you are using. -

    The control can be specified in a variety of formats, but the fastest -and most powerful format is to use the class ID (CLSID) of the object -directly. The class ID can be prepended with information about a remote -machine that the object should run on, and can include a license key -for licensed controls. -

    Accessing the object API -

    -

    ActiveTQt provides a TQt API to the COM object, and replaces COM -datatypes with TQt equivalents. Use the dumpdoc tool to get the -documentation of the TQt API for any COM object and it's subobjects. -

    See the TQAxWidget and TQAxObject API documentation about how to -use this class to use ActiveX controls and COM objects in TQt -applications. To access the COM object with scripting languages use -the TQAxScript class. -

    To call functions of the COM object that can not be accessed via -ActiveTQt it is possible to request the COM interface directly using -TQAxBase::queryInterface(). To get a C++ definition of the respective -interface classes use the #import directive with the type library -provided with the control. -

    Typical error messages -

    -

    ActiveTQt prints error messages to the debug output when it -encounters error situations at runtime. Usually you must run -your program in the debugger to see these messages (e.g. in Visual -Studio's Debug output). -

    Requested control could not be instantiated -

    -

    The control requested in TQAxBase::setControl() is not installed -on this system, or is not accessible for the current user. -

    The control might require administrator rights, or a license key. -If the control is licensed, reimplement initialize() and use the -COM APIs to call the IClassFactory2 interface functions. -

    TQAxBase::internalInvoke: No such method -

    -

    A dynamicCall() failed - the function prototype did not -match any function available in the object's API. -

    Error calling IDispatch member: Non-optional parameter -missing -

    -

    A dynamicCall() failed - the function prototype was correct, -but too few parameters were provided. -

    Error calling IDispatch member: Type mismatch in -parameter n -

    -

    A dynamicCall() failed - the function prototype was correct, -but the paramter at index n was of the wrong type and could -not be coerced to the correct type. -

    TQAxScriptManager::call(): No script provides this function -

    -

    You try to call a function that is provided through an engine -that doesn't provide introspection (ie. ActivePython or -ActivePerl). You need to call the function directly on the -respective TQAxScript object. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxfactory-h.html b/doc/html/qaxfactory-h.html deleted file mode 100644 index 3dda2b49..00000000 --- a/doc/html/qaxfactory-h.html +++ /dev/null @@ -1,327 +0,0 @@ - - - - - -qaxfactory.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    qaxfactory.h

    - -

    This is the verbatim text of the qaxfactory.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/qaxfactory.h   3.3.8   edited Jan 11 14:46 $
    -**
    -** Declaration of the TQAxFactory class
    -**
    -** Copyright (C) 2001-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the Active TQt integration.
    -**
    -** Licensees holding valid TQt Enterprise Edition
    -** licenses for Windows may use this file in accordance with the TQt Commercial
    -** License Agreement provided with the Software.
    -**
    -** This file is not available for use under any other license without
    -** express written permission from the copyright holder.
    -**
    -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    -**
    -** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
    -**   information about TQt Commercial License Agreements.
    -**
    -** Contact info@trolltech.com if any conditions of this licensing are
    -** not clear to you.
    -**
    -**********************************************************************/
    -
    -#ifndef TQAXFACTORY_H
    -#define TQAXFACTORY_H
    -
    -#include <ntqdict.h>
    -#include <ntquuid.h>
    -#include <private/qcom_p.h>
    -#include <ntqmetaobject.h>
    -
    -// {22B230F6-8722-4051-ADCB-E7C9CE872EB3}
    -#ifndef IID_QAxFactory
    -#define IID_QAxFactory TQUuid( 0x22b230f6, 0x8722, 0x4051, 0xad, 0xcb, 0xe7, 0xc9, 0xce, 0x87, 0x2e, 0xb3 )
    -#endif
    -
    -class TQWidget;
    -class TQMetaObject;
    -class TQSettings;
    -struct IDispatch;
    -
    -struct TQAxFactoryInterface : public TQFeatureListInterface
    -{
    -public:
    -#ifndef Q_QDOC
    -    virtual TQWidget *create( const TQString &key, TQWidget *parent = 0, const char *name = 0 ) = 0;
    -    virtual TQObject *createObject( const TQString &key, TQObject *parent = 0, const char *name = 0 ) = 0;
    -    virtual TQMetaObject *metaObject( const TQString &key ) const = 0;
    -    virtual bool createObjectWrapper(TQObject *object, IDispatch **wrapper) = 0;
    -
    -    virtual TQUuid classID( const TQString &key ) const = 0;
    -    virtual TQUuid interfaceID( const TQString &key ) const = 0;
    -    virtual TQUuid eventsID( const TQString &key ) const = 0;    
    -    virtual TQUuid typeLibID() const = 0;
    -    virtual TQUuid appID() const = 0;
    -
    -    virtual void registerClass( const TQString &key, TQSettings * ) const = 0;
    -    virtual void unregisterClass( const TQString &key, TQSettings * ) const = 0;
    -
    -    virtual bool validateLicenseKey( const TQString &key, const TQString &licenseKey) const = 0;
    -
    -    virtual TQString exposeToSuperClass( const TQString &key ) const = 0;
    -    virtual bool stayTopLevel( const TQString &key ) const = 0;
    -    virtual bool hasStockEvents( const TQString &key ) const = 0;
    -    virtual bool isService() const = 0;
    -#endif
    -};
    -
    -extern TQAxFactoryInterface *qAxFactory();
    -
    -class TQAxFactory : public TQAxFactoryInterface
    -{
    -public:
    -    TQAxFactory( const TQUuid &, const TQUuid &);
    -    virtual ~TQAxFactory();
    -    TQ_REFCOUNT;
    -
    -    TQRESULT queryInterface( const TQUuid &iid, TQUnknownInterface **iface );
    -
    -#ifdef Q_QDOC
    -    virtual TQStringList featureList() const = 0;
    -#endif
    -    virtual TQWidget *create( const TQString &key, TQWidget *parent = 0, const char *name = 0 );
    -    virtual TQObject *createObject( const TQString &key, TQObject *parent = 0, const char *name = 0 );
    -    virtual TQMetaObject *metaObject( const TQString &key ) const;
    -    virtual bool createObjectWrapper(TQObject *object, IDispatch **wrapper);
    -
    -    virtual TQUuid classID( const TQString &key ) const;
    -    virtual TQUuid interfaceID( const TQString &key ) const;
    -    virtual TQUuid eventsID( const TQString &key ) const;
    -
    -    virtual TQUuid typeLibID() const;
    -    virtual TQUuid appID() const;
    -
    -    virtual void registerClass( const TQString &key, TQSettings * ) const;
    -    virtual void unregisterClass( const TQString &key, TQSettings * ) const;
    -
    -    virtual bool validateLicenseKey( const TQString &key, const TQString &licenseKey) const;
    -
    -    virtual TQString exposeToSuperClass( const TQString &key ) const;
    -    virtual bool stayTopLevel( const TQString &key ) const;
    -    virtual bool hasStockEvents( const TQString &key ) const;
    -    virtual bool isService() const;
    -
    -    enum ServerType {
    -	SingleInstance,
    -	MultipleInstances
    -    };
    -
    -    static bool isServer();
    -    static TQString serverDirPath();
    -    static TQString serverFilePath();
    -    static bool startServer(ServerType type = MultipleInstances);
    -    static bool stopServer();
    -
    -private:
    -    TQUuid typelib;
    -    TQUuid app;
    -};
    -
    -inline bool TQAxFactory::startServer(ServerType type)
    -{
    -    // implementation in qaxservermain.cpp
    -    extern bool qax_startServer(ServerType);
    -    return qax_startServer(type);
    -}
    -
    -inline bool TQAxFactory::stopServer()
    -{
    -    // implementation in qaxservermain.cpp
    -    extern bool qax_stopServer();
    -    return qax_stopServer();
    -}
    -
    -#define TQAXFACTORY_EXPORT( IMPL, TYPELIB, APPID )	\
    -    TQUnknownInterface *ucm_instantiate()		\
    -    {							\
    -	IMPL *impl = new IMPL( TQUuid(TYPELIB), TQUuid(APPID) );	\
    -	TQUnknownInterface* iface = 0; 			\
    -	impl->queryInterface( IID_QUnknown, &iface );	\
    -	return iface;					\
    -    }
    -
    -#define TQAXFACTORY_DEFAULT( Class, IIDClass, IIDInterface, IIDEvents, IIDTypeLib, IIDApp ) \
    -    class TQAxDefaultFactory : public TQAxFactory \
    -    { \
    -    public: \
    -	TQAxDefaultFactory( const TQUuid &app, const TQUuid &lib) \
    -	: TQAxFactory( app, lib ) {} \
    -	TQStringList featureList() const \
    -	{ \
    -	    TQStringList list; \
    -	    list << #Class; \
    -	    return list; \
    -	} \
    -	TQMetaObject *metaObject( const TQString &key ) const \
    -	{ \
    -	    if ( key == #Class ) \
    -		return Class::staticMetaObject(); \
    -	    return 0; \
    -	} \
    -	TQWidget *create( const TQString &key, TQWidget *parent, const char *name ) \
    -	{ \
    -	    if ( key == #Class ) \
    -		return new Class( parent, name ); \
    -	    return 0; \
    -	} \
    -	TQUuid classID( const TQString &key ) const \
    -	{ \
    -	    if ( key == #Class ) \
    -		return TQUuid( IIDClass ); \
    -	    return TQUuid(); \
    -	} \
    -	TQUuid interfaceID( const TQString &key ) const \
    -	{ \
    -	    if ( key == #Class ) \
    -		return TQUuid( IIDInterface ); \
    -	    return TQUuid(); \
    -	} \
    -	TQUuid eventsID( const TQString &key ) const \
    -	{ \
    -	    if ( key == #Class ) \
    -		return TQUuid( IIDEvents ); \
    -	    return TQUuid(); \
    -	} \
    -    }; \
    -    TQAXFACTORY_EXPORT( TQAxDefaultFactory, IIDTypeLib, IIDApp ) \
    -
    -template<class T>
    -class TQAxClass : public TQAxFactory
    -{
    -public:
    -    TQAxClass(const TQString &appId, const TQString &libId)
    -    : TQAxFactory(appId, libId)
    -    {}
    -
    -    TQMetaObject *metaObject(const TQString &key) const { return T::staticMetaObject(); }
    -    TQStringList featureList() const { return TQString(T::staticMetaObject()->className()); }
    -    TQWidget *create(const TQString &key, TQWidget *parent, const char *name)
    -    {
    -	if (key != TQString(T::staticMetaObject()->className())) return 0;
    -	if (!qstrcmp(T::staticMetaObject()->classInfo("Creatable", TRUE), "no")) return 0;
    -	return new T(parent, name);
    -    }
    -};
    -
    -#define TQAXFACTORY_BEGIN(IDTypeLib, IDApp) \
    -    class TQAxFactoryList : public TQAxFactory \
    -    { \
    -	TQStringList factoryKeys; \
    -	TQDict<TQAxFactoryInterface> factories; \
    -    public: \
    -	TQAxFactoryList() \
    -	: TQAxFactory(IDApp, IDTypeLib) \
    -	{ \
    -	    factories.setAutoDelete(TRUE); \
    -	    TQAxFactoryInterface *factory = 0; \
    -	    TQStringList keys; \
    -	    TQStringList::Iterator it; \
    -
    -#define TQAXCLASS(Class) \
    -	    factory = new TQAxClass<Class>(appID(), typeLibID()); \
    -	    keys = factory->featureList(); \
    -	    for (it = keys.begin(); it != keys.end(); ++it) { \
    -		factoryKeys += *it; \
    -		factories.insert(*it, factory); \
    -	    }\
    -
    -#define TQAXFACTORY_END() \
    -	} \
    -	TQStringList featureList() const {  return factoryKeys; } \
    -	TQWidget *create(const TQString &key, TQWidget *parent, const char *name) { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    return f ? f->create(key, parent, name) : 0; \
    -	} \
    -	TQUuid classID(const TQString &key) { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    return f ? f->classID(key) : TQUuid(); \
    -	} \
    -	TQUuid interfaceID(const TQString &key) { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    return f ? f->interfaceID(key) : TQUuid(); \
    -	} \
    -	TQUuid eventsID(const TQString &key) { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    return f ? f->eventsID(key) : TQUuid(); \
    -	} \
    -	void registerClass( const TQString &key, TQSettings *s ) const { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    if (f) f->registerClass(key, s); \
    -	} \
    -	void unregisterClass( const TQString &key, TQSettings *s ) const { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    if (f) f->unregisterClass(key, s); \
    -	} \
    -	TQString exposeToSuperClass( const TQString &key ) const { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    return f ? f->exposeToSuperClass(key) : TQString(); \
    -	} \
    -	bool stayTopLevel( const TQString &key ) const { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    return f ? f->stayTopLevel(key) : FALSE; \
    -	} \
    -	bool hasStockEvents( const TQString &key ) const { \
    -	    TQAxFactoryInterface *f = factories[key]; \
    -	    return f ? f->hasStockEvents(key) : FALSE; \
    -	} \
    -    }; \
    -    TQUnknownInterface *ucm_instantiate()		\
    -    {							\
    -	TQAxFactoryList *impl = new TQAxFactoryList();	\
    -	TQUnknownInterface* iface = 0; 			\
    -	impl->queryInterface( IID_QUnknown, &iface );	\
    -	return iface;					\
    -    }
    -
    -
    -#endif // TQAXFACTORY_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxfactory-members.html b/doc/html/qaxfactory-members.html deleted file mode 100644 index 9ebff5ba..00000000 --- a/doc/html/qaxfactory-members.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - -TQAxFactory Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxFactory

    - -

    This is the complete list of member functions for -TQAxFactory, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxfactory.html b/doc/html/qaxfactory.html deleted file mode 100644 index 2773b186..00000000 --- a/doc/html/qaxfactory.html +++ /dev/null @@ -1,424 +0,0 @@ - - - - - -TQAxFactory Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxFactory Class Reference
    [TQAxServer module]

    - -

    The TQAxFactory class defines a factory for the creation of COM components. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxfactory.h> -

    List of all member functions. -

    Public Members

    -
      -
    • TQAxFactory ( const TQUuid & libid, const TQUuid & appid )
    • -
    • virtual ~TQAxFactory ()
    • -
    • virtual TQStringList featureList () const = 0
    • -
    • virtual TQWidget * create ( const TQString & key, TQWidget * parent = 0, const char * name = 0 )
    • -
    • virtual TQObject * createObject ( const TQString & key, TQObject * parent = 0, const char * name = 0 )
    • -
    • virtual TQMetaObject * metaObject ( const TQString & key ) const
    • -
    • virtual bool createObjectWrapper ( TQObject * object, IDispatch ** wrapper )
    • -
    • virtual TQUuid classID ( const TQString & key ) const
    • -
    • virtual TQUuid interfaceID ( const TQString & key ) const
    • -
    • virtual TQUuid eventsID ( const TQString & key ) const
    • -
    • virtual TQUuid typeLibID () const
    • -
    • virtual TQUuid appID () const
    • -
    • virtual void registerClass ( const TQString & key, TQSettings * settings ) const
    • -
    • virtual void unregisterClass ( const TQString & key, TQSettings * settings ) const
    • -
    • virtual bool validateLicenseKey ( const TQString & key, const TQString & licenseKey ) const
    • -
    • virtual TQString exposeToSuperClass ( const TQString & key ) const
    • -
    • virtual bool stayTopLevel ( const TQString & key ) const
    • -
    • virtual bool hasStockEvents ( const TQString & key ) const
    • -
    • virtual bool isService () const
    • -
    • enum ServerType { SingleInstance, MultipleInstances }
    • -
    -

    Static 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. -

    - -The TQAxFactory class defines a factory for the creation of COM components. - -

    - - -

    Implement this factory once in your ActiveX server to provide -information about the components the server can create. If your -server supports just a single ActiveX control, you can use the -default factory implementation instead of implementing the factory -yourself. Use the TQAXFACTORY_DEFAULT macro in any -implementation file (e.g. main.cpp) to instantiate and export the -default factory: -

    -    #include <ntqapplication.h>
    -    #include <qaxfactory.h>
    -
    -    #include "theactivex.h"
    -
    -    TQAXFACTORY_DEFAULT(
    -        TheActiveX,                               // widget class
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}", // class ID
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}", // interface ID
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}", // event interface ID
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}", // type library ID
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}"  // application ID
    -        )
    -    
    - -

    If you implement your own factory reimplement the pure virtual -functions, provide the unique identifiers for the ActiveX -controls, and use the TQAXFACTORY_EXPORT macro to instantiate -and export it: -

    -    TQStringList ActiveTQtFactory::featureList() const
    -    {
    -        TQStringList list;
    -        list << "ActiveX1";
    -        list << "ActiveX2";
    -        ...
    -        return list;
    -    }
    -
    -    TQWidget *ActiveTQtFactory::create( const TQString &key, TQWidget *parent, const char *name )
    -    {
    -        if ( key == "ActiveX1" )
    -            return new ActiveX1( parent, name );
    -        if ( key == "ActiveX2" )
    -            return new ActiveX2( parent, name );
    -        ...
    -        return 0;
    -    }
    -
    -    TQUuid ActiveTQtFactory::classID( const TQString &key ) const
    -    {
    -        if ( key == "ActiveX1" )
    -            return "{01234567-89AB-CDEF-0123-456789ABCDEF}";
    -        ...
    -        return TQUuid();
    -    }
    -
    -    TQUuid ActiveTQtFactory::interfaceID( const TQString &key ) const
    -    {
    -        if ( key == "ActiveX1" )
    -            return "{01234567-89AB-CDEF-0123-456789ABCDEF}";
    -        ...
    -        return TQUuid();
    -    }
    -
    -    TQUuid ActiveTQtFactory::eventsID( const TQString &key ) const
    -    {
    -        if ( key == "ActiveX1" )
    -            return "{01234567-89AB-CDEF-0123-456789ABCDEF}";
    -        ...
    -        return TQUuid();
    -    }
    -
    -    TQAXFACTORY_EXPORT(
    -        MyFactory,                                // factory class
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}", // type library ID
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}"  // application ID
    -        )
    -    
    - -

    If you use the TQ_CLASSINFO macro to provide the unique identifiers -or other attributes for your class you can use the TQAXFACTORY_BEGIN, -TQAXCLASS and TQAXFACTORY_END macros to expose one or more classes -as COM objects. -

    -    TQAXFACTORY_BEGIN(
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}", // type library ID
    -        "{01234567-89AB-CDEF-0123-456789ABCDEF}"  // application ID
    -    )
    -        TQAXCLASS(Class1)
    -        TQAXCLASS(Class2)
    -    TQAXFACTORY_END()
    -    
    - -

    Only one TQAxFactory implementation may be instantiated and -exported by an ActiveX server application. This instance is accessible -through the global qAxFactory() function. -

    A factory can also reimplement the registerClass() and -unregisterClass() functions to set additional flags for an ActiveX -control in the registry. To limit the number of methods or -properties a widget class exposes from its parent classes -reimplement exposeToSuperClass(). - -


    Member Type Documentation

    -

    TQAxFactory::ServerType

    - -

    This enum specifies the different types of servers that can be -started with startServer. -

      -
    • TQAxFactory::SingleInstance - The server can create only one instance of each -supplied class. -
    • TQAxFactory::MultipleInstances - The server can create multiple instances of -each supplied class. -
    -

    Member Function Documentation

    -

    TQAxFactory::TQAxFactory ( const TQUuid & libid, const TQUuid & appid ) -

    -Constructs a TQAxFactory object that returns libid and appid -in the implementation of the respective interface functions. - -

    TQAxFactory::~TQAxFactory () [virtual] -

    -Destroys the TQAxFactory object. - -

    TQUuid TQAxFactory::appID () const [virtual] -

    - -

    Reimplement this function to return the ActiveX server's -application identifier. - -

    TQUuid TQAxFactory::classID ( const TQString & key ) const [virtual] -

    -Reimplement this function to return the class identifier for each -key returned by the featureList() implementation, or an empty -TQUuid if this factory doesn't support the value of key. -

    The default implementation interprets key as the class name, -and returns the value of the TQ_CLASSINFO entry "ClassID". - -

    TQWidget * TQAxFactory::create ( const TQString & key, TQWidget * parent = 0, const char * name = 0 ) [virtual] -

    -Reimplement this function to return a new widget for key. -Propagate parent and name to the TQWidget constructor. Return -0 if this factory doesn't support the value of key. -

    The returned widget will be exposed as an ActiveX control, e.g. -a COM object that can be embedded as a control into applications. -

    The default implementation returns 0. - -

    TQObject * TQAxFactory::createObject ( const TQString & key, TQObject * parent = 0, const char * name = 0 ) [virtual] -

    -Reimplement this function to return a new object for key. -Propagate parent and name to the TQWidget constructor. Return -0 if this factory doesn't support the value of key. -

    If the object returned is a TQWidget it will be exposed as an ActiveX -control, otherwise the returned object will be exposed as a COM object. -

    The default implementation returns the result TQAxFactory::create() if -parent is 0 or a widget, otherwise returns 0. - -

    bool TQAxFactory::createObjectWrapper ( TQObject * object, IDispatch ** wrapper ) [virtual] -

    - -

    Reimplement this function to provide the COM object for object -in wrapper. Return TRUE if the function was successfull, otherwise -return FALSE. -

    The default implementation creates a generic automation wrapper based -on the meta object information of object. - -

    TQUuid TQAxFactory::eventsID ( const TQString & key ) const [virtual] -

    -Reimplement this function to return the identifier of the event -interface for each key returned by the featureList() -implementation, or an empty TQUuid if this factory doesn't support -the value of key. -

    The default implementation interprets key as the class name, -and returns the value of the TQ_CLASSINFO entry "EventsID". - -

    TQString TQAxFactory::exposeToSuperClass ( const TQString & key ) const [virtual] -

    -Reimplement this function to return the name of the super class of -key up to which methods and properties should be exposed by the -ActiveX control. -

    The default implementation interprets key as the class name, -and returns the value of the TQ_CLASSINFO entry "ToSuperClass". If -no such value is set the null-string is returned, and the functions -and properties of all the super classes including TQWidget will be -exposed. -

    To only expose the functions and properties of the class itself, -reimplement this function to return key. - -

    TQStringList TQAxFactory::featureList () const [pure virtual] -

    - -

    Reimplement this function to return a list of the widgets (class -names) supported by this factory. - -

    bool TQAxFactory::hasStockEvents ( const TQString & key ) const [virtual] -

    -Reimplement this function to return TRUE if the ActiveX control -key should support the standard ActiveX events -
      -
    • Click -
    • DblClick -
    • KeyDown -
    • KeyPress -
    • KeyUp -
    • MouseDown -
    • MouseUp -
    • MouseMove -
    -

    The default implementation interprets key as the class name, -and returns TRUE if the value of the TQ_CLASSINFO entry "StockEvents" -is "yes". Otherwise this function returns FALSE. - -

    TQUuid TQAxFactory::interfaceID ( const TQString & key ) const [virtual] -

    -Reimplement this function to return the interface identifier for -each key returned by the featureList() implementation, or an -empty TQUuid if this factory doesn't support the value of key. -

    The default implementation interprets key as the class name, -and returns the value of the TQ_CLASSINFO entry "InterfaceID". - -

    bool TQAxFactory::isServer () [static] -

    -Returns TRUE if the application has been started (by COM) as an ActiveX -server, otherwise returns FALSE. -

    -    int main( int argc, char**argv )
    -    {
    -        TQApplication app( argc, argv );
    -
    -        if ( !TQAxFactory::isServer() ) {
    -            // initialize for stand-alone execution
    -        }
    -
    -        return app.exec() // standard event processing
    -    }
    -    
    - - -

    bool TQAxFactory::isService () const [virtual] -

    -Reimplement this function to return TRUE if the server is -running as a persistent service (e.g. an NT service) and should -not terminate even when all objects provided have been released. -

    The default implementation returns FALSE. - -

    TQMetaObject * TQAxFactory::metaObject ( const TQString & key ) const [virtual] -

    -Reimplement this function to return the TQMetaObject corresponding to -key, or 0 if this factory doesn't support the value of key. -

    The default implementation returns the TQMetaObject for the class -key. - -

    void TQAxFactory::registerClass ( const TQString & key, TQSettings * settings ) const [virtual] -

    -Registers additional values for the class key in the system -registry using the settings object. The standard values have -already been registed by the framework, but additional values, -e.g. implemented categories, can be added in an implementation of -this function. -

    -    settings->writeEntry( "/CLSID/" + classID(key) + "/Implemented Categories/{00000000-0000-0000-000000000000}/.", TQString::null );
    -    
    - -

    If you reimplement this function you must also reimplement -unregisterClass() to remove the additional registry values. -

    See also TQSettings. - -

    TQString TQAxFactory::serverDirPath () [static] -

    -Returns the directory that contains the server binary. -

    For out-of-process servers this is the same as -TQApplication::applicationDirPath(). For in-process servers -that function returns the directory that contains the hosting -application. - -

    TQString TQAxFactory::serverFilePath () [static] -

    -Returns the file path of the server binary. -

    For out-of-process servers this is the same as -TQApplication::applicationFilePath(). For in-process servers -that function returns the file path of the hosting application. - -

    bool TQAxFactory::startServer ( ServerType type = MultipleInstances ) [static] -

    - -

    Starts the COM server with type and returns TRUE if successful, -otherwise returns FALSE. -

    Calling this function if the server is already running (or for an -in-process server) does nothing and returns TRUE. -

    The server is started automatically with type set to MultipleUse -if the server executable has been started with the -activex -command line parameter. - -

    bool TQAxFactory::stayTopLevel ( const TQString & key ) const [virtual] -

    -Reimplement this function to return TRUE if the ActiveX control key -should be a top level window, e.g. a dialog. The default implementation -returns FALSE. - -

    bool TQAxFactory::stopServer () [static] -

    - -

    Stops the COM server and returns TRUE if successful, otherwise -returns FALSE. -

    Calling this function if the server is not running (or for an -in-process server) does nothing and returns TRUE. -

    Stopping the server will not invalidate existing objects, but no -new objects can be created from the existing server process. Usually -COM will start a new server process if additional objects are requested. -

    The server is stopped automatically when the main() function returns. - -

    TQUuid TQAxFactory::typeLibID () const [virtual] -

    - -

    Reimplement this function to return the ActiveX server's type -library identifier. - -

    void TQAxFactory::unregisterClass ( const TQString & key, TQSettings * settings ) const [virtual] -

    -Unregisters any additional values for the class key from the -system registry using the settings object. -

    -    settings->removeEntry( "/CLSID/" + classID(key) + "/Implemented Categories/{00000000-0000-0000-000000000000}/." );
    -    
    - -

    See also registerClass() and TQSettings. - -

    bool TQAxFactory::validateLicenseKey ( const TQString & key, const TQString & licenseKey ) const [virtual] -

    -Reimplement this function to return TRUE if licenseKey is a valid -license for the class key, or if the current machine is licensed. -

    The default implementation returns TRUE if the class key is not -licensed (ie. no TQ_CLASSINFO attribute "LicenseKey"), or if -licenseKey matches the value of the "LicenseKey" attribute, or -if the machine is licensed through a .LIC file with the same filename -as this COM server. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxobject-h.html b/doc/html/qaxobject-h.html deleted file mode 100644 index c9805603..00000000 --- a/doc/html/qaxobject-h.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - -qaxobject.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    qaxobject.h

    - -

    This is the verbatim text of the qaxobject.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/qaxobject.h   3.3.8   edited Jan 11 14:46 $
    -**
    -** Declaration of the TQAxObject class
    -**
    -** Copyright (C) 2001-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the Active TQt integration.
    -**
    -** Licensees holding valid TQt Enterprise Edition
    -** licenses for Windows may use this file in accordance with the TQt Commercial
    -** License Agreement provided with the Software.
    -**
    -** This file is not available for use under any other license without
    -** express written permission from the copyright holder.
    -**
    -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    -**
    -** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
    -**   information about TQt Commercial License Agreements.
    -**
    -** Contact info@trolltech.com if any conditions of this licensing are
    -** not clear to you.
    -**
    -**********************************************************************/
    -
    -#ifndef UNICODE
    -#define UNICODE
    -#endif
    -
    -#ifndef TQAXOBJECT_H
    -#define TQAXOBJECT_H
    -
    -#include "qaxbase.h"
    -#include <tqobject.h>
    -
    -class TQAxObject : public TQObject, public TQAxBase
    -{
    -    friend class TQAxEventSink;
    -public:
    -    TQMetaObject *metaObject() const;
    -    const char *className() const;
    -    void* tqt_cast( const char* );
    -    bool tqt_invoke( int, TQUObject* );
    -    bool tqt_emit( int, TQUObject* );
    -    bool tqt_property( int, int, TQVariant* );
    -    TQObject* qObject() { return (TQObject*)this; }
    -
    -    TQAxObject( TQObject *parent = 0, const char *name = 0 );
    -    TQAxObject( const TQString &c, TQObject *parent = 0, const char *name = 0 );
    -    TQAxObject( IUnknown *iface, TQObject *parent = 0, const char *name = 0 );
    -    ~TQAxObject();
    -
    -private:
    -    TQMetaObject *parentMetaObject() const;
    -};
    -
    -#endif //TQAXOBJECT_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxobject-members.html b/doc/html/qaxobject-members.html deleted file mode 100644 index 5bbb78b9..00000000 --- a/doc/html/qaxobject-members.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - -TQAxObject Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxObject

    - -

    This is the complete list of member functions for -TQAxObject, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxobject.html b/doc/html/qaxobject.html deleted file mode 100644 index 312a3ebd..00000000 --- a/doc/html/qaxobject.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - -TQAxObject Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxObject Class Reference
    [TQAxContainer module]

    - -

    The TQAxObject class provides a TQObject that wraps a COM object. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxobject.h> -

    Inherits TQObject and TQAxBase. -

    Inherited by TQAxScriptEngine. -

    List of all member functions. -

    Public Members

    -
      -
    • TQAxObject ( TQObject * parent = 0, const char * name = 0 )
    • -
    • TQAxObject ( const TQString & c, TQObject * parent = 0, const char * name = 0 )
    • -
    • TQAxObject ( IUnknown * iface, TQObject * parent = 0, const char * name = 0 )
    • -
    • ~TQAxObject ()
    • -
    -

    Important Inherited Members

    -
      -
    • TQVariant dynamicCall ( const TQCString & 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 dynamicCall ( const TQCString & function, TQValueList<TQVariant> & vars )
    • -
    • TQAxObject * querySubObject ( const TQCString & name, 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 ( ) )
    • -
    -

    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. -

    - -The TQAxObject class provides a TQObject that wraps a COM object. - -

    - -

    A TQAxObject can be instantiated as an empty object, with the name -of the COM object it should wrap, or with a pointer to the -IUnknown that represents an existing COM object. If the COM object -implements the IDispatch interface, the properties, methods and -events of that object become available as TQt properties, slots and -signals. The base class, TQAxBase, provides an API to access the -COM object directly through the IUnknown pointer. -

    TQAxObject is a TQObject and can be used as such, e.g. it can be -organized in an object hierarchy, receive events and connect to -signals and slots. -

    Warning: -You can subclass TQAxObject, but you cannot use the TQ_OBJECT macro -in the subclass (the generated moc-file will not compile), so you -cannot add further signals, slots or properties. This limitation is -due to the metaobject information generated in runtime. -To work around this problem, aggregate the TQAxObject as a member of -the TQObject subclass. -

    -


    Member Function Documentation

    -

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

    -Creates an empty COM object and propagates parent and name -to the TQObject constructor. To initialize the object, call setControl. - -

    TQAxObject::TQAxObject ( const TQString & c, TQObject * parent = 0, const char * name = 0 ) -

    -Creates a TQAxObject that wraps the COM object c. parent and -name are propagated to the TQWidget contructor. -

    See also control. - -

    TQAxObject::TQAxObject ( IUnknown * iface, TQObject * parent = 0, const char * name = 0 ) -

    -Creates a TQAxObject that wraps the COM object referenced by iface. parent and name are propagated to the TQObject -contructor. - -

    TQAxObject::~TQAxObject () -

    -Releases the COM object and destroys the TQAxObject, -cleaning up all allocated resources. - -

    TQVariant TQAxBase::dynamicCall ( const TQCString & 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 the COM object's method function, passing the -parameters var1, var1, var2, var3, var4, var5, -var6, var7 and var8, and returns the value returned by -the method, or an invalid TQVariant if the method does not return -a value or when the function call failed. -

    If function is a method of the object the string must be provided -as the full prototype, for example as it would be written in a -TQObject::connect() call. -

    -    activeX->dynamicCall( "Navigate(const TQString&)", "www.trolltech.com" );
    -    
    - -

    Alternatively a function can be called passing the parameters embedded -in the string, e.g. above function can also be invoked using -

    -    activeX->dynamicCall("Navigate(\"www.trolltech.com\");
    -    
    - -All parameters are passed as strings; it depends on the control whether -they are interpreted correctly, and is slower than using the prototype -with correctly typed parameters. -

    If function is a property the string has to be the name of the -property. The property setter is called when var1 is a valid TQVariant, -otherwise the getter is called. -

    -    activeX->dynamicCall( "Value", 5 );
    -    TQString text = activeX->dynamicCall( "Text" ).toString();
    -    
    - -Note that it is faster to get and set properties using -TQObject::property() and TQObject::setProperty(). -

    It is only possible to call functions through dynamicCall() that -have parameters or return values of datatypes supported by -TQVariant. See the TQAxBase class documentation for a list of -supported and unsupported datatypes. If you want to call functions -that have unsupported datatypes in the parameter list, use -queryInterface() to retrieve the appropriate COM interface, and -use the function directly. -

    -    IWebBrowser2 *webBrowser = 0;
    -    activeX->queryInterface( IID_IWebBrowser2, (void**)&webBrowser );
    -    if ( webBrowser ) {
    -        webBrowser->Navigate2( pvarURL );
    -        webBrowser->Release();
    -    }
    -    
    - -

    This is also more efficient. - -

    Example: qutlook/centralwidget.cpp. -

    TQVariant TQAxBase::dynamicCall ( const TQCString & function, TQValueList<TQVariant> & vars ) -

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

    Calls the COM object's method function, passing the -parameters in vars, and returns the value returned by -the method. If the method does not return a value or when -the function call failed this function returns an invalid -TQVariant object. -

    The TQVariant objects in vars are updated when the method has -out-parameters. - -

    TQAxObject * TQAxBase::querySubObject ( const TQCString & name, 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 ( ) ) -

    -Returns a pointer to a TQAxObject wrapping the COM object provided -by the method or property name, passing passing the parameters -var1, var1, var2, var3, var4, var5, var6, -var7 and var8. -

    If name is provided by a method the string must include the -full function prototype. -

    If name is a property the string must be the name of the property, -and var1, ... var8 are ignored. -

    The returned TQAxObject is a child of this object (which is either of -type TQAxObject or TQAxWidget), and is deleted when this object is -deleted. It is however safe to delete the returned object yourself, -and you should do so when you iterate over lists of subobjects. -

    COM enabled applications usually have an object model publishing -certain elements of the application as dispatch interfaces. Use -this method to navigate the hierarchy of the object model, e.g. -

    -    TQAxWidget outlook( "Outlook.Application" );
    -    TQAxObject *session = outlook.querySubObject( "Session" );
    -    if ( session ) {
    -        TQAxObject *defFolder = session->querySubObject(
    -                                "GetDefaultFolder(OlDefaultFolders)",
    -                                "olFolderContacts" );
    -        //...
    -    }
    -    
    - - -

    Example: qutlook/centralwidget.cpp. - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxscript-h.html b/doc/html/qaxscript-h.html deleted file mode 100644 index f2164444..00000000 --- a/doc/html/qaxscript-h.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - -qaxscript.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    qaxscript.h

    - -

    This is the verbatim text of the qaxscript.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/qaxscript.h   3.3.8   edited Jan 11 14:46 $
    -**
    -** Declaration of the TQAxScriptEngine, TQAxScript and TQAxScriptManager classes
    -**
    -** Copyright (C) 2002-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the Active TQt integration.
    -**
    -** Licensees holding valid TQt Enterprise Edition
    -** licenses for Windows may use this file in accordance with the TQt Commercial
    -** License Agreement provided with the Software.
    -**
    -** This file is not available for use under any other license without
    -** express written permission from the copyright holder.
    -**
    -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    -**
    -** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
    -**   information about TQt Commercial License Agreements.
    -**
    -** Contact info@trolltech.com if any conditions of this licensing are
    -** not clear to you.
    -**
    -**********************************************************************/
    -
    -#ifndef TQAXSCRIPT_H
    -#define TQAXSCRIPT_H
    -
    -#include <qaxobject.h>
    -
    -class TQAxBase;
    -class TQAxScript;
    -class TQAxScriptSite;
    -class TQAxScriptEngine;
    -class TQAxScriptManager;
    -class TQAxScriptManagerPrivate;
    -struct IActiveScript;
    -
    -class TQAxScriptEngine : public TQAxObject
    -{
    -public:
    -    enum State {
    -	Uninitialized = 0,
    -	Initialized = 5,
    -	Started = 1,
    -	Connected = 2,
    -	Disconnected = 3,
    -	Closed = 4
    -    };
    -
    -    TQAxScriptEngine(const TQString &language, TQAxScript *script);
    -    ~TQAxScriptEngine();
    -
    -    bool isValid() const;
    -    bool hasIntrospection() const;
    -
    -    TQString scriptLanguage() const;
    -
    -    State state() const;
    -    void setState(State st);
    -
    -    void addItem(const TQString &name);
    -
    -    long queryInterface( const TQUuid &, void** ) const;
    -
    -protected:
    -    bool initialize(IUnknown** ptr);
    -
    -private:
    -    TQAxScript *script_code;
    -    IActiveScript *engine;
    -
    -    TQString script_language;
    -};
    -
    -class TQAxScript : public TQObject
    -{
    -    TQ_OBJECT
    -
    -public:
    -    enum FunctionFlags {
    -	FunctionNames = 0,
    -	FunctionSignatures	
    -    };
    -
    -    TQAxScript(const TQString &name, TQAxScriptManager *manager);
    -    ~TQAxScript();
    -
    -    bool load(const TQString &code, const TQString &language = TQString::null);
    -
    -    TQStringList functions(FunctionFlags = FunctionNames) const;
    -
    -    TQString scriptCode() const;
    -    TQString scriptName() const;
    -    TQAxScriptEngine *scriptEngine() const;
    -
    -    TQVariant call(const TQString &function, const TQVariant &v1 = TQVariant(), 
    -					   const TQVariant &v2 = TQVariant(),
    -					   const TQVariant &v3 = TQVariant(),
    -					   const TQVariant &v4 = TQVariant(),
    -					   const TQVariant &v5 = TQVariant(),
    -					   const TQVariant &v6 = TQVariant(),
    -					   const TQVariant &v7 = TQVariant(),
    -					   const TQVariant &v8 = TQVariant());
    -    TQVariant call(const TQString &function, TQValueList<TQVariant> &arguments);
    -
    -signals:
    -    void entered();
    -    void finished();
    -    void finished(const TQVariant &result);
    -    void finished(int code, const TQString &source,const TQString &description, const TQString &help);
    -    void stateChanged(int state);
    -    void error(int code, const TQString &description, int sourcePosition, const TQString &sourceText);
    -
    -private:
    -    friend class TQAxScriptSite;
    -    friend class TQAxScriptEngine;
    -
    -    void updateObjects();
    -    TQAxBase *findObject(const TQString &name);
    -
    -    TQString script_name;
    -    TQString script_code;
    -    TQAxScriptManager *script_manager;
    -    TQAxScriptEngine *script_engine;
    -    TQAxScriptSite *script_site;
    -};
    -
    -class TQAxScriptManager : public TQObject
    -{
    -    TQ_OBJECT
    -
    -public:
    -    TQAxScriptManager( TQObject *parent = 0, const char *name = 0 );
    -    ~TQAxScriptManager();
    -
    -    void addObject(TQAxBase *object);
    -    void addObject(TQObject *object);
    -
    -    TQStringList functions(TQAxScript::FunctionFlags = TQAxScript::FunctionNames) const;
    -    TQStringList scriptNames() const;
    -    TQAxScript *script(const TQString &name) const;
    -
    -    TQAxScript* load(const TQString &code, const TQString &name, const TQString &language);
    -    TQAxScript* load(const TQString &file, const TQString &name);
    -
    -    TQVariant call(const TQString &function, const TQVariant &v1 = TQVariant(), 
    -					   const TQVariant &v2 = TQVariant(),
    -					   const TQVariant &v3 = TQVariant(),
    -					   const TQVariant &v4 = TQVariant(),
    -					   const TQVariant &v5 = TQVariant(),
    -					   const TQVariant &v6 = TQVariant(),
    -					   const TQVariant &v7 = TQVariant(),
    -					   const TQVariant &v8 = TQVariant());
    -    TQVariant call(const TQString &function, TQValueList<TQVariant> &arguments);
    -
    -    static bool registerEngine(const TQString &name, const TQString &extension, const TQString &code = TQString());
    -    static TQString scriptFileFilter();
    -
    -signals:
    -    void error(TQAxScript *script, int code, const TQString &description, int sourcePosition, const TQString &sourceText);
    -
    -private slots:
    -    void objectDestroyed(TQObject *o);
    -    void scriptError(int code, const TQString &description, int sourcePosition, const TQString &sourceText);
    -
    -private:
    -    friend class TQAxScript;
    -    TQAxScriptManagerPrivate *d;
    -
    -    void updateScript(TQAxScript*);
    -    TQAxScript *scriptForFunction(const TQString &function) const;
    -};
    -
    -
    -// TQAxScript inlines
    -
    -inline TQString TQAxScript::scriptCode() const
    -{
    -    return script_code;
    -}
    -
    -inline TQString TQAxScript::scriptName() const
    -{
    -    return script_name;
    -}
    -
    -inline TQAxScriptEngine *TQAxScript::scriptEngine() const
    -{
    -    return script_engine;
    -}
    -
    -// TQAxScriptEngine inlines
    -
    -inline bool TQAxScriptEngine::isValid() const
    -{
    -    return engine != 0;
    -}
    -
    -inline TQString TQAxScriptEngine::scriptLanguage() const
    -{
    -    return script_language;
    -}
    -
    -// TQAxScriptManager inlines
    -
    -inline void TQAxScriptManager::addObject(TQObject *object)
    -{
    -    extern TQAxBase *qax_create_object_wrapper(TQObject*);
    -    TQAxBase *wrapper = qax_create_object_wrapper(object);
    -    addObject(wrapper);
    -}
    -
    -#endif // TQAXSCRIPT_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxscript-members.html b/doc/html/qaxscript-members.html deleted file mode 100644 index 4bc348af..00000000 --- a/doc/html/qaxscript-members.html +++ /dev/null @@ -1,100 +0,0 @@ - - - - - -TQAxScript Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxScript

    - -

    This is the complete list of member functions for -TQAxScript, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxscript.html b/doc/html/qaxscript.html deleted file mode 100644 index 2a10ac23..00000000 --- a/doc/html/qaxscript.html +++ /dev/null @@ -1,199 +0,0 @@ - - - - - -TQAxScript Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxScript Class Reference
    [TQAxContainer module]

    - -

    The TQAxScript class provides a wrapper around script code. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxscript.h> -

    Inherits TQObject. -

    List of all member functions. -

    Public Members

    -
      -
    • enum FunctionFlags { FunctionNames = 0, FunctionSignatures }
    • -
    • TQAxScript ( const TQString & name, TQAxScriptManager * manager )
    • -
    • ~TQAxScript ()
    • -
    • bool load ( const TQString & code, const TQString & language = TQString::null )
    • -
    • TQStringList functions ( FunctionFlags flags = FunctionNames ) const
    • -
    • TQString scriptCode () const
    • -
    • TQString scriptName () const
    • -
    • TQAxScriptEngine * scriptEngine () const
    • -
    • TQVariant 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 call ( const TQString & function, TQValueList<TQVariant> & arguments )
    • -
    -

    Signals

    -
      -
    • void entered ()
    • -
    • void finished ()
    • -
    • void finished ( const TQVariant & result )
    • -
    • void finished ( int code, const TQString & source, const TQString & description, const TQString & help )
    • -
    • void stateChanged ( int state )
    • -
    • void error ( int code, const TQString & description, int sourcePosition, const TQString & sourceText )
    • -
    -

    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. -

    - -The TQAxScript class provides a wrapper around script code. - - -

    Every instance of the TQAxScript class represents a piece of -scripting code in a particular scripting language. The code is -loaded into the script engine using load(). Functions declared -in the code can be called using call(). -

    The script provides scriptEngine() provides feedback to the -application through signals. The most important signal is the -error() signal. Direct access to the TQAxScriptEngine is provided -through the scriptEngine() function. -

    Warning: This class is not available with the bcc5.5 and MingW -compilers. - -


    Member Type Documentation

    -

    TQAxScript::FunctionFlags

    - -

    This FunctionFlags enum describes formatting for function introspection. -

      -
    • TQAxScript::FunctionNames - Only function names are returned. -
    • TQAxScript::FunctionSignatures - Returns the functions with signatures. -
    -

    Member Function Documentation

    -

    TQAxScript::TQAxScript ( const TQString & name, TQAxScriptManager * manager ) -

    -Constructs a TQAxScript object called name and registers -it with the TQAxScriptManager manager. This is usually done by the -TQAxScriptManager class when loading a - script. -

    A script should always have a name. A manager is necessary to allow -the script code to reference objects in the application. The manager -takes ownership of the object. - -

    TQAxScript::~TQAxScript () -

    -Destroys the object, releasing all allocated resources. - -

    TQVariant TQAxScript::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 -the function call failed. -

    See TQAxScriptManager::call() for more information about how to call -script functions. - -

    TQVariant TQAxScript::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. -

    See TQAxScriptManager::call() for more information about how to call -script functions. - -

    void TQAxScript::entered () [signal] -

    -

    This signal is emitted when a script engine has started executing code. - -

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

    - -

    This signal is emitted when an execution error occured while -running a script. -

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

    void TQAxScript::finished () [signal] -

    -

    This signal is emitted when a script engine has finished executing code. - -

    void TQAxScript::finished ( const TQVariant & result ) [signal] -

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

    result contains the script's result. This will be an invalid -TQVariant if the script has no return value. - -

    void TQAxScript::finished ( int code, const TQString & source, const TQString & description, const TQString & help ) [signal] -

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

    code, source, description and help contain exception information -when the script terminated. - -

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

    -Returns a list of all the functions in this script if the respective -script engine supports introspection; otherwise returns an empty list. -The functions are either provided with full prototypes or only as -names, depending on the value of flags. -

    See also TQAxScriptEngine::hasIntrospection(). - -

    bool TQAxScript::load ( const TQString & code, const TQString & language = TQString::null ) -

    -Loads the script source code written in language language -into the script engine. Returns TRUE if code was successfully -entered into the script engine; otherwise returns FALSE. -

    If language is empty (the default) it will be determined -heuristically. If code contains the string End Sub it will -be interpreted as VBScript, otherwise as JScript. Additional -scripting languages can be registered using -TQAxScript::registerEngine(). -

    This function can only be called once for each TQAxScript object, -which is done automatically when using TQAxScriptManager::load(). - -

    TQString TQAxScript::scriptCode () const -

    -Returns the script's code, or the null-string if no -code has been loaded yet. -

    See also load(). - -

    TQAxScriptEngine * TQAxScript::scriptEngine () const -

    -Returns a pointer to the script engine. -

    You can use the object returned to connect signals to the -script functions, or to access the script engine directly. - -

    TQString TQAxScript::scriptName () const -

    -Returns the name of the script. - -

    void TQAxScript::stateChanged ( int state ) [signal] -

    -

    This signal is emitted when a script engine changes state. -state can be any value in the TQAxScriptEngineState enumeration. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxscriptengine-members.html b/doc/html/qaxscriptengine-members.html deleted file mode 100644 index fa904597..00000000 --- a/doc/html/qaxscriptengine-members.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - -TQAxScriptEngine Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxScriptEngine

    - -

    This is the complete list of member functions for -TQAxScriptEngine, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxscriptengine.html b/doc/html/qaxscriptengine.html deleted file mode 100644 index b3c220f1..00000000 --- a/doc/html/qaxscriptengine.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - -TQAxScriptEngine Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxScriptEngine Class Reference
    [TQAxContainer module]

    - -

    The TQAxScriptEngine class provides a wrapper around a script engine. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxscript.h> -

    Inherits TQAxObject. -

    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. -

    - -The TQAxScriptEngine class provides a wrapper around a script engine. - - -

    Every instance of the TQAxScriptEngine class represents an interpreter -for script code in a particular scripting language. The class is usually -not used directly. The TQAxScript and TQAxScriptManager classes provide -convenient functions to handle and call script code. -

    Direct access to the script engine is provided through -queryInterface(). -

    Warning: This class is not available with the bcc5.5 and MingW -compilers. - -


    Member Type Documentation

    -

    TQAxScriptEngine::State

    - -

    The State enumeration defines the different states a script -engine can be in. -

      -
    • TQAxScriptEngine::Uninitialized - The script has been created, but not yet initialized -
    • TQAxScriptEngine::Initialized - The script has been initialized, but is not running -
    • TQAxScriptEngine::Started - The script can execute code, but does not yet handle events -
    • TQAxScriptEngine::Connected - The script can execute code and is connected so -that it can handle events -
    • TQAxScriptEngine::Disconnected - The script is loaded, but is not connected to -event sources -
    • TQAxScriptEngine::Closed - The script has been closed. -
    -

    Member Function Documentation

    -

    TQAxScriptEngine::TQAxScriptEngine ( const TQString & language, TQAxScript * script ) -

    -Constructs a TQAxScriptEngine object interpreting script code in language -provided by the code in script. This is usually done by the TQAxScript -class when loading a script. -

    Instances of TQAxScriptEngine should always have both a language and a -script. - -

    TQAxScriptEngine::~TQAxScriptEngine () -

    -Destroys the TQAxScriptEngine object, releasing all allocated -resources. - -

    void TQAxScriptEngine::addItem ( const TQString & name ) -

    -Registers an item with the script engine. Script code can -refer to this item using name. - -

    bool TQAxScriptEngine::hasIntrospection () const -

    -Returns TRUE if the script engine supports introspection; -otherwise returns FALSE. - -

    bool TQAxScriptEngine::isValid () const -

    - -

    Returns TRUE if the script engine has been initialized -correctly; otherwise returns FALSE. - -

    long TQAxScriptEngine::queryInterface ( const TQUuid & uuid, void ** iface ) const -

    -Requests the interface uuid from the script engine object and -sets the value of iface to the provided interface, or to 0 if -the requested interface could not be provided. -

    Returns the result of the QueryInterface implementation of the COM -object. - -

    TQString TQAxScriptEngine::scriptLanguage () const -

    -Returns the scripting language, for example "VBScript", -or "JScript". - -

    void TQAxScriptEngine::setState ( State st ) -

    -Sets the state of the script engine to st. -Calling this function is usually not necessary. - -

    State TQAxScriptEngine::state () const -

    -Returns the state of the script engine. - - -

    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxscriptmanager-members.html b/doc/html/qaxscriptmanager-members.html deleted file mode 100644 index 2f68ee4d..00000000 --- a/doc/html/qaxscriptmanager-members.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - -TQAxScriptManager Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxScriptManager

    - -

    This is the complete list of member functions for -TQAxScriptManager, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxscriptmanager.html b/doc/html/qaxscriptmanager.html deleted file mode 100644 index 706acf33..00000000 --- a/doc/html/qaxscriptmanager.html +++ /dev/null @@ -1,230 +0,0 @@ - - - - - -TQAxScriptManager Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxScriptManager Class Reference
    [TQAxContainer module]

    - -

    The TQAxScriptManager class provides a bridge between application objects -and script code. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxscript.h> -

    Inherits TQObject. -

    List of all member functions. -

    Public Members

    -
      -
    • TQAxScriptManager ( TQObject * parent = 0, const char * name = 0 )
    • -
    • ~TQAxScriptManager ()
    • -
    • void addObject ( TQAxBase * object )
    • -
    • void addObject ( TQObject * object )
    • -
    • TQStringList functions ( TQAxScript::FunctionFlags flags = TQAxScript::FunctionNames ) const
    • -
    • TQStringList scriptNames () const
    • -
    • TQAxScript * script ( const TQString & name ) const
    • -
    • TQAxScript * load ( const TQString & code, const TQString & name, const TQString & language )
    • -
    • TQAxScript * load ( const TQString & file, const TQString & name )
    • -
    • TQVariant 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 call ( const TQString & function, TQValueList<TQVariant> & arguments )
    • -
    -

    Signals

    -
      -
    • void error ( TQAxScript * script, int code, const TQString & description, int sourcePosition, const TQString & sourceText )
    • -
    -

    Static Public Members

    -
      -
    • bool registerEngine ( const TQString & name, const TQString & extension, const TQString & code = TQString ( ) )
    • -
    • TQString scriptFileFilter ()
    • -
    -

    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. -

    - -The TQAxScriptManager class provides a bridge between application objects -and script code. - - -

    The TQAxScriptManager acts as a bridge between the COM objects embedded -in the TQt application through TQAxObject or TQAxWidget, and the scripting -languages available through the Windows Script technologies, usually JScript -and VBScript. -

    Create one TQAxScriptManager for each separate document in your -application, and add the COM objects the scripts need to access -using addObject(). Then load() the script sources and invoke the -functions using call(). -

    Warning: This class is not available with the bcc5.5 and MingW -compilers. - -


    Member Function Documentation

    -

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

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

    It is usual to create one TQAxScriptManager for each document in an -application. - -

    TQAxScriptManager::~TQAxScriptManager () -

    -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. -

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

    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 ( ) ) -

    -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 -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 -TQVariant&", for example, to call a JavaScript function -

    -    function setNumber(number)
    -    {
    -        n = number;
    -    }
    -    
    - -use -
    -    TQValueList args;
    -    args << 5;
    -    script->call("setNumber(const TQVariant&)", args);
    -    
    - -As with dynamicCall the -parameters can directly be embedded in the function string. -
    -    script->call("setNumber(5)");
    -    
    - -However, this is slower. -

    Functions provided by script engines that don't support -introspection are not available and must be called directly -using TQAxScript::call() on the respective script object. -

    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 ) -

    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] -

    - -

    This signal is emitted when an execution error occured while -running script. -

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

    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 -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 ) -

    -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. -

    The function returns a pointer to the script for the given -code if the code was loaded successfully; otherwise it -returns 0. -

    If language is empty it will be determined heuristically. If code contains the string "End Sub" it will be interpreted as -VBScript, otherwise as JScript. Additional script engines can be -registered using registerEngine(). -

    You must add all the objects necessary (using addObject()) before loading any scripts. If code declares a function that is -already available (no matter in which language) the first function -is overloaded and can no longer be called via call(); but it will -still be available by calling its script -directly. -

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

    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 -referred to using its name which should not be empty. -

    The function returns a pointer to the script engine for the code -in file if file was loaded successfully; otherwise it -returns 0. -

    The script engine used is determined from the file's extension. By -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] -

    -Registers the script engine called name and returns TRUE if the -engine was found; otherwise does nothing and returns FALSE. -

    The script engine will be used when loading files with the given -extension, or when loading source code that contains the string -code. - -

    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] -

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

    TQStringList TQAxScriptManager::scriptNames () const -

    -Returns a list with the names of all the scripts. - - -

    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-demo-hierarchy.html b/doc/html/qaxserver-demo-hierarchy.html deleted file mode 100644 index 9ac1865a..00000000 --- a/doc/html/qaxserver-demo-hierarchy.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - -TQt Widget Hierarchy - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQt Widget Hierarchy

    - - -

    - - -

    -This widget can have many children!
    - -[Object not available! Did you forget to build and register the server?] -
    -

    - - - - -
    - - -
    - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-demo-menus.html b/doc/html/qaxserver-demo-menus.html deleted file mode 100644 index ca1b9460..00000000 --- a/doc/html/qaxserver-demo-menus.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - -Menubar merging - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Menubar merging

    - - -

    This documentation is under development and is subject to change. -

    This example is not full functional at the moment. -

    - -[Object not available! Did you forget to build and register the server?] - - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-demo-multiple.html b/doc/html/qaxserver-demo-multiple.html deleted file mode 100644 index c09be0af..00000000 --- a/doc/html/qaxserver-demo-multiple.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - -Two simple TQt widgets - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Two simple TQt widgets

    - - -

    - - -

    -This is one TQWidget subclass:
    - -[Object not available! Did you forget to build and register the server?] -
    -

    -Fill Color: - - - -
    - -

    -This is another TQWidget subclass:
    - -[Object not available! Did you forget to build and register the server?] -
    -

    -Line width: - -
    - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-demo-opengl.html b/doc/html/qaxserver-demo-opengl.html deleted file mode 100644 index bf74be99..00000000 --- a/doc/html/qaxserver-demo-opengl.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - -OpenGL in an HTML page - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    OpenGL in an HTML page

    - - -

    - - -

    -An OpenGL scene:
    - -[Object not available! Did you forget to build and register the server?] -
    - -

    -Rotate the scene:
    -X:
    -Y:
    -Z:
    - -
    - - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-demo-simple.html b/doc/html/qaxserver-demo-simple.html deleted file mode 100644 index 58e77ff9..00000000 --- a/doc/html/qaxserver-demo-simple.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - -A standard ActiveX and the "simple" ActiveTQt widget. - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    A standard ActiveX and the "simple" ActiveTQt widget.

    - - -

    - - - -[Object not available! Did you forget to build and register the server?] - - -

    - -
    - - -[Standard Calendar control not available!] - - - -
    - -
    - - - - - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-demo-tetrax.html b/doc/html/qaxserver-demo-tetrax.html deleted file mode 100644 index 0e4363ea..00000000 --- a/doc/html/qaxserver-demo-tetrax.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - -Play Tetrix! - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Play Tetrix!

    - - -

    - - -[Object not available! Did you forget to build and register the server?] - - -

    - -
    - - - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-demo-wrapper.html b/doc/html/qaxserver-demo-wrapper.html deleted file mode 100644 index e001464e..00000000 --- a/doc/html/qaxserver-demo-wrapper.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - -Standard TQt widgets in an HTML page - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Standard TQt widgets in an HTML page

    - - -

    - -

    -A TQPushButton:
    - - -[Object not available! Did you forget to build and register the server?] -
    - -

    -A TQCheckBox:
    - - -[Object not available! Did you forget to build and register the server?] -
    - -

    -A TQToolButton:
    - -[Object not available! Did you forget to build and register the server?] -
    - -

    -A TQRadioButton:
    - - -[Object not available! Did you forget to build and register the server?] -
    - - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-example-hierarchy.html b/doc/html/qaxserver-example-hierarchy.html deleted file mode 100644 index b6361de2..00000000 --- a/doc/html/qaxserver-example-hierarchy.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - - -TQt Widget Hierarchy (in-process) - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQt Widget Hierarchy (in-process)

    - - - -The ActiveX control in this example is a TQWidget -subclass with child widgets that are accessible as sub types. -

    - -

        class TQParentWidget : public TQWidget
    -    {
    -        TQ_OBJECT
    -    public:
    -        TQParentWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
    -
    -        TQSize sizeHint() const;
    -
    -    public slots:
    -        void createSubWidget( const TQString &name );
    -
    -        TQSubWidget *subWidget( const TQString &name );
    -
    -    private:
    -        TQVBoxLayout *vbox;
    -    };
    -
    The TQParentWidget class provides slots to create a widget -with a name, and to return a pointer to a named widget. -

    - -

        TQParentWidget::TQParentWidget( TQWidget *parent, const char *name, WFlags f )
    -    : TQWidget( parent, name, f )
    -    {
    -        vbox = new TQVBoxLayout( this );
    -        vbox->setAutoAdd( TRUE );
    -    }
    -
    The constructor of TQParentWidget creates a vertical box layout. -New child widgets are automatically added to the layout. -

        void TQParentWidget::createSubWidget( const TQString &name )
    -    {
    -        TQSubWidget *sw = new TQSubWidget( this, name );
    -        sw->setLabel( name );
    -        sw->show();
    -    }
    -
    The createSubWidget slot creates a new TQSubWidget with -the name provided in the parameter, and sets the label to that -name. The widget is also shown explicitly. -

        TQSubWidget *TQParentWidget::subWidget( const TQString &name )
    -    {
    -        return (TQSubWidget*)child( name, "TQSubWidget" );
    -    }
    -
    The subWidget slot uses the TQObject::child() function and -returns the first child of type TQSubWidget that has the requested -name. -

    - -

        class TQSubWidget : public TQWidget
    -    {
    -        TQ_OBJECT
    -        TQ_PROPERTY( TQString label READ label WRITE setLabel )
    -    public:
    -        TQSubWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
    -
    -        void setLabel( const TQString &text );
    -        TQString label() const;
    -
    -        TQSize sizeHint() const;
    -
    -    protected:
    -        void paintEvent( TQPaintEvent *e );
    -
    -    private:
    -        TQString lbl;
    -    };
    -
    The TQSubWidget class has a single string-property label, -and implements the paintEvent to draw the label. -

    - -

        TQSubWidget::TQSubWidget( TQWidget *parent, const char *name, WFlags f )
    -    : TQWidget( parent, name, f )
    -    {
    -    }
    -
    -    void TQSubWidget::setLabel( const TQString &text )
    -    {
    -        lbl = text;
    -        setName( text );
    -        update();
    -    }
    -
    -    TQString TQSubWidget::label() const
    -    {
    -        return lbl;
    -    }
    -
    -    TQSize TQSubWidget::sizeHint() const
    -    {
    -        TQFontMetrics fm( font() );
    -        return TQSize( fm.width(lbl), fm.height() );
    -    }
    -
    -    void TQSubWidget::paintEvent( TQPaintEvent * )
    -    {
    -        TQPainter painter(this);
    -        painter.setPen( colorGroup().text() );
    -        painter.drawText( rect(), AlignCenter, lbl );
    -    }
    -
    The implementation of the TQSubWidget class is self-explanatory. -

    - -

        class ActiveTQtFactory : public TQAxFactory
    -    {
    -    public:
    -        ActiveTQtFactory( const TQUuid &lib, const TQUuid &app )
    -            : TQAxFactory( lib, app )
    -        {}
    -        TQStringList featureList() const
    -        {
    -            TQStringList list;
    -            list << "TQParentWidget";
    -            list << "TQSubWidget";
    -            return list;
    -        }
    -
    The ActiveTQtFactory class implements a TQAxFactory. It returns -the class names of all supported types, TQParentWidget and -TQSubWidget, from the featureList() reimplementation. -

            TQWidget *create( const TQString &key, TQWidget *parent, const char *name )
    -        {
    -            if ( key == "TQParentWidget" )
    -                return new TQParentWidget( parent, name );
    -
    -            return 0;
    -        }
    -
    The factory can however only create objects of the TQParentWidget -type directly - objects of subtypes can only be created through the -interface of TQParentWidget objects. -

            TQUuid classID( const TQString &key ) const
    -        {
    -            if ( key == "TQParentWidget" )
    -                return TQUuid( "{d574a747-8016-46db-a07c-b2b4854ee75c}" );
    -            if ( key == "TQSubWidget" )
    -                return TQUuid( "{850652f4-8f71-4f69-b745-bce241ccdc30}" );
    -
    -            return TQUuid();
    -        }
    -        TQUuid interfaceID( const TQString &key ) const
    -        {
    -            if ( key == "TQParentWidget" )
    -                return TQUuid( "{4a30719d-d9c2-4659-9d16-67378209f822}" );
    -            if ( key == "TQSubWidget" )
    -                return TQUuid( "{2d76cc2f-3488-417a-83d6-debff88b3c3f}" );
    -
    -            return TQUuid();
    -        }
    -        TQUuid eventsID( const TQString &key ) const
    -        {
    -            if ( key == "TQParentWidget" )
    -                return TQUuid( "{aac9f855-c3dc-4cae-b747-c77f4d509f4c}" );
    -            if ( key == "TQSubWidget" )
    -                return TQUuid( "{25fac47e-c723-4696-8c74-6185903bdf65}" );
    -
    -            return TQUuid();
    -        }
    -
    COM however requires the IDs for the interfaces of the sub types as -well to be able to marshal calls correctly. -

            TQString exposeToSuperClass( const TQString &key ) const
    -        {
    -            if ( key == "TQSubWidget" )
    -                return key;
    -            return TQAxFactory::exposeToSuperClass(key);
    -        }
    -    };
    -
    Objects of the TQSubWidget type should not expose the full -functionality of e.g. TQWidget. Only those properties and slots -explicitly declared in the type are accessible. -

        TQAXFACTORY_EXPORT( ActiveTQtFactory, "{9e626211-be62-4d18-9483-9419358fbb03}", "{75c276de-1df5-451f-a004-e4fa1a587df1}" )
    -
    The factory is then exported using the TQAXFACTORY_EXPORT -macro. -

    To build the example you must first build the TQAxServer library. Then run qmake and your make tool in -examples/multiple. -


    -

    The demonstration requires your -WebBrowser to support ActiveX controls, and scripting to be enabled. -

    - -

        <script language=javascript>
    -    function createSubWidget( form )
    -    {
    -        ParentWidget.createSubWidget( form.nameEdit.value );
    -    }
    -
    -    function renameSubWidget( form )
    -    {
    -        var SubWidget = ParentWidget.subWidget( form.nameEdit.value );
    -        if ( !SubWidget ) {
    -            alert( "No such widget " + form.nameEdit.value + "!" );
    -            return;
    -        }
    -        SubWidget.label = form.labelEdit.value;
    -        form.nameEdit.value = SubWidget.label;
    -    }
    -
    -    function setFont( form )
    -    {
    -        ParentWidget.font = form.fontEdit.value;
    -    }
    -    </script>
    -
    -    <p>
    -    This widget can have many children!<br>
    -    <object ID="ParentWidget" CLASSID="CLSID:d574a747-8016-46db-a07c-b2b4854ee75c"
    -    CODEBASE=http://www.trolltech.com/demos/hierarchy.cab>
    -    [Object not available! Did you forget to build and register the server?]
    -    </object><br>
    -    <form>
    -    <input type="edit" ID="nameEdit" value = "<enter object name>">
    -    <input type="button" value = "Create" onClick="createSubWidget(this.form)">
    -    <input type="edit" ID="labelEdit">
    -    <input type="button" value = "Rename" onClick="renameSubWidget(this.form)">
    -    <br>
    -    <input type="edit" ID="fontEdit" value = "MS Sans Serif">
    -    <input type="button" value = "Set Font" onClick="setFont(this.form)">
    -    </form>
    -

    See also The TQAxServer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-example-menus.html b/doc/html/qaxserver-example-menus.html deleted file mode 100644 index 55500195..00000000 --- a/doc/html/qaxserver-example-menus.html +++ /dev/null @@ -1,59 +0,0 @@ - - - - - -Menubar merging - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Menubar merging

    - - - -

    This documentation is under development and is subject to change. -

    This example demonstrates the use of TQMenuBar and TQStatusBar in -a TQMainWindow to implement an in-place active control. -

    To build the example you must first build the TQAxServer library. Then run qmake and your make tool in -examples/menus. -


    -

    The demonstration requires your -WebBrowser to support ActiveX controls, and scripting to be enabled. -

    - -

        <object ID="TQMenus" CLASSID="CLSID:4dc3f340-a6f7-44e4-a79b-3e9217695fbd"
    -    CODEBASE=http://www.trolltech.com/demos/menusax.cab>
    -    [Object not available! Did you forget to build and register the server?]
    -    </object>
    -

    See also The TQAxServer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-example-multiple.html b/doc/html/qaxserver-example-multiple.html deleted file mode 100644 index 86094e0b..00000000 --- a/doc/html/qaxserver-example-multiple.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - -Two simple TQt widgets (in-process) - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Two simple TQt widgets (in-process)

    - - - -The ActiveX controls in this example are simple TQWidget -subclasses reimplementing the paintEvent() method. The classes use -the TQ_CLASSINFO macro to -

    The example demonstrates the use of the TQ_CLASSINFO macro to set -ActiveTQt-specific attributes for TQObject sub classes, and the use of -the TQAXFACTORY_BEGIN, TQAXCLASS and TQAXFACTORY_END macros. -

    - -

        class TQAxWidget1 : public TQWidget
    -    {
    -        TQ_OBJECT
    -        TQ_CLASSINFO("ClassID", "{1D9928BD-4453-4bdd-903D-E525ED17FDE5}")
    -        TQ_CLASSINFO("InterfaceID", "{99F6860E-2C5A-42ec-87F2-43396F4BE389}")
    -        TQ_CLASSINFO("EventsID", "{0A3E9F27-E4F1-45bb-9E47-63099BCCD0E3}")
    -
    The class declaration includes the TQ_OBJECT macro to activate TQt's meta object system, and sets COM identifiers for the class using the -TQ_CLASSINFO macro. -
            TQ_PROPERTY( TQColor fillColor READ fillColor WRITE setFillColor )
    -    public:
    -        TQAxWidget1( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 )
    -            : TQWidget( parent, name, f ), fill_color( red )
    -        {
    -        }
    -
    -        TQColor fillColor() const
    -        {
    -            return fill_color;
    -        }
    -        void setFillColor( const TQColor &fc )
    -        {
    -            fill_color = fc;
    -            repaint();
    -        }
    -
    -    protected:
    -        void paintEvent( TQPaintEvent *e )
    -        {
    -            TQPainter paint( this );
    -            TQRect r = rect();
    -            r.addCoords( 10, 10, -10, -10 );
    -            paint.fillRect( r, fill_color );
    -        }
    -
    -    private:
    -        TQColor fill_color;
    -    };
    -
    The control draws a filled rectangle. The fill color is exposed as a -property using the TQ_PROPERTY macro. -

    - -

        class TQAxWidget2 : public TQWidget
    -    {
    -        TQ_OBJECT
    -        TQ_CLASSINFO("ClassID", "{58139D56-6BE9-4b17-937D-1B1EDEDD5B71}")
    -        TQ_CLASSINFO("InterfaceID", "{B66280AB-08CC-4dcc-924F-58E6D7975B7D}")
    -        TQ_CLASSINFO("EventsID", "{D72BACBA-03C4-4480-B4BB-DE4FE3AA14A0}")
    -        TQ_CLASSINFO("ToSuperClass", "TQAxWidget2")
    -        TQ_CLASSINFO("StockEvents", "yes")
    -
    The declaration of the second control class uses the TQ_CLASSINFO macro -to set the COM identifiers as well as additional COM attributes for the -class. Objects of that class will not expose the TQWidget API, and provide -the ActiveX stock events (ie. Click, KeyDown etc.). -
            TQ_PROPERTY( int lineWidth READ lineWidth WRITE setLineWidth )
    -    public:
    -        TQAxWidget2( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 )
    -            : TQWidget( parent, name, f ), line_width( 1 )
    -        {
    -        }
    -
    -        int lineWidth() const
    -        {
    -            return line_width;
    -        }
    -        void setLineWidth( int lw )
    -        {
    -            line_width = lw;
    -            repaint();
    -        }
    -
    -    protected:
    -        void paintEvent( TQPaintEvent *e )
    -        {
    -            TQPainter paint( this );
    -            TQPen pen = paint.pen();
    -            pen.setWidth( line_width );
    -            paint.setPen( pen );
    -
    -            TQRect r = rect();
    -            r.addCoords( 10, 10, -10, -10 );
    -            paint.drawEllipse( r );
    -        }
    -
    -    private:
    -        int line_width;
    -    };
    -
    The control draws a circle. The line width is exposed as a property -using the TQ_PROPERTY macro. -

    The controls are exposed by the implementation of TQAxFactory as provided -by the TQAXFACTORY_BEGIN and TQAXFACTORY_END macros. - - -

        #include <qaxfactory.h>
    -
    -    #include "ax1.h"
    -    #include "ax2.h"
    -
    -    TQAXFACTORY_BEGIN("{98DE28B6-6CD3-4e08-B9FA-3D1DB43F1D2F}", "{05828915-AD1C-47ab-AB96-D6AD1E25F0E2}")
    -
    The factory is initialied using the TQAXFACTORY_BEGIN macro, providing -the IDs for the application and the type library. -
            TQAXCLASS(TQAxWidget1)
    -        TQAXCLASS(TQAxWidget2)
    -
    The classes exposed are listed using the TQAXCLASS macro. -
        TQAXFACTORY_END()
    -
    Finally the factory declaration is closed using the TQAXFACTORY_END -macro. -

    To build the example you must first build the TQAxServer library. Then run qmake and your make tool in -examples/multiple. -


    -

    The demonstration requires your -WebBrowser to support ActiveX controls, and scripting to be enabled. -

    - -

        <script language=javascript>
    -    function setColor( form )
    -    {
    -        Ax1.fillColor = form.colorEdit.value;
    -    }
    -
    -    function setWidth( form )
    -    {
    -        Ax2.lineWidth = form.widthEdit.value;
    -    }
    -    </script>
    -
    -    <p>
    -    This is one TQWidget subclass:<br>
    -    <object ID="Ax1" CLASSID="CLSID:1D9928BD-4453-4bdd-903D-E525ED17FDE5"
    -    CODEBASE=http://www.trolltech.com/demos/multipleax.cab>
    -    [Object not available! Did you forget to build and register the server?]
    -    </object><br>
    -    <form>
    -    Fill Color: <input type="edit" ID="colorEdit" value = "red">
    -    <input type="button" value = "Set" onClick="setColor(this.form)">
    -    <input type="button" value = "Hide" onClick="Ax1.hide()">
    -    <input type="button" value = "Show" onClick="Ax1.show()">
    -    </form>
    -
    -    <p>
    -    This is another TQWidget subclass:<br>
    -    <object ID="Ax2" CLASSID="CLSID:58139D56-6BE9-4b17-937D-1B1EDEDD5B71"
    -    CODEBASE=http://www.trolltech.com/demos/multipleax.cab>
    -    [Object not available! Did you forget to build and register the server?]
    -    </object><br>
    -    <form>
    -    Line width: <input type="edit" ID="widthEdit" value = "1">
    -    <input type="button" value = "Set" onClick="setWidth(this.form)">
    -    </form>
    -

    See also The TQAxServer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-example-opengl.html b/doc/html/qaxserver-example-opengl.html deleted file mode 100644 index 64de63a4..00000000 --- a/doc/html/qaxserver-example-opengl.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - -TQt' OpenGL widgets as an ActiveX (executable) - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQt' OpenGL widgets as an ActiveX (executable)

    - - - -The ActiveX control in this example uses the TQGlWidget class in -TQt to render an OpenGL scene in an ActiveX. The control exposes a few -methods to change the scene. The example is based on the -"box" example from the standard -TQt distribution. -

    The example demonstrates the use of the default factory and -TQAxFactory::isServer(), and the implementation of an additional COM -interface using TQAxBindable and TQAxAggregated. The server executable -can run both as an ActiveX server and as a stand alone application. -

    - -The application uses the default factory as provided by the -TQAXFACTORY_DEFAULT macro to expose the GLBox widget as an ActiveX -control. -

        #include <qaxfactory.h>
    -
    -    TQAXFACTORY_DEFAULT( GLBox,
    -                        "{5fd9c22e-ed45-43fa-ba13-1530bb6b03e0}",
    -                        "{33b051af-bb25-47cf-a390-5cfd2987d26a}",
    -                        "{8c996c29-eafa-46ac-a6f9-901951e765b5}",
    -                        "{2c3c183a-eeda-41a4-896e-3d9c12c3577d}",
    -                        "{83e16271-6480-45d5-aaf1-3f40b7661ae4}"
    -                      )
    -
    The implementation of main initializes the TQApplication object, -and uses TQAxFactory::isServer() to determine whether or not it is -appropriate to create and show the application interface. -
        /*
    -      The main program is here.
    -    */
    -
    -    int main( int argc, char **argv )
    -    {
    -        TQApplication::setColorSpec( TQApplication::CustomColor );
    -        TQApplication a(argc,argv);
    -
    -        if ( !TQGLFormat::hasOpenGL() ) {
    -            tqWarning( "This system has no OpenGL support. Exiting." );
    -            return -1;
    -        }
    -
    -        if ( !TQAxFactory::isServer() ) {
    -            GLObjectWindow w;
    -            w.resize( 400, 350 );
    -            a.setMainWidget( &w );
    -            w.show();
    -            return a.exec();
    -        }
    -        return a.exec();
    -    }
    -
    -

    - -The GLBox class inherits from both the TQGLWidget class to be able -to render OpenGL, and from TQAxBindable. -

        #include <qaxbindable.h>
    -
    -    class GLBox : public TQGLWidget,
    -                  public TQAxBindable
    -    {
    -        TQ_OBJECT
    -
    The class reimplements the TQAxBindable::createAggregate() function from TQAxBindable -to return the pointer to a TQAxAggregated object. -
        public:
    -
    -        GLBox( TQWidget* parent, const char* name );
    -        ~GLBox();
    -
    -        TQAxAggregated *createAggregate();
    -
    -    public slots:
    -
    -        void                setXRotation( int degrees );
    -
    The rest of the class declaration and the implementation of the OpenGL -rendering is identical to the original "box" example. -

    - -The implementation file of the GLBox class includes the objsafe.h -system header, in which the IObjectSafety COM interface is defined. -

        #include <objsafe.h>
    -
    A class ObjectSafetyImpl is declared using multiple inheritance -to subclass the TQAxAggregated class, and to implement the IObjectSafety -interface. -
        class ObjectSafetyImpl : public TQAxAggregated,
    -                             public IObjectSafety
    -    {
    -    public:
    -
    The class declares a default constructor, and implements the queryInterface -function to support the IObjectSafety interface. -
            ObjectSafetyImpl() {}
    -
    -        long queryInterface( const TQUuid &iid, void **iface )
    -        {
    -            *iface = 0;
    -            if ( iid == IID_IObjectSafety )
    -                *iface = (IObjectSafety*)this;
    -            else
    -                return E_NOINTERFACE;
    -
    -            AddRef();
    -            return S_OK;
    -        }
    -
    Since every COM interface inherits IUnknown the TQAXAGG_IUNKNOWN macro -is used to provide the default implementation of the IUnknown interface. -The macro is defined to delegate all calls to QueryInterface, AddRef -and Release to the interface returned by the controllingUnknown() function. -
            TQAXAGG_IUNKNOWN;
    -
    The implementation of the IObjectSafety interface provides the caller -with information about supported and enabled safety options, and returns -S_OK for all calls to indicate that the ActiveX control is safe. -
            HRESULT WINAPI GetInterfaceSafetyOptions( REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions )
    -        {
    -            *pdwSupportedOptions = INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACESAFE_FOR_UNTRUSTED_CALLER;
    -            *pdwEnabledOptions = INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACESAFE_FOR_UNTRUSTED_CALLER;
    -            return S_OK;
    -        }
    -        HRESULT WINAPI SetInterfaceSafetyOptions( REFIID riid, DWORD pdwSupportedOptions, DWORD pdwEnabledOptions )
    -        {
    -            return S_OK;
    -        }
    -    };
    -
    The implementation of the createAggregate() function just returns a new -ObjectSafetyImpl object. -
        TQAxAggregated *GLBox::createAggregate()
    -    {
    -        return new ObjectSafetyImpl();
    -    }
    -
    -

    To build the example you must first build the TQAxServer library. Then run qmake and your make tool in -examples/wrapper. -


    -

    The demonstration requires your -WebBrowser to support ActiveX controls, and scripting to be enabled. -

    In contrast to the other TQAxServer examples Internet Explorer will not -open a dialog box to ask the user whether or not the scripting of the GLBox -control should be allowed (the exact browser behaviour depends on the security -settings in the Internet Options dialog). -

    - -

        <SCRIPT LANGUAGE=JavaScript>
    -    function setRot( form )
    -    {
    -        GLBox.setXRotation( form.XEdit.value );
    -        GLBox.setYRotation( form.YEdit.value );
    -        GLBox.setZRotation( form.ZEdit.value );
    -    }
    -    </SCRIPT>
    -
    -    <p>
    -    An OpenGL scene:<br>
    -    <object ID="GLBox" CLASSID="CLSID:5fd9c22e-ed45-43fa-ba13-1530bb6b03e0"
    -    CODEBASE=http://www.trolltech.com/demos/openglax.cab>
    -    [Object not available! Did you forget to build and register the server?]
    -    </object><br>
    -
    -    <form>
    -    Rotate the scene:<br>
    -    X:<input type="edit" ID="XEdit" value="0"><br>
    -    Y:<input type="edit" name="YEdit" value="0"><br>
    -    Z:<input type="edit" name="ZEdit" value="0"><br>
    -    <input type="button" value="Set" onClick="setRot(this.form)">
    -    </form>
    -

    See also The TQAxServer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-example-simple.html b/doc/html/qaxserver-example-simple.html deleted file mode 100644 index 39377a67..00000000 --- a/doc/html/qaxserver-example-simple.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - -A simple ActiveTQt control (executable) - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    A simple ActiveTQt control (executable)

    - - - -The ActiveX control in this example is a layouted TQWidget -with a TQSlider, a TQLCDNumber and a TQLineEdit. -It provides a signal/slot/property interface to change the -values of the slider and the line edit, and to get notified -of any property changes. -

    It demonstrates the use of TQAxBindable::requestPropertyChange() -and TQAxBindable::propertyChanged(), and the use of the default -TQAxFactory through the TQAXFACTORY_DEFAULT macro. -

    - -

    The TQt implementation of the ActiveX for this example is -

        class TQSimpleAX : public TQWidget, public TQAxBindable
    -    {
    -        TQ_OBJECT
    -        TQ_PROPERTY( TQString text READ text WRITE setText )
    -        TQ_PROPERTY( int value READ value WRITE setValue )
    -    public:
    -        TQSimpleAX( TQWidget *parent = 0, const char *name = 0 )
    -        : TQWidget( parent, name )
    -        {
    -            TQVBoxLayout *vbox = new TQVBoxLayout( this );
    -
    -            slider = new TQSlider( 0, 100, 1, 0, TQSlider::Horizontal, this );
    -            LCD = new TQLCDNumber( 3, this );
    -            edit = new TQLineEdit( this );
    -
    -            connect( slider, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( setValue(int) ) );
    -            connect( edit, TQ_SIGNAL(textChanged(const TQString&)), this, TQ_SLOT(setText(const TQString&)) );
    -
    -            vbox->addWidget( slider );
    -            vbox->addWidget( LCD );
    -            vbox->addWidget( edit );
    -        }
    -
    -        TQString text() const
    -        {
    -            return edit->text();
    -        }
    -        int value() const
    -        {
    -            return slider->value();
    -        }
    -
    -    signals:
    -        void someSignal();
    -        void valueChanged(int);
    -        void textChanged(const TQString&);
    -
    -    public slots:
    -        void setText( const TQString &string )
    -        {
    -            if ( !requestPropertyChange( "text" ) )
    -                return;
    -
    -            edit->blockSignals( TRUE );
    -            edit->setText( string );
    -            edit->blockSignals( FALSE );
    -            emit someSignal();
    -            emit textChanged( string );
    -
    -            propertyChanged( "text" );
    -        }
    -        void about()
    -        {
    -            TQMessageBox::information( this, "About TQSimpleAX", "This is a TQt widget, and this slot has been\n"
    -                                                              "called through ActiveX/OLE automation!" );
    -        }
    -        void setValue( int i )
    -        {
    -            if ( !requestPropertyChange( "value" ) )
    -                return;
    -            slider->blockSignals( TRUE );
    -            slider->setValue( i );
    -            slider->blockSignals( FALSE );
    -            LCD->display( i );
    -            emit valueChanged( i );
    -
    -            propertyChanged( "value" );
    -        }
    -
    -    private:
    -        TQSlider *slider;
    -        TQLCDNumber *LCD;
    -        TQLineEdit *edit;
    -    };
    -
    -

    The control is exported using the default TQAxFactory -

        TQAXFACTORY_DEFAULT(TQSimpleAX,
    -               "{DF16845C-92CD-4AAB-A982-EB9840E74669}",
    -               "{616F620B-91C5-4410-A74E-6B81C76FFFE0}",
    -               "{E1816BBA-BF5D-4A31-9855-D6BA432055FF}",
    -               "{EC08F8FC-2754-47AB-8EFE-56A54057F34E}",
    -               "{A095BA0C-224F-4933-A458-2DD7F6B85D8F}")
    -
    -

    To build the example you must first build the TQAxServer library. Then run qmake and your make tool in -examples/simple. -


    -

    The demonstration requires your -WebBrowser to support ActiveX controls, and scripting to be enabled. -

    The simple ActiveX control is embedded using the <object> tag. - - -

        <object ID="TQSimpleAX" CLASSID="CLSID:DF16845C-92CD-4AAB-A982-EB9840E74669"
    -    CODEBASE=http://www.trolltech.com/demos/simpleax.cab>
    -        <PARAM NAME="text" VALUE="A simple control">
    -        <PARAM NAME="value" VALUE="1">
    -    [Object not available! Did you forget to build and register the server?]
    -    </object>
    -
    -

    A simple HTML button is connected to the ActiveTQt's about() slot. -

        <FORM>
    -        <INPUT TYPE="BUTTON" VALUE="About..." onClick="TQSimpleAX.about()">
    -    </FORM>
    -
    -

    A second ActiveX control - the standard Calendar Control - is instantiated -

        <object ID="Calendar" CLASSID="CLSID:8E27C92B-1264-101C-8A2F-040224009C02">
    -    [Standard Calendar control not available!]
    -        <PARAM NAME="day" VALUE="1">
    -    </object>
    -
    -

    Events from the ActiveX controls are handled using both Visual Basic Script -and JavaScript. -

        <SCRIPT LANGUAGE=VBScript>
    -    Sub Calendar_Click()
    -        MsgBox( "Calendar Clicked!" )
    -    End Sub
    -
    -    Sub TQSimpleAX_TextChanged( str )
    -        document.title = str
    -    End Sub
    -    </SCRIPT>
    -    <SCRIPT LANGUAGE=JavaScript>
    -    function TQSimpleAX::ValueChanged( Newvalue )
    -    {
    -        Calendar.Day = Newvalue;
    -    }
    -    </SCRIPT>
    -

    See also The TQAxServer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-example-tetrax.html b/doc/html/qaxserver-example-tetrax.html deleted file mode 100644 index 60b7ada7..00000000 --- a/doc/html/qaxserver-example-tetrax.html +++ /dev/null @@ -1,124 +0,0 @@ - - - - - -A TQt example as a scriptable ActiveX control (executable) - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    A TQt example as a scriptable ActiveX control (executable)

    - - - -This example shows how to turn an existing TQt application -into an ActiveX control server. The ActiveX control is based -on the TQt tetrix example. -

    It demonstrates the use of the default factory provied by the -TQAXFACTORY_DEFAULT macro, and of TQAxFactory::isServer(). -

    The code changes for the tetrix GUI are minimal (a property score, -a signal gameOver and a slot startGame) and provide a better scripting -interface for the use of the control in a web environment. -

    The implementation of the ActiveX server functionality is only in the -tetrax.cpp file. - - -The default implementation of the TQAxFactory is used through the -TQAXFACTORY_DEFAULT macro, and exports the TQTetrax object specifying -the five unique IDs required by COM to instantiate and communicate with -the server. -

        #include "qtetrax.h"
    -    #include "qdragapp.h"
    -    #include "ntqfont.h"
    -
    -    #include <qaxfactory.h>
    -
    -    TQAXFACTORY_DEFAULT( TQTetrax,
    -                "{852558AD-CBD6-4f07-844C-D1E8983CD6FC}",
    -                "{2F5D0068-772C-4d1e-BCD2-D3F6BC7FD315}",
    -                "{769F4820-9F28-490f-BA50-5545BD381DCB}",
    -                "{5753B1A8-53B9-4abe-8690-6F14EC5CA8D0}",
    -                "{DE2F7CE3-CFA7-4938-A9FC-867E2FEB63BA}" )
    -
    The main entry point method instantiates a TQApplication object, and -creates the GUI only if the program is not running as an ActiveX server (ie. -the program has been started by the user, not by COM). -
        int main( int argc, char **argv )
    -    {
    -        TQApplication::setColorSpec( TQApplication::CustomColor );
    -        TQDragApplication a(argc,argv);
    -
    -        TQTetrax *tetrax = 0;
    -        if ( !TQAxFactory::isServer() ) {
    -            tetrax = new TQTetrax;
    -            tetrax->setCaption("Tetrax");
    -            a.setMainWidget(tetrax);
    -            tetrax->setCaption("TQt Example - Tetrax");
    -            tetrax->show();
    -        }
    -
    The server enters the application event loop, and destroys the GUI before exiting. -
            int res = a.exec();
    -        delete tetrax;
    -        return res;
    -    }
    -
    -

    To build the example you must first build the TQAxServer library. Then run qmake and your make tool in -examples/tetrix. -


    -

    The demonstration requires your -Web browser to support ActiveX controls, and scripting to be enabled. -

    - -The "Tetrix" control is embedded using the <object> tag. Note that the -dimensions of the control are provided explicitely, as the control itself -does not use TQt's layout engine. -

        <object ID="TQTetrax" width=550 height=370
    -        CLASSID="CLSID:852558AD-CBD6-4f07-844C-D1E8983CD6FC"
    -        CODEBASE=http://www.trolltech.com/demos/tetrax.cab>
    -        <PARAM NAME="score" VALUE="0">
    -    [Object not available! Did you forget to build and register the server?]
    -    </object>
    -
    An HTML button is added to start the game. -
        <form>
    -        <input type="button" value="Start Game..."
    -            onClick="TQTetrax.startGame()">
    -    </form>
    -
    And an event handler for the gameOver() event is implemented in JavaScript -to display a simple message box. -
        <SCRIPT LANGUAGE=JavaScript>
    -    function TQTetrax::gameOver()
    -    {
    -        alert( "GameOver!" );
    -    }
    -    </SCRIPT>
    -

    See also The TQAxServer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-example-wrapper.html b/doc/html/qaxserver-example-wrapper.html deleted file mode 100644 index 6cf10c48..00000000 --- a/doc/html/qaxserver-example-wrapper.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - -Standard TQt widgets as ActiveX controls (in-process) - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Standard TQt widgets as ActiveX controls (in-process)

    - - - -The ActiveX controls in this example are the standard button -classes TQPushButton, TQCheckBox and TQRadioButton as provided by -TQt. -

    It demonstrates how to export existing TQWidget classes as ActiveX -controls, and the use of TQAxFactory together with the TQAXFACTORY_EXPORT -macro. -

    - -

        class ActiveTQtFactory : public TQAxFactory
    -    {
    -    public:
    -        ActiveTQtFactory( const TQUuid &lib, const TQUuid &app )
    -            : TQAxFactory( lib, app )
    -        {}
    -        TQStringList featureList() const
    -        {
    -            TQStringList list;
    -            list << "TQButton";
    -            list << "TQCheckBox";
    -            list << "TQRadioButton";
    -            list << "TQPushButton";
    -            list << "TQToolButton";
    -            return list;
    -        }
    -        TQWidget *create( const TQString &key, TQWidget *parent, const char *name )
    -        {
    -            if ( key == "TQButton" )
    -                return new TQButton( parent, name );
    -            if ( key == "TQCheckBox" )
    -                return new TQCheckBox( parent, name );
    -            if ( key == "TQRadioButton" )
    -                return new TQRadioButton( parent, name );
    -            if ( key == "TQPushButton" )
    -                return new TQPushButton( parent, name );
    -            if ( key == "TQToolButton" ) {
    -                TQToolButton *tb = new TQToolButton( parent, name );
    -                tb->setPixmap( TQPixmap(fileopen) );
    -                return tb;
    -            }
    -
    -            return 0;
    -        }
    -        TQMetaObject *metaObject( const TQString &key ) const
    -        {
    -            if ( key == "TQButton" )
    -                return TQButton::staticMetaObject();
    -            if ( key == "TQCheckBox" )
    -                return TQCheckBox::staticMetaObject();
    -            if ( key == "TQRadioButton" )
    -                return TQRadioButton::staticMetaObject();
    -            if ( key == "TQPushButton" )
    -                return TQPushButton::staticMetaObject();
    -            if ( key == "TQToolButton" )
    -                return TQToolButton::staticMetaObject();
    -
    -            return 0;
    -        }
    -        TQUuid classID( const TQString &key ) const
    -        {
    -            if ( key == "TQButton" )
    -                return "{23F5012A-7333-43D3-BCA8-836AABC61B4A}";
    -            if ( key == "TQCheckBox" )
    -                return "{6E795DE9-872D-43CF-A831-496EF9D86C68}";
    -            if ( key == "TQRadioButton" )
    -                return "{AFCF78C8-446C-409A-93B3-BA2959039189}";
    -            if ( key == "TQPushButton" )
    -                return "{2B262458-A4B6-468B-B7D4-CF5FEE0A7092}";
    -            if ( key == "TQToolButton" )
    -                return "{7c0ffe7a-60c3-4666-bde2-5cf2b54390a1}";
    -
    -            return TQUuid();
    -        }
    -        TQUuid interfaceID( const TQString &key ) const
    -        {
    -            if ( key == "TQButton" )
    -                return "{6DA689FB-928F-423C-8632-678C3D3606DB}";
    -            if ( key == "TQCheckBox" )
    -                return "{4FD39DD7-2DE0-43C1-A8C2-27C51A052810}";
    -            if ( key == "TQRadioButton" )
    -                return "{7CC8AE30-206C-48A3-A009-B0A088026C2F}";
    -            if ( key == "TQPushButton" )
    -                return "{06831CC9-59B6-436A-9578-6D53E5AD03D3}";
    -            if ( key == "TQToolButton" )
    -                return "{6726080f-d63d-4950-a366-9bf33e5cdf84}";
    -
    -            return TQUuid();
    -        }
    -        TQUuid eventsID( const TQString &key ) const
    -        {
    -            if ( key == "TQButton" )
    -                return "{73A5D03F-8ADE-4D84-9AE0-A93B4F85A130}";
    -            if ( key == "TQCheckBox" )
    -                return "{FDB6FFBE-56A3-4E90-8F4D-198488418B3A}";
    -            if ( key == "TQRadioButton" )
    -                return "{73EE4860-684C-4A66-BF63-9B9EFFA0CBE5}";
    -            if ( key == "TQPushButton" )
    -                return "{3CC3F17F-EA59-4B58-BBD3-842D467131DD}";
    -            if ( key == "TQToolButton" )
    -                return "{f4d421fd-4ead-4fd9-8a25-440766939639}";
    -
    -            return TQUuid();
    -        }
    -    };
    -
    The factory implementation returns the list of supported controls, -creates controls on request and provides information about the unique -IDs of the COM classes and interfaces for each control. -

        TQAXFACTORY_EXPORT( ActiveTQtFactory, "{3B756301-0075-4E40-8BE8-5A81DE2426B7}", "{AB068077-4924-406a-BBAF-42D91C8727DD}" )
    -
    The factory is exported using the TQAXFACTORY_EXPORT macro. -

    To build the example you must first build the TQAxServer library. Then run qmake and your make tool in -examples/wrapper. -


    -

    The demonstration requires your -WebBrowser to support ActiveX controls, and scripting to be enabled. -

    - -

        <SCRIPT LANGUAGE=VBScript>
    -    Sub ToolButton_Clicked()
    -        RadioButton.text = InputBox( "Enter something", "Wrapper Demo" )
    -    End Sub
    -
    -    Sub PushButton_clicked()
    -        MsgBox( "Thank you!" )
    -    End Sub
    -
    -    Sub CheckBox_toggled( state )
    -        if state = 0 then
    -            CheckBox.text = "Check me!"
    -        else
    -            CheckBox.text = "Uncheck me!"
    -        end if
    -    End Sub
    -    </SCRIPT>
    -    <p>
    -    A TQPushButton:<br>
    -    <object ID="PushButton" CLASSID="CLSID:2B262458-A4B6-468B-B7D4-CF5FEE0A7092"
    -    CODEBASE=http://www.trolltech.com/demos/wrapperax.cab>
    -        <PARAM NAME="text" VALUE="Click me!">
    -    [Object not available! Did you forget to build and register the server?]
    -    </object><br>
    -
    -    <p>
    -    A TQCheckBox:<br>
    -    <object ID="CheckBox" CLASSID="CLSID:6E795de9-872d-43cf-a831-496ef9d86c68"
    -    CODEBASE=http://www.trolltech.com/demos/wrapperax.cab>
    -        <PARAM NAME="text" VALUE="Check me!">
    -    [Object not available! Did you forget to build and register the server?]
    -    </object><br>
    -
    -    <p>
    -    A TQToolButton:<br>
    -    <object ID="ToolButton" CLASSID="CLSID:7c0ffe7a-60c3-4666-bde2-5cf2b54390a1"
    -    CODEBASE=http://www.trolltech.com/demos/wrapperax.cab>
    -    [Object not available! Did you forget to build and register the server?]
    -    </object><br>
    -
    -    <p>
    -    A TQRadioButton:<br>
    -    <object ID="RadioButton" CLASSID="CLSID:afcf78c8-446c-409a-93b3-ba2959039189"
    -    CODEBASE=http://www.trolltech.com/demos/wrapperax.cab>
    -        <PARAM NAME="text" VALUE="Tune me!">
    -    [Object not available! Did you forget to build and register the server?]
    -    </object><br>
    -

    See also The TQAxServer Examples. - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver-examples.html b/doc/html/qaxserver-examples.html deleted file mode 100644 index c282b862..00000000 --- a/doc/html/qaxserver-examples.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - -The TQAxServer Examples - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    The TQAxServer Examples

    - - - -The following example programs illustrate the development of ActiveX -controls using the the TQAxServer module. -

    For more information see the TQAxServer -documentation. - -

    -
    Walkthrough: Using TQt objects in Microsoft .NET -
    TQt Widget Hierarchy (in-process) -
    Menubar merging -
    Two simple TQt widgets (in-process) -
    TQt' OpenGL widgets as an ActiveX (executable) -
    A simple ActiveTQt control (executable) -
    A TQt example as a scriptable ActiveX control (executable) -
    Standard TQt widgets as ActiveX controls (in-process) -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxserver.html b/doc/html/qaxserver.html deleted file mode 100644 index 821d2876..00000000 --- a/doc/html/qaxserver.html +++ /dev/null @@ -1,1073 +0,0 @@ - - - - - -The TQAxServer Module - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    The TQAxServer Module

    - - -

    -

    -

    - - -

    Introduction -

    -

    The TQAxServer module provides a static library implementing the -functions required to turn a standard TQt binary into an ActiveX -control server. -

    This module is part of the ActiveTQt - framework. (To incorporate ActiveX controls in a TQt -application see the TQAxContainer - module.) -

    The module consists of three classes -

      -
    • TQAxFactory defines a factory for the creation of ActiveX components. -
    • TQAxBindable provides an interface between the TQt widget and the -ActiveX control. -
    • TQAxAggregated can be subclassed to implement additional COM interfaces. -
    -

    Some example implementations -of ActiveX controls are provided. -

    Building the library -

    -

    In the activeqt directory (usually TQTDIR/extensions/activeqt) -enter the control subdirectory and run qmake to generate the -makefile, and use the make tool (nmake for VC++, make for Borland) -to build the library. The library qaxserver.lib will be linked into -TQTDIR/lib. -

    Using the library -

    -

    To turn a standard TQt application into an ActiveX server using the -TQAxServer library you must add activeqt as a CONFIG setting -in your .pro file. -

    An out-of-process executable server is generated from a .pro -file like this: -

    -    TEMPLATE = app
    -    CONFIG  += qt activeqt
    -
    -    RC_FILE  = qaxserver.rc
    -    ...
    -    
    - -

    To build an in-process server, use a .pro file like this: -

    -    TEMPLATE = lib
    -    CONFIG  += qt activeqt dll
    -    
    -    DEF_FILE = qaxserver.def
    -    RC_FILE  = qaxserver.rc
    -    ...
    -    
    - -

    The files qaxserver.rc and qaxserver.def are part of the -framework and can be used from their usual location (specify a -path in the .pro file), or copied into the project directory. -You can modify these files as long as it includes any file as the -type library entry, ie. you can add version information or use a -different toolbox icon. -

    The activeqt configuration will cause the qmake tool to add the -required build steps to the build system: -

      -
    • link the binary against qaxserver.lib -
    • generate an interface definition and link the type library into -the binary -
    • register the server -
    -

    Additionally you can specify a version number using the VERSION -variable, e.g. -

    -    TEMPLATE = lib
    -    VERSION = 2.5
    -    ...
    -    
    - -The version number specified will be used as the version of the type -library and of the server when registering. -

    Out-of-process vs. In-process -

    -

    Whether your ActiveX server should run as a stand-alone executable -or as a shared library in the client process depends mainly on the -type of controls you want to provide in the server. -

    An executable server has the advantage of being able to run as a -stand-alone application, but adds considerable overhead to the -communication between the ActiveX client and the control. If the -control has a programming error only the server process running -the control will crash, and the client application will probably -continue to run. -

    An in-process server is usually smaller and has faster startup -time. The communication between client and server is done directly -through virtual function calls and does not introduce the overhead -required for remote procedure calls. But if the server crashes the -client application is likely to crash as well. -

    Both server types can use TQt either as a shared library, or -statically linked into the server binary. -

    The TQAxServer build system -

    -

    To be able to build ActiveX controls with TQt, the build system -must be extended to include some additional build steps that are -used when the .pro file includes activeqt in the CONFIG -settings. The resulting makefile will: -

      -
    • Link the executable against qaxserver.lib instead of qtmain.lib -
    • Call the resulting executable with the -dumpidl parameter to -generate an IDL description of the ActiveX controls provided by -the server. -
    • Compile the IDL into a type library using the MIDL tool -
    • Attach the resulting type library as a binary resource to the server -executable -
    -

    Attaching resources to an executable is not supported by -Windows 95/98/ME, but a server built on -Windows NT/2000/XP will work on those versions. -

    Typical build problems -

    -

    The compiler/linker errors listed are based on those issued by the -Microsoft Visual C++ 6.0 compiler. -

    Compiler errors -

    -

    "No overloaded function takes 2 parameters" -
    -

    When the error occurs in code that uses the TQAXFACTORY_DEFAULT -macro, the widget class had no constructor that can be used by the -default factory. Either add a standard widget constructor or -implement a custom factory that doesn't require one. -

    When the error occurs in code that uses the TQAXFACTORY_EXPORT -macro, the TQAxFactory subclass had no appropriate constructor. -Provide a public class constructor like -

    -    MyFactory( const TQUuid &, const TQUuid & );
    -    
    - -for your factory class. -

    "syntax error: bad suffix on number" -
    -

    The unique identifiers have not been passed as strings into the -TQAXFACTORY_EXPORT or TQAXFACTORY_DEFAULT macro. -

    Linker errors -

    -

    "unresolved external symbol _ucm_instantiate" -
    -

    The server does not export an implementation of a TQAxFactory. Use -the TQAXFACTORY_EXPORT macro in one of the project's -implementation files to instantiate and export a factory, or use -the TQAXFACTORY_DEFAULT macro to use the default factory. -

    "_ucm_initialize already defined in ..." -
    -

    The server exports more than one implementation of a TQAxFactory, -or exports the same implementation twice. If you use the default -factory, the TQAXFACTORY_DEFAULT macro must only be used once in -the project. Use a custom TQAxFactory implementation and the TQAXFACTORY_EXPORT macro if the server provides multiple ActiveX -controls. -

    "cannot open file ... " -
    -

    The ActiveX server could not shut down properly when the last -client stopped using it. It usually takes about two seconds for -the application to terminate, but you might have to use the task -manager to kill the process (e.g. when a client doesn't release -the controls properly). -

    Postprocessing and runtime errors -

    -

    The ActiveTQt build system performs four commands after the linking -of the binary to make it into an ActiveX server. -

      -
    • Call the server to dump the IDL for the controls -
    • Compile the IDL into a type library -
    • Attach the type library as a binary resource to the server -
    • Register the server -
    -

    For this to work the server has to meet some requirements: -

      -
    • All controls exposed can be created with nothing but a TQApplication -instance being present -
    • The initial linking of the server includes a temporary type -library resource -
    • All dependencies required to run the server are in the system path -(or in the path used by the calling environment; note that Visual -Studio has it's own set of environment variables listed in the -Tools|Options|Directories dialog). -
    -

    If those requirements are not met one ore more of the following -errors are likely to occure: -

    The server executable crashes -
    -

    To generate the IDL the widgets exposed as ActiveX controls need to -be instantiated (the constructor is called). At this point, nothing -else but a TQApplication object exists. Your widget constructor must -not rely on any other objects to be created, e.g. it should check for -null-pointers. -

    To debug your server run it with -dumpidl outputfile and check where -it crashes. -

    Note that no functions of the control are called. -

    The server executable is not a valid Win32 application -
    -

    Attaching the type library corrupted the server binary. This is a -bug in Windows and happens only with release builds. -

    The first linking step has to link a dummy type library into the -executable that can later be replaced by idc. Add a resource file -with a type library to your project as demonstrated in the examples. -

    "Unable to Locate DLL" -
    -

    The build system needs to run the server executable to generate -the interface definition, and to register the server. If a dynamic -link library the server links against is not in the path this -might fail (e.g. Visual Studio calls the server using the -enivronment settings specified in the "Directories" option). Make -sure that all DLLs required by your server are located in a -directory that is listed in the path as printed in the error -message box. -

    The Server does not respond -
    -

    If the system is unable to start the server (check with the task -manager whether the server runs a process), make sure that no DLL -the server depends on is missing from the system path (e.g. the TQt -DLL!). Use a dependency walker to view all dependencies of the server -binary. -

    If the server runs (e.g. the task manager lists a process), see -the following section for information on debugging your server. -

    The Object cannot be created -
    -

    If the server could be built and registered correctly during the build -process, but the object cannot be initiliazed e.g. by the OLE/COM Object -Viewer application, make sure that no DLL the server depends on is -missing from the system path (e.g. the TQt DLL). Use a dependency walker -to view all dependencies of the server binary. -

    If the server runs, see the following section for information on -debugging your server. -

    Debugging runtime errors -

    -

    To debug an in-process server in Visual Studio, set the server project -as the active project, and specify a client "executable for debug -session" in the project settings (e.g. use the ActiveX Test Container). -You can set breakpoints in your code, and also step into ActiveTQt and -TQt code if you installed the debug version. -

    To debug an executable server, run the application in a debugger -and start with the command line parameter "-activex". Then start -your client and create an instance of your ActiveX control. COM -will use the existing process for the next client trying to create -an ActiveX control. -

    Implementing Controls -

    -

    To implement an ActiveX control with TQt, create a subclass of TQWidget -or any existing TQWidget subclass: -

    -    #include <tqwidget.h>
    -
    -    class MyActiveX : public TQWidget
    -    {
    -        TQ_OBJECT
    -    
    - -

    The TQ_OBJECT macro is required to provide the meta object information -about the widget to the ActiveTQt framework. -Use the TQ_PROPERTY macro to declare properties for the ActiveX control: -

    -        TQ_PROPERTY( int value READ value WRITE setValue )
    -    
    - -

    Declare a standard TQWidget constructor taking a parent widget and a name, -and functions, signals and slots like any normal TQWidget. -(1) -

    -    public:
    -        MyActiveX( TQWidget *parent = 0, const char *name = 0 )
    -        ...
    -        
    -        int value() const;
    -
    -    public slots:
    -        void setValue( int );
    -        ...
    -       
    -    signals:
    -        void valueChange( int );
    -        ...
    -
    -    };
    -    
    - -

    The ActiveTQt framework will expose properties and public slots as ActiveX -properties and methods, and signals as ActiveX events, and convert between -the TQt data types and the equivalent COM data types. -

    Data Types -

    -

    The TQt data types that are supported for properties are: -

    - - - - - - - - - - - - - - - - - - - - - - -
    TQt data type -COM property -
    bool -VARIANT_BOOL -
    TQString -BSTR -
    TQCString -BSTR -
    int -int -
    uint -unsigned int -
    double -double -
    TQ_LLONG -CY -
    TQ_ULLONG -CY -
    TQColor -OLE_COLOR -
    TQDate -DATE -
    TQDateTime -DATE -
    TQTime -DATE -
    TQFont -IFontDisp* -
    TQPixmap -IPictureDisp* -(2) -
    TQVariant -VARIANT -
    TQValueList<TQVariant> -SAFEARRAY(VARIANT) -
    TQStringList -SAFEARRAY(BSTR) -
    TQByteArray -SAFEARRAY(BYTE) -
    TQRect -User defined type -
    TQSize -User defined type -
    TQPoint -User defined type -
    -

    The TQt data types that are supported for parameters in signals and -slots are: -

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    TQt data type -COM parameter -
    bool -[in] VARIANT_BOOL -
    bool& -[in, out] VARIANT_BOOL* -
    TQString, const TQString& -[in] BSTR -
    TQString& -[in, out] BSTR* -
    TQCString, const TQCString& -[in] BSTR -
    TQString& -[in, out] BSTR* -
    int -[in] int -
    int& -[in,out] int -
    uint -[in] unsigned int -
    uint& -[in, out] unsigned int* -
    double -[in] double -
    double& -[in, out] double* -
    TQColor, const TQColor& -[in] OLE_COLOR -
    TQColor& -[in, out] OLE_COLOR* -
    TQDate, const TQDate& -[in] DATE -
    TQDate& -[in, out] DATE* -
    TQDateTime, const TQDateTime& -[in] DATE -
    TQDateTime& -[in, out] DATE* -
    TQFont, const TQFont& -[in] IFontDisp* -
    TQFont& -[in, out] IFontDisp** -
    TQPixmap, const TQPixmap& -[in] IPictureDisp* -
    TQPixmap& -[in, out] IPictureDisp** -
    TQValueList<TQVariant>, const TQValueList<TQVariant>& -[in] SAFEARRAY(VARIANT) -
    TQValueList<TQVariant>& -[in, out] SAFEARRAY(VARIANT)* -
    TQStringList, const TQStringList& -[in] SAFEARRAY(BSTR) -
    TQStringList& -[in, out] SAFEARRAY(BSTR)* -
    TQByteArray, const TQByteArray& -[in] SAFEARRAY(BYTE) -
    TQByteArray& -[in, out] SAFEARRAY(BYTE)* -
    TQObject* -[in] IDispatch* -
    TQRect& -(3) -[in, out] struct TQRect (user defined) -
    TQSize& -[in, out] struct TQSize (user defined) -
    TQPoint& -[in, out] struct TQPoint (user defined) -
    -

    Also supported are exported enums and sets (see TQ_ENUMS and TQ_SETS). -The in-parameter types are also supported as return values. -

    Properties and signals/slots that have parameters using any other -data types are ignored by the TQActiveX framework. -

    Sub-Objects -

    -

    COM objects can have multiple sub-objects that can represent a sub element -of the COM object. A COM object representing a multi-document spread sheet -application can for example provide one sub-object for each spread sheet. -

    Any TQObject subclass can be used as the type for a sub object in ActiveX. The -TQAxFactory implementation (see below) needs to return the classname of the -sub type as one key in the featureList() implementation, as well as the IDs -for the COM class, the interface and event interface of that type. Then the -type can be used as e.g. the return value or paramter of a slot. -

    Property Notification -

    -

    To make the properties bindable for the ActiveX client, use multiple -inheritance from the TQAxBindable class: -

    -

    -    #include <tqwidget.h>
    -    #include <qaxbindable.h>
    -
    -    class MyActiveX : public TQWidget, public TQAxBindable
    -    {
    -        TQ_OBJECT
    -    
    - -When implementing the property write functions, use the -TQAxBindable class's requestPropertyChange() and propertyChanged() -functions to allow ActiveX clients to bind to the control -properties. -(4) -

    Serving Controls -

    -

    To make an ActiveX control available to the COM system it must -be registered in the system registry using five unique -identifiers. These identifiers are provided by tools like guidgen or uuidgen. The registration information allows COM to -localize the binary providing a requested ActiveX control, -marshall remote procedure calls to the control and read type -information about the methods and properties exposed by the -control. -

    To create the ActiveX control when the client asks for it the -server must export an implementation of a TQAxFactory. Use the -default factory when the server provides only a single ActiveX -control, and implement a subclass of TQAxFactory to provide -multiple ActiveX controls. The default factory is available -through a macro that takes the identifiers COM requires to locate -the ActiveX control on the target system: -

    -    TQAXFACTORY_DEFAULT ( MyActiveX,
    -                "{ad90301a-849e-4e8b-9a91-0a6dc5f6461f}",
    -                "{87a5b65e-7fa9-4dc6-a176-47295988dcbd}",
    -                "{a6130ae9-8327-47ec-815b-d0b45a0d6e5e}",
    -                "{26c4e136-4e23-4347-af37-faf933b027e9}",
    -                "{a8f21901-7ff7-4f6a-b939-789620c03d83}" )
    -    
    - -

    The TQAxFactory class documentation explains -how to use this macro, and how to implement and use custom factories. -

    For out-of-process executable servers you can implement a main() -function to instantiate a TQApplication object and enter the event -loop just like any normal TQt application. By default the -application will start as a standard TQt application, but if you -pass -activex on the command line it will start as an ActiveX -server. Use TQAxFactory::isServer() to create and run a standard -application interface, or to prevent a stand-alone execution: -

    -

    -    #include <ntqapplication.h>
    -    #include <qaxfactory.h>
    -
    -    int main( int argc, char **argv )
    -    {
    -        TQApplication app( argc, argv );
    -        if ( !TQAxFactory::isServer() ) {
    -            // create and show main window...
    -        }
    -        return app.exec();
    -    }
    -    
    - -This is however not necessary as ActiveTQt provides a default implementation -of a main function. The default implemenation calls TQAxFactory::startServer(), -creates a TQApplication instance and calls exec(). -

    To build the ActiveX server executable run qmake to generate the makefile, and use your compiler's -make tool as for any other TQt application. The make process will -also register the controls in the system registry by calling the -resulting executable with the -regserver command line option. -

    If the ActiveX server is an executable, the following command line -options are supported: -

    -
    Option Result -
    -regserver Registers the server in the system registry -
    -unregserver Unregisters the server from the system registry -
    -activex Starts the application as an ActiveX server -
    -dumpidl <file> -version x.y Writes the server's IDL to the -specified file. The type library will have version x.y -
    -

    In-process servers can be registered using the regsvr32 tool available -on all Windows systems. -

    Distributing TQAxServer binaries -

    -

    ActiveX servers written with TQt can use TQt either as a shared -library, or have TQt linked statically into the binary. Both ways -will produce rather large packages (either the server binary -itself becomes large, or you have to ship the TQt DLL). -

    Installing stand-alone Servers -

    -

    When your ActiveX server can also run as a stand-alone application, -run the server executable with the -regserver command line -parameter after installing the executable on the target system. -After that the controls provided by the server will be available to -ActiveX clients. -

    Installing In-process Servers -

    -

    When your ActiveX server is part of an installation package, use the -regsvr32 tool provided by Microsoft to register the controls on -the target system. If this tool is not present, load the DLL into -your installer process, resolve the DllRegisterServer symbol and -call the function: -

    -    HMODULE dll = LoadLibrary( "myserver.dll" );
    -    typedef HRESULT(__stdcall *DllRegisterServerProc)();
    -    DllRegisterServerProc DllRegisterServer = 
    -        (DllRegisterServerProc)GetProcAddress( dll, "DllRegisterServer" );
    -
    -    HRESULT res = E_FAIL;
    -    if ( DllRegisterServer )
    -        res = DllRegisterServer();
    -    if ( res != S_OK )
    -        // error handling
    -    
    - -

    Distributing Servers over the Internet -

    -

    If you want to use controls in your server in web-pages you need to -make the server available to the browser used to view your page, and -you need to specify the location of the server package in your page. -

    To specify the location of a server, use the CODEBASE attribute in -the OBJECT tag of your web-site. The value can point to the server -file itself, to an INF file listing other files the server requires -(e.g. the TQt DLL), or a compressed CAB archive. -

    INF and CAB files are documented in almost every book available about -ActiveX and COM programming as well as in the MSDN library and various -other Online resources. The examples include INF files that can be used -to build CAB archives: -

    - -

        [version]
    -        signature="$CHICAGO$"
    -        AdvancedINF=2.0
    -     [Add.Code]
    -        simpleax.exe=simpleax.exe
    -     [simpleax.exe]
    -        file-win32-x86=thiscab
    -        clsid={DF16845C-92CD-4AAB-A982-EB9840E74669}
    -        RegisterServer=yes
    -
    -

    The CABARC tool from Microsoft can easily generate CAB archives: -

     cabarc N simpleax.cab simpleax.exe simple.inf 
    - -

    The INF files assume a static build of TQt, so no dependencies to other DLLs -are listed in the INF files. To distribute an ActiveX server depending on -DLLs you must add the dependencies, and provide the library files -with the archive. -

    Using the Controls -

    -

    To use the ActiveX controls, e.g. to embed them in a web page, use -the <object> HTML tag. -

    -    <object ID="MyActiveX1" CLASSID="CLSID:ad90301a-849e-4e8b-9a91-0a6dc5f6461f">
    -       ...
    -    <\object>
    -    
    - -

    To initialize the control's properties, use -

    -    <object ID=...>
    -        <param name="name" value="value">
    -    <\object>
    -    
    - -

    If the web browser supports scripting use JavaScript, VBScript and -forms to script the control. The examples include demonstration HTML pages for the -example controls. -

    Supported and Unsupported ActiveX clients -

    -

    The following is largly based on our own experiements with ActiveX -controls and client applications, and is by no means complete. -

    Supported Clients -

    -

    These standard applications work with ActiveX controls developed with -ActiveTQt. Note that some clients support only in-process controls. -

      -
    • Internet Explorer -
    • Microsoft ActiveX Control Test Container -
    • Microsoft Visual Studio 6.0 -
    • Microsoft Visual Studio.NET/2003 -
    • Microsoft Visual Basic 6.0 -
    • MFC- and ATL-based containers -
    • Sybase PowerBuilder -
    • ActiveTQt based containers -
    -

    Microsoft Office applications are supported, but you need to register -the controls as "Insertable" objects. Reimplement TQAxFactory::registerClass -to add this attribute to the COM class, or set the "Insertable" class info -for your class to "yes" using the TQ_CLASSINFO macro. -

    Unsupported Clients -

    -

    We have not managed to make ActiveTQt based COM objects work with the -following client applications. -

      -
    • Borland C++ Builder (Versions 5 and 6) -
    • Borland Delphi -
    -

    Enhanced features -

    -

    Fewer methods and properties -

    -

    By default all ActiveX controls expose not only their own methods -and properties to ActiveX clients, but also those of all super -classes, including TQWidget. -

    This can be controlled by reimplementing TQAxFactory's -exposeToSuperClass() function. Reimplement the function to return -the last (furthest up the inheritance hierarchy) super class that -should be exposed: -

    -    TQString MyFactory::exposeToSuperClass( const TQString &key ) const
    -    {
    -        if ( key == "SmallActiveX" )
    -            return key;
    -        return TQAxFactory::exposeToSuperClass( key );
    -    }
    -    
    - -

    The SmallActiveX control will only expose its own functions and -properties to clients, while all other ActiveX controls provided -by this factory will expose their own functions and properties and -also those of all their super classes including TQWidget. The -SmallActiveX class can of course propagate some of the TQWidget -functions and properties into its own interface. -

    Class Information and Tuning -

    -

    An alternative way to reimplementing TQAxFactory to have more control -about how objects are registered or exposed is to provide class -specific information using the TQ_CLASSINFO macro, which is part of -TQt's meta object system. -

    - - - - - - - - - - - - - - - -
    Key -Meaning of value -
    Version -The version of the class (1.0 is default) -
    Description -A string describing the class. -
    ClassID -The class ID. -You must reimplement TQAxFactory::classID if not specified. -
    InterfaceID -The interface ID. -You must reimplement TQAxFactory::interfaceID if not specified. -
    EventsID -The event interface ID. -No signals are exposed as COM events if not specified. -
    DefaultProperty -The property specified represents the default property of this class. -Ie. the default property of a push button would be "text". -
    DefaultSignal -The signal specified respresents the default signal of this class. -Ie. the default signal of a push button would be "clicked". -
    LicenseKey -Object creation requires the specified license key. The key can be -empty to require a licensed machine. By default classes are not -licensed. Also see the following section. -
    StockEvents -Objects expose stock events if value is "yes". -See TQAxFactory::hasStockEvents() -
    ToSuperClass -Objects expose functionality of all super classes up to and -including the class name in value. -See TQAxFactory::exposeToSuperClass() -
    Insertable -If the value is "yes" the class is registered to be "Insertable" -and will be listed in OLE 2 containers (ie. Microsoft Office). This -attribute is not be set by default. -
    Aggregatable -If the value is "no" the class does not support aggregation. By -default aggregation is supported. -
    Creatable -If the value is "no" the class cannot be created by the client, -and is only available through the API of another class (ie. the -class is a sub-type). -
    RegisterObject -If the value is "yes" objects of this class are registered with -OLE and accessible from the running object table (ie. clients -can connect to an already running instance of this class). This -attribute is only supported in out-of-process servers. -
    -

    Note that both keys and values are case sensitive. -

    The following declares version 2.0 of a class that exposes only its -own API, and is available in the "Insert Objects" dialog of Microsoft -Office applications. -

    -

    -    class MyActiveX : public TQWidget
    -    {
    -        TQ_OBJECT
    -        TQ_CLASSINFO("Version", "2.0")
    -        TQ_CLASSINFO("ClassID", "{7a4cffd8-cbcd-4ae9-ae7e-343e1e5710df}")
    -        TQ_CLASSINFO("InterfaceID", "{6fb035bf-8019-48d8-be51-ef05427d8994}")
    -        TQ_CLASSINFO("EventsID", "{c42fffdf-6557-47c9-817a-2da2228bc29c}")
    -        TQ_CLASSINFO("Insertable", "yes")
    -        TQ_CLASSINFO("ToSuperClass", "MyActiveX")
    -
    -        TQ_PROPERTY( ...
    -    public:
    -        MyActiveX(TQWidget *parent = 0, const char *name = 0);
    -
    -        ...
    -    };
    -    
    - -

    Developing licensed components -

    -

    If you develop components you might want to control who is able to instantiate -those components. Since the server binary can be shipped to and registered on -any client machine it is possible for anybody to use those components in his -own software. -

    Licensing components can be done using a variety of techniques, e.g. the code -creating the control can provide a license key, or the machine on which the -control is supposed to run needs to be licensed. -

    To mark a TQt class as licensed specify a "LicenseKey" using the TQ_CLASSINFO -macro. - -

    -    class MyLicensedControl : public TQWidget
    -    {
    -        TQ_OBJECT
    -        TQ_CLASSINFO("LicenseKey", "<key string>")
    -    ...
    -    };
    -    
    - -The key is required to be able to create an instance of MyLicensedControl -on a machine that is not licensed itself. The licensed developer can now -redistributes the server binary with his application, which creates the control -using the value of "LicenseKey", while users of the application cannot create -the control without the license key. -

    If a single license key for the control is not sufficient (ie. you want -differnet developers to receive different license keys) you can specify an -empty key to indicate that the control requires a license, and reimplement -TQAxFactory::validateLicenseKey() to verify that a license exists on the -system (ie. through a license file). -

    More Interfaces -

    -

    ActiveX controls provided by ActiveTQt servers support a minimal set of COM -interfaces to implement the OLE specifications. When the ActiveX class inherits -from the TQAxBindable class it can also implement additional COM interfaces. -

    Create a new subclass of TQAxAggregated and use multiple inheritance -to subclass additional COM interface classes. -

    -    class AxImpl : public TQAxAggregated, public ISomeCOMInterface
    -    {
    -    public:
    -        AxImpl() {}
    -
    -        long queryInterface( const TQUuid &iid, void **iface );
    -
    -        // IUnknown
    -        TQAXAGG_IUNKNOWN
    -
    -        // ISomeCOMInterface
    -        ...
    -    }
    -    
    - -

    Reimplement the queryInterface() function to support the additional -COM interfaces. -

    -    long AxImpl::queryInterface( const TQUuid &iid, void **iface )
    -    {
    -        *iface = 0;
    -        if ( iid == IID_ISomeCOMInterface )
    -            *iface = (ISomeCOMInterface*)this;
    -        else
    -            return E_NOINTERFACE;
    -
    -        AddRef();
    -        return S_OK;
    -    }
    -    
    - -

    Since ISomeCOMInterface is a subclass of IUnknown you will have -to implement the QueryInterface, AddRef and Release functions. -Use the TQAXAGG_IUNKNOWN macro in your class definition to do that. If -you implement the IUnknown functions manually, delegate the calls to the -interface pointer returned by the controllingUnknown() function, e.g. -

    -    HRESULT AxImpl::QueryInterface( REFIID iid, void **iface )
    -    {
    -        return controllingUnknown()->QueryInterface( iid, iface );
    -    }
    -    
    - -Do not support the IUnknown interface itself in your queryInterface() -implementation. -

    Implement the methods of the COM interfaces, and use TQAxAggregated::Object() -if you need to make calls to the TQObject subclass implementing the control. -

    In your TQAxBindable subclass, implement createAggregate() to return -a new object of the TQAxAggregated subclass. -

    -

    -    class MyActiveX : public TQWidget,                       
    -                      public TQAxBindable
    -    {
    -    	TQ_OBJECT
    -    public:
    -        MyActiveX( TQWidget *parent, const char *name = 0 );
    -
    -        TQAxAggregated *createAggregate()
    -        {
    -            return new AxImpl();
    -        }
    -        
    -    };
    -    
    - -
    -
    1. - -If a standard constructor is not present the compiler will issue -an error "no overloaded function takes 2 parameters" when using -the default factory through the TQAXFACTORY_DEFAULT macro. If you -cannot provide a standard constructor you must implement a TQAxFactory custom factory and call the constructor you have in -your implementation of TQAxFactory::create. - Back...
    2. - -COM cannot marshal IPictureDisp accross process boundaries, -so TQPixmap properties cannot be called for out-of-process servers. You -can however marshal the image data via e.g. temporary files. See the -Microsoft -KB article - Q150034 for more information. - Back...
    3. - -OLE needs to marshal user defined types by reference (ByRef), and cannot -marshal them by value (ByVal). This is why const-references and object -parameters are not supported for TQRect, TQSize and TQPoint. Also note that -servers with this datatype require Windows 98 or DCOM 1.2 to be installed. - Back...
    4. - -This is not required, but gives the client more control over -the ActiveX control. - Back...
    - - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxwidget-h.html b/doc/html/qaxwidget-h.html deleted file mode 100644 index 9ecffaad..00000000 --- a/doc/html/qaxwidget-h.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - -qaxwidget.h Include File - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    qaxwidget.h

    - -

    This is the verbatim text of the qaxwidget.h include file. It is provided only for illustration; the copyright remains with Trolltech. -


    -
    -/****************************************************************************
    -** $Id: qt/qaxwidget.h   3.3.8   edited Jan 11 14:46 $
    -**
    -** Declaration of the TQAxWidget class
    -**
    -** Copyright (C) 2001-2007 Trolltech ASA.  All rights reserved.
    -**
    -** This file is part of the Active TQt integration.
    -**
    -** Licensees holding valid TQt Enterprise Edition
    -** licenses for Windows may use this file in accordance with the TQt Commercial
    -** License Agreement provided with the Software.
    -**
    -** This file is not available for use under any other license without
    -** express written permission from the copyright holder.
    -**
    -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    -**
    -** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
    -**   information about TQt Commercial License Agreements.
    -**
    -** Contact info@trolltech.com if any conditions of this licensing are
    -** not clear to you.
    -**
    -**********************************************************************/
    -
    -#ifndef TQAXWIDGET_H
    -#define TQAXWIDGET_H
    -
    -#include "qaxbase.h"
    -#include <tqwidget.h>
    -
    -class TQAxHostWindow;
    -
    -class TQAxWidget : public TQWidget, public TQAxBase
    -{
    -public:
    -    TQMetaObject *metaObject() const;
    -    const char *className() const;
    -    void* tqt_cast( const char* );
    -    bool tqt_invoke( int, TQUObject* );
    -    bool tqt_emit( int, TQUObject* );
    -    bool tqt_property( int, int, TQVariant* );
    -    TQObject* qObject() { return (TQObject*)this; }
    -
    -    TQAxWidget( TQWidget* parent = 0, const char* name = 0, WFlags f = 0 );
    -    TQAxWidget( const TQString &c, TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
    -    TQAxWidget( IUnknown *iface, TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
    -    ~TQAxWidget();
    -
    -    void clear();
    -
    -    TQSize sizeHint() const;
    -    TQSize minimumSizeHint() const;
    -
    -protected:
    -    bool initialize( IUnknown** );
    -    virtual bool createHostWindow( bool );
    -
    -    void enabledChange( bool old );
    -    void paletteChange( const TQPalette &old );
    -    void fontChange( const TQFont &old );
    -    void windowActivationChange( bool old );
    -
    -    void resizeEvent( TQResizeEvent * );
    -    virtual bool translateKeyEvent(int message, int keycode) const;
    -private:
    -    friend class TQAxHostWindow;
    -
    -    TQMetaObject *parentMetaObject() const;
    -
    -    TQAxHostWindow *container;
    -};
    -
    -#endif // TQAXWIDGET_H
    -
    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxwidget-members.html b/doc/html/qaxwidget-members.html deleted file mode 100644 index a46c32ec..00000000 --- a/doc/html/qaxwidget-members.html +++ /dev/null @@ -1,363 +0,0 @@ - - - - - -TQAxWidget Member List - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    Complete Member List for TQAxWidget

    - -

    This is the complete list of member functions for -TQAxWidget, including inherited members. - -

    - -


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qaxwidget.html b/doc/html/qaxwidget.html deleted file mode 100644 index c6cffa6c..00000000 --- a/doc/html/qaxwidget.html +++ /dev/null @@ -1,250 +0,0 @@ - - - - - -TQAxWidget Class - - - - - - - -
    - -Home - | -All Classes - | -Main Classes - | -Annotated - | -Grouped Classes - | -Functions -

    TQAxWidget Class Reference
    [TQAxContainer module]

    - -

    The TQAxWidget class is a TQWidget that wraps an ActiveX control. -More... -

    This class is part of the TQt ActiveTQt Extension. -

    #include <qaxwidget.h> -

    Inherits TQWidget and TQAxBase. -

    List of all member functions. -

    Public Members

    -
      -
    • TQAxWidget ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )
    • -
    • TQAxWidget ( const TQString & c, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )
    • -
    • TQAxWidget ( IUnknown * iface, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )
    • -
    • ~TQAxWidget ()
    • -
    -

    Important Inherited Members

    -
      -
    • TQVariant dynamicCall ( const TQCString & 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 dynamicCall ( const TQCString & function, TQValueList<TQVariant> & vars )
    • -
    • TQAxObject * querySubObject ( const TQCString & name, 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 ( ) )
    • -
    -

    Protected 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. -

    - -The TQAxWidget class is a TQWidget that wraps an ActiveX control. - -

    - -

    A TQAxWidget can be instantiated as an empty object, with the name -of the ActiveX control it should wrap, or with an existing -interface pointer to the ActiveX control. The ActiveX control's -properties, methods and events which only use supported data types, become available as TQt properties, -slots and signals. The base class TQAxBase provides an API to -access the ActiveX directly through the IUnknown pointer. -

    TQAxWidget is a TQWidget and can be used as such, e.g. it can be -organized in a widget hierarchy, receive events or act as an event -filter. Standard widget properties, e.g. enabled are supported, but it depends on the ActiveX -control to implement support for ambient properties like e.g. -palette or font. TQAxWidget tries to provide the necessary hints. -

    Warning: -You can subclass TQAxWidget, but you cannot use the TQ_OBJECT macro -in the subclass (the generated moc-file will not compile), so you -cannot add further signals, slots or properties. This limitation -is due to the metaobject information generated in runtime. To work -around this problem, aggregate the TQAxWidget as a member of the -TQObject subclass. -

    -


    Member Function Documentation

    -

    TQAxWidget::TQAxWidget ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) -

    -Creates an empty TQAxWidget widget and propagates parent, name and f to the TQWidget constructor. To initialize a control, -call setControl. - -

    TQAxWidget::TQAxWidget ( const TQString & c, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) -

    -Creates an TQAxWidget widget and initializes the ActiveX control c. -parent, name and f are propagated to the TQWidget contructor. -

    See also control. - -

    TQAxWidget::TQAxWidget ( IUnknown * iface, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 ) -

    -Creates a TQAxWidget that wraps the COM object referenced by iface. -parent, name and f are propagated to the TQWidget contructor. - -

    TQAxWidget::~TQAxWidget () -

    -Shuts down the ActiveX control and destroys the TQAxWidget widget, -cleaning up all allocated resources. -

    See also clear(). - -

    bool TQAxWidget::createHostWindow ( bool initialized ) [virtual protected] -

    -Creates the client site for the ActiveX control, and returns TRUE if -the control could be embedded successfully, otherwise returns FALSE. -If initialized is TRUE the control has already been initialized. -

    This function is called by initialize(). If you reimplement initialize -to customize the actual control instantiation, call this function in your -reimplementation to have the control embedded by the default client side. -Creates the client site for the ActiveX control, and returns TRUE if -the control could be embedded successfully, otherwise returns FALSE. - -

    TQVariant TQAxBase::dynamicCall ( const TQCString & 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 the COM object's method function, passing the -parameters var1, var1, var2, var3, var4, var5, -var6, var7 and var8, and returns the value returned by -the method, or an invalid TQVariant if the method does not return -a value or when the function call failed. -

    If function is a method of the object the string must be provided -as the full prototype, for example as it would be written in a -TQObject::connect() call. -

    -    activeX->dynamicCall( "Navigate(const TQString&)", "www.trolltech.com" );
    -    
    - -

    Alternatively a function can be called passing the parameters embedded -in the string, e.g. above function can also be invoked using -

    -    activeX->dynamicCall("Navigate(\"www.trolltech.com\");
    -    
    - -All parameters are passed as strings; it depends on the control whether -they are interpreted correctly, and is slower than using the prototype -with correctly typed parameters. -

    If function is a property the string has to be the name of the -property. The property setter is called when var1 is a valid TQVariant, -otherwise the getter is called. -

    -    activeX->dynamicCall( "Value", 5 );
    -    TQString text = activeX->dynamicCall( "Text" ).toString();
    -    
    - -Note that it is faster to get and set properties using -TQObject::property() and TQObject::setProperty(). -

    It is only possible to call functions through dynamicCall() that -have parameters or return values of datatypes supported by -TQVariant. See the TQAxBase class documentation for a list of -supported and unsupported datatypes. If you want to call functions -that have unsupported datatypes in the parameter list, use -queryInterface() to retrieve the appropriate COM interface, and -use the function directly. -

    -    IWebBrowser2 *webBrowser = 0;
    -    activeX->queryInterface( IID_IWebBrowser2, (void**)&webBrowser );
    -    if ( webBrowser ) {
    -        webBrowser->Navigate2( pvarURL );
    -        webBrowser->Release();
    -    }
    -    
    - -

    This is also more efficient. - -

    Example: qutlook/centralwidget.cpp. -

    TQVariant TQAxBase::dynamicCall ( const TQCString & function, TQValueList<TQVariant> & vars ) -

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

    Calls the COM object's method function, passing the -parameters in vars, and returns the value returned by -the method. If the method does not return a value or when -the function call failed this function returns an invalid -TQVariant object. -

    The TQVariant objects in vars are updated when the method has -out-parameters. - -

    TQAxObject * TQAxBase::querySubObject ( const TQCString & name, 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 ( ) ) -

    -Returns a pointer to a TQAxObject wrapping the COM object provided -by the method or property name, passing passing the parameters -var1, var1, var2, var3, var4, var5, var6, -var7 and var8. -

    If name is provided by a method the string must include the -full function prototype. -

    If name is a property the string must be the name of the property, -and var1, ... var8 are ignored. -

    The returned TQAxObject is a child of this object (which is either of -type TQAxObject or TQAxWidget), and is deleted when this object is -deleted. It is however safe to delete the returned object yourself, -and you should do so when you iterate over lists of subobjects. -

    COM enabled applications usually have an object model publishing -certain elements of the application as dispatch interfaces. Use -this method to navigate the hierarchy of the object model, e.g. -

    -    TQAxWidget outlook( "Outlook.Application" );
    -    TQAxObject *session = outlook.querySubObject( "Session" );
    -    if ( session ) {
    -        TQAxObject *defFolder = session->querySubObject(
    -                                "GetDefaultFolder(OlDefaultFolders)",
    -                                "olFolderContacts" );
    -        //...
    -    }
    -    
    - - -

    Example: qutlook/centralwidget.cpp. -

    bool TQAxWidget::translateKeyEvent ( int message, int keycode ) const [virtual protected] -

    -Reimplement this function to pass certain key events to the -ActiveX control. message is the Window message identifier -specifying the message type (ie. WM_KEYDOWN), and keycode is -the virtual keycode (ie. VK_TAB). -

    If the function returns TRUE the key event is passed on to the -ActiveX control, which then either processes the event or passes -the event on to TQt. -

    If the function returns FALSE the processing of the key event is -ignored by ActiveTQt, ie. the ActiveX control might handle it or -not. -

    The default implementation returns TRUE for the following cases: -

    - - -
    WM_SYSKEYDOWN -WM_SYSKEYUP -WM_KEYDOWN -
    All keycodes -VK_MENU -VK_TAB, VK_DELETE and all non-arrow-keys in combination with VK_SHIFT, -VK_CONTROL or VK_MENU -
    -

    This table is the result of experimenting with popular ActiveX controls, -ie. Internet Explorer and Microsoft Office applications, but for some -controls it might require modification. - - -


    -This file is part of the TQt toolkit. -Copyright © 1995-2007 -Trolltech. All Rights Reserved.


    - -
    Copyright © 2007 -TrolltechTrademarks -
    TQt 3.3.8
    -
    - diff --git a/doc/html/qgridlayout.html b/doc/html/qgridlayout.html index 0fbf4e29..4b11224b 100644 --- a/doc/html/qgridlayout.html +++ b/doc/html/qgridlayout.html @@ -405,7 +405,7 @@ space. other row in this table can grow at all, the row may still grow.

    See also rowStretch(), setRowSpacing(), and setColStretch(). -

    Examples: addressbook/centralwidget.cpp and qutlook/centralwidget.cpp. +

    Examples: addressbook/centralwidget.cpp.

    TQSize TQGridLayout::sizeHint () const [virtual]

    Returns the preferred size of this grid. diff --git a/doc/html/qlistviewitem.html b/doc/html/qlistviewitem.html index 7c73a18c..7d30fa0a 100644 --- a/doc/html/qlistviewitem.html +++ b/doc/html/qlistviewitem.html @@ -567,7 +567,7 @@ and colors cg. Returns the parent of this item, or 0 if this item has no parent.

    See also firstChild() and nextSibling(). -

    Examples: dirview/dirview.cpp and qutlook/centralwidget.cpp. +

    Examples: dirview/dirview.cpp.

    const TQPixmap * TQListViewItem::pixmap ( int column ) const [virtual]

    Returns the pixmap for column, or 0 if there is no pixmap for @@ -694,7 +694,7 @@ text.

    If text() has been reimplemented, this function may be a no-op.

    See also text() and key(). -

    Examples: addressbook/centralwidget.cpp, qutlook/centralwidget.cpp, and xml/outliner/outlinetree.cpp. +

    Examples: addressbook/centralwidget.cpp and xml/outliner/outlinetree.cpp.

    void TQListViewItem::setVisible ( bool b )

    If b is TRUE, the item is made visible; otherwise it is hidden. diff --git a/doc/html/qt.dcf b/doc/html/qt.dcf index 08728527..09f47100 100644 --- a/doc/html/qt.dcf +++ b/doc/html/qt.dcf @@ -346,146 +346,6 @@
    -
    - QAxAggregated - controllingUnknown - object - queryInterface - widget -
    -
    -
    -
    - QAxBase - PropertyBag - asVariant - clear - control - control - disableClassInfo - disableEventSink - disableMetaObject - dynamicCall - exception - generateDocumentation - initialize - initializeActive - initializeLicensed - initializeRemote - isNull - propertyBag - propertyChanged - propertyWritable - queryInterface - querySubObject - setControl - setPropertyBag - setPropertyWritable - signal - ~QAxBase -
    -
    -
    -
    - QAxBindable - clientSite - createAggregate - propertyChanged - reportError - requestPropertyChange - ~QAxBindable -
    -
    -
    -
    - QAxFactory - ServerType - appID - classID - create - createObject - createObjectWrapper - eventsID - exposeToSuperClass - featureList - hasStockEvents - interfaceID - isServer - isService - metaObject - registerClass - serverDirPath - serverFilePath - startServer - stayTopLevel - stopServer - typeLibID - unregisterClass - validateLicenseKey - ~QAxFactory -
    -
    -
    -
    - QAxObject - ~QAxObject -
    -
    -
    -
    - QAxScript - FunctionFlags - call - entered - error - finished - functions - load - scriptCode - scriptEngine - scriptName - stateChanged - ~QAxScript -
    -
    -
    -
    - QAxScriptEngine - State - addItem - hasIntrospection - isValid - queryInterface - scriptLanguage - setState - state - ~QAxScriptEngine -
    -
    -
    -
    - QAxScriptManager - addObject - call - error - functions - load - registerEngine - script - scriptFileFilter - scriptNames - ~QAxScriptManager -
    -
    -
    -
    - QAxWidget - createHostWindow - translateKeyEvent - ~QAxWidget -
    -
    -
    QBig5Codec
    @@ -9642,8 +9502,6 @@
    A Motif Dialog
    -
    - A TQt example as a scriptable ActiveX control (executable)
    A qt-interest mail archive search @@ -9651,8 +9509,6 @@
    A Rectangle Draw "Benchmark"
    -
    - A simple ActiveQt control (executable)
    A simple demonstration of QFont member functions @@ -9672,8 +9528,6 @@
    A small client-server example
    -
    - A standard ActiveX and the "simple" ActiveQt widget.
    A Tiny Example Featuring a Toggle Action @@ -9684,8 +9538,6 @@
    A tiny SAX2 parser
    -
    - A Web Browser
    About Modules @@ -9702,12 +9554,6 @@
    abstractwidgets
    -
    - ActiveQt Examples -
    -
    - activeqt-tools -
    Adding an accelerated graphics driver to Qt/Embedded
    @@ -9720,9 +9566,6 @@
    All Overviews and HOWTOs
    -
    - An ActiveX Test Container -
    An Extension Dialog Example
    @@ -9903,8 +9746,6 @@
    shared
    -
    - In Sync with Outlook
    io @@ -9981,11 +9822,7 @@
    Member Function Index
    -
    - Menubar merging
    -
    - Menubar merging
    Meta Object System @@ -10026,8 +9863,6 @@
    OpenGL Gear Example
    -
    - OpenGL in an HTML page
    OpenGL Overlay Example @@ -10059,8 +9894,6 @@
    Pictures of Most TQt Widgets
    -
    - Play Tetrix!
    plugins @@ -10203,17 +10036,11 @@
    TQt Tutorial - Chapter 9: With Cannon You Can
    -
    - TQt Widget Hierarchy
    -
    - TQt Widget Hierarchy (in-process)
    xml-examples
    -
    - Qt' OpenGL widgets as an ActiveX (executable)
    Qt's Classes @@ -10326,11 +10153,7 @@
    Standard Accelerator Keys
    -
    - Standard TQt widgets as ActiveX controls (in-process)
    -
    - Standard TQt widgets in an HTML page
    Starting processes with IO redirection @@ -10377,35 +10200,18 @@
    The 'Big Picture'
    -
    - The ActiveQt framework -
    The Coordinate System
    -
    - The DumpDoc Tool -
    The Feature Definition File
    -
    - The IDC Tool -
    The Project File
    -
    - qaxcontainer-examples
    -
    - The QAxContainer Module
    -
    - qaxserver-examples
    -
    - The QAxServer Module
    The TQt FAQ @@ -10446,11 +10252,7 @@
    Tutorial #2
    -
    - Two simple TQt widgets
    -
    - Two simple TQt widgets (in-process)
    User Interface Compiler (uic) @@ -10482,9 +10284,6 @@
    Walkthrough: How to use the TQt SAX2 classes
    -
    - Walkthrough: Using TQt objects in Microsoft .NET -
    Walkthrough: Using SAX2 features with the TQt XML classes
    diff --git a/doc/html/titleindex b/doc/html/titleindex index 290199ca..541d96c2 100644 --- a/doc/html/titleindex +++ b/doc/html/titleindex @@ -4,33 +4,26 @@ A Complete Application Window with Actions | qaction-application-example.html A Complete Canvas Application | canvas-chart-example.html A Directory Browser | dirview-example.html A Motif Dialog | motif-dialog-example.html -A TQt example as a scriptable ActiveX control (executable) | qaxserver-example-tetrax.html A Rectangle Draw "Benchmark" | forever-example.html A Small Application for Testing Regular Expressions | regexptester-example.html A Tiny Example Featuring a Toggle Action | toggleaction-example.html A Tiny QTL Example | qtl-tqvaluelist-example.html -A Web Browser | qaxcontainer-example-webbrowser.html A qt-interest mail archive search | archivesearch-example.html -A simple ActiveQt control (executable) | qaxserver-example-simple.html A simple HTTP daemon | httpd-example.html A simple NNTP implementation | networkprotocol-example.html A simple demonstration of QFont member functions | simple-font-demo-example.html A simple mail client | mail-example.html A small client-server example | clientserver-example.html -A standard ActiveX and the "simple" ActiveQt widget. | qaxserver-demo-simple.html A tiny SAX2 parser | tagreader-example.html About Modules | modules.html About TQt | aboutntqt.html About Unicode | unicode.html About the Visual Studio Integration Plugin | integration.html Abstract Widget Classes | abstractwidgets.html -ActiveQt Examples | activeqt-examples.html -ActiveQt Tools | activeqt-tools.html Adding an accelerated graphics driver to Qt/Embedded | emb-accel.html Advanced Widgets | advanced.html Advanced use of tool tips | tooltip-example.html All Overviews and HOWTOs | overviews-list.html -An ActiveX Test Container | activeqt-tools-testcon.html An Extension Dialog Example | extension-dialog-example.html An FTP client | ftpclient-example.html An MDI Application | mdi-example.html @@ -91,7 +84,6 @@ IconView Widget | iconview.html Iconview | iconview-example.html Image Processing Classes | images.html Implicitly and Explicitly Shared Classes | shared.html -In Sync with Outlook | qaxcontainer-example-qutlook.html Input/Output and Networking | io.html Installation | installation.html Installing Qt/Embedded | emb-install.html @@ -116,8 +108,6 @@ Listviews with Checkable Items | checklists-example.html Main Window and Related Classes | application.html Mainly Easy | tutorial2-04.html Member Function Index | functions.html -Menubar merging | qaxserver-demo-menus.html -Menubar merging | qaxserver-example-menus.html Meta Object System | metaobjects.html Miscellaneous Classes | misc.html Movies or the Story of the Animated GIF file | movies-example.html @@ -136,13 +126,11 @@ OpenGL Overlay X11 Example | opengl-overlay-x11-example.html OpenGL Pixmap Example | opengl-pixmap-example.html OpenGL Shared Box Example | opengl-sharedbox-example.html OpenGL Texture Example | opengl-texture-example.html -OpenGL in an HTML page | qaxserver-demo-opengl.html Organizers | organizers.html Outliner to show use of DOM | outliner-example.html Painting on the Desktop | desktop-example.html Picture | picture-example.html Pictures of Most TQt Widgets | pictures.html -Play Tetrix! | qaxserver-demo-tetrax.html Plugins | plugins.html Popup Widgets | popup-example.html Porting to TQt 3.x | porting.html @@ -179,24 +167,6 @@ QAssistantClient Class | ntqassistantclient.html QAssistantClient Member List | qassistantclient-members.html QAsyncIO Class | ntqasyncio.html QAsyncIO Member List | qasyncio-members.html -QAxAggregated Class | qaxaggregated.html -QAxAggregated Member List | qaxaggregated-members.html -QAxBase Class | qaxbase.html -QAxBase Member List | qaxbase-members.html -QAxBindable Class | qaxbindable.html -QAxBindable Member List | qaxbindable-members.html -QAxFactory Class | qaxfactory.html -QAxFactory Member List | qaxfactory-members.html -QAxObject Class | qaxobject.html -QAxObject Member List | qaxobject-members.html -QAxScript Class | qaxscript.html -QAxScript Member List | qaxscript-members.html -QAxScriptEngine Class | qaxscriptengine.html -QAxScriptEngine Member List | qaxscriptengine-members.html -QAxScriptManager Class | qaxscriptmanager.html -QAxScriptManager Member List | qaxscriptmanager-members.html -QAxWidget Class | qaxwidget.html -QAxWidget Member List | qaxwidget-members.html QBig5Codec Class | ntqbig5codec.html QBig5Codec Member List | qbig5codec-members.html QBig5hkscsCodec Class | qbig5hkscscodec.html @@ -1040,10 +1010,7 @@ Qt Tutorial - Chapter 6: Building Blocks Galore! | tutorial1-06.html Qt Tutorial - Chapter 7: One Thing Leads to Another | tutorial1-07.html Qt Tutorial - Chapter 8: Preparing for Battle | tutorial1-08.html Qt Tutorial - Chapter 9: With Cannon You Can | tutorial1-09.html -Qt Widget Hierarchy | qaxserver-demo-hierarchy.html -Qt Widget Hierarchy (in-process) | qaxserver-example-hierarchy.html Qt XML Examples | xml-examples.html -Qt' OpenGL widgets as an ActiveX (executable) | qaxserver-example-opengl.html Qt's Classes | classes.html Qt's Main Classes | mainclasses.html Qt's Tools | tools-list.html @@ -1081,8 +1048,6 @@ Small Table Example | small-table-example-example.html Sound Example | sound-example.html Splitter | splitter-example.html Standard Accelerator Keys | accelerators.html -Standard TQt widgets as ActiveX controls (in-process) | qaxserver-example-wrapper.html -Standard TQt widgets in an HTML page | qaxserver-demo-wrapper.html Starting processes with IO redirection | process-example.html Step-by-step Examples | step-by-step-examples.html Style overview | customstyles.html @@ -1098,16 +1063,9 @@ Text Edit Example | textedit-example.html Text Related Classes | text.html Thanks! | credits.html The 'Big Picture' | tutorial2-02.html -The ActiveQt framework | activentqt.html The Coordinate System | coordsys.html -The DumpDoc Tool | activeqt-tools-dumpdoc.html The Feature Definition File | emb-features.html -The IDC Tool | activeqt-tools-idc.html The Project File | tutorial2-10.html -The QAxContainer Examples | qaxcontainer-examples.html -The QAxContainer Module | qaxcontainer.html -The QAxServer Examples | qaxserver-examples.html -The QAxServer Module | qaxserver.html The TQt FAQ | faq.html The Qt/Embedded-specific classes | emb-classes.html Themes (Styles) | themes-example.html @@ -1121,8 +1079,6 @@ Trademarks | trademarks.html Transformed Graphics Demo | xform-example.html Trivial Example | trivial-nsplugin-example.html Tutorial #2 | tutorial2.html -Two simple TQt widgets | qaxserver-demo-multiple.html -Two simple TQt widgets (in-process) | qaxserver-example-multiple.html User Interface Compiler (uic) | uic.html Using Custom QDialogs | motif-walkthrough-4.html Using Existing Dialogs with QMotifDialog | motif-walkthrough-5.html @@ -1133,7 +1089,6 @@ Using the Meta Object Compiler | moc.html Using the Motif Event Loop | motif-customwidget-example.html Walkthrough: A Simple Application | simple-application.html Walkthrough: How to use the TQt SAX2 classes | xml-sax-walkthrough.html -Walkthrough: Using TQt objects in Microsoft .NET | activeqt-dotnet.html Walkthrough: Using SAX2 features with the TQt XML classes | xml-sax-features-walkthrough.html Why doesn't TQt use templates for signals and slots? | templates.html Widget Appearance and Style | appearance.html @@ -1174,12 +1129,6 @@ ntqasciidict.h Include File | qasciidict-h.html ntqassistantclient.h Include File | qassistantclient-h.html ntqasyncimageio.h Include File | qasyncimageio-h.html ntqasyncio.h Include File | qasyncio-h.html -qaxbase.h Include File | qaxbase-h.html -qaxbindable.h Include File | qaxbindable-h.html -qaxfactory.h Include File | qaxfactory-h.html -qaxobject.h Include File | qaxobject-h.html -qaxscript.h Include File | qaxscript-h.html -qaxwidget.h Include File | qaxwidget-h.html ntqbig5codec.h Include File | qbig5codec-h.html ntqbitarray.h Include File | qbitarray-h.html ntqbitmap.h Include File | qbitmap-h.html diff --git a/doc/html/tqobject.html b/doc/html/tqobject.html index 467e8e24..f4135898 100644 --- a/doc/html/tqobject.html +++ b/doc/html/tqobject.html @@ -36,7 +36,7 @@ body { background: #ffffff; color: black; }

    All the functions in this class are reentrant when TQt is built with thread support.

    #include <tqobject.h>

    Inherits TQt. -

    Inherited by TQAccel, TQAccessibleObject, TQAction, TQApplication, TQAssistantClient, TQDataPump, TQAxObject, TQAxScript, TQAxScriptManager, TQWidget, TQCanvas, TQStyle, TQClipboard, TQCopChannel, TQDns, TQLayout, TQDragObject, TQEditorFactory, TQEventLoop, TQFileIconProvider, TQNetworkProtocol, TQWSKeyboardHandler, TQNetworkOperation, TQNPInstance, TQObjectCleanupHandler, TQProcess, TQServerSocket, TQSessionManager, TQSignal, TQSignalMapper, TQSocket, TQSocketNotifier, TQSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, TQTimer, TQToolTipGroup, TQTranslator, TQUrlOperator, and TQValidator. +-

    Inherited by TQAccel, TQAccessibleObject, TQAction, TQApplication, TQAssistantClient, TQDataPump, TQWidget, TQCanvas, TQStyle, TQClipboard, TQCopChannel, TQDns, TQLayout, TQDragObject, TQEditorFactory, TQEventLoop, TQFileIconProvider, TQNetworkProtocol, TQWSKeyboardHandler, TQNetworkOperation, TQNPInstance, TQObjectCleanupHandler, TQProcess, TQServerSocket, TQSessionManager, TQSignal, TQSignalMapper, TQSocket, TQSocketNotifier, TQSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, TQTimer, TQToolTipGroup, TQTranslator, TQUrlOperator, and TQValidator.

    List of all member functions.

    Public Members

      @@ -203,7 +203,7 @@ Blocks signals if block is TRUE, or unblocks signals if block Note that the destroyed() signals will be emitted even if the signals for this object have been blocked. -

      Examples: rot13/rot13.cpp and simple/main.cpp. +-

      Examples: rot13/rot13.cpp.

      bool TQObject::checkConnectArgs ( const char * signal, const TQObject * receiver, const char * member ) [virtual protected]

      @@ -728,7 +728,6 @@ Returns the value of the object's name property. the metaObject().

      See also setProperty(), TQVariant::isValid(), metaObject(), TQMetaObject::propertyNames(), and TQMetaObject::property(). -

      Example: qutlook/centralwidget.cpp.

      TQObjectList * TQObject::queryList ( const char * inheritsClass = 0, const char * objName = 0, bool regexpMatch = TRUE, bool recursiveSearch = TRUE ) const

      Searches the children and optionally grandchildren of this object, @@ -816,7 +815,6 @@ FALSE. metaObject().

      See also property(), metaObject(), TQMetaObject::propertyNames(), and TQMetaObject::property(). -

      Example: qutlook/centralwidget.cpp.

      bool TQObject::signalsBlocked () const

      diff --git a/doc/html/tqstring.html b/doc/html/tqstring.html index 353f7216..478935b9 100644 --- a/doc/html/tqstring.html +++ b/doc/html/tqstring.html @@ -2206,7 +2206,6 @@ if the string is not null; otherwise returns zero.

      The result remains valid so long as one unmodified copy of the source string exists. -

      Example: dotnet/wrapper/lib/tools.cpp.

      const TQChar * TQString::unicode () const

      diff --git a/doc/html/tqwidget.html b/doc/html/tqwidget.html index 964ee839..d841575e 100644 --- a/doc/html/tqwidget.html +++ b/doc/html/tqwidget.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } More...

      #include <tqwidget.h>

      Inherits TQObject and TQPaintDevice. -

      Inherited by TQAxWidget, TQButton, TQFrame, TQDialog, TQComboBox, TQDataBrowser, TQDataView, TQDateTimeEditBase, TQDateTimeEdit, TQDesktopWidget, TQDial, TQDockArea, TQGLWidget, TQHeader, TQMainWindow, TQMotifWidget, TQNPWidget, TQScrollBar, TQSizeGrip, TQSlider, TQSpinBox, TQSplashScreen, TQStatusBar, TQTabBar, TQTabWidget, TQWorkspace, and TQXtWidget. +-

      Inherited by TQButton, TQFrame, TQDialog, TQComboBox, TQDataBrowser, TQDataView, TQDateTimeEditBase, TQDateTimeEdit, TQDesktopWidget, TQDial, TQDockArea, TQGLWidget, TQHeader, TQMainWindow, TQMotifWidget, TQNPWidget, TQScrollBar, TQSizeGrip, TQSlider, TQSpinBox, TQSplashScreen, TQStatusBar, TQTabBar, TQTabWidget, TQWorkspace, and TQXtWidget.

      List of all member functions.

      Public Members

        @@ -1243,7 +1243,7 @@ Hides the widget. do something after a widget is hidden, use hideEvent() instead.

        See also hideEvent(), hidden, show(), showMinimized(), visible, and close(). -

        Examples: mdi/application.cpp, popup/popup.cpp, progress/progress.cpp, scrollview/scrollview.cpp, webbrowser/mainwindow.ui.h, and xform/xform.cpp. +-

        Examples: mdi/application.cpp, popup/popup.cpp, progress/progress.cpp, scrollview/scrollview.cpp and xform/xform.cpp.

        Reimplemented in TQMenuBar.

        void TQWidget::hideEvent ( TQHideEvent * ) [virtual protected]

        diff --git a/doc/html/whatsthis b/doc/html/whatsthis index 45f01294..8558157a 100644 --- a/doc/html/whatsthis +++ b/doc/html/whatsthis @@ -2,7 +2,6 @@ 2D transformations of a coordinate system. | QWMatrix Abstract base class for accessing SQL databases. | TQSqlDriver Abstract base class for custom menu items in popup menus. | QCustomMenuItem -Abstract base class for implementations of additional COM interfaces. | QAxAggregated Abstract base class of internal layout iterators. | QGLayoutIterator Abstract base for Qt/Embedded graphics driver plugins. | QGfxDriverPlugin Abstract base for Qt/Embedded keyboard driver plugins. | QKbdDriverPlugin @@ -13,7 +12,6 @@ Abstract base for custom TQTextCodec plugins. | TQTextCodecPlugin Abstract base for custom TQWidget plugins. | TQWidgetPlugin Abstract base for custom image format plugins. | TQImageFormatPlugin Abstract base for fixed-size grids. | QGridView -Abstract class that provides an API to initalize and access a COM object. | QAxBase Abstract graphic object on a TQCanvas. | TQCanvasItem Abstract interface for accessing data from SQL databases. | TQSqlResult Abstract item that a QLayout manipulates. | QLayoutItem @@ -46,7 +44,6 @@ Base class for QMenuBar and QPopupMenu. | QMenuData Base class for implementing TQTextEdit syntax highlighters. | QSyntaxHighlighter Basic functions for reading and writing text using a TQIODevice. | TQTextStream Blank space in a layout. | QSpacerItem -Bridge between application objects and script code. | QAxScriptManager Browsing and editing of SQL tables and views. | TQSqlCursor Browsing of general SQL SELECT statements. | TQSqlSelectCursor Buffered TCP connection. | QSocket @@ -100,7 +97,6 @@ Date editor. | QDateEdit Date functions. | QDate Default implementation of all the XML handler classes. | TQXmlDefaultHandler Defines a Universally Unique Identifier (UUID). | QUuid -Defines a factory for the creation of COM components. | QAxFactory Defines a point in the plane. | QPoint Defines a rectangle in the plane. | QRect Defines an interface that exposes information about accessible objects. | QAccessibleInterface @@ -189,7 +185,6 @@ Information about a paint device. | QPaintDeviceMetrics Information about the features of the DOM implementation. | TQDomImplementation Information about the fonts available in the underlying window system. | QFontDatabase Integer value within a range. | QRangeControl -Interface between a TQWidget and an ActiveX client. | QAxBindable Interface for XML readers (i.e. parsers). | TQXmlReader Interface to report DTD content of XML data. | TQXmlDTDHandler Interface to report declaration content of XML data. | TQXmlDeclHandler @@ -284,10 +279,8 @@ Polygonal canvas item on a TQCanvas. | TQCanvasPolygonalItem Popup menu widget. | QPopupMenu Powerful single-page rich text editor. | TQTextEdit TQObject that is a web browser plugin. | QNPInstance -TQObject that wraps a COM object. | QAxObject TQPtrList of TQObjects. | TQObjectList TQWidget that is a web browser plugin window. | QNPWidget -TQWidget that wraps an ActiveX control. | QAxWidget Quick-access button to commands or options, usually used inside a QToolBar. | QToolButton Radio button with a text or pixmap label. | QRadioButton Range checking of floating-point numbers. | QDoubleValidator @@ -410,7 +403,5 @@ Watches the lifetime of multiple TQObjects. | TQObjectCleanupHandler Widget for rendering OpenGL graphics. | QGLWidget Widget which can be docked inside a QDockArea or floated as a top level window on the desktop. | QDockWindow Workspace window that can contain decorated windows, e.g. for MDI. | QWorkspace -Wrapper around a script engine. | QAxScriptEngine -Wrapper around script code. | QAxScript Wrapper for handling shared libraries. | QLibrary XML attributes. | TQXmlAttributes diff --git a/doc/indices.doc b/doc/indices.doc index 4e5ac260..dd139ad3 100644 --- a/doc/indices.doc +++ b/doc/indices.doc @@ -150,7 +150,6 @@ Licenses & Credits
    \list \i \link winsystem.html Window system specific notes\endlink -\i \link activentqt.html ActiveQt Framework\endlink \i \link motif-extension.html Motif Extension\endlink \i \link mac-differences.html Mac OS X development\endlink \i \link porting.html Porting from TQt 2.x to TQt 3.x\endlink @@ -359,7 +358,6 @@ in a line-by-line coverage please refer to the tutorials \section1 TQt Extensions: Assorted Examples \list -\i \link activeqt-examples.html ActiveX support extension \endlink \i \link motif-examples.html QMotif support extension \endlink \omit \i \link xt-motif-examples.html Xt/Motif support extension \endlink \endomit \i \link nsplugin-examples.html Qt-based plugins for web browsers \endlink @@ -569,11 +567,6 @@ These classes deal with shared libraries, (e.g. .so and DLL files), and with TQt plugins. See the \link plugins-howto.html plugins documentation\endlink. - - -See also the \link activentqt.html ActiveQt framework\endlink for -Windows. - */ /*! \defgroup organizers diff --git a/doc/man/man3/TQAxAggregated.3qt b/doc/man/man3/TQAxAggregated.3qt deleted file mode 100644 index d05590c3..00000000 --- a/doc/man/man3/TQAxAggregated.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxaggregated.3qt diff --git a/doc/man/man3/TQAxBase.3qt b/doc/man/man3/TQAxBase.3qt deleted file mode 100644 index 84be9769..00000000 --- a/doc/man/man3/TQAxBase.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxbase.3qt diff --git a/doc/man/man3/TQAxBindable.3qt b/doc/man/man3/TQAxBindable.3qt deleted file mode 100644 index affde1f6..00000000 --- a/doc/man/man3/TQAxBindable.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxbindable.3qt diff --git a/doc/man/man3/TQAxFactory.3qt b/doc/man/man3/TQAxFactory.3qt deleted file mode 100644 index c1881659..00000000 --- a/doc/man/man3/TQAxFactory.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxfactory.3qt diff --git a/doc/man/man3/TQAxObject.3qt b/doc/man/man3/TQAxObject.3qt deleted file mode 100644 index f9979275..00000000 --- a/doc/man/man3/TQAxObject.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxobject.3qt diff --git a/doc/man/man3/TQAxScript.3qt b/doc/man/man3/TQAxScript.3qt deleted file mode 100644 index 4e66e409..00000000 --- a/doc/man/man3/TQAxScript.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxscript.3qt diff --git a/doc/man/man3/TQAxScriptEngine.3qt b/doc/man/man3/TQAxScriptEngine.3qt deleted file mode 100644 index 61f57d54..00000000 --- a/doc/man/man3/TQAxScriptEngine.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxscriptengine.3qt diff --git a/doc/man/man3/TQAxScriptManager.3qt b/doc/man/man3/TQAxScriptManager.3qt deleted file mode 100644 index fdc82943..00000000 --- a/doc/man/man3/TQAxScriptManager.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxscriptmanager.3qt diff --git a/doc/man/man3/TQAxWidget.3qt b/doc/man/man3/TQAxWidget.3qt deleted file mode 100644 index 5c02f767..00000000 --- a/doc/man/man3/TQAxWidget.3qt +++ /dev/null @@ -1 +0,0 @@ -.so man3/tqaxwidget.3qt diff --git a/doc/man/man3/tqaxaggregated.3qt b/doc/man/man3/tqaxaggregated.3qt deleted file mode 100644 index e963957c..00000000 --- a/doc/man/man3/tqaxaggregated.3qt +++ /dev/null @@ -1,143 +0,0 @@ -'\" t -.TH QAxAggregated 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxAggregated \- Abstract base class for implementations of additional COM interfaces -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "virtual long \fBqueryInterface\fR ( const QUuid & iid, void ** iface ) = 0" -.br -.in -1c -.SS "Protected Members" -.in +1c -.ti -1c -.BI "IUnknown * \fBcontrollingUnknown\fR () const" -.br -.ti -1c -.BI "TQWidget * \fBwidget\fR () const" -.br -.ti -1c -.BI "TQObject * \fBobject\fR () const" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxAggregated class is an abstract base class for implementations of additional COM interfaces. -.PP -Create a subclass of QAxAggregated and reimplement queryInterface() to support additional COM interfaces. Use multiple inheritance from those COM interfaces. Implement the IUnknown interface of those COM interfaces by delegating the calls to QueryInterface(), AddRef() and Release() to the interface provided by controllingUnknown(). -.PP -Use the widget() method if you need to make calls to the TQWidget implementing the ActiveX control. You must not store that pointer in your subclass (unless you use QGuardedPtr), as the TQWidget can be destroyed by the ActiveQt framework at any time. -.SH MEMBER FUNCTION DOCUMENTATION -.SH "IUnknown * QAxAggregated::controllingUnknown () const\fC [protected]\fR" -Returns the IUnknown interface of the ActiveX control. Implement the IUnknown interface in your QAxAggregated subclass to delegate calls to QueryInterface(), AddRef() and Release() to the interface provided by this function. -.PP -.nf -.br - HRESULT AxImpl::QueryInterface( REFIID iid, void **iface ) -.br - { -.br - return controllingUnknown()->QueryInterface( iid, iface ); -.br - } -.br -.br - unsigned long AxImpl::AddRef() -.br - { -.br - return controllingUnknown()->AddRef(); -.br - } -.br -.br - unsigned long AxImpl::Release() -.br - { -.br - return controllingUnknown()->Release(); -.br - } -.br -.fi -.PP -The QAXAGG_IUNKNOWN macro expands to the code above, and you can use it in the class declaration of your subclass. -.SH "TQObject * QAxAggregated::object () const\fC [protected]\fR" -Returns a pointer to the TQObject subclass implementing the COM object. This function might return 0. -.PP -\fBWarning:\fR You must not store the returned pointer, unless you use a QGuardedPtr, since the TQObject can be destroyed by ActiveQt at any time. -.SH "long QAxAggregated::queryInterface ( const QUuid & iid, void ** iface )\fC [pure virtual]\fR" -Reimplement this pure virtual function to support additional COM interfaces. Set the value of \fIiface\fR to point to this object to support the interface \fIiid\fR. Note that you must cast the \fCthis\fR pointer to the appropriate superclass. -.PP -.nf -.br - long AxImpl::queryInterface( const QUuid &iid, void **iface ) -.br - { -.br - *iface = 0; -.br - if ( iid == IID_ISomeCOMInterface ) -.br - *iface = (ISomeCOMInterface*)this; -.br - else -.br - return E_NOINTERFACE; -.br -.br - AddRef(); -.br - return S_OK; -.br - } -.br -.fi -.PP -Return the standard COM results S_OK (interface is supported) or E_NOINTERFACE (requested interface is not supported). -.PP -\fBWarning:\fR Even though you must implement the IUnknown interface if you implement any COM interface you must not support the IUnknown interface in your queryInterface() implementation. -.SH "TQWidget * QAxAggregated::widget () const\fC [protected]\fR" -Returns a pointer to the TQWidget subclass implementing the ActiveX control. This function might return 0. -.PP -\fBWarning:\fR -You must not store the returned pointer, unless you use a -QGuardedPtr, since the TQWidget can be destroyed by ActiveQt at any -time. - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxaggregated.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxaggregated.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqaxbase.3qt b/doc/man/man3/tqaxbase.3qt deleted file mode 100644 index 51d6f4d8..00000000 --- a/doc/man/man3/tqaxbase.3qt +++ /dev/null @@ -1,561 +0,0 @@ -'\" t -.TH QAxBase 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxBase \- Abstract class that provides an API to initalize and access a COM object -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -Inherited by QAxObject and QAxWidget. -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "\fBQAxBase\fR ( IUnknown * iface = 0 )" -.br -.ti -1c -.BI "virtual \fB~QAxBase\fR ()" -.br -.ti -1c -.BI "TQString \fBcontrol\fR () const" -.br -.ti -1c -.BI "long \fBqueryInterface\fR ( const QUuid & uuid, void ** iface ) const" -.br -.ti -1c -.BI "QVariant \fBdynamicCall\fR ( const QCString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -.br -.ti -1c -.BI "QVariant \fBdynamicCall\fR ( const QCString & function, TQValueList & vars )" -.br -.ti -1c -.BI "QAxObject * \fBquerySubObject\fR ( const QCString & name, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -.br -.ti -1c -.BI "PropertyBag \fBpropertyBag\fR () const" -.br -.ti -1c -.BI "void \fBsetPropertyBag\fR ( const PropertyBag & bag )" -.br -.ti -1c -.BI "TQString \fBgenerateDocumentation\fR ()" -.br -.ti -1c -.BI "virtual bool \fBpropertyWritable\fR ( const char * prop ) const" -.br -.ti -1c -.BI "virtual void \fBsetPropertyWritable\fR ( const char * prop, bool ok )" -.br -.ti -1c -.BI "bool \fBisNull\fR () const" -.br -.ti -1c -.BI "QVariant \fBasVariant\fR () const" -.br -.ti -1c -.BI "enum \fBPropertyBag\fR { }" -.br -.ti -1c -.BI "virtual void \fBclear\fR ()" -.br -.ti -1c -.BI "bool \fBsetControl\fR ( const TQString & )" -.br -.ti -1c -.BI "void \fBdisableMetaObject\fR ()" -.br -.ti -1c -.BI "void \fBdisableClassInfo\fR ()" -.br -.ti -1c -.BI "void \fBdisableEventSink\fR ()" -.br -.in -1c -.SS "Signals" -.in +1c -.ti -1c -.BI "void \fBsignal\fR ( const TQString & name, int argc, void * argv )" -.br -.ti -1c -.BI "void \fBpropertyChanged\fR ( const TQString & name )" -.br -.ti -1c -.BI "void \fBexception\fR ( int code, const TQString & source, const TQString & desc, const TQString & help )" -.br -.in -1c -.SS "Properties" -.in +1c -.ti -1c -.BI "TQString \fBcontrol\fR - the name of the COM object wrapped by this QAxBase object" -.br -.in -1c -.SS "Protected Members" -.in +1c -.ti -1c -.BI "virtual bool \fBinitialize\fR ( IUnknown ** ptr )" -.br -.ti -1c -.BI "bool \fBinitializeRemote\fR ( IUnknown ** ptr )" -.br -.ti -1c -.BI "bool \fBinitializeLicensed\fR ( IUnknown ** ptr )" -.br -.ti -1c -.BI "bool \fBinitializeActive\fR ( IUnknown ** ptr )" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxBase class is an abstract class that provides an API to initalize and access a COM object. -.PP -QAxBase is an abstract class that cannot be used directly, and is instantiated through the subclasses QAxObject and QAxWidget. This class provides the API to access the COM object directly through its IUnknown implementation. If the COM object implements the IDispatch interface, the properties and methods of that object become available as TQt properties and slots. -.PP -.nf -.br - connect( buttonBack, TQ_SIGNAL(clicked()), webBrowser, TQ_SLOT(GoBack()) ); -.br -.fi -.PP -Properties exposed by the object's IDispatch implementation can be read and written through the property system provided by the TQt Object Model (both subclasses are TQObjects, so you can use setProperty() and property() as with TQObject). Properties with multiple parameters are not supported. -.PP -.nf -.br - activeX->setProperty( "text", "some text" ); -.br - int value = activeX->property( "value" ); -.br -.fi -.PP -Write-functions for properties and other methods exposed by the object's IDispatch implementation can be called directly using dynamicCall(), or indirectly as slots connected to a signal. -.PP -.nf -.br - webBrowser->dynamicCall( "GoHome()" ); -.br -.fi -.PP -Outgoing events supported by the COM object are emitted as standard TQt signals. -.PP -.nf -.br - connect( webBrowser, TQ_SIGNAL(TitleChanged(const TQString&)), -.br - this, TQ_SLOT(setCaption(const TQString&)) ); -.br -.fi -.PP -QAxBase transparently converts between COM data types and the equivalent TQt data types. Some COM types have no equivalent TQt data structure. -.PP -Supported COM datatypes are listed in the first column of following table. The second column is the TQt type that can be used with the TQObject property functions. The third column is the TQt type that is used in the prototype of generated signals and slots for in-parameters, and the last column is the TQt type that is used in the prototype of signals and slots for out-parameters.
    .nf -.TS -l - l. COM type TQt property in-parameter out-parameter VARIANT_BOOL bool bool bool& BSTR TQString const TQString& TQString& char, short, int, long int int int& uchar, ushort, uint, ulong uint uint uint& float, double double double double& DATE QDateTime const QDateTime& QDateTime& CY TQ_LLONG TQ_LLONG TQ_LLONG& OLE_COLOR TQColor const TQColor& TQColor& SAFEARRAY(VARIANT) TQValueList const TQValueList& TQValueList& SAFEARRAY(BYTE) QByteArray const QByteArray& QByteArray& SAFEARRAY(BSTR) TQStringList const TQStringList& TQStringList& VARIANT type-dependent const QVariant& QVariant& IFontDisp* QFont const QFont& QFont& IPictureDisp* QPixmap const QPixmap& QPixmap& IDispatch* QAxObject* (read-only) QAxBase::asVariant() QAxObject* (return value) IUnknown* QAxObject* (read-only) QAxBase::asVariant() QAxObject* (return value) SCODE, DECIMAL \fIunsupported\fR \fIunsupported\fR -.TE -.fi -
    -.PP -Supported are also enumerations, and typedefs to supported types. -.PP -To call the methods of a COM interface described by the following IDL -.PP -.nf -.br - dispinterface IControl -.br - { -.br - properties: -.br - [id(1)] BSTR text; -.br - [id(2)] IFontDisp *font; -.br -.br - methods: -.br - [id(6)] void showColumn( [in] int i ); -.br - [id(3)] bool addColumn( [in] BSTR t ); -.br - [id(4)] int fillList( [in, out] SAFEARRAY(VARIANT) *list ); -.br - [id(5)] IDispatch *item( [in] int i ); -.br - }; -.br -.fi -use the QAxBase API like this: -.PP -.nf -.br - QAxObject object( "" ); -.br -.br - TQString text = object.property( "text" ).toString(); -.br - object.setProperty( "font", QFont( "Times New Roman", 12 ) ); -.br -.br - connect( this, TQ_SIGNAL(clicked(int)), &object, TQ_SLOT(showColumn(int)) ); -.br - bool ok = object.dynamicCall( "addColumn(const TQString&)", "Column 1" ).toBool(); -.br -.br - TQValueList varlist; -.br - TQValueList parameters; -.br - parameters << QVariant( varlist ); -.br - int n = object.dynamicCall( "fillList(TQValueList&)", parameters ).toInt(); -.br -.br - QAxObject *item = object.querySubItem( "item(int)", 5 ); -.br -.fi -.PP -Note that the TQValueList the object should fill has to be provided as an element in the parameter list of QVariants. -.PP -If you need to access properties or pass parameters of unsupported datatypes you must access the COM object directly through its IDispatch implementation or other interfaces. Those interfaces can be retrieved through queryInterface(). -.PP -.nf -.br - IUnknown *iface = 0; -.br - activeX->queryInterface( IID_IUnknown, (void**)&iface ); -.br - if ( iface ) { -.br - // use the interface -.br - iface->Release(); -.br - } -.br -.fi -.PP -To get the definition of the COM interfaces you will have to use the header files provided with the component you want to use. Some compilers can also import type libraries using the #import compiler directive. See the component documentation to find out which type libraries you have to import, and how to use them. -.PP -If you need to react to events that pass parameters of unsupported datatypes you can use the generic signal that delivers the event data as provided by the COM event. -.SS "Member Type Documentation" -.SH "QAxBase::PropertyBag" -A TQMap that can store properties as name:value pairs. -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QAxBase::QAxBase ( IUnknown * iface = 0 )" -Creates a QAxBase object that wraps the COM object \fIiface\fR. If \fIiface\fR is 0 (the default), use setControl() to instantiate a COM object. -.SH "QAxBase::~QAxBase ()\fC [virtual]\fR" -Shuts down the COM object and destroys the QAxBase object. -.PP -See also clear(). -.SH "QVariant QAxBase::asVariant () const" -Returns a QVariant that wraps the COM object. The variant can then be used as a parameter in e.g. dynamicCall(). -.SH "void QAxBase::clear ()\fC [virtual]\fR" -Disconnects and destroys the COM object. -.PP -If you reimplement this function you must also reimplement the destructor to call clear(), and call this implementation at the end of your clear() function. -.SH "TQString QAxBase::control () const" -Returns the name of the COM object wrapped by this QAxBase object. See the "control" property for details. -.SH "void QAxBase::disableClassInfo ()" -Disables the class info generation for this ActiveX container. If you don't require any class information about the ActiveX control use this function to speed up the meta object generation. -.PP -Note that this function must be called immediately after construction of the object (without passing an object identifier), and before calling QAxWidget->setControl(). -.SH "void QAxBase::disableEventSink ()" -Disables the event sink implementation for this ActiveX container. If you don't intend to listen to the ActiveX control's events use this function to speed up the meta object generation. -.PP -Some ActiveX controls might be unstable when connected to an event sink. To get OLE events you must use standard COM methods to register your own event sink. Use queryInterface() to get access to the raw COM object. -.PP -Note that this function should be called immediately after construction of the object (without passing an object identifier), and before calling QAxWidget->setControl(). -.SH "void QAxBase::disableMetaObject ()" -Disables the meta object generation for this ActiveX container. This also disables the event sink and class info generation. If you don't intend to use the TQt meta object implementation call this function to speed up the meta object generation. -.PP -Some ActiveX controls might be unstable when used with OLE automation. Use standard COM methods to use those controls through the COM interfaces provided by queryInterface(). -.PP -Note that this function must be called immediately after construction of the object (without passing an object identifier), and before calling QAxWidget->setControl(). -.SH "QVariant QAxBase::dynamicCall ( const QCString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -Calls the COM object's method \fIfunction\fR, passing the parameters \fIvar1\fR, \fIvar1\fR, \fIvar2\fR, \fIvar3\fR, \fIvar4\fR, \fIvar5\fR, \fIvar6\fR, \fIvar7\fR and \fIvar8\fR, and returns the value returned by the method, or an invalid QVariant if the method does not return a value or when the function call failed. -.PP -If \fIfunction\fR is a method of the object the string must be provided as the full prototype, for example as it would be written in a TQObject::connect() call. -.PP -.nf -.br - activeX->dynamicCall( "Navigate(const TQString&)", "www.trolltech.com" ); -.br -.fi -.PP -Alternatively a function can be called passing the parameters embedded in the string, e.g. above function can also be invoked using -.PP -.nf -.br - activeX->dynamicCall("Navigate(\\"www.trolltech.com\\"); -.br -.fi -All parameters are passed as strings; it depends on the control whether they are interpreted correctly, and is slower than using the prototype with correctly typed parameters. -.PP -If \fIfunction\fR is a property the string has to be the name of the property. The property setter is called when \fIvar1\fR is a valid QVariant, otherwise the getter is called. -.PP -.nf -.br - activeX->dynamicCall( "Value", 5 ); -.br - TQString text = activeX->dynamicCall( "Text" ).toString(); -.br -.fi -Note that it is faster to get and set properties using TQObject::property() and TQObject::setProperty(). -.PP -It is only possible to call functions through dynamicCall() that have parameters or return values of datatypes supported by QVariant. See the QAxBase class documentation for a list of supported and unsupported datatypes. If you want to call functions that have unsupported datatypes in the parameter list, use queryInterface() to retrieve the appropriate COM interface, and use the function directly. -.PP -.nf -.br - IWebBrowser2 *webBrowser = 0; -.br - activeX->queryInterface( IID_IWebBrowser2, (void**)&webBrowser ); -.br - if ( webBrowser ) { -.br - webBrowser->Navigate2( pvarURL ); -.br - webBrowser->Release(); -.br - } -.br -.fi -.PP -This is also more efficient. -.PP -Example: qutlook/centralwidget.cpp. -.SH "QVariant QAxBase::dynamicCall ( const QCString & function, TQValueList & vars )" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -Calls the COM object's method \fIfunction\fR, passing the parameters in \fIvars\fR, and returns the value returned by the method. If the method does not return a value or when the function call failed this function returns an invalid QVariant object. -.PP -The QVariant objects in \fIvars\fR are updated when the method has out-parameters. -.SH "void QAxBase::exception ( int code, const TQString & source, const TQString & desc, const TQString & help )\fC [signal]\fR" -This signal is emitted when the COM object throws an exception while called using the OLE automation interface IDispatch. \fIcode\fR, \fIsource\fR, \fIdesc\fR and \fIhelp\fR provide information about the exception as provided by the COM server and can be used to provide useful feedback to the end user. \fIhelp\fR includes the help file, and the help context ID in brackets, e.g. "filename [id]". -.SH "TQString QAxBase::generateDocumentation ()" -Returns a rich text string with documentation for the wrapped COM object. Dump the string to an HTML-file, or use it in e.g. a TQTextBrowser widget. -.SH "bool QAxBase::initialize ( IUnknown ** ptr )\fC [virtual protected]\fR" -This virtual function is called by setControl() and creates the requested COM object. \fIptr\fR is set to the object's IUnknown implementation. The function returns TRUE if the object initialization succeeded; otherwise the function returns FALSE. -.PP -The default implementation interprets the string returned by control(), and calls initializeRemote(), initializeLicensed() or initializeActive() if the string matches the respective patterns. If no pattern is matched, or if remote or licensed initialization fails, CoCreateInstance is used directly to create the object. -.PP -See the control property documentation for details about supported patterns. -.PP -The interface returned in \fIptr\fR must be referenced exactly once when this function returns. The interface provided by e.g. CoCreateInstance is already referenced, and there is no need to reference it again. -.SH "bool QAxBase::initializeActive ( IUnknown ** ptr )\fC [protected]\fR" -Returns an active instance running on the current machine, and returns the IUnknown interface to the running object in \fIptr\fR. This function returns TRUE if successful, otherwise returns FALSE. -.PP -This function is called by initialize() if the control string contains the substring "}&". -.PP -See also initialize(). -.SH "bool QAxBase::initializeLicensed ( IUnknown ** ptr )\fC [protected]\fR" -Creates an instance of a licensed control, and returns the IUnknown interface to the object in \fIptr\fR. This functions returns TRUE if successful, otherwise returns FALSE. -.PP -This function is called by initialize() if the control string contains the substring "}:". The license key needs to follow this substring. -.PP -See also initialize(). -.SH "bool QAxBase::initializeRemote ( IUnknown ** ptr )\fC [protected]\fR" -Creates the instance on a remote server, and returns the IUnknown interface to the object in \fIptr\fR. This function returns TRUE if successful, otherwise returns FALSE. -.PP -This function is called by initialize() if the control string contains the substring "/{". The information about the remote machine needs to be provided in front of the substring. -.PP -See also initialize(). -.SH "bool QAxBase::isNull () const" -Returns TRUE if there is no COM object loaded by this wrapper; otherwise return FALSE. -.PP -See also control. -.SH "PropertyBag QAxBase::propertyBag () const" -Returns a name:value map of all the properties exposed by the COM object. -.PP -This is more efficient than getting multiple properties individually if the COM object supports property bags. -.PP -\fBWarning:\fR It is not guaranteed that the property bag implementation of the COM object returns all properties, or that the properties returned are the same as those available through the IDispatch interface. -.SH "void QAxBase::propertyChanged ( const TQString & name )\fC [signal]\fR" -If the COM object supports property notification, this signal gets emitted when the property called \fIname\fR is changed. -.SH "bool QAxBase::propertyWritable ( const char * prop ) const\fC [virtual]\fR" -Returns TRUE if the property \fIprop\fR is writable; otherwise returns FALSE. By default, all properties are writable. -.PP -\fBWarning:\fR Depending on the control implementation this setting might be ignored for some properties. -.PP -See also setPropertyWritable() and propertyChanged(). -.SH "long QAxBase::queryInterface ( const QUuid & uuid, void ** iface ) const" -Requests the interface \fIuuid\fR from the COM object and sets the value of \fIiface\fR to the provided interface, or to 0 if the requested interface could not be provided. -.PP -Returns the result of the QueryInterface implementation of the COM object. -.PP -See also control. -.SH "QAxObject * QAxBase::querySubObject ( const QCString & name, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -Returns a pointer to a QAxObject wrapping the COM object provided by the method or property \fIname\fR, passing passing the parameters \fIvar1\fR, \fIvar1\fR, \fIvar2\fR, \fIvar3\fR, \fIvar4\fR, \fIvar5\fR, \fIvar6\fR, \fIvar7\fR and \fIvar8\fR. -.PP -If \fIname\fR is provided by a method the string must include the full function prototype. -.PP -If \fIname\fR is a property the string must be the name of the property, and \fIvar1\fR, ... \fIvar8\fR are ignored. -.PP -The returned QAxObject is a child of this object (which is either of type QAxObject or QAxWidget), and is deleted when this object is deleted. It is however safe to delete the returned object yourself, and you should do so when you iterate over lists of subobjects. -.PP -COM enabled applications usually have an object model publishing certain elements of the application as dispatch interfaces. Use this method to navigate the hierarchy of the object model, e.g. -.PP -.nf -.br - QAxWidget outlook( "Outlook.Application" ); -.br - QAxObject *session = outlook.querySubObject( "Session" ); -.br - if ( session ) { -.br - QAxObject *defFolder = session->querySubObject( -.br - "GetDefaultFolder(OlDefaultFolders)", -.br - "olFolderContacts" ); -.br - //... -.br - } -.br -.fi -.PP -Example: qutlook/centralwidget.cpp. -.SH "bool QAxBase::setControl ( const TQString & )" -Sets the name of the COM object wrapped by this QAxBase object. See the "control" property for details. -.SH "void QAxBase::setPropertyBag ( const PropertyBag & bag )" -Sets the properties of the COM object to the corresponding values in \fIbag\fR. -.PP -\fBWarning:\fR You should only set property bags that have been returned by the propertyBag function, as it cannot be guaranteed that the property bag implementation of the COM object supports the same properties that are available through the IDispatch interface. -.PP -See also propertyBag(). -.SH "void QAxBase::setPropertyWritable ( const char * prop, bool ok )\fC [virtual]\fR" -Sets the property \fIprop\fR to writable if \fIok\fR is TRUE, otherwise sets \fIprop\fR to be read-only. By default, all properties are writable. -.PP -\fBWarning:\fR Depending on the control implementation this setting might be ignored for some properties. -.PP -See also propertyWritable() and propertyChanged(). -.SH "void QAxBase::signal ( const TQString & name, int argc, void * argv )\fC [signal]\fR" -This generic signal gets emitted when the COM object issues the event \fIname\fR. \fIargc\fR is the number of parameters provided by the event (DISPPARAMS.cArgs), and \fIargv\fR is the pointer to the parameter values (DISPPARAMS.rgvarg). Note that the order of parameter values is turned around, ie. the last element of the array is the first parameter in the function. -.PP -.nf -.br - void Receiver::slot( const TQString &name, int argc, void *argv ) -.br - { -.br - VARIANTARG *params = (VARIANTARG*)argv; -.br - if ( name.startsWith( "BeforeNavigate2(" ) ) { -.br - IDispatch *pDisp = params[argc-1].pdispVal; -.br - VARIANTARG URL = *params[argc-2].pvarVal; -.br - VARIANTARG Flags = *params[argc-3].pvarVal; -.br - VARIANTARG TargetFrameName = *params[argc-4].pvarVal; -.br - VARIANTARG PostData = *params[argc-5].pvarVal; -.br - VARIANTARG Headers = *params[argc-6].pvarVal; -.br - bool *Cancel = params[argc-7].pboolVal; -.br - } -.br - } -.br -.fi -.PP -Use this signal if the event has parameters of unsupported data types. Otherwise, connect directly to the signal \fIname\fR. -.SS "Property Documentation" -.SH "TQString control" -This property holds the name of the COM object wrapped by this QAxBase object. -.PP -Setting this property initilializes the COM object. Any COM object previously set is shut down. -.PP -The most efficient way to set this property is by using the registered component's UUID, e.g. -.PP -.nf -.br - ctrl->setControl( "{8E27C92B-1264-101C-8A2F-040224009C02}" ); -.br -.fi -The second fastest way is to use the registered control's class name (with or without version number), e.g. -.PP -.nf -.br - ctrl->setControl( "MSCal.Calendar" ); -.br -.fi -The slowest, but easiest way to use is to use the control's full name, e.g. -.PP -.nf -.br - ctrl->setControl( "Calendar Control 9.0" ); -.br -.fi -.PP -If the component's UUID is used the following patterns can be used to initialize the control on a remote machine, to initialize a licensed control or to connect to a running object: -.TP -To initialize the control on a different machine use the following pattern: -.IP -.nf -.br - :@server/{8E27C92B-1264-101C-8A2F-040224009C02} -.br -.fi -.TP -To initialize a licensed control use the following pattern: -.IP -.nf -.br - {8E27C92B-1264-101C-8A2F-040224009C02}: -.br -.fi -.TP -To connect to an already running object use the following pattern: -.IP -.nf -.br - {8E27C92B-1264-101C-8A2F-040224009C02}& -.br -.fi -The first two patterns can be combined, e.g. to initialize a licensed control on a remote machine: -.PP -.nf -.br - ctrl->setControl("DOMAIN/user:password@server/{8E27C92B-1264-101C-8A2F-040224009C02}:LicenseKey"); -.br -.fi -.PP -The control's read function always returns the control's UUID, if provided including the license key, and the name of the server, but not including the username, the domain or the password. -.PP -Set this property's value with setControl() and get this property's value with control(). - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxbase.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxbase.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqaxbindable.3qt b/doc/man/man3/tqaxbindable.3qt deleted file mode 100644 index 9627667a..00000000 --- a/doc/man/man3/tqaxbindable.3qt +++ /dev/null @@ -1,152 +0,0 @@ -'\" t -.TH QAxBindable 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxBindable \- Interface between a TQWidget and an ActiveX client -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "\fBQAxBindable\fR ()" -.br -.ti -1c -.BI "virtual \fB~QAxBindable\fR ()" -.br -.ti -1c -.BI "virtual QAxAggregated * \fBcreateAggregate\fR ()" -.br -.in -1c -.SS "Static Public Members" -.in +1c -.ti -1c -.BI "void \fBreportError\fR ( int code, const TQString & src, const TQString & desc, const TQString & context = TQString::null )" -.br -.in -1c -.SS "Protected Members" -.in +1c -.ti -1c -.BI "bool \fBrequestPropertyChange\fR ( const char * property )" -.br -.ti -1c -.BI "void \fBpropertyChanged\fR ( const char * property )" -.br -.ti -1c -.BI "IUnknown * \fBclientSite\fR () const" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxBindable class provides an interface between a TQWidget and an ActiveX client. -.PP -The functions provided by this class allow an ActiveX control to communicate property changes to a client application. Inherit your control class from both TQWidget (directly or indirectly) and this class to get access to this class's functions. The meta object compiler requires you to inherit from TQWidget \fIfirst\fR. -.PP -.nf -.br - class MyActiveX : public TQWidget, public QAxBindable -.br - { -.br - TQ_OBJECT -.br - TQ_PROPERTY( int value READ value WRITE setValue ) -.br - public: -.br - MyActiveX( TQWidget *parent = 0, const char *name = 0 ); -.br - ... -.br -.br - int value() const; -.br - void setValue( int ); -.br - }; -.br -.fi -.PP -When implementing the property write function, use requestPropertyChange() to get permission from the ActiveX client application to change this property. When the property changes, call propertyChanged() to notify the ActiveX client application about the change. If a fatal error occurs in the control, use the static reportError() function to notify the client. -.PP -Use the interface returned by clientSite() to call the ActiveX client. To implement additional COM interfaces in your ActiveX control, reimplement createAggregate() to return a new object of a QAxAggregated subclass. -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QAxBindable::QAxBindable ()" -Constructs an empty QAxBindable object. -.SH "QAxBindable::~QAxBindable ()\fC [virtual]\fR" -Destroys the QAxBindable object. -.SH "IUnknown * QAxBindable::clientSite () const\fC [protected]\fR" -Returns a pointer to the client site interface for this ActiveX object, or null if no client site has been set. -.PP -Call QueryInterface() on the returned interface to get the interface you want to call. -.SH "QAxAggregated * QAxBindable::createAggregate ()\fC [virtual]\fR" -Reimplement this function when you want to implement additional COM interfaces in the ActiveX control, or when you want to provide alternative implementations of COM interfaces. Return a new object of a QAxAggregated subclass. -.PP -The default implementation returns the null pointer. -.SH "void QAxBindable::propertyChanged ( const char * property )\fC [protected]\fR" -Call this function to notify the client that is hosting this ActiveX control that the property \fIproperty\fR has been changed. -.PP -This function is usually called at the end of the property's write function. -.PP -See also requestPropertyChange(). -.SH "void QAxBindable::reportError ( int code, const TQString & src, const TQString & desc, const TQString & context = TQString::null )\fC [static]\fR" -Reports an error to the client application. \fIcode\fR is a control-defined error code. \fIdesc\fR is a human-readable description of the error intended for the application user. \fIsrc\fR is the name of the source for the error, typically the ActiveX server name. \fIcontext\fR can be the location of a help file with more information about the error. If \fIcontext\fR ends with a number in brackets, e.g. [12], this number will be interpreted as the context ID in the help file. -.SH "bool QAxBindable::requestPropertyChange ( const char * property )\fC [protected]\fR" -Call this function to request permission to change the property \fIproperty\fR from the client that is hosting this ActiveX control. Returns TRUE if the client allows the change; otherwise returns FALSE. -.PP -This function is usually called first in the write function for \fIproperty\fR, and writing is abandoned if the function returns FALSE. -.PP -.nf -.br - void MyActiveQt::setText( const TQString &text ) -.br - { -.br - if ( !requestPropertyChange( "text" ) ) -.br - return; -.br -.br - // update property -.br -.br - propertyChanged( "text" ); -.br - } -.br -.fi -.PP -See also propertyChanged(). - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxbindable.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxbindable.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqaxfactory.3qt b/doc/man/man3/tqaxfactory.3qt deleted file mode 100644 index 4ce81b59..00000000 --- a/doc/man/man3/tqaxfactory.3qt +++ /dev/null @@ -1,436 +0,0 @@ -'\" t -.TH QAxFactory 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxFactory \- Defines a factory for the creation of COM components -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "\fBQAxFactory\fR ( const QUuid & libid, const QUuid & appid )" -.br -.ti -1c -.BI "virtual \fB~QAxFactory\fR ()" -.br -.ti -1c -.BI "virtual TQStringList \fBfeatureList\fR () const = 0" -.br -.ti -1c -.BI "virtual TQWidget * \fBcreate\fR ( const TQString & key, TQWidget * parent = 0, const char * name = 0 )" -.br -.ti -1c -.BI "virtual TQObject * \fBcreateObject\fR ( const TQString & key, TQObject * parent = 0, const char * name = 0 )" -.br -.ti -1c -.BI "virtual QMetaObject * \fBmetaObject\fR ( const TQString & key ) const" -.br -.ti -1c -.BI "virtual bool \fBcreateObjectWrapper\fR ( TQObject * object, IDispatch ** wrapper )" -.br -.ti -1c -.BI "virtual QUuid \fBclassID\fR ( const TQString & key ) const" -.br -.ti -1c -.BI "virtual QUuid \fBinterfaceID\fR ( const TQString & key ) const" -.br -.ti -1c -.BI "virtual QUuid \fBeventsID\fR ( const TQString & key ) const" -.br -.ti -1c -.BI "virtual QUuid \fBtypeLibID\fR () const" -.br -.ti -1c -.BI "virtual QUuid \fBappID\fR () const" -.br -.ti -1c -.BI "virtual void \fBregisterClass\fR ( const TQString & key, QSettings * settings ) const" -.br -.ti -1c -.BI "virtual void \fBunregisterClass\fR ( const TQString & key, QSettings * settings ) const" -.br -.ti -1c -.BI "virtual bool \fBvalidateLicenseKey\fR ( const TQString & key, const TQString & licenseKey ) const" -.br -.ti -1c -.BI "virtual TQString \fBexposeToSuperClass\fR ( const TQString & key ) const" -.br -.ti -1c -.BI "virtual bool \fBstayTopLevel\fR ( const TQString & key ) const" -.br -.ti -1c -.BI "virtual bool \fBhasStockEvents\fR ( const TQString & key ) const" -.br -.ti -1c -.BI "virtual bool \fBisService\fR () const" -.br -.ti -1c -.BI "enum \fBServerType\fR { SingleInstance, MultipleInstances }" -.br -.in -1c -.SS "Static Public Members" -.in +1c -.ti -1c -.BI "bool \fBisServer\fR ()" -.br -.ti -1c -.BI "TQString \fBserverDirPath\fR ()" -.br -.ti -1c -.BI "TQString \fBserverFilePath\fR ()" -.br -.ti -1c -.BI "bool \fBstartServer\fR ( ServerType type = MultipleInstances )" -.br -.ti -1c -.BI "bool \fBstopServer\fR ()" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxFactory class defines a factory for the creation of COM components. -.PP - -.PP -Implement this factory once in your ActiveX server to provide information about the components the server can create. If your server supports just a single ActiveX control, you can use the default factory implementation instead of implementing the factory yourself. Use the QAXFACTORY_DEFAULT macro in any implementation file (e.g. main.cpp) to instantiate and export the default factory: -.PP -.nf -.br - #include -.br - #include -.br -.br - #include "theactivex.h" -.br -.br - QAXFACTORY_DEFAULT( -.br - TheActiveX, // widget class -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}", // class ID -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}", // interface ID -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}", // event interface ID -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}", // type library ID -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}" // application ID -.br - ) -.br -.fi -.PP -If you implement your own factory reimplement the pure virtual functions, provide the unique identifiers for the ActiveX controls, and use the QAXFACTORY_EXPORT macro to instantiate and export it: -.PP -.nf -.br - TQStringList ActiveQtFactory::featureList() const -.br - { -.br - TQStringList list; -.br - list << "ActiveX1"; -.br - list << "ActiveX2"; -.br - ... -.br - return list; -.br - } -.br -.br - TQWidget *ActiveQtFactory::create( const TQString &key, TQWidget *parent, const char *name ) -.br - { -.br - if ( key == "ActiveX1" ) -.br - return new ActiveX1( parent, name ); -.br - if ( key == "ActiveX2" ) -.br - return new ActiveX2( parent, name ); -.br - ... -.br - return 0; -.br - } -.br -.br - QUuid ActiveQtFactory::classID( const TQString &key ) const -.br - { -.br - if ( key == "ActiveX1" ) -.br - return "{01234567-89AB-CDEF-0123-456789ABCDEF}"; -.br - ... -.br - return QUuid(); -.br - } -.br -.br - QUuid ActiveQtFactory::interfaceID( const TQString &key ) const -.br - { -.br - if ( key == "ActiveX1" ) -.br - return "{01234567-89AB-CDEF-0123-456789ABCDEF}"; -.br - ... -.br - return QUuid(); -.br - } -.br -.br - QUuid ActiveQtFactory::eventsID( const TQString &key ) const -.br - { -.br - if ( key == "ActiveX1" ) -.br - return "{01234567-89AB-CDEF-0123-456789ABCDEF}"; -.br - ... -.br - return QUuid(); -.br - } -.br -.br - QAXFACTORY_EXPORT( -.br - MyFactory, // factory class -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}", // type library ID -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}" // application ID -.br - ) -.br -.fi -.PP -If you use the \fCTQ_CLASSINFO\fR macro to provide the unique identifiers or other attributes for your class you can use the QAXFACTORY_BEGIN, QAXCLASS and QAXFACTORY_END macros to expose one or more classes as COM objects. -.PP -.nf -.br - QAXFACTORY_BEGIN( -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}", // type library ID -.br - "{01234567-89AB-CDEF-0123-456789ABCDEF}" // application ID -.br - ) -.br - QAXCLASS(Class1) -.br - QAXCLASS(Class2) -.br - QAXFACTORY_END() -.br -.fi -.PP -Only one QAxFactory implementation may be instantiated and exported by an ActiveX server application. This instance is accessible through the global qAxFactory() function. -.PP -A factory can also reimplement the registerClass() and unregisterClass() functions to set additional flags for an ActiveX control in the registry. To limit the number of methods or properties a widget class exposes from its parent classes reimplement exposeToSuperClass(). -.SS "Member Type Documentation" -.SH "QAxFactory::ServerType" -This enum specifies the different types of servers that can be started with startServer. -.TP -\fCQAxFactory::SingleInstance\fR - The server can create only one instance of each supplied class. -.TP -\fCQAxFactory::MultipleInstances\fR - The server can create multiple instances of each supplied class. -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QAxFactory::QAxFactory ( const QUuid & libid, const QUuid & appid )" -Constructs a QAxFactory object that returns \fIlibid\fR and \fIappid\fR in the implementation of the respective interface functions. -.SH "QAxFactory::~QAxFactory ()\fC [virtual]\fR" -Destroys the QAxFactory object. -.SH "QUuid QAxFactory::appID () const\fC [virtual]\fR" -Reimplement this function to return the ActiveX server's application identifier. -.SH "QUuid QAxFactory::classID ( const TQString & key ) const\fC [virtual]\fR" -Reimplement this function to return the class identifier for each \fIkey\fR returned by the featureList() implementation, or an empty QUuid if this factory doesn't support the value of \fIkey\fR. -.PP -The default implementation interprets \fIkey\fR as the class name, and returns the value of the TQ_CLASSINFO entry "ClassID". -.SH "TQWidget * QAxFactory::create ( const TQString & key, TQWidget * parent = 0, const char * name = 0 )\fC [virtual]\fR" -Reimplement this function to return a new widget for \fIkey\fR. Propagate \fIparent\fR and \fIname\fR to the TQWidget constructor. Return 0 if this factory doesn't support the value of \fIkey\fR. -.PP -The returned widget will be exposed as an ActiveX control, e.g. a COM object that can be embedded as a control into applications. -.PP -The default implementation returns 0. -.SH "TQObject * QAxFactory::createObject ( const TQString & key, TQObject * parent = 0, const char * name = 0 )\fC [virtual]\fR" -Reimplement this function to return a new object for \fIkey\fR. Propagate \fIparent\fR and \fIname\fR to the TQWidget constructor. Return 0 if this factory doesn't support the value of \fIkey\fR. -.PP -If the object returned is a TQWidget it will be exposed as an ActiveX control, otherwise the returned object will be exposed as a COM object. -.PP -The default implementation returns the result QAxFactory::create() if \fIparent\fR is 0 or a widget, otherwise returns 0. -.SH "bool QAxFactory::createObjectWrapper ( TQObject * object, IDispatch ** wrapper )\fC [virtual]\fR" -Reimplement this function to provide the COM object for \fIobject\fR in \fIwrapper\fR. Return TRUE if the function was successfull, otherwise return FALSE. -.PP -The default implementation creates a generic automation wrapper based on the meta object information of \fIobject\fR. -.SH "QUuid QAxFactory::eventsID ( const TQString & key ) const\fC [virtual]\fR" -Reimplement this function to return the identifier of the event interface for each \fIkey\fR returned by the featureList() implementation, or an empty QUuid if this factory doesn't support the value of \fIkey\fR. -.PP -The default implementation interprets \fIkey\fR as the class name, and returns the value of the TQ_CLASSINFO entry "EventsID". -.SH "TQString QAxFactory::exposeToSuperClass ( const TQString & key ) const\fC [virtual]\fR" -Reimplement this function to return the name of the super class of \fIkey\fR up to which methods and properties should be exposed by the ActiveX control. -.PP -The default implementation interprets \fIkey\fR as the class name, and returns the value of the TQ_CLASSINFO entry "ToSuperClass". If no such value is set the null-string is returned, and the functions and properties of all the super classes including TQWidget will be exposed. -.PP -To only expose the functions and properties of the class itself, reimplement this function to return \fIkey\fR. -.SH "TQStringList QAxFactory::featureList () const\fC [pure virtual]\fR" -Reimplement this function to return a list of the widgets (class names) supported by this factory. -.SH "bool QAxFactory::hasStockEvents ( const TQString & key ) const\fC [virtual]\fR" -Reimplement this function to return TRUE if the ActiveX control \fIkey\fR should support the standard ActiveX events -.TP -Click -.TP -DblClick -.TP -KeyDown -.TP -KeyPress -.TP -KeyUp -.TP -MouseDown -.TP -MouseUp -.TP -MouseMove -.PP -The default implementation interprets \fIkey\fR as the class name, and returns TRUE if the value of the TQ_CLASSINFO entry "StockEvents" is "yes". Otherwise this function returns FALSE. -.SH "QUuid QAxFactory::interfaceID ( const TQString & key ) const\fC [virtual]\fR" -Reimplement this function to return the interface identifier for each \fIkey\fR returned by the featureList() implementation, or an empty QUuid if this factory doesn't support the value of \fIkey\fR. -.PP -The default implementation interprets \fIkey\fR as the class name, and returns the value of the TQ_CLASSINFO entry "InterfaceID". -.SH "bool QAxFactory::isServer ()\fC [static]\fR" -Returns TRUE if the application has been started (by COM) as an ActiveX server, otherwise returns FALSE. -.PP -.nf -.br - int main( int argc, char**argv ) -.br - { -.br - QApplication app( argc, argv ); -.br -.br - if ( !QAxFactory::isServer() ) { -.br - // initialize for stand-alone execution -.br - } -.br -.br - return app.exec() // standard event processing -.br - } -.br -.fi -.SH "bool QAxFactory::isService () const\fC [virtual]\fR" -Reimplement this function to return TRUE if the server is running as a persistent service (e.g. an NT service) and should not terminate even when all objects provided have been released. -.PP -The default implementation returns FALSE. -.SH "QMetaObject * QAxFactory::metaObject ( const TQString & key ) const\fC [virtual]\fR" -Reimplement this function to return the QMetaObject corresponding to \fIkey\fR, or 0 if this factory doesn't support the value of \fIkey\fR. -.PP -The default implementation returns the QMetaObject for the class \fIkey\fR. -.SH "void QAxFactory::registerClass ( const TQString & key, QSettings * settings ) const\fC [virtual]\fR" -Registers additional values for the class \fIkey\fR in the system registry using the \fIsettings\fR object. The standard values have already been registed by the framework, but additional values, e.g. implemented categories, can be added in an implementation of this function. -.PP -.nf -.br - settings->writeEntry( "/CLSID/" + classID(key) + "/Implemented Categories/{00000000-0000-0000-000000000000}/.", TQString::null ); -.br -.fi -.PP -If you reimplement this function you must also reimplement unregisterClass() to remove the additional registry values. -.PP -See also QSettings. -.SH "TQString QAxFactory::serverDirPath ()\fC [static]\fR" -Returns the directory that contains the server binary. -.PP -For out-of-process servers this is the same as QApplication::applicationDirPath(). For in-process servers that function returns the directory that contains the hosting application. -.SH "TQString QAxFactory::serverFilePath ()\fC [static]\fR" -Returns the file path of the server binary. -.PP -For out-of-process servers this is the same as QApplication::applicationFilePath(). For in-process servers that function returns the file path of the hosting application. -.SH "bool QAxFactory::startServer ( ServerType type = MultipleInstances )\fC [static]\fR" -Starts the COM server with \fItype\fR and returns TRUE if successful, otherwise returns FALSE. -.PP -Calling this function if the server is already running (or for an in-process server) does nothing and returns TRUE. -.PP -The server is started automatically with \fItype\fR set to MultipleUse if the server executable has been started with the \fC-activex\fR command line parameter. -.SH "bool QAxFactory::stayTopLevel ( const TQString & key ) const\fC [virtual]\fR" -Reimplement this function to return TRUE if the ActiveX control \fIkey\fR should be a top level window, e.g. a dialog. The default implementation returns FALSE. -.SH "bool QAxFactory::stopServer ()\fC [static]\fR" -Stops the COM server and returns TRUE if successful, otherwise returns FALSE. -.PP -Calling this function if the server is not running (or for an in-process server) does nothing and returns TRUE. -.PP -Stopping the server will not invalidate existing objects, but no new objects can be created from the existing server process. Usually COM will start a new server process if additional objects are requested. -.PP -The server is stopped automatically when the main() function returns. -.SH "QUuid QAxFactory::typeLibID () const\fC [virtual]\fR" -Reimplement this function to return the ActiveX server's type library identifier. -.SH "void QAxFactory::unregisterClass ( const TQString & key, QSettings * settings ) const\fC [virtual]\fR" -Unregisters any additional values for the class \fIkey\fR from the system registry using the \fIsettings\fR object. -.PP -.nf -.br - settings->removeEntry( "/CLSID/" + classID(key) + "/Implemented Categories/{00000000-0000-0000-000000000000}/." ); -.br -.fi -.PP -See also registerClass() and QSettings. -.SH "bool QAxFactory::validateLicenseKey ( const TQString & key, const TQString & licenseKey ) const\fC [virtual]\fR" -Reimplement this function to return TRUE if \fIlicenseKey\fR is a valid license for the class \fIkey\fR, or if the current machine is licensed. -.PP -The default implementation returns TRUE if the class \fIkey\fR is not -licensed (ie. no TQ_CLASSINFO attribute "LicenseKey"), or if -\fIlicenseKey\fR matches the value of the "LicenseKey" attribute, or -if the machine is licensed through a .LIC file with the same filename -as this COM server. - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxfactory.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxfactory.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqaxobject.3qt b/doc/man/man3/tqaxobject.3qt deleted file mode 100644 index 3019e2e0..00000000 --- a/doc/man/man3/tqaxobject.3qt +++ /dev/null @@ -1,183 +0,0 @@ -'\" t -.TH QAxObject 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxObject \- TQObject that wraps a COM object -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -Inherits TQObject and QAxBase. -.PP -Inherited by QAxScriptEngine. -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "\fBQAxObject\fR ( TQObject * parent = 0, const char * name = 0 )" -.br -.ti -1c -.BI "\fBQAxObject\fR ( const TQString & c, TQObject * parent = 0, const char * name = 0 )" -.br -.ti -1c -.BI "\fBQAxObject\fR ( IUnknown * iface, TQObject * parent = 0, const char * name = 0 )" -.br -.ti -1c -.BI "\fB~QAxObject\fR ()" -.br -.in -1c -.SS "Important Inherited Members" -.in +1c -.ti -1c -.BI "QVariant \fBdynamicCall\fR ( const QCString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -.br -.ti -1c -.BI "QVariant \fBdynamicCall\fR ( const QCString & function, TQValueList & vars )" -.br -.ti -1c -.BI "QAxObject * \fBquerySubObject\fR ( const QCString & name, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxObject class provides a TQObject that wraps a COM object. -.PP -A QAxObject can be instantiated as an empty object, with the name of the COM object it should wrap, or with a pointer to the IUnknown that represents an existing COM object. If the COM object implements the IDispatch interface, the properties, methods and events of that object become available as TQt properties, slots and signals. The base class, QAxBase, provides an API to access the COM object directly through the IUnknown pointer. -.PP -QAxObject is a TQObject and can be used as such, e.g. it can be organized in an object hierarchy, receive events and connect to signals and slots. -.PP -\fBWarning:\fR You can subclass QAxObject, but you cannot use the TQ_OBJECT macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxObject as a member of the TQObject subclass. -.PP -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QAxObject::QAxObject ( TQObject * parent = 0, const char * name = 0 )" -Creates an empty COM object and propagates \fIparent\fR and \fIname\fR to the TQObject constructor. To initialize the object, call setControl. -.SH "QAxObject::QAxObject ( const TQString & c, TQObject * parent = 0, const char * name = 0 )" -Creates a QAxObject that wraps the COM object \fIc\fR. \fIparent\fR and \fIname\fR are propagated to the TQWidget contructor. -.PP -See also control. -.SH "QAxObject::QAxObject ( IUnknown * iface, TQObject * parent = 0, const char * name = 0 )" -Creates a QAxObject that wraps the COM object referenced by \fIiface\fR. \fIparent\fR and \fIname\fR are propagated to the TQObject contructor. -.SH "QAxObject::~QAxObject ()" -Releases the COM object and destroys the QAxObject, cleaning up all allocated resources. -.SH "QVariant QAxBase::dynamicCall ( const QCString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -Calls the COM object's method \fIfunction\fR, passing the parameters \fIvar1\fR, \fIvar1\fR, \fIvar2\fR, \fIvar3\fR, \fIvar4\fR, \fIvar5\fR, \fIvar6\fR, \fIvar7\fR and \fIvar8\fR, and returns the value returned by the method, or an invalid QVariant if the method does not return a value or when the function call failed. -.PP -If \fIfunction\fR is a method of the object the string must be provided as the full prototype, for example as it would be written in a TQObject::connect() call. -.PP -.nf -.br - activeX->dynamicCall( "Navigate(const TQString&)", "www.trolltech.com" ); -.br -.fi -.PP -Alternatively a function can be called passing the parameters embedded in the string, e.g. above function can also be invoked using -.PP -.nf -.br - activeX->dynamicCall("Navigate(\\"www.trolltech.com\\"); -.br -.fi -All parameters are passed as strings; it depends on the control whether they are interpreted correctly, and is slower than using the prototype with correctly typed parameters. -.PP -If \fIfunction\fR is a property the string has to be the name of the property. The property setter is called when \fIvar1\fR is a valid QVariant, otherwise the getter is called. -.PP -.nf -.br - activeX->dynamicCall( "Value", 5 ); -.br - TQString text = activeX->dynamicCall( "Text" ).toString(); -.br -.fi -Note that it is faster to get and set properties using TQObject::property() and TQObject::setProperty(). -.PP -It is only possible to call functions through dynamicCall() that have parameters or return values of datatypes supported by QVariant. See the QAxBase class documentation for a list of supported and unsupported datatypes. If you want to call functions that have unsupported datatypes in the parameter list, use queryInterface() to retrieve the appropriate COM interface, and use the function directly. -.PP -.nf -.br - IWebBrowser2 *webBrowser = 0; -.br - activeX->queryInterface( IID_IWebBrowser2, (void**)&webBrowser ); -.br - if ( webBrowser ) { -.br - webBrowser->Navigate2( pvarURL ); -.br - webBrowser->Release(); -.br - } -.br -.fi -.PP -This is also more efficient. -.PP -Example: qutlook/centralwidget.cpp. -.SH "QVariant QAxBase::dynamicCall ( const QCString & function, TQValueList & vars )" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -Calls the COM object's method \fIfunction\fR, passing the parameters in \fIvars\fR, and returns the value returned by the method. If the method does not return a value or when the function call failed this function returns an invalid QVariant object. -.PP -The QVariant objects in \fIvars\fR are updated when the method has out-parameters. -.SH "QAxObject * QAxBase::querySubObject ( const QCString & name, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -Returns a pointer to a QAxObject wrapping the COM object provided by the method or property \fIname\fR, passing passing the parameters \fIvar1\fR, \fIvar1\fR, \fIvar2\fR, \fIvar3\fR, \fIvar4\fR, \fIvar5\fR, \fIvar6\fR, \fIvar7\fR and \fIvar8\fR. -.PP -If \fIname\fR is provided by a method the string must include the full function prototype. -.PP -If \fIname\fR is a property the string must be the name of the property, and \fIvar1\fR, ... \fIvar8\fR are ignored. -.PP -The returned QAxObject is a child of this object (which is either of type QAxObject or QAxWidget), and is deleted when this object is deleted. It is however safe to delete the returned object yourself, and you should do so when you iterate over lists of subobjects. -.PP -COM enabled applications usually have an object model publishing certain elements of the application as dispatch interfaces. Use this method to navigate the hierarchy of the object model, e.g. -.PP -.nf -.br - QAxWidget outlook( "Outlook.Application" ); -.br - QAxObject *session = outlook.querySubObject( "Session" ); -.br - if ( session ) { -.br - QAxObject *defFolder = session->querySubObject( -.br - "GetDefaultFolder(OlDefaultFolders)", -.br - "olFolderContacts" ); -.br - //... -.br - } -.br -.fi -.PP -Example: qutlook/centralwidget.cpp. - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxobject.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxobject.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqaxscript.3qt b/doc/man/man3/tqaxscript.3qt deleted file mode 100644 index c339d10c..00000000 --- a/doc/man/man3/tqaxscript.3qt +++ /dev/null @@ -1,169 +0,0 @@ -'\" t -.TH QAxScript 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxScript \- Wrapper around script code -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -Inherits TQObject. -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "enum \fBFunctionFlags\fR { FunctionNames = 0, FunctionSignatures }" -.br -.ti -1c -.BI "\fBQAxScript\fR ( const TQString & name, QAxScriptManager * manager )" -.br -.ti -1c -.BI "\fB~QAxScript\fR ()" -.br -.ti -1c -.BI "bool \fBload\fR ( const TQString & code, const TQString & language = TQString::null )" -.br -.ti -1c -.BI "TQStringList \fBfunctions\fR ( FunctionFlags flags = FunctionNames ) const" -.br -.ti -1c -.BI "TQString \fBscriptCode\fR () const" -.br -.ti -1c -.BI "TQString \fBscriptName\fR () const" -.br -.ti -1c -.BI "QAxScriptEngine * \fBscriptEngine\fR () const" -.br -.ti -1c -.BI "QVariant \fBcall\fR ( const TQString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -.br -.ti -1c -.BI "QVariant \fBcall\fR ( const TQString & function, TQValueList & arguments )" -.br -.in -1c -.SS "Signals" -.in +1c -.ti -1c -.BI "void \fBentered\fR ()" -.br -.ti -1c -.BI "void \fBfinished\fR ()" -.br -.ti -1c -.BI "void \fBfinished\fR ( const QVariant & result )" -.br -.ti -1c -.BI "void \fBfinished\fR ( int code, const TQString & source, const TQString & description, const TQString & help )" -.br -.ti -1c -.BI "void \fBstateChanged\fR ( int state )" -.br -.ti -1c -.BI "void \fBerror\fR ( int code, const TQString & description, int sourcePosition, const TQString & sourceText )" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxScript class provides a wrapper around script code. -.PP -Every instance of the QAxScript class represents a piece of scripting code in a particular scripting language. The code is loaded into the script engine using load(). Functions declared in the code can be called using call(). -.PP -The script provides scriptEngine() provides feedback to the application through signals. The most important signal is the error() signal. Direct access to the QAxScriptEngine is provided through the scriptEngine() function. -.PP -\fBWarning:\fR This class is not available with the bcc5.5 and MingW compilers. -.SS "Member Type Documentation" -.SH "QAxScript::FunctionFlags" -This FunctionFlags enum describes formatting for function introspection. -.TP -\fCQAxScript::FunctionNames\fR - Only function names are returned. -.TP -\fCQAxScript::FunctionSignatures\fR - Returns the functions with signatures. -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QAxScript::QAxScript ( const TQString & name, QAxScriptManager * manager )" -Constructs a QAxScript object called \fIname\fR and registers it with the QAxScriptManager \fImanager\fR. This is usually done by the QAxScriptManager class when loading a script. -.PP -A script should always have a name. A manager is necessary to allow the script code to reference objects in the application. The \fImanager\fR takes ownership of the object. -.SH "QAxScript::~QAxScript ()" -Destroys the object, releasing all allocated resources. -.SH "QVariant QAxScript::call ( const TQString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -Calls \fIfunction\fR, passing the parameters \fIvar1\fR, \fIvar1\fR, \fIvar2\fR, \fIvar3\fR, \fIvar4\fR, \fIvar5\fR, \fIvar6\fR, \fIvar7\fR and \fIvar8\fR as arguments and returns the value returned by the function, or an invalid QVariant if the function does not return a value or when the function call failed. -.PP -See QAxScriptManager::call() for more information about how to call script functions. -.SH "QVariant QAxScript::call ( const TQString & function, TQValueList & arguments )" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -Calls \fIfunction\fR passing \fIarguments\fR as parameters, and returns the result. Returns when the script's execution has finished. -.PP -See QAxScriptManager::call() for more information about how to call script functions. -.SH "void QAxScript::entered ()\fC [signal]\fR" -This signal is emitted when a script engine has started executing code. -.SH "void QAxScript::error ( int code, const TQString & description, int sourcePosition, const TQString & sourceText )\fC [signal]\fR" -This signal is emitted when an execution error occured while running a script. -.PP -\fIcode\fR, \fIdescription\fR, \fIsourcePosition\fR and \fIsourceText\fR contain information about the execution error. -.SH "void QAxScript::finished ()\fC [signal]\fR" -This signal is emitted when a script engine has finished executing code. -.SH "void QAxScript::finished ( const QVariant & result )\fC [signal]\fR" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -\fIresult\fR contains the script's result. This will be an invalid QVariant if the script has no return value. -.SH "void QAxScript::finished ( int code, const TQString & source, const TQString & description, const TQString & help )\fC [signal]\fR" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -\fIcode\fR, \fIsource\fR, \fIdescription\fR and \fIhelp\fR contain exception information when the script terminated. -.SH "TQStringList QAxScript::functions ( FunctionFlags flags = FunctionNames ) const" -Returns a list of all the functions in this script if the respective script engine supports introspection; otherwise returns an empty list. The functions are either provided with full prototypes or only as names, depending on the value of \fIflags\fR. -.PP -See also QAxScriptEngine::hasIntrospection(). -.SH "bool QAxScript::load ( const TQString & code, const TQString & language = TQString::null )" -Loads the script source \fIcode\fR written in language \fIlanguage\fR into the script engine. Returns TRUE if \fIcode\fR was successfully entered into the script engine; otherwise returns FALSE. -.PP -If \fIlanguage\fR is empty (the default) it will be determined heuristically. If \fIcode\fR contains the string \fCEnd Sub\fR it will be interpreted as VBScript, otherwise as JScript. Additional scripting languages can be registered using QAxScript::registerEngine(). -.PP -This function can only be called once for each QAxScript object, which is done automatically when using QAxScriptManager::load(). -.SH "TQString QAxScript::scriptCode () const" -Returns the script's code, or the null-string if no code has been loaded yet. -.PP -See also load(). -.SH "QAxScriptEngine * QAxScript::scriptEngine () const" -Returns a pointer to the script engine. -.PP -You can use the object returned to connect signals to the script functions, or to access the script engine directly. -.SH "TQString QAxScript::scriptName () const" -Returns the name of the script. -.SH "void QAxScript::stateChanged ( int state )\fC [signal]\fR" -This signal is emitted when a script engine changes state. -\fIstate\fR can be any value in the QAxScriptEngineState enumeration. - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxscript.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxscript.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqaxscriptengine.3qt b/doc/man/man3/tqaxscriptengine.3qt deleted file mode 100644 index efcfb834..00000000 --- a/doc/man/man3/tqaxscriptengine.3qt +++ /dev/null @@ -1,123 +0,0 @@ -'\" t -.TH QAxScriptEngine 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxScriptEngine \- Wrapper around a script engine -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -Inherits QAxObject. -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "enum \fBState\fR { Uninitialized = 0, Initialized = 5, Started = 1, Connected = 2, Disconnected = 3, Closed = 4 }" -.br -.ti -1c -.BI "\fBQAxScriptEngine\fR ( const TQString & language, QAxScript * script )" -.br -.ti -1c -.BI "\fB~QAxScriptEngine\fR ()" -.br -.ti -1c -.BI "bool \fBisValid\fR () const" -.br -.ti -1c -.BI "bool \fBhasIntrospection\fR () const" -.br -.ti -1c -.BI "TQString \fBscriptLanguage\fR () const" -.br -.ti -1c -.BI "State \fBstate\fR () const" -.br -.ti -1c -.BI "void \fBsetState\fR ( State st )" -.br -.ti -1c -.BI "void \fBaddItem\fR ( const TQString & name )" -.br -.ti -1c -.BI "long \fBqueryInterface\fR ( const QUuid & uuid, void ** iface ) const" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxScriptEngine class provides a wrapper around a script engine. -.PP -Every instance of the QAxScriptEngine class represents an interpreter for script code in a particular scripting language. The class is usually not used directly. The QAxScript and QAxScriptManager classes provide convenient functions to handle and call script code. -.PP -Direct access to the script engine is provided through queryInterface(). -.PP -\fBWarning:\fR This class is not available with the bcc5.5 and MingW compilers. -.SS "Member Type Documentation" -.SH "QAxScriptEngine::State" -The State enumeration defines the different states a script engine can be in. -.TP -\fCQAxScriptEngine::Uninitialized\fR - The script has been created, but not yet initialized -.TP -\fCQAxScriptEngine::Initialized\fR - The script has been initialized, but is not running -.TP -\fCQAxScriptEngine::Started\fR - The script can execute code, but does not yet handle events -.TP -\fCQAxScriptEngine::Connected\fR - The script can execute code and is connected so that it can handle events -.TP -\fCQAxScriptEngine::Disconnected\fR - The script is loaded, but is not connected to event sources -.TP -\fCQAxScriptEngine::Closed\fR - The script has been closed. -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QAxScriptEngine::QAxScriptEngine ( const TQString & language, QAxScript * script )" -Constructs a QAxScriptEngine object interpreting script code in \fIlanguage\fR provided by the code in \fIscript\fR. This is usually done by the QAxScript class when loading a script. -.PP -Instances of QAxScriptEngine should always have both a language and a script. -.SH "QAxScriptEngine::~QAxScriptEngine ()" -Destroys the QAxScriptEngine object, releasing all allocated resources. -.SH "void QAxScriptEngine::addItem ( const TQString & name )" -Registers an item with the script engine. Script code can refer to this item using \fIname\fR. -.SH "bool QAxScriptEngine::hasIntrospection () const" -Returns TRUE if the script engine supports introspection; otherwise returns FALSE. -.SH "bool QAxScriptEngine::isValid () const" -Returns TRUE if the script engine has been initialized correctly; otherwise returns FALSE. -.SH "long QAxScriptEngine::queryInterface ( const QUuid & uuid, void ** iface ) const" -Requests the interface \fIuuid\fR from the script engine object and sets the value of \fIiface\fR to the provided interface, or to 0 if the requested interface could not be provided. -.PP -Returns the result of the QueryInterface implementation of the COM object. -.SH "TQString QAxScriptEngine::scriptLanguage () const" -Returns the scripting language, for example "VBScript", or "JScript". -.SH "void QAxScriptEngine::setState ( State st )" -Sets the state of the script engine to \fIst\fR. Calling this function is usually not necessary. -.SH "State QAxScriptEngine::state () const" -Returns the state of the script engine. - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxscriptengine.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxscriptengine.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqaxscriptmanager.3qt b/doc/man/man3/tqaxscriptmanager.3qt deleted file mode 100644 index bafa492d..00000000 --- a/doc/man/man3/tqaxscriptmanager.3qt +++ /dev/null @@ -1,197 +0,0 @@ -'\" t -.TH QAxScriptManager 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxScriptManager \- Bridge between application objects and script code -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -Inherits TQObject. -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "\fBQAxScriptManager\fR ( TQObject * parent = 0, const char * name = 0 )" -.br -.ti -1c -.BI "\fB~QAxScriptManager\fR ()" -.br -.ti -1c -.BI "void \fBaddObject\fR ( QAxBase * object )" -.br -.ti -1c -.BI "void \fBaddObject\fR ( TQObject * object )" -.br -.ti -1c -.BI "TQStringList \fBfunctions\fR ( QAxScript::FunctionFlags flags = QAxScript::FunctionNames ) const" -.br -.ti -1c -.BI "TQStringList \fBscriptNames\fR () const" -.br -.ti -1c -.BI "QAxScript * \fBscript\fR ( const TQString & name ) const" -.br -.ti -1c -.BI "QAxScript * \fBload\fR ( const TQString & code, const TQString & name, const TQString & language )" -.br -.ti -1c -.BI "QAxScript * \fBload\fR ( const TQString & file, const TQString & name )" -.br -.ti -1c -.BI "QVariant \fBcall\fR ( const TQString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -.br -.ti -1c -.BI "QVariant \fBcall\fR ( const TQString & function, TQValueList & arguments )" -.br -.in -1c -.SS "Signals" -.in +1c -.ti -1c -.BI "void \fBerror\fR ( QAxScript * script, int code, const TQString & description, int sourcePosition, const TQString & sourceText )" -.br -.in -1c -.SS "Static Public Members" -.in +1c -.ti -1c -.BI "bool \fBregisterEngine\fR ( const TQString & name, const TQString & extension, const TQString & code = TQString ( ) )" -.br -.ti -1c -.BI "TQString \fBscriptFileFilter\fR ()" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxScriptManager class provides a bridge between application objects and script code. -.PP -The QAxScriptManager acts as a bridge between the COM objects embedded in the TQt application through QAxObject or QAxWidget, and the scripting languages available through the Windows Script technologies, usually JScript and VBScript. -.PP -Create one QAxScriptManager for each separate document in your application, and add the COM objects the scripts need to access using addObject(). Then load() the script sources and invoke the functions using call(). -.PP -\fBWarning:\fR This class is not available with the bcc5.5 and MingW compilers. -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QAxScriptManager::QAxScriptManager ( TQObject * parent = 0, const char * name = 0 )" -Creates a QAxScriptManager object. \fIparent\fR and \fIname\fR are passed on to the TQObject constructor. -.PP -It is usual to create one QAxScriptManager for each document in an application. -.SH "QAxScriptManager::~QAxScriptManager ()" -Destroys the objects, releasing all allocated resources. -.SH "void QAxScriptManager::addObject ( QAxBase * object )" -Adds \fIobject\fR to the manager. Scripts handled by this manager can access the object in the code using the object's name property. -.PP -You must add all the necessary objects before loading any scripts. -.SH "void QAxScriptManager::addObject ( TQObject * object )" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -Adds a generic COM wrapper for \fIobject\fR to the manager. \fIobject\fR must be exposed as a COM object using the functionality provided by the QAxServer module.. Applications using this function you must link against the qaxserver library. -.SH "QVariant QAxScriptManager::call ( const TQString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -Calls \fIfunction\fR, passing the parameters \fIvar1\fR, \fIvar1\fR, \fIvar2\fR, \fIvar3\fR, \fIvar4\fR, \fIvar5\fR, \fIvar6\fR, \fIvar7\fR and \fIvar8\fR as arguments and returns the value returned by the function, or an invalid QVariant if the function does not return a value or when the function call failed. The call returns when the script's execution has finished. -.PP -In most script engines the only supported parameter type is "const QVariant&", for example, to call a JavaScript function -.PP -.nf -.br - function setNumber(number) -.br - { -.br - n = number; -.br - } -.br -.fi -use -.PP -.nf -.br - TQValueList args; -.br - args << 5; -.br - script->call("setNumber(const QVariant&)", args); -.br -.fi -As with dynamicCall the parameters can directly be embedded in the function string. -.PP -.nf -.br - script->call("setNumber(5)"); -.br -.fi -However, this is slower. -.PP -Functions provided by script engines that don't support introspection are not available and must be called directly using QAxScript::call() on the respective script object. -.PP -Note that calling this function can be significantely slower than using call() on the respective QAxScript directly. -.SH "QVariant QAxScriptManager::call ( const TQString & function, TQValueList & arguments )" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -Calls \fIfunction\fR passing \fIarguments\fR as parameters, and returns the result. Returns when the script's execution has finished. -.SH "void QAxScriptManager::error ( QAxScript * script, int code, const TQString & description, int sourcePosition, const TQString & sourceText )\fC [signal]\fR" -This signal is emitted when an execution error occured while running \fIscript\fR. -.PP -\fIcode\fR, \fIdescription\fR, \fIsourcePosition\fR and \fIsourceText\fR contain information about the execution error. -.SH "TQStringList QAxScriptManager::functions ( QAxScript::FunctionFlags flags = QAxScript::FunctionNames ) const" -Returns a list with all the functions that are available. Functions provided by script engines that don't support introspection are not included in the list. The functions are either provided with full prototypes or only as names, depending on the value of \fIflags\fR. -.SH "QAxScript * QAxScriptManager::load ( const TQString & code, const TQString & name, const TQString & language )" -Loads the script source \fIcode\fR using the script engine for \fIlanguage\fR. The script can later be referred to using its \fIname\fR which should not be empty. -.PP -The function returns a pointer to the script for the given \fIcode\fR if the \fIcode\fR was loaded successfully; otherwise it returns 0. -.PP -If \fIlanguage\fR is empty it will be determined heuristically. If \fIcode\fR contains the string "End Sub" it will be interpreted as VBScript, otherwise as JScript. Additional script engines can be registered using registerEngine(). -.PP -You must add all the objects necessary (using addObject()) \fIbefore\fR loading any scripts. If \fIcode\fR declares a function that is already available (no matter in which language) the first function is overloaded and can no longer be called via call(); but it will still be available by calling its script directly. -.PP -See also addObject(), scriptNames(), and functions(). -.SH "QAxScript * QAxScriptManager::load ( const TQString & file, const TQString & name )" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -Loads the source code from the \fIfile\fR. The script can later be referred to using its \fIname\fR which should not be empty. -.PP -The function returns a pointer to the script engine for the code in \fIfile\fR if \fIfile\fR was loaded successfully; otherwise it returns 0. -.PP -The script engine used is determined from the file's extension. By 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(). -.SH "bool QAxScriptManager::registerEngine ( const TQString & name, const TQString & extension, const TQString & code = TQString ( ) )\fC [static]\fR" -Registers the script engine called \fIname\fR and returns TRUE if the engine was found; otherwise does nothing and returns FALSE. -.PP -The script engine will be used when loading files with the given \fIextension\fR, or when loading source code that contains the string \fIcode\fR. -.SH "QAxScript * QAxScriptManager::script ( const TQString & name ) const" -Returns the script called \fIname\fR. -.PP -You can use the returned pointer to call functions directly through QAxScript::call(), to access the script engine directly, or to delete and thus unload the script. -.SH "TQString QAxScriptManager::scriptFileFilter ()\fC [static]\fR" -Returns a file filter listing all the supported script languages. This filter string is convenient for use with QFileDialog. -.SH "TQStringList QAxScriptManager::scriptNames () const" -Returns a list with the names of all the scripts. - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxscriptmanager.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxscriptmanager.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqaxwidget.3qt b/doc/man/man3/tqaxwidget.3qt deleted file mode 100644 index 448584e3..00000000 --- a/doc/man/man3/tqaxwidget.3qt +++ /dev/null @@ -1,215 +0,0 @@ -'\" t -.TH QAxWidget 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*- -.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the -.\" license file included in the distribution for a complete license -.\" statement. -.\" -.ad l -.nh -.SH NAME -QAxWidget \- TQWidget that wraps an ActiveX control -.SH SYNOPSIS -This class is part of the \fBQt ActiveQt Extension\fR. -.PP -\fC#include \fR -.PP -Inherits TQWidget and QAxBase. -.PP -.SS "Public Members" -.in +1c -.ti -1c -.BI "\fBQAxWidget\fR ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )" -.br -.ti -1c -.BI "\fBQAxWidget\fR ( const TQString & c, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )" -.br -.ti -1c -.BI "\fBQAxWidget\fR ( IUnknown * iface, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )" -.br -.ti -1c -.BI "\fB~QAxWidget\fR ()" -.br -.in -1c -.SS "Important Inherited Members" -.in +1c -.ti -1c -.BI "QVariant \fBdynamicCall\fR ( const QCString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -.br -.ti -1c -.BI "QVariant \fBdynamicCall\fR ( const QCString & function, TQValueList & vars )" -.br -.ti -1c -.BI "QAxObject * \fBquerySubObject\fR ( const QCString & name, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -.br -.in -1c -.SS "Protected Members" -.in +1c -.ti -1c -.BI "virtual bool \fBcreateHostWindow\fR ( bool initialized )" -.br -.ti -1c -.BI "virtual bool \fBtranslateKeyEvent\fR ( int message, int keycode ) const" -.br -.in -1c -.SH DESCRIPTION -This class is defined in the \fBQt ActiveQt Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main TQt API. -.PP -The QAxWidget class is a TQWidget that wraps an ActiveX control. -.PP -A QAxWidget can be instantiated as an empty object, with the name of the ActiveX control it should wrap, or with an existing interface pointer to the ActiveX control. The ActiveX control's properties, methods and events which only use supported data types, become available as TQt properties, slots and signals. The base class QAxBase provides an API to access the ActiveX directly through the IUnknown pointer. -.PP -QAxWidget is a TQWidget and can be used as such, e.g. it can be organized in a widget hierarchy, receive events or act as an event filter. Standard widget properties, e.g. enabled are supported, but it depends on the ActiveX control to implement support for ambient properties like e.g. palette or font. QAxWidget tries to provide the necessary hints. -.PP -\fBWarning:\fR You can subclass QAxWidget, but you cannot use the TQ_OBJECT macro in the subclass (the generated moc-file will not compile), so you cannot add further signals, slots or properties. This limitation is due to the metaobject information generated in runtime. To work around this problem, aggregate the QAxWidget as a member of the TQObject subclass. -.PP -.SH MEMBER FUNCTION DOCUMENTATION -.SH "QAxWidget::QAxWidget ( TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )" -Creates an empty QAxWidget widget and propagates \fIparent\fR, \fIname\fR and \fIf\fR to the TQWidget constructor. To initialize a control, call setControl. -.SH "QAxWidget::QAxWidget ( const TQString & c, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )" -Creates an QAxWidget widget and initializes the ActiveX control \fIc\fR. \fIparent\fR, \fIname\fR and \fIf\fR are propagated to the TQWidget contructor. -.PP -See also control. -.SH "QAxWidget::QAxWidget ( IUnknown * iface, TQWidget * parent = 0, const char * name = 0, WFlags f = 0 )" -Creates a QAxWidget that wraps the COM object referenced by \fIiface\fR. \fIparent\fR, \fIname\fR and \fIf\fR are propagated to the TQWidget contructor. -.SH "QAxWidget::~QAxWidget ()" -Shuts down the ActiveX control and destroys the QAxWidget widget, cleaning up all allocated resources. -.PP -See also clear(). -.SH "bool QAxWidget::createHostWindow ( bool initialized )\fC [virtual protected]\fR" -Creates the client site for the ActiveX control, and returns TRUE if the control could be embedded successfully, otherwise returns FALSE. If \fIinitialized\fR is TRUE the control has already been initialized. -.PP -This function is called by initialize(). If you reimplement initialize to customize the actual control instantiation, call this function in your reimplementation to have the control embedded by the default client side. Creates the client site for the ActiveX control, and returns TRUE if the control could be embedded successfully, otherwise returns FALSE. -.SH "QVariant QAxBase::dynamicCall ( const QCString & function, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -Calls the COM object's method \fIfunction\fR, passing the parameters \fIvar1\fR, \fIvar1\fR, \fIvar2\fR, \fIvar3\fR, \fIvar4\fR, \fIvar5\fR, \fIvar6\fR, \fIvar7\fR and \fIvar8\fR, and returns the value returned by the method, or an invalid QVariant if the method does not return a value or when the function call failed. -.PP -If \fIfunction\fR is a method of the object the string must be provided as the full prototype, for example as it would be written in a TQObject::connect() call. -.PP -.nf -.br - activeX->dynamicCall( "Navigate(const TQString&)", "www.trolltech.com" ); -.br -.fi -.PP -Alternatively a function can be called passing the parameters embedded in the string, e.g. above function can also be invoked using -.PP -.nf -.br - activeX->dynamicCall("Navigate(\\"www.trolltech.com\\"); -.br -.fi -All parameters are passed as strings; it depends on the control whether they are interpreted correctly, and is slower than using the prototype with correctly typed parameters. -.PP -If \fIfunction\fR is a property the string has to be the name of the property. The property setter is called when \fIvar1\fR is a valid QVariant, otherwise the getter is called. -.PP -.nf -.br - activeX->dynamicCall( "Value", 5 ); -.br - TQString text = activeX->dynamicCall( "Text" ).toString(); -.br -.fi -Note that it is faster to get and set properties using TQObject::property() and TQObject::setProperty(). -.PP -It is only possible to call functions through dynamicCall() that have parameters or return values of datatypes supported by QVariant. See the QAxBase class documentation for a list of supported and unsupported datatypes. If you want to call functions that have unsupported datatypes in the parameter list, use queryInterface() to retrieve the appropriate COM interface, and use the function directly. -.PP -.nf -.br - IWebBrowser2 *webBrowser = 0; -.br - activeX->queryInterface( IID_IWebBrowser2, (void**)&webBrowser ); -.br - if ( webBrowser ) { -.br - webBrowser->Navigate2( pvarURL ); -.br - webBrowser->Release(); -.br - } -.br -.fi -.PP -This is also more efficient. -.PP -Example: qutlook/centralwidget.cpp. -.SH "QVariant QAxBase::dynamicCall ( const QCString & function, TQValueList & vars )" -This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -.PP -Calls the COM object's method \fIfunction\fR, passing the parameters in \fIvars\fR, and returns the value returned by the method. If the method does not return a value or when the function call failed this function returns an invalid QVariant object. -.PP -The QVariant objects in \fIvars\fR are updated when the method has out-parameters. -.SH "QAxObject * QAxBase::querySubObject ( const QCString & name, const QVariant & var1 = QVariant ( ), const QVariant & var2 = QVariant ( ), const QVariant & var3 = QVariant ( ), const QVariant & var4 = QVariant ( ), const QVariant & var5 = QVariant ( ), const QVariant & var6 = QVariant ( ), const QVariant & var7 = QVariant ( ), const QVariant & var8 = QVariant ( ) )" -Returns a pointer to a QAxObject wrapping the COM object provided by the method or property \fIname\fR, passing passing the parameters \fIvar1\fR, \fIvar1\fR, \fIvar2\fR, \fIvar3\fR, \fIvar4\fR, \fIvar5\fR, \fIvar6\fR, \fIvar7\fR and \fIvar8\fR. -.PP -If \fIname\fR is provided by a method the string must include the full function prototype. -.PP -If \fIname\fR is a property the string must be the name of the property, and \fIvar1\fR, ... \fIvar8\fR are ignored. -.PP -The returned QAxObject is a child of this object (which is either of type QAxObject or QAxWidget), and is deleted when this object is deleted. It is however safe to delete the returned object yourself, and you should do so when you iterate over lists of subobjects. -.PP -COM enabled applications usually have an object model publishing certain elements of the application as dispatch interfaces. Use this method to navigate the hierarchy of the object model, e.g. -.PP -.nf -.br - QAxWidget outlook( "Outlook.Application" ); -.br - QAxObject *session = outlook.querySubObject( "Session" ); -.br - if ( session ) { -.br - QAxObject *defFolder = session->querySubObject( -.br - "GetDefaultFolder(OlDefaultFolders)", -.br - "olFolderContacts" ); -.br - //... -.br - } -.br -.fi -.PP -Example: qutlook/centralwidget.cpp. -.SH "bool QAxWidget::translateKeyEvent ( int message, int keycode ) const\fC [virtual protected]\fR" -Reimplement this function to pass certain key events to the ActiveX control. \fImessage\fR is the Window message identifier specifying the message type (ie. WM_KEYDOWN), and \fIkeycode\fR is the virtual keycode (ie. VK_TAB). -.PP -If the function returns TRUE the key event is passed on to the ActiveX control, which then either processes the event or passes the event on to Qt. -.PP -If the function returns FALSE the processing of the key event is ignored by ActiveQt, ie. the ActiveX control might handle it or not. -.PP -The default implementation returns TRUE for the following cases: -.PP -
    .nf -.TS -l - l. WM_SYSKEYDOWN WM_SYSKEYUP WM_KEYDOWN All keycodes VK_MENU -.TE -.fi -
    -.PP -This table is the result of experimenting with popular ActiveX controls, -ie. Internet Explorer and Microsoft Office applications, but for some -controls it might require modification. - -.SH "SEE ALSO" -.BR http://doc.trolltech.com/qaxwidget.html -.BR http://www.trolltech.com/faq/tech.html -.SH COPYRIGHT -Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the -license file included in the distribution for a complete license -statement. -.SH AUTHOR -Generated automatically from the source code. -.SH BUGS -If you find a bug in Qt, please report it as described in -.BR http://doc.trolltech.com/bughowto.html . -Good bug reports help us to help you. Thank you. -.P -The definitive TQt documentation is provided in HTML format; it is -located at $TQTDIR/doc/html and can be read using TQt Assistant or with -a web browser. This man page is provided as a convenience for those -users who prefer man pages, although this format is not officially -supported by Trolltech. -.P -If you find errors in this manual page, please report them to -.BR qt-bugs@trolltech.com . -Please include the name of the manual page (tqaxwidget.3qt) and the Qt -version (3.3.8). diff --git a/doc/man/man3/tqobject.3qt b/doc/man/man3/tqobject.3qt index a43f1d0d..1c1aa9a1 100644 --- a/doc/man/man3/tqobject.3qt +++ b/doc/man/man3/tqobject.3qt @@ -15,7 +15,7 @@ All the functions in this class are reentrant when TQt is built with thread supp .PP Inherits Qt. .PP -Inherited by QAccel, QAccessibleObject, QAction, QApplication, QAssistantClient, QDataPump, QAxObject, QAxScript, QAxScriptManager, TQWidget, TQCanvas, TQStyle, QClipboard, QCopChannel, QDns, QLayout, QDragObject, TQEditorFactory, QEventLoop, QFileIconProvider, QNetworkProtocol, QWSKeyboardHandler, QNetworkOperation, QNPInstance, TQObjectCleanupHandler, QProcess, QServerSocket, QSessionManager, QSignal, QSignalMapper, QSocket, QSocketNotifier, QSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, QTimer, QToolTipGroup, QTranslator, QUrlOperator, and QValidator. +-Inherited by QAccel, QAccessibleObject, QAction, QApplication, QAssistantClient, QDataPump, TQWidget, TQCanvas, TQStyle, QClipboard, QCopChannel, QDns, QLayout, QDragObject, TQEditorFactory, QEventLoop, QFileIconProvider, QNetworkProtocol, QWSKeyboardHandler, QNetworkOperation, QNPInstance, TQObjectCleanupHandler, QProcess, QServerSocket, QSessionManager, QSignal, QSignalMapper, QSocket, QSocketNotifier, QSound, TQSqlDatabase, TQSqlDriver, TQSqlForm, TQStyleSheet, QTimer, QToolTipGroup, QTranslator, QUrlOperator, and QValidator. .PP .SS "Public Members" .in +1c diff --git a/doc/man/man3/tqwidget.3qt b/doc/man/man3/tqwidget.3qt index f9cc34d4..aac46de7 100644 --- a/doc/man/man3/tqwidget.3qt +++ b/doc/man/man3/tqwidget.3qt @@ -13,7 +13,7 @@ TQWidget \- The base class of all user interface objects .PP Inherits TQObject and QPaintDevice. .PP -Inherited by QAxWidget, QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, QDateTimeEditBase, QDateTimeEdit, QDesktopWidget, QDial, QDockArea, QGLWidget, QHeader, QMainWindow, QMotifWidget, QNPWidget, QScrollBar, QSizeGrip, QSlider, QSpinBox, QSplashScreen, QStatusBar, QTabBar, QTabWidget, QWorkspace, and QXtWidget. +Inherited by QButton, QFrame, QDialog, QComboBox, TQDataBrowser, TQDataView, QDateTimeEditBase, QDateTimeEdit, QDesktopWidget, QDial, QDockArea, QGLWidget, QHeader, QMainWindow, QMotifWidget, QNPWidget, QScrollBar, QSizeGrip, QSlider, QSpinBox, QSplashScreen, QStatusBar, QTabBar, QTabWidget, QWorkspace, and QXtWidget. .PP .SS "Public Members" .in +1c diff --git a/doc/modules.doc b/doc/modules.doc index 8894852e..32c449db 100644 --- a/doc/modules.doc +++ b/doc/modules.doc @@ -60,11 +60,6 @@ with each Edition. \i \link table.html Table Module\endlink \i \link workspace.html Workspace (MDI) Module\endlink \i \link xml.html XML Module\endlink -\i \link activentqt.html ActiveQt Framework\endlink: - \list - \i \link qaxserver.html QAxServer Module\endlink - \i \link qaxcontainer.html QAxContainer Module\endlink - \endlist \i \link motif-extension.html QMotif Extension\endlink \i \link netscape-plugin.html Netscape Plugin Extension\endlink \endlist diff --git a/doc/overviews-list.doc b/doc/overviews-list.doc index 6f77c728..26664071 100644 --- a/doc/overviews-list.doc +++ b/doc/overviews-list.doc @@ -96,7 +96,6 @@ \i \link focus.html Keyboard Focus Overview \endlink \i \link accelerators.html Standard Accelerators \endlink \i \link netscape-plugin.html Qt-based LiveConnect Plugins \endlink - \i \link activentqt.html ActiveX support \endlink \i \link motif-extension.html Motif Support Extension \endlink \i \link opengl-x11-overlays.html OpenGL Overlays (X11)\endlink \i \link appicon.html Setting the Application Icon \endlink diff --git a/examples/themes/marble.xpm b/examples/themes/marble.xpm index 1c080496..d087a201 100644 --- a/examples/themes/marble.xpm +++ b/examples/themes/marble.xpm @@ -260,16 +260,13 @@ static const char *marble_xpm[] = { "#Lbp#ga2bpa2#L#g#L#L#L#L#L#L#LafbjaYaY#xama0.5aO.N.NaY.s#D#D#Da9#Dbl#s#Dbl#Dbl#D#M#D#M#DaYblaw#D#MaY#I.R#U#x#U#Ub#b#bga0aCa0#x.R.Raw.RaYawaYblaw#p.n#pa9.na9#Da9aja9af.Eaf#Lafajafaja9#Da9#s#Daw#D#s#D#s.NaY.NaY#U#Ua0.paobgb#bgaO#vaB#u#u.y#ua5aObgaoamaoamaoavam.8.8#v#v#u.w.GaTbw.G.0#vaFaoamaoa0aoama0aqamaoamaCaqaC.W.W#I#Iaxbgaobg#va7.Oau.U#3#3a5#uaB#vaFaoaoa0amaCamaob#aoamaoaoa0aC#Ibn.sawaY.sbl#saY#s#D#s#DaY#saY#D#D#s#p#s#DawaY#Iaw.C#I.N.naf.Ea9.7aj#L#Laj#L#L#Laj#L#L#L#L#L#L#L#L", "a2#L#g#g#g#gbp#L#L#L#L#L.7#L.7#L.N.N.s#x#xao.5b#.NaY.N#D#D#D#D#D#M#D#Dbl#D#D#sbl#D#Dbl#Dbl.sblaY.NaY#x#I#x#U#UaC.Vbgb#bgaCaC#U#I.R#x.baY.RaYblaYa9#pa9#Da9#Da9bjaf#Laf#Laf#L#La9#La9a9a9.7#Da9#D#sa9a9a9#D.NaY.Na9#paY#Ua0aoaO.yaBaBazazan#u.Gbk.daOaO.8aoavao.8.8.8bd.yaL#uazaX#0#4#TaZaOaO.5aoa0.Camaoamaoamambcby.8.C.C.W.W.W#U.rbgaO#S.yaB#uaP#3.U#3arbk#u#vaFbgbgaob#aob#bgamaOaoaoaoaC#U#IawaY.sbl.s#D#Daw#DaY#s.N#M#D#s#D#s#D#M.NawaY.s#xaC.C#Ma9aj#L.7.naf#Laf#Lafaj#Laf#L#L#L#L#L#L#L#L", "#g#g#Lbp#Lbp#Lbpa2a2#L#L#L#L.7#L#D.N.NaYbo.C.C.W.Vbn.N#Dbjbj.E.7#D#D#D#D#s#D#D#D#D#s#D#s#D#D#D#sawawaYaw#x#U#xaCa0aCa0aC.Vamb#a0aYaw.RaY#M#p#M#pajafaj#pa9a9#Mbl.na9a9a9a9a9a9afajafaja9#D#s#D#Dbl#D#s#D#s#D.n#Dbl#saYaYaw#x#IaCaOaB#1a5.w.wbkaV.Qbt.ybcbc.8bcbcaBaB#u#uaz.waP#T.O#zbw.6aF#vaOaFambga0amamaOaoaOaoaCa0.WaC.W.C#I.WaCaoaOaoaOaobg#v#v#S#1.Q#3agaV#1aB.8aOamaoaCbg#v.8aoa0aC#x#U#Iawaw#D.s#D#s#D#s.N#saY#s#Daw#D#Mbl#saYaw#x#I#xaC#D#sbj#D#D.7#s.7.7.E#L.7#Laf#L#La2a2a2#ga2#g#g#g", -"#gasbp#g#Lbp#Lbp#L#g#L#L#L.7af.7#D.NaYbf#x#x#x#xaCbn#I.N#Dbja9.7#D#D#D#D#D#D#D#D#D#D#D#D#D#s#D#DblawaYawbn#I.WbnaCa0.pa0aoa0aoam#UbnaYaYaYblblbl#paf#p.n#pa9bl#Da9a9a9aja9af.na9.7af.7a9a9a9#D#sa9#M#D#D#D#D#D#D#D#D#M.NaY#x#x#xa0am#vaB.z#u#Ebi#nbCaX.Q.y.y.QaXbka5#u#u.w.wbkaP.O#4#4.wa##v.5a#aoamambg.5aO.5a#aoamaC.WaC.W.W#IaCaC.WaCaoaoaoao.8bg.8#v#v#u#uaPagagaXbka5aBaBaB.y.z#S.8bgaoamaC#x#IaYaw#D#sbj#D.sbl.sbl.N#saY.s#D#MaYawaY#U#x#Ibj#s#Db.#Db.#Dbj.na9#La9aj.7#L#La2#ga2a2#g#gas#g", "#ga2#ga2#g#g.7bpa2a2#L#L#L#L.7#L#D#D.N#M.N#I#x#xa0a0#x.s.N.N#D#D#D#s#D#D#D#D#D#s#D#s#D#D#s#D#D#M#D#MblawaYaw#x#I#Ubn#Ua0.pa0.pa0aCbn#Ubnaw.Rawbl.n#p#p#pa9a9bl#Dafa9a9#pa9a9a9afajafaja9.7#D.n#D#Dbl#D#s#D.n#D#s#D#D#DaY#saYaw.N#UbnaCaOaO#vaBbkbq#Rbqag#3.U#zaVau#Tazazbkbkbv#3#E#0ab.2#uaOaF#vaFaOaOaFaObyaO.8aCaCaC.C.W.W#I.W.WaCaC.WaC.WaCaCaCaCaoao.8.8#v#vbbbbap#3.U.U.U#4a5#E#1#SaFaOaOaFaC.W#x#IaY.s#D#saY.s#xawawaY.saY.sbl.NaY.s#x#x#Ia9.7.E.7.E.7.n.7a9#L.E#L.7#L#L.7#L#L#L#L#ga2bpbp", "#g#g#L#gbp#g#Lbp#L#g#L#L#L#Laf.7#Da9#D#DaY.N.N.sbn#Ua0.C#x.N#s#D#D#D#D#D#s#D#D#Da9a9.na9a9a9a9#Dawbl#saYawaY#U#x#U#x#Ubn#Ibna0aCa0a0#UbnbnbnaY.Rbl.n#D#p.n#pa9bla9af.nafa9afa9a9#Laf#La9a9a9bja9a9a9.na9a9.7a9.7a9a9#s#D#DaY.Naw#xaw#xaCamaoaOaB.v.O.Obqadbx.abzbi.U#3#T#3bvagag#3#4#caT.w#vaF.y#v.5#vaOa#ao.5.5aC.CaC#I#I#I#Ibo#I#Iaw#Iawaw#I#U#7.W#IaC.WaCav.W.8#v#v.y.w.G#T#3.Oag.O.w#uaB.ya#aoamaC#x#I#x.N.s#xaw#I#x#Ibfaw.Nbl.s.Naw.NaY.saY.E.7af.Eaf.7#L.E.7aj.7#La9aj#Lafajafaja2#L#ga2#g", "#ga2#ga2#Lbp#Lbpa2a2#L#L#L#L.7#La9.7a9#D#D#DaY.NaY#xa0#U.CaYbl#D#D#D#D#D#D#D#D#Da9a9#Da9#sa9.na9#D#M#Dbl#saYawaYawaYaYawbn#Ibn#IbnaC#xbn#Ibna0bnblblbl#Dblbla9a9.na9a9a9a9.na9a9af#L#L.na9bja9#D.na9a9a9.n.7.n.7.Ea9.7a9#s#D#D#D#sblaw#IaCaobg.d.O#ia5.G#zadadadabadaVaVbq#3#3bvbqaba8.YbkaBaO#uaFaOaFao.5aoaqaC#I#I#Iaw#I.s.sawbobo.sbo.sbobo.s#M#M.s#7aw#Iaw#I#U#IaCao.8aO#v#u.Q#3biag#3aXazaZ#vaOam.C#x#I#IaY#I#x#I#I#x#I#xaw.Naw#D#s#D#s#Da9#Laj#L#Laj#Laj#L#La9#L.E#L#L.7#Laf#Laf.7#L#L#L#L", "a2a2#L#g#L#L#L#La2bp#L#L#L#L#L#L#L.7#La9.7#Da9#D#DaYbnama0#xaY#s#D#D#s#D#D#D#D#Daj#Lafajaf#La9a9.na9#M#D#MaY#MaYbl#MawaYaYaYaw#x.RaY.b#xbnbn#Ibnaw#xawbl#D#Ma9#pafa9afa9afa9afa9aj#Laf.7a9.n#Da9ajafa9aja9#L.7#Laf#L.E#L.7.Ea9#sblawaw#xaCaCaO.8aBazbka5.Gbk.U#3biad.a.a.DaVaVaV.M#d.S.Yaz#u.0.y#vaF.8a0.W.C#I.C#Iaw.Naw.s.s.s#s#s#s#s#s#s#s#s#s#s#s#s#M#s#s#s#s.n.n#M.raC#OaO#w#u#E.vbkazbkbkbk.w.yaOamaC.C.C#I#I#I#x#I#x#I#x#Ibf.s.N#s#D.7a9.E#L.E#L.E#L#L#L#L.7aj.7af#L#L#L#Laf.nafaj#L#L#Lbp", "#gaa#ga2#L#L#L#Lbpa2#L#L#L.7#L.7#Laf#L#L#La9.7#D#saY#xa0ama0aYaY#D#D#D#D#Da9#D#Daf.7aja9#L.n#Laj#p.n#p#Dbl#s#DaY#sbl#D#MawaYaYaY#Mblbl.baYawbnbnaYaYaYaYbl#D#pa9a9a9a9a9a9a9a9a9afafaja9a9bja9#Dafafajaf#L.Eaf.Ea2#Lafaja9a9#s#D#sawaw#IaC.WaoaoaO#uae#1#u#uaz#u.O.Ubi.D#d.D#J.D.abu#6.Y.G.w.yaZ.8aoam.W#xaw#I.saw.saw.s.s#s#sbj.Eb.#sb.b.#sb..E#s#s#s#s.s#s.E#s#s#s#s.r#U#IaCaCbd#1#SaOao.ya5bkaza5.waOamaoaC#x.WaC.W#I#x#I#x#I.Naw#D#D#s.7#L.7#Laj#L#Laj#Laj#Laja9#L.E.7.n.7.Ea9a9a9a9a9.7#Laf", "a2#g#L#g#L#L.7#La2#g#L#L#L#L#L#L#La2#Laf#Lbja9a9#DaY.C.VaFa0#xaw#D#D#D#D#D#D#D#Dajafaf#Laf#Lafaf#p.nbl.n#Dbl#M#D#Ma9#M#DaYaw#Dawbl#MaY#Mbn.RaYawbn#xaw#x#Mbla9.naf#paja9af.nafa9aja9#La9a9a9#s#Daja9#La9#Laf.7#L#Laj.n#L.7.n.7#s#Daw#x#I.CaC.8.8#v#v#v#vaO.z#1.z.Gbk.O#zbibBbBad.x#5#9.YaPaz.y.0bgaoam#Iaw.N#s#Dawaw.s#s#D#s#s#s.E.7.E.7.E.E.E.Eb..Eb..E.E.E.E.E.s.saw#IaC.WaC#Oam.d#vao.8aFaO.8.G#3.OaB.8amaCaCaC.Wa0#I#I#I#I#x.s.N#s#D.na9.n#Laj#L#Laj#Laj#Laj.7#L.7af#L#Laf#Lafa9a9.na9a9.7.7", -"#L#L#L#L#L#L#L#L#La2bpa2#ga2bp#L#L#L#L#L.7a9.7.7.NaY#xbnao.VaF.V#xaY#Ma9.na9a9#D#La9aja9aja9aj.7.na9.na9.na9.na9#p#s#p#D.na9a9.n#p.nbla9#sbl#saYaYaYaYaYaYaYaYaY#pa9#p#pa9#pa9.nafafaja9#D#D.N.N.nafajafaja9ajafajaf.7.na9#D.n#D#Dawaw#I.W#IaCaCaobdaO#v#v.y.y.y#u.QaX.9#TbC#r#r.aatatbB.2aX.GanaC.W#Ibobf.sbf#I#s#s#s#sb.b.bj#s.7.E.E.E.7.Ea9.Eaj#Lajajajajajaj.s#s#I.s.s#I.s.WaCaCaCaCa0.W.W.W#v#vbtbkbk#uaB.0aObgaoaoamaC.C.W.n.na9.E.7.E.7#Lbjb..Ea9aj#L#La2a2.jbpaj#L.E.7bjajaf#La9#Laf#Laf", "#L#L#L#L#L#L#L#L#L#ga2a2bpa2a2a2#L#L#L#L#L.7#L.7#DaY#Ibnb#b#aOb##xaY#D#Da9.n.7#Dafajaf#Laf#Lafafa9aja9a9.na9.na9.na9.na9#p.na9a9afa9.n#p#D#M#DblaYawaYaw#xaw#xaY#p.na9a9a9a9#p#pafaf#pa9#D#s.N#sa9a9#La9#Laf#Laf.7aja9.n.7.n#Da9.saYaw#x#I#x.W.WaCao.8.8aObc#v.y#v#ubkbvbvaXbvbC.k.Dai.UaXbv.Ga7aOaoaNboaWbo.s.Nb.#sb.#D#s#sbjb.b.a9b.a9.E.7.Ebjajaja2aj#Laj.naj#D#s.sbo#I.sbo.saCaCaC#I#I#I.W#xavaoaO.y.z#1bkbkaBaBaO.5aoaoav.Wa9#s#L.E#L#L.7.E.7#D.7.E#L#L#Laja2bpa2#L#L#L#L.7af.7afajafaj#L#L", -"a2#La2#ga2#ga2#ga2#L#ga2a2#g#L#g#L#L#L.7af.7a9.7#Daw#x#xam#SaZa#aC#xaYa9a9a9#Da9aja9#L.n#L.n#Lajafa9.naf.na9a9.na9a9.na9.na9a9.n.na9a9.na9#D#D#saY#x.R#xaYbn#x#xblblbl#Mblbl#Dbl.n#p.nbl#D#D.N.N.naf.nafaja9#L.n#L#La9.7.n#D#s#saYaw#I#I#I#U#Ia0.Wao.8aObc.8.y.y#u#ubk#3bCapbkag.kbqaX.Q.Qbka5#u#v#vamava1bob..E.na9b..E#s.7.E.E.7.E.7.E.7.E.7.naj#L.jaja2ajajaj.n#D.s#I.s#I.saY#I#U#x#I#x#x#Ibo#x#I.CaoaO#v.y#1bkbk#u#vbcam.C#I#sa9.n.7.E#L.E.7#s#s.7.n#Lajbpa2bp.jbp.j#Laj#L#Lajafajaf#La2afa2", "#ga2#ga2a2a2#g#La2#ga2#g#L#ga2a2#L#L#L#L.7.7#La9#D#D#xaCaF.0aZana0#xaYbla9.na9#D#Laf#Laf#Laf#La9af#L.na9af.nafa9ajaf#Laf#Lajaf#Lafajaf#L#D.n#D#DawaYaY#IaY#I#x#IaYawaYaYaYawaYawbl#Mbl#D#sbl.s#Da9.na9.7afajaf#Laf.Ea9.Ea9#sa9#s.N#I#x#I#x#Ia0#I.Wao.8.8aObc.ybba5bkaXaX#3bvag#n.c.#bt#baLbcbdaBaB.y#vam.Wbfb..7#s#s#s.7.E.E.E.7#s.E.E.7.n.7.E.7aj#g.ja2.jaja2#L.E.n#s.s.s#I.s.s#x#I#I#x.s#I.Nbo#x#I#I.CaoaoamaObkaz.Q.z#v.8.Wbf.N#s.N#s#D.sa9.E#D#D.E.7#L#Laj#Laj#g#L#g#L#gbp#L#L#L#L#L#La2bpa2", "a2bpa2bpa2bpa2a2#g#La2bpa2a2bpa2#L#L#La9#L.7a9.E.7aYaY.Cam#vaZaZaobn#xbla9a9a9#s#L.n#L.n#L.n#Lajaf#Laf.na9a9ajaf#L#Laj#Laf#L#Laj#L#L#Laj.7a9.7a9#D#Dbl.NaYaY#xaY#xaY#x#U#xbn#IbnblaY#MaY.NaY#s#D.na9aja9af.7af.E#Laja9a9b.#D#s#Daw#x#I#I#x#I.Wbn.Wa0aoao.5.8.y.QazaX#3.O#3aVai#n#8aLax#O.W.Wao.8#1aB.y.5.Ca1bo.sbo#D#sb.#D.E.7aj.7.E#D.E.7.E.7.7.ja2.j#gbp.jaj.j.7#s#s#s#s.N.s#Iawaw#D.saw.N.s.s#D.s#x.W.WaoaC.8.0.y#v#v#v.d.8ao#I#Ibf.s#Db.bj.7#Dbj#L#Laj#L#L#La2aj#gaj#ga2asasa2a2a2a2#La2a2#g", "#ga2a2a2#ga2a2#ga2a2#ga2a2#L#ga2#L#L#L#La9.7.7a9.7.N.s#xamaF#va#.5am#x.N#D.na9.7af#Laf#Laf#Lafa9#L.n#La9.naf#Laf#Lajaf#L#Laj#Lafa2ajaf#Laf.7.7.na9.n#D.nbl#D#DawaYawaY#U#x#U#x#UaYaw.Nblaw#D#D#sa9.na9.nafajaf#Lafaj.7.na9#sa9#saY#I#I#xaC#xao.CaCavaoao#v.yaI.Qae.O#zaV.Dah#Xag#b#O.r#7#7#7.W#QaObdaB.y#vaoaqbo#Ibobf.N.Ebj.E.7.E.E.7.E.7.E.7.Ebp.j#g#g.ja2#L.j.E.7#s.nb.#s#D.saw.Naw.s#D.s#s.N.s.sbo#I.C.Wam.8bgbgamao.C.8axbcaxaoaobo.N#s#Db.#s.7.E#L#L#L#Laj#L#g#La2#gas.jasbp.j#L#g.j#g#L#g", @@ -277,7 +274,6 @@ static const char *marble_xpm[] = { "a2a2#ga2a2#ga2a2a2#ga2aja2bp.ja2#L.7#L#L.7a9.7a9bj.N.N.N#xa0a0aCaF.5bnaY#D.na9.7af#Laf#Laf#Laf#L.n#L.na9.naf#Laf#Laja2#La2aja2#La2aja2#Laf#L.E#L#Lajafaj#La9#L.nblblbl#MblaYaYawbn#U#x#xaw.N.s#D.nafa9.na9a9a9.na9aj.7#sa9#sa9#s#x#I#x.Wbnavamaoao.8aObd.ybt#ubbag.O#3bA.iaJ#3bbav.h#7b.b.boa1#IaE#I#QaB#uaPaz.Gbcbcavavbobfb.bj.E.7.E.7.7.E.7#L.j#g#g#gaj#g.jajaf.E.n#s#s#D.E#D#s#s#D.s#Db.aW#sbf.Nbo.C.Wav.Cam#Mblaw#x#Iaoaqaoaqavavaoav.s.Nb.#D#s.7.E#L#Laj#g#Lbpa2asas.jaUaU#ga2bpa2#g.jbpa2", "#ga2#g#g#ga2#g#ga2#g#g#ga2#g#Lbpa2#L#L#L#L#La9.Ea9a9#saY#I.C.Wam#x#U#x#IaY.N#D#Daj#Laj.7.7a9.7.7a9#Laf#L#L#L.n#Lafafafajafaf#Laj#L#L#Laj#Laf#Laf.jaf#Laf#Laja9#Da9.na9#Da9.n#D#DawaYawawaYaY#MaY.7.n.7.n.7.Ea9.7ajaf.Ea9#s#D#D#D#Ibn#UaCaoao.8#vao.d.d.y.z.y#1bbagaX#3aAbx.caLav#7#I.s#7b.#sb.b..sbo#Iav#QaOaKbtau.GaZaFaq#Ibf.s.7.n#L.E#L.7aja3.Ebp.jbpbpajbpa3#s#D#s#s#s#s#D#sa9.n#D#s#D#s#D#s#x#Iaw#I.N#s#s#D#saY#saYaY#I#I#I#I#U.W#IaC.8ao.C#sa9#L.7.n#L#L#L.ja2.j#gasasas.jas#g.jas#gas#gas", "a2#ga2#ga2#g#ga2#ga2a2bp#ga2bp#Lbpa2#L#Laja9.7#La9#D#D.N#x#x.C.CbnbnbnaYaY#D#D#D#L#La9aja9.7.E#D.nafajaf.Eafafaj#Lajaf#Lafajafaf#Lafajaf#L#Laj#L#La2afaj#La9a9.na9bja9.na9#D.na9awblaYawaYawaYawa9.na9.Ea9a9.na9ajaj#L.n#D#s#s.N#U#Ibn.WamaO.8#v#OaObdbd.yaLbb.Q#8.v#3aV.abCbd.8#7#7.sb..sb..sbj#s.s.s#I.Cav.8.8#u#uaB.ybcao.Wbf#D#s#D.7.E.7.Ea3ajbpajbpajbp#L.E#s#D#s#D#s#D#s#D.n.7#s#D#s#D.s.N#x#I.NaY.s.N#s#D#s#D#M.N.s#I#x#I#x#I#x#IaCbd.8ao#s#D#s#L.7aj#L#L.j#gas#g#g.j#gas.jas#gas#g.j#g#g", -"#g#La2#ga2#ga2bpa2bpa2#L#L#L#g#La2aj#L#L.7.7a9.7.n#D#saY.s.N#x#I#x#xawaY#Ibl.N.Naf.E#La9.7#sa9#D.n#Laf#Laf#La9afaf#Lajaf#Lafaj#Laj#L#L#Lajaf#Laf.j#Laf#Laf#La9a9a9a9.n#Da9.na9#D#D#s.N#s#D#s.N#s#D.Ea9a9.Ea9.7.na9.na9#s#D.s.N#x#Ibnbn.Waobg.8.8.d.d#vbd#v.z#1bb.QaX#3aA.kaXbcao#7.s.sb.b.b.b.#s#s#D.s.N.s#x.CavaFam#v.y#u.ybyby#Ibf.s.Nb..7.E#L.7.E#L.7.E.7.E.7#s#s#D#s#D#s#D#s#D#s#D#s#D.s.N.s#x#IaYbo.s#D#saW.n.7#s#D#s.N.s.s#I#I#I.CaCax#vaO.saw#s#D.n#Lafaja2a2.j#gas#g#g#g#g#g.j#g#gas#g.j", "#ga2#ga2#g#L#ga2#ga2#g#L#g#L#L#L#g#L#L#L#L.n#L.7#D#D#D#DaYaY.N.NawaY#xaY#x.NaY#Ma9.7a9.Ea9#D#Da9a9af.7af.Eafaj#Lajafafafaj#Lafaf#Lafaj#Laf#Laj#La2af.j#Laf#La9.7a9.7a9.7a9#Da9a9#s#Dbl.saY#saY#s#D#s#D.na9.Ea9.7a9.n#D#s.N.s#xbobna0aCa0am.8aOaO.8#vbd#vbd.yaL#1.Qbk.Obi#R#8#v.rbo.saE#sb.#sbjb..7.E.n.E#s.s#I#xbo.Wavbc.y#u.yanaoaq.Cbo.N#D.E.7.E.7#L.E.7.E.7#s#D#s#D#s#D#s#D#D#s#s#s.N#s.Naw.N#x#xaw.N#s#D#sbj.n.7.E#DaE#saYboaCaCaoaoaoao#Oao#Iawaw#s#D.n.7a9aj#g#L#g.j#ga2#g.jas#gas.j#gasas", "a2bp.jbpa2#ga2bpa2bpa2#L#Lbp#L#L#La2#L.7#L.7a9.7#s#D#D#D#D#s.NaYaYaY.s#x.s#xaYaY#D#s#D#D#D#s#D#sa9ajaf#Laf#La9af#Lajaf#Lafajafaj#L#Lafaj#L#L#L#L#L.jafa2#Laja9a9.na9a9.na9.na9#s#D#D#s#D#s#D#s#D#sa9#sa9#Da9.n#D#s#D#D.saY#xaY#IamaCamaobgaObcbdaOax#vbd#v#v.yaL#1.Qa5#3#R.vbc.W#7#s.sb.b.bjb.bj.E.7.Ea9bj#s#Daw#s.Nbo.C.8#van#ubc#v.8a0bf.s#D#sbj.7bj.7#D.7#sbjawaY#saY#s#D#s#Daw#DaY.saY.NaY.saY.saY.N.s#D#s#D.Ea9#s#s.N.sboawao.8.d.daoaC#I#x.sawbo#M#D#Daj.7#L#L.jbpa2bpa2#g#g#g.j#gas#gas#g", "#ga2#ga2#g#L#g.ja2#g.jbpa2aj#Lbpaj#L#Laj#Laf.7af#D#D#s#D#D#D#D#D.N.saYaY#xaY#x#IaY.N#D#D#s#D#Da9#L.na9.na9ajafajaf#Lafajaf#Laf#Lafaj#L#Lajaf#L#La2a2a2#Laf#La9a9.7a9.7#Da9bja9a9.7#sa9#D#s#D#s#D#s#D#D#s#D#s#D#sa9#s.NawaY#I.C.WaF.8b#ao.8bg#vbd.8#vbd#vbd#v.d#v#1#1.wagbi#8ao#O.saE.sb.#sb.#s.Eaf.Ea9.E.n#D#s#Db.#s.N#Iaqambca#aB.y#vaO#I.Cbf#I#s#Db.#Db.#Dbj#saYawaw#D.saY#M.N#M.N#saY.s#x.s#x.s#x.s.N#s#Db.#D#Db..N.s.N#Ibo.W.CaoaxaoaxaCaC#I#x#I#I#Iaw#s#D.n#Laj#L#Lbp#L#L#L.j#ga2#g.ja2.j#g", diff --git a/extensions/extensions.pro b/extensions/extensions.pro index c7798549..df53c908 100644 --- a/extensions/extensions.pro +++ b/extensions/extensions.pro @@ -1,6 +1,5 @@ TEMPLATE = subdirs contains( QT_PRODUCT, qt-(enterprise|internal|eval) ) { - win32: SUBDIRS = activeqt x11: SUBDIRS = motif } diff --git a/extensions/nsplugin/doc/index.doc b/extensions/nsplugin/doc/index.doc index 011e5819..50835de4 100644 --- a/extensions/nsplugin/doc/index.doc +++ b/extensions/nsplugin/doc/index.doc @@ -17,8 +17,7 @@ The TQt Netscape Plugin software makes it easy to write browser plugins that can be used on both Unix/Linux and MS-Windows, in Netscape, Mozilla, and any other web browser supporting Netscape's LiveConnect -protocol. Modern versions of MSIE do not support this protocol. Use -the ActiveQt Framework to develop plugins for these browsers. +protocol. Modern versions of MSIE do not support this protocol. \section1 Information diff --git a/qmake/generators/win32/borland_bmake.cpp b/qmake/generators/win32/borland_bmake.cpp index 9d8dc7cb..aa0f7b43 100644 --- a/qmake/generators/win32/borland_bmake.cpp +++ b/qmake/generators/win32/borland_bmake.cpp @@ -207,23 +207,6 @@ BorlandMakefileGenerator::writeBorlandParts(TQTextStream &t) } } TQString targetfilename = project->variables()["TARGET"].first(); - if(project->isActiveConfig("activeqt")) { - TQString version = project->variables()["VERSION"].first(); - if ( version.isEmpty() ) - version = "1.0"; - - if ( project->isActiveConfig("dll")) { - t << "\n\t" << ("-$(IDC) $(TARGET) /idl " + var("OBJECTS_DIR") + targetfilename + ".idl -version " + version); - t << "\n\t" << ("-$(IDL) /nologo " + var("OBJECTS_DIR") + targetfilename + ".idl /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /regserver" ); - } else { - t << "\n\t" << ("-$(TARGET) -dumpidl " + var("OBJECTS_DIR") + targetfilename + ".idl -version " + version); - t << "\n\t" << ("-$(IDL) /nologo " + var("OBJECTS_DIR") + targetfilename + ".idl /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(TARGET) -regserver"); - } - } t << endl << endl; if(!project->variables()["RC_FILE"].isEmpty()) { @@ -272,10 +255,6 @@ BorlandMakefileGenerator::writeBorlandParts(TQTextStream &t) << varGlue("OBJECTS","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","") << varGlue("QMAKE_CLEAN","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","") << varGlue("CLEAN_FILES","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ",""); - if ( project->isActiveConfig("activeqt")) { - t << ("\n\t-$(DEL_FILE) " + var("OBJECTS_DIR") + targetfilename + ".idl"); - t << ("\n\t-$(DEL_FILE) " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - } if(!project->isEmpty("IMAGES")) t << varGlue("QMAKE_IMAGE_COLLECTION", "\n\t-$(DEL_FILE) ", "\n\t-$(DEL_FILE) ", ""); t << endl; @@ -503,12 +482,6 @@ BorlandMakefileGenerator::init() (*libit).replace(TQRegExp("qt(mt)?\\.lib"), ver); } } - if ( project->isActiveConfig( "activeqt" ) ) { - project->variables().remove("QMAKE_LIBS_QT_ENTRY"); - project->variables()["QMAKE_LIBS_QT_ENTRY"] = "qaxserver.lib"; - if ( project->isActiveConfig( "dll" ) ) - project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_ENTRY"]; - } if ( !project->isActiveConfig("dll") && !project->isActiveConfig("plugin") ) { project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_ENTRY"]; } diff --git a/qmake/generators/win32/mingw_make.cpp b/qmake/generators/win32/mingw_make.cpp index 06952431..93557bc6 100644 --- a/qmake/generators/win32/mingw_make.cpp +++ b/qmake/generators/win32/mingw_make.cpp @@ -243,23 +243,6 @@ MingwMakefileGenerator::writeMingwParts(TQTextStream &t) } } TQString targetfilename = project->variables()["TARGET"].first(); - if(project->isActiveConfig("activeqt")) { - TQString version = project->variables()["VERSION"].first(); - if ( version.isEmpty() ) - version = "1.0"; - - if ( project->isActiveConfig("dll")) { - t << "\n\t" << ("-$(IDC) $(TARGET) /idl " + var("OBJECTS_DIR") + targetfilename + ".idl -version " + version); - t << "\n\t" << ("-$(IDL) /nologo " + var("OBJECTS_DIR") + targetfilename + ".idl /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /regserver" ); - } else { - t << "\n\t" << ("-$(TARGET) -dumpidl " + var("OBJECTS_DIR") + targetfilename + ".idl -version " + version); - t << "\n\t" << ("-$(IDL) /nologo " + var("OBJECTS_DIR") + targetfilename + ".idl /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << "-$(TARGET) -regserver"; - } - } t << endl << endl; if(!project->variables()["RC_FILE"].isEmpty()) { @@ -291,10 +274,6 @@ MingwMakefileGenerator::writeMingwParts(TQTextStream &t) << "\n\t-$(DEL_FILE) $(TARGET)" << varGlue("QMAKE_CLEAN","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","") << varGlue("CLEAN_FILES","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ",""); - if ( project->isActiveConfig("activeqt")) { - t << ("\n\t-$(DEL_FILE) " + var("OBJECTS_DIR") + targetfilename + ".idl"); - t << ("\n\t-$(DEL_FILE) " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - } if(!project->isEmpty("IMAGES")) t << varGlue("QMAKE_IMAGE_COLLECTION", "\n\t-$(DEL_FILE) ", "\n\t-$(DEL_FILE) ", ""); @@ -519,13 +498,6 @@ MingwMakefileGenerator::init() (*libit).replace(TQRegExp("-lqt(-mt)?"), ver); } } - if ( project->isActiveConfig( "activeqt" ) ) { - project->variables().remove("QMAKE_LIBS_QT_ENTRY"); - project->variables()["QMAKE_LIBS_QT_ENTRY"] = "-lqaxserver"; - if ( project->isActiveConfig( "dll" ) ) { - project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_ENTRY"]; - } - } if ( !project->isActiveConfig("dll") && !project->isActiveConfig("plugin") ) { project->variables()["QMAKE_LIBS"] +=project->variables()["QMAKE_LIBS_QT_ENTRY"]; } diff --git a/qmake/generators/win32/msvc_dsp.cpp b/qmake/generators/win32/msvc_dsp.cpp index 6b6b8fdb..e291718e 100644 --- a/qmake/generators/win32/msvc_dsp.cpp +++ b/qmake/generators/win32/msvc_dsp.cpp @@ -705,12 +705,6 @@ DspMakefileGenerator::init() (*libit).replace(TQRegExp("qt(-mt)?\\.lib"), ver); } } - if ( project->isActiveConfig( "activeqt" ) ) { - project->variables().remove("QMAKE_LIBS_QT_ENTRY"); - project->variables()["QMAKE_LIBS_QT_ENTRY"] = "qaxserver.lib"; - if ( project->isActiveConfig( "dll" ) ) - project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_ENTRY"]; - } if ( !project->isActiveConfig("dll") && !project->isActiveConfig("plugin") ) { project->variables()["QMAKE_LIBS"] +=project->variables()["QMAKE_LIBS_QT_ENTRY"]; } @@ -926,12 +920,6 @@ DspMakefileGenerator::init() TQString dest; TQString postLinkStep; TQString copyDllStep; - TQString activeTQtStepPreCopyDll; - TQString activeTQtStepPostCopyDll; - TQString activeTQtStepPreCopyDllDebug; - TQString activeTQtStepPostCopyDllDebug; - TQString activeTQtStepPreCopyDllRelease; - TQString activeTQtStepPostCopyDllRelease; if ( !project->variables()["QMAKE_POST_LINK"].isEmpty() ) postLinkStep += var("QMAKE_POST_LINK"); @@ -959,59 +947,18 @@ DspMakefileGenerator::init() } } - if ( project->isActiveConfig("activeqt") ) { - TQString idl = project->variables()["QMAKE_IDL"].first(); - TQString idc = project->variables()["QMAKE_IDC"].first(); - TQString version = project->variables()["VERSION"].first(); - if ( version.isEmpty() ) - version = "1.0"; - project->variables()["MSVCDSP_IDLSOURCES"].append( var("OBJECTS_DIR") + targetfilename + ".idl" ); - if ( project->isActiveConfig( "dll" ) ) { - activeTQtStepPreCopyDll += - "\t" + idc + " %1 -idl " + var("OBJECTS_DIR") + targetfilename + ".idl -version " + version + - "\t" + idl + " /nologo " + var("OBJECTS_DIR") + targetfilename + ".idl /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb" + - "\t" + idc + " %2 /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"; - activeTQtStepPostCopyDll += - "\t" + idc + " %1 /regserver\n"; - - TQString executable = project->variables()["MSVCDSP_TARGETDIRREL"].first() + "\\" + targetfilename + ".dll"; - activeTQtStepPreCopyDllRelease = activeTQtStepPreCopyDll.arg(executable).arg(executable); - activeTQtStepPostCopyDllRelease = activeTQtStepPostCopyDll.arg(executable); - - executable = project->variables()["MSVCDSP_TARGETDIRDEB"].first() + "\\" + targetfilename + ".dll"; - activeTQtStepPreCopyDllDebug = activeTQtStepPreCopyDll.arg(executable).arg(executable); - activeTQtStepPostCopyDllDebug = activeTQtStepPostCopyDll.arg(executable); - } else { - activeTQtStepPreCopyDll += - "\t%1 -dumpidl " + var("OBJECTS_DIR") + targetfilename + ".idl -version " + version + - "\t" + idl + " /nologo " + var("OBJECTS_DIR") + targetfilename + ".idl /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb" + - "\t" + idc + " %2 /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"; - activeTQtStepPostCopyDll += - "\t%1 -regserver\n"; - TQString executable = project->variables()["MSVCDSP_TARGETDIRREL"].first() + "\\" + targetfilename + ".exe"; - activeTQtStepPreCopyDllRelease = activeTQtStepPreCopyDll.arg(executable).arg(executable); - activeTQtStepPostCopyDllRelease = activeTQtStepPostCopyDll.arg(executable); - - executable = project->variables()["MSVCDSP_TARGETDIRDEB"].first() + "\\" + targetfilename + ".exe"; - activeTQtStepPreCopyDllDebug = activeTQtStepPreCopyDll.arg(executable).arg(executable); - activeTQtStepPostCopyDllDebug = activeTQtStepPostCopyDll.arg(executable); - } - - } - - - if ( !postLinkStep.isEmpty() || !copyDllStep.isEmpty() || !activeTQtStepPreCopyDllDebug.isEmpty() || !activeTQtStepPreCopyDllRelease.isEmpty() ) { + if ( !postLinkStep.isEmpty() || !copyDllStep.isEmpty() ) { project->variables()["MSVCDSP_POST_LINK_DBG"].append( "# Begin Special Build Tool\n" "SOURCE=$(InputPath)\n" "PostBuild_Desc=Post Build Step\n" - "PostBuild_Cmds=" + postLinkStep + activeTQtStepPreCopyDllDebug + copyDllStep + activeTQtStepPostCopyDllDebug + "\n" + "PostBuild_Cmds=" + postLinkStep + copyDllStep + "\n" "# End Special Build Tool\n" ); project->variables()["MSVCDSP_POST_LINK_REL"].append( "# Begin Special Build Tool\n" "SOURCE=$(InputPath)\n" "PostBuild_Desc=Post Build Step\n" - "PostBuild_Cmds=" + postLinkStep + activeTQtStepPreCopyDllRelease + copyDllStep + activeTQtStepPostCopyDllRelease + "\n" + "PostBuild_Cmds=" + postLinkStep + copyDllStep + "\n" "# End Special Build Tool\n" ); } diff --git a/qmake/generators/win32/msvc_nmake.cpp b/qmake/generators/win32/msvc_nmake.cpp index a1ada25f..8e313f23 100644 --- a/qmake/generators/win32/msvc_nmake.cpp +++ b/qmake/generators/win32/msvc_nmake.cpp @@ -274,23 +274,6 @@ NmakeMakefileGenerator::writeNmakeParts(TQTextStream &t) } } TQString targetfilename = project->variables()["TARGET"].first(); - if(project->isActiveConfig("activeqt")) { - TQString version = project->variables()["VERSION"].first(); - if ( version.isEmpty() ) - version = "1.0"; - - if ( project->isActiveConfig("dll")) { - t << "\n\t" << ("-$(IDC) $(TARGET) /idl " + var("OBJECTS_DIR") + targetfilename + ".idl -version " + version); - t << "\n\t" << ("-$(IDL) /nologo " + var("OBJECTS_DIR") + targetfilename + ".idl /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /regserver" ); - } else { - t << "\n\t" << ("-$(TARGET) -dumpidl " + var("OBJECTS_DIR") + targetfilename + ".idl -version " + version); - t << "\n\t" << ("-$(IDL) /nologo " + var("OBJECTS_DIR") + targetfilename + ".idl /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << ("-$(IDC) $(TARGET) /tlb " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - t << "\n\t" << "-$(TARGET) -regserver"; - } - } t << endl << endl; if(!project->variables()["RC_FILE"].isEmpty()) { @@ -332,10 +315,6 @@ NmakeMakefileGenerator::writeNmakeParts(TQTextStream &t) << varGlue("OBJECTS","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","") << varGlue("QMAKE_CLEAN","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","\n") << varGlue("CLEAN_FILES","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","\n"); - if ( project->isActiveConfig("activeqt")) { - t << ("\n\t-$(DEL_FILE) " + var("OBJECTS_DIR") + targetfilename + ".idl"); - t << ("\n\t-$(DEL_FILE) " + var("OBJECTS_DIR") + targetfilename + ".tlb"); - } if(!project->isEmpty("IMAGES")) t << varGlue("QMAKE_IMAGE_COLLECTION", "\n\t-$(DEL_FILE) ", "\n\t-$(DEL_FILE) ", ""); t << endl; @@ -603,12 +582,6 @@ NmakeMakefileGenerator::init() (*libit).replace(TQRegExp("qt(-mt)?\\.lib"), ver); } } - if ( project->isActiveConfig( "activeqt" ) ) { - project->variables().remove("QMAKE_LIBS_QT_ENTRY"); - project->variables()["QMAKE_LIBS_QT_ENTRY"] = "qaxserver.lib"; - if ( project->isActiveConfig( "dll" ) ) - project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_ENTRY"]; - } if ( !project->isActiveConfig("dll") && !project->isActiveConfig("plugin") ) { project->variables()["QMAKE_LIBS"] +=project->variables()["QMAKE_LIBS_QT_ENTRY"]; } diff --git a/qmake/generators/win32/msvc_vcproj.cpp b/qmake/generators/win32/msvc_vcproj.cpp index 5eb30160..62374199 100644 --- a/qmake/generators/win32/msvc_vcproj.cpp +++ b/qmake/generators/win32/msvc_vcproj.cpp @@ -822,38 +822,6 @@ void VcprojGenerator::initPostBuildEventTools() RConf.postBuild.Description += var("MSVCPROJ_COPY_DLL_DESC"); RConf.postBuild.CommandLine += var("MSVCPROJ_COPY_DLL"); } - if( project->isActiveConfig( "activeqt" ) ) { - TQString name = project->first( "QMAKE_ORIG_TARGET" ); - TQString nameext = project->first( "TARGET" ); - TQString objdir = project->first( "OBJECTS_DIR" ); - TQString idc = project->first( "QMAKE_IDC" ); - - RConf.postBuild.Description = "Finalizing ActiveTQt server..."; - if ( !RConf.postBuild.CommandLine.isEmpty() ) - RConf.postBuild.CommandLine += " && "; - - if( project->isActiveConfig( "dll" ) ) { // In process - RConf.postBuild.CommandLine += - // call idc to generate .idl file from .dll - idc + " "$(TargetPath)" -idl " + objdir + name + ".idl -version 1.0 && " + - // call midl to create implementations of the .idl file - project->first( "QMAKE_IDL" ) + " /nologo " + objdir + name + ".idl /tlb " + objdir + name + ".tlb && " + - // call idc to replace tlb... - idc + " "$(TargetPath)" /tlb " + objdir + name + ".tlb && " + - // register server - idc + " "$(TargetPath)" /regserver"; - } else { // out of process - RConf.postBuild.CommandLine = - // call application to dump idl - ""$(TargetPath)" -dumpidl " + objdir + name + ".idl -version 1.0 && " + - // call midl to create implementations of the .idl file - project->first( "QMAKE_IDL" ) + " /nologo " + objdir + name + ".idl /tlb " + objdir + name + ".tlb && " + - // call idc to replace tlb... - idc + " "$(TargetPath)" /tlb " + objdir + name + ".tlb && " + - // call app to register - ""$(TargetPath)" -regserver"; - } - } } void VcprojGenerator::initPreLinkEventTools() @@ -1177,13 +1145,6 @@ void VcprojGenerator::initOld() (*libit).replace(TQRegExp("qt(-mt)?\\.lib"), ver); } } - if ( project->isActiveConfig( "activeqt" ) ) { - project->variables().remove("QMAKE_LIBS_QT_ENTRY"); - project->variables()["QMAKE_LIBS_QT_ENTRY"] = "qaxserver.lib"; - if ( project->isActiveConfig( "dll" ) ) { - project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_ENTRY"]; - } - } if ( !project->isActiveConfig("dll") && !project->isActiveConfig("plugin") ) { project->variables()["QMAKE_LIBS"] +=project->variables()["QMAKE_LIBS_QT_ENTRY"]; } @@ -1403,53 +1364,6 @@ void VcprojGenerator::initOld() project->variables()["MSVCPROJ_COPY_DLL_DESC"].append( deststr ); } - // ACTIVEQT ------------------------------------------------------ - if ( project->isActiveConfig("activeqt") ) { - TQString idl = project->variables()["QMAKE_IDL"].first(); - TQString idc = project->variables()["QMAKE_IDC"].first(); - TQString version = project->variables()["VERSION"].first(); - if ( version.isEmpty() ) - version = "1.0"; - - TQString objdir = project->first( "OBJECTS_DIR" ); - project->variables()["MSVCPROJ_IDLSOURCES"].append( objdir + targetfilename + ".idl" ); - if ( project->isActiveConfig( "dll" ) ) { - TQString regcmd = "# Begin Special Build Tool\n" - "TargetPath=" + targetfilename + "\n" - "SOURCE=$(InputPath)\n" - "PostBuild_Desc=Finalizing ActiveTQt server...\n" - "PostBuild_Cmds=" + - idc + " %1 -idl " + objdir + targetfilename + ".idl -version " + version + - "\t" + idl + " /nologo " + objdir + targetfilename + ".idl /tlb " + objdir + targetfilename + ".tlb" + - "\t" + idc + " %1 /tlb " + objdir + targetfilename + ".tlb" - "\tregsvr32 /s %1\n" - "# End Special Build Tool"; - - TQString executable = project->variables()["MSVCPROJ_TARGETDIRREL"].first() + "\\" + project->variables()["TARGET"].first(); - project->variables()["MSVCPROJ_COPY_DLL_REL"].append( regcmd.arg(executable).arg(executable).arg(executable) ); - - executable = project->variables()["MSVCPROJ_TARGETDIRDEB"].first() + "\\" + project->variables()["TARGET"].first(); - project->variables()["MSVCPROJ_COPY_DLL_DBG"].append( regcmd.arg(executable).arg(executable).arg(executable) ); - } else { - TQString regcmd = "# Begin Special Build Tool\n" - "TargetPath=" + targetfilename + "\n" - "SOURCE=$(InputPath)\n" - "PostBuild_Desc=Finalizing ActiveTQt server...\n" - "PostBuild_Cmds=" - "%1 -dumpidl " + objdir + targetfilename + ".idl -version " + version + - "\t" + idl + " /nologo " + objdir + targetfilename + ".idl /tlb " + objdir + targetfilename + ".tlb" - "\t" + idc + " %1 /tlb " + objdir + targetfilename + ".tlb" - "\t%1 -regserver\n" - "# End Special Build Tool"; - - TQString executable = project->variables()["MSVCPROJ_TARGETDIRREL"].first() + "\\" + project->variables()["TARGET"].first(); - project->variables()["MSVCPROJ_REGSVR_REL"].append( regcmd.arg(executable).arg(executable).arg(executable) ); - - executable = project->variables()["MSVCPROJ_TARGETDIRDEB"].first() + "\\" + project->variables()["TARGET"].first(); - project->variables()["MSVCPROJ_REGSVR_DBG"].append( regcmd.arg(executable).arg(executable).arg(executable) ); - } - } - if ( !project->variables()["DEF_FILE"].isEmpty() ) project->variables()["MSVCPROJ_LFLAGS"].append("/DEF:"+project->first("DEF_FILE")); diff --git a/tools/designer/uic/object.cpp b/tools/designer/uic/object.cpp index 748f9ed4..2aa95fd3 100644 --- a/tools/designer/uic/object.cpp +++ b/tools/designer/uic/object.cpp @@ -151,17 +151,6 @@ TQString Uic::createObjectImpl( const TQDomElement &e, const TQString& parentCla out << objName << " = new " << createObjectInstance( objClass, parent, objName ) << ";" << endl; } - if ( objClass == "TQAxWidget" ) { - TQString controlId; - for ( n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement() ) { - if ( n.tagName() == "property" && n.attribute( "name" ) == "control" ) { - controlId = n.firstChild().toElement().text(); - } - } - out << " "; - out << objName << "->setControl(\"" << controlId << "\");" << endl; - } - lastItem = "0"; // set the properties and insert items bool hadFrameShadow = FALSE;