summaryrefslogtreecommitdiffstats
path: root/qtjava/README
blob: 864ed3ece7276781076468d85914b5a9c9c1eaeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/***************************************************************************
 * 	(C) 2000-2002 Lost Highway Ltd. All rights reserved.               *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as               *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

Here are Java JNI based api bindings for Qt 3.2.3

All the files in this project are generated from the Qt 3.2.3 C++ headers,
apart from the following:

JavaSlot.cpp
JavaSlot.h
	C++ proxies for Java signals and slots

QtSupport.cpp
QtSupport.h
	C++ static methods for running the library in conjunction with 'qtjava.java'
	
qtjava.java
	A Java class with static methods for running the library
	
qtjava.cpp
	Some native code methods to help the 'run the library' Java class 'qtjava.java'
	
Invocation.java
	Utility class containing methods to invoke Qt event handlers and slots
	
QtSupport.java
	A marker interface to denote that Java instance contains a wrapped C++ equivalent

WeakValueMap.java
	Utility class from 'Programming In Java' third edition
	
BUILD INSTRUCTIONS

1)  $ cd tdebindings
    $ ./configure --with-qt-dir=<your Qt lib path>
    $ cd qtjava
    $ make
    $ make install

  The java classes are installed in $(kde_libraries)/java/qtjava.jar, and you will need to add
  this jar file to your classpath. The shared library libqtjava.so is installed
  in $(kde_libraries).

2) That's it - you should be able to compile and run the Java example
   qtjava/javalib/test/ScribbleWindow.java by typing:

	$ javac ScribbleWindow.java
	$ java ScribbleWindow

3) If you wish to write QtJava applications, include the following in the class which has a main() function:

	static {
		qtjava.initialize();
	}

It will load the QtJava 'libqtjava.so' shared library.

4) To build the javadoc documentation.

cd qtjava/javalib/api
javadoc -classpath ".." -splitindex -windowtitle  "Qt 3.2.3 Java api" ../org/kde/qt/*.java