Skip to content

Commit 5019ece

Browse files
author
aavit
committed
Long live the Qt Solutions archive!
This commit adds the contents of distribution packages of the relevant subset of the Qt Solutions components, generated from the last versions in Perforce.
0 parents  commit 5019ece

File tree

836 files changed

+143016
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

836 files changed

+143016
-0
lines changed

qtbrowserplugin/INSTALL.TXT

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
INSTALLATION INSTRUCTIONS
2+
3+
These instructions refer to the package you are installing as
4+
some-package.tar.gz or some-package.zip. The .zip file is intended for use
5+
on Windows.
6+
7+
The directory you choose for the installation will be referred to as
8+
your-install-dir.
9+
10+
Note to Qt Visual Studio Integration users: In the instructions below,
11+
instead of building from command line with nmake, you can use the menu
12+
command 'Qt->Open Solution from .pro file' on the .pro files in the
13+
example and plugin directories, and then build from within Visual
14+
Studio.
15+
16+
Unpacking and installation
17+
--------------------------
18+
19+
1. Unpacking the archive (if you have not done so already).
20+
21+
On Unix and Mac OS X (in a terminal window):
22+
23+
cd your-install-dir
24+
gunzip some-package.tar.gz
25+
tar xvf some-package.tar
26+
27+
This creates the subdirectory some-package containing the files.
28+
29+
On Windows:
30+
31+
Unpack the .zip archive by right-clicking it in explorer and
32+
choosing "Extract All...". If your version of Windows does not
33+
have zip support, you can use the infozip tools available
34+
from www.info-zip.org.
35+
36+
If you are using the infozip tools (in a command prompt window):
37+
cd your-install-dir
38+
unzip some-package.zip
39+
40+
2. Configuring the package.
41+
42+
The configure script is called "configure" on unix/mac and
43+
"configure.bat" on Windows. It should be run from a command line
44+
after cd'ing to the package directory.
45+
46+
You can choose whether you want to use the component by including
47+
its source code directly into your project, or build the component
48+
as a dynamic shared library (DLL) that is loaded into the
49+
application at run-time. The latter may be preferable for
50+
technical or licensing (LGPL) reasons. If you want to build a DLL,
51+
run the configure script with the argument "-library". Also see
52+
the note about usage below.
53+
54+
(Components that are Qt plugins, e.g. styles and image formats,
55+
are by default built as a plugin DLL.)
56+
57+
The configure script will prompt you in some cases for further
58+
information. Answer these questions and carefully read the license text
59+
before accepting the license conditions. The package cannot be used if
60+
you do not accept the license conditions.
61+
62+
3. Building the component and examples (when required).
63+
64+
If a DLL is to be built, or if you would like to build the
65+
examples, next give the commands
66+
67+
qmake
68+
make [or nmake if your are using Microsoft Visual C++]
69+
70+
The example program(s) can be found in the directory called
71+
"examples" or "example".
72+
73+
Components that are Qt plugins, e.g. styles and image formats, are
74+
ready to be used as soon as they are built, so the rest of this
75+
installation instruction can be skipped.
76+
77+
4. Building the Qt Designer plugin (optional).
78+
79+
Some of the widget components are provided with plugins for Qt
80+
Designer. To build and install the plugin, cd into the
81+
some-package/plugin directory and give the commands
82+
83+
qmake
84+
make [or nmake if your are using Microsoft Visual C++]
85+
86+
Restart Qt Designer to make it load the new widget plugin.
87+
88+
Note: If you are using the built-in Qt Designer from the Qt Visual
89+
Studio Integration, you will need to manually copy the plugin DLL
90+
file, i.e. copy
91+
%QTDIR%\plugins\designer\some-component.dll
92+
to the Qt Visual Studio Integration plugin path, typically:
93+
C:\Program Files\Trolltech\Qt VS Integration\plugins
94+
95+
Note: If you for some reason are using a Qt Designer that is built
96+
in debug mode, you will need to build the plugin in debug mode
97+
also. Edit the file plugin.pro in the plugin directory, changing
98+
'release' to 'debug' in the CONFIG line, before running qmake.
99+
100+
101+
102+
Solutions components are intended to be used directly from the package
103+
directory during development, so there is no 'make install' procedure.
104+
105+
106+
Using a component in your project
107+
---------------------------------
108+
109+
To use this component in your project, add the following line to the
110+
project's .pro file (or do the equivalent in your IDE):
111+
112+
include(your-install-dir/some-package/src/some-package.pri)
113+
114+
This adds the package's sources and headers to the SOURCES and HEADERS
115+
project variables respectively (or, if the component has been
116+
configured as a DLL, it adds that library to the LIBS variable), and
117+
updates INCLUDEPATH to contain the package's src
118+
directory. Additionally, the .pri file may include some dependencies
119+
needed by the package.
120+
121+
To include a header file from the package in your sources, you can now
122+
simply use:
123+
124+
#include <SomeClass>
125+
126+
or alternatively, in pre-Qt 4 style:
127+
128+
#include <some-class.h>
129+
130+
Refer to the documentation to see the classes and headers this
131+
components provides.
132+
133+
134+
135+
Install documentation (optional)
136+
--------------------------------
137+
138+
The HTML documentation for the package's classes is located in the
139+
your-install-dir/some-package/doc/html/index.html. You can open this
140+
file and read the documentation with any web browser.
141+
142+
To install the documentation into Qt Assistant (for Qt version 4.4 and
143+
later):
144+
145+
1. In Assistant, open the Edit->Preferences dialog and choose the
146+
Documentation tab. Click the Add... button and select the file
147+
your-install-dir/some-package/doc/html/some-package.qch
148+
149+
For Qt versions prior to 4.4, do instead the following:
150+
151+
1. The directory your-install-dir/some-package/doc/html contains a
152+
file called some-package.dcf. Execute the following commands in a
153+
shell, command prompt or terminal window:
154+
155+
cd your-install-dir/some-package/doc/html/
156+
assistant -addContentFile some-package.dcf
157+
158+
The next time you start Qt Assistant, you can access the package's
159+
documentation.
160+
161+
162+
Removing the documentation from assistant
163+
-----------------------------------------
164+
165+
If you have installed the documentation into Qt Assistant, and want to uninstall it, do as follows, for Qt version 4.4 and later:
166+
167+
1. In Assistant, open the Edit->Preferences dialog and choose the
168+
Documentation tab. In the list of Registered Documentation, select
169+
the item com.nokia.qtsolutions.some-package_version, and click
170+
the Remove button.
171+
172+
For Qt versions prior to 4.4, do instead the following:
173+
174+
1. The directory your-install-dir/some-package/doc/html contains a
175+
file called some-package.dcf. Execute the following commands in a
176+
shell, command prompt or terminal window:
177+
178+
cd your-install-dir/some-package/doc/html/
179+
assistant -removeContentFile some-package.dcf
180+
181+
182+
183+
Using the component as a DLL
184+
----------------------------
185+
186+
1. Normal components
187+
188+
The shared library (DLL) is built and placed in the
189+
some-package/lib directory. It is intended to be used directly
190+
from there during development. When appropriate, both debug and
191+
release versions are built, since the run-time linker will in some
192+
cases refuse to load a debug-built DLL into a release-built
193+
application or vice versa.
194+
195+
The following steps are taken by default to help the dynamic
196+
linker to locate the DLL at run-time (during development):
197+
198+
Unix: The some-package.pri file will add linker instructions to
199+
add the some-package/lib directory to the rpath of the
200+
executable. (When distributing, or if your system does not support
201+
rpath, you can copy the shared library to another place that is
202+
searched by the dynamic linker, e.g. the "lib" directory of your
203+
Qt installation.)
204+
205+
Mac: The full path to the library is hardcoded into the library
206+
itself, from where it is copied into the executable at link time,
207+
and ready by the dynamic linker at run-time. (When distributing,
208+
you will want to edit these hardcoded paths in the same way as for
209+
the Qt DLLs. Refer to the document "Deploying an Application on
210+
Mac OS X" in the Qt Reference Documentation.)
211+
212+
Windows: the .dll file(s) are copied into the "bin" directory of
213+
your Qt installation. The Qt installation will already have set up
214+
that directory to be searched by the dynamic linker.
215+
216+
217+
2. Plugins
218+
219+
For Qt Solutions plugins (e.g. image formats), both debug and
220+
release versions of the plugin are built by default when
221+
appropriate, since in some cases the release Qt library will not
222+
load a debug plugin, and vice versa. The plugins are automatically
223+
copied into the plugins directory of your Qt installation when
224+
built, so no further setup is required.
225+
226+
Plugins may also be built statically, i.e. as a library that will be
227+
linked into your application executable, and so will not need to
228+
be redistributed as a separate plugin DLL to end users. Static
229+
building is required if Qt itself is built statically. To do it,
230+
just add "static" to the CONFIG variable in the plugin/plugin.pro
231+
file before building. Refer to the "Static Plugins" section in the
232+
chapter "How to Create Qt Plugins" for explanation of how to use a
233+
static plugin in your application. The source code of the example
234+
program(s) will also typically contain the relevant instructions
235+
as comments.
236+
237+
238+
239+
Uninstalling
240+
------------
241+
242+
The following command will remove any fils that have been
243+
automatically placed outside the package directory itself during
244+
installation and building
245+
246+
make distclean [or nmake if your are using Microsoft Visual C++]
247+
248+
If Qt Assistant documentation or Qt Designer plugins have been
249+
installed, they can be uninstalled manually, ref. above.
250+
251+
252+
Enjoy! :)
253+
254+
- The Qt Solutions Team.

