You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava
Michele Calgaro 997dbd41f1
Rename KUniqueApplication to TDEUniqueApplication
2 weeks ago
..
designer/juic Rename KUniqueApplication to TDEUniqueApplication 2 weeks ago
javalib Fix FTBFS caused by removal of tqtinterface 3 weeks ago
AUTHORS Fix inadvertent renaming and typos. 12 years ago
COPYING Fix inadvertent "TQ" changes. 13 years ago
ChangeLog Rename many classes to avoid conflicts with KDE 11 years ago
INSTALL Fix inadvertent renaming and typos. 12 years ago
Makefile.am Additional renaming of kde to tde 13 years ago
NEWS Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. 15 years ago
README qt -> tqt conversion: 6 years ago
TODO Initial TQt conversion 13 years ago
configure.in.in Initial TQt conversion 13 years ago
javalib.kdevprj Fix FTBFS caused by removal of tqtinterface 3 weeks ago

README

/***************************************************************************
 * 	(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 libtqtjava.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 'libtqtjava.so' shared library.

4) To build the javadoc documentation.

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