qtbrowserplugin/README.TXT

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
Qt Solutions Component: Browser Plugin
2+
3+
The QtBrowserPlugin solution is useful for implementing plugins
4+
for web browser.
5+
6+
7+
8+
Notes:
9+
10+
This module can not function if built as a DLL, it must be
11+
statically linked with the plugin. Hence, DLL building is not
12+
supported, and the -library option to configure will be ignored.
13+
For the same reason, the source code that needs to be statically
14+
linked is licensed under a BSD style license (ref. the comment
15+
headers of the files in the src directory).
16+
17+
Version 2.4 is known to not work, even experimentally, on Mac OS
18+
X.
19+
20+
Version history:
21+
22+
2.1: - Documentation updates.
23+
- Support of shortcut keys in the plugin (Windows only)
24+
- Implement scripting support.
25+
- Add experimental support for Mac (Safari) and Linux (Firefox).
26+
27+
2.2: - Fix crash when calling slots with multiple arguments of
28+
different types from script.
29+
- Fix compilation and potential stability problem on 64 bit
30+
architectures.
31+
32+
2.3: - Support default and QVariant-type parameters in script
33+
binding.
34+
- Be more selective in setting plugin widget's autofillbackground
35+
to true - Avoids conflict with OpenGL.
36+
- Fixed bug where QtBrowserPlugin could not change properties on
37+
sub-objects.
38+
- Fixed default mimeTypes() implementations. Makes it work with
39+
Opera 9.50 on Linux.
40+
- For Qt 4.4, support for using a namespaced Qt build to avoid
41+
symbol clash with other instances of Qt in the browser.
42+
43+
2.4: - Don't trigger first QAction without shortcut if
44+
non-alphanumerical key is pressed.
45+
- Documentation updates.
46+
- Misc. minor fixes.
47+
- LGPL/BSD release.
48+

qtbrowserplugin/configure

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
if [ "x$1" != "x" -a "x$1" != "x-library" ]; then
4+
echo "Usage: $0 [-library]"
5+
echo
6+
echo "-library: Build the component as a dynamic library (DLL). Default is to"
7+
echo " include the component source code directly in the application."
8+
echo
9+
exit 0
10+
fi
11+
12+
rm -f config.pri
13+
if [ "x$1" = "x-library" ]; then
14+
echo "Configuring to build this component as a dynamic library."
15+
echo "SOLUTIONS_LIBRARY = yes" > config.pri
16+
fi
17+
18+
echo
19+
echo "This component is now configured."
20+
echo
21+
echo "To build the component library (if requested) and example(s),"
22+
echo "run qmake and your make command."
23+
echo
24+
echo "To remove or reconfigure, run make distclean."
25+
echo

qtbrowserplugin/configure.bat

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@echo off
2+
3+
rem
4+
rem "Main"
5+
rem
6+
7+
if not "%1"=="" (
8+
if not "%1"=="-library" (
9+
call :PrintUsage
10+
goto EOF
11+
)
12+
)
13+
14+
if exist config.pri. del config.pri
15+
if "%1"=="-library" (
16+
echo Configuring to build this component as a dynamic library.
17+
echo SOLUTIONS_LIBRARY = yes > config.pri
18+
)
19+
20+
echo .
21+
echo This component is now configured.
22+
echo .
23+
echo To build the component library (if requested) and example(s),
24+
echo run qmake and your make or nmake command.
25+
echo .
26+
echo To remove or reconfigure, run make (nmake) distclean.
27+
echo .
28+
29+
:PrintUsage
30+
echo Usage: configure.bat [-library]
31+
echo .
32+
echo -library: Build the component as a dynamic library (DLL). Default is to
33+
echo include the component source directly in the application.
34+
echo A DLL may be preferable for technical or licensing (LGPL) reasons.
35+
echo .
36+
goto EOF
37+
38+
39+
:EOF

0 commit comments

Comments
 (0)