[Kde-java] QtAWT

Richard Dale Richard_Dale at tipitina.demon.co.uk
Mon Jun 21 13:05:45 CEST 2004


On Monday 24 May 2004 04:14, Andrew John Hughes wrote:
> Hi all,
> 	Attached is a patch to the current CVS version of QtAWT which brings it
> into compliance with the Java 1.4 API and causes it to compile against
> the latest version of GNU Classpath.  If possible, I would like to
> continue work on this project, as it could provide a useful test case
> for the Free Java implementations.
>
> Hope to hear from you soon,
Well, I'm sorry about the delay. I've just got the kdejava module checked out, 
and tried this patch but it doesn't work for me. It might not be a problem 
with the patch, more likely there is something wrong with my java setup 
perhaps.

I couldn't compile qtawt before or after the patch. The patched qtawt/Makefile 
references a source file 'QtTextComponentPeer', but it seems to be missing.

The native/Makefile references /usr/include/qt3 instead of -I$QTDIR/include 
previously, which looks like a regression.

What should we do about the kdejava module - should it be retired and qtawt 
moved to kdebindings? There is a lot of obsolete koala java bindings code in 
there, which should certainly be removed.

-- Richard

gcj -C javax/org/kde/qtawt/*.java
javax/org/kde/qtawt/QtToolkit.java:34: Class or interface 
`java.awt.im.InputMethodHighlight' not found in import.
   import java.awt.im.InputMethodHighlight;
          ^
javax/org/kde/qtawt/QtToolkit.java:457: Type `DragGestureEvent' not found in 
the declaration of the argument `event' of method 
`createDragSourceContextPeer'.
       public DragSourceContextPeer 
createDragSourceContextPeer(DragGestureEvent event) 
                                                                ^
javax/org/kde/qtawt/QtToolkit.java:457: Type `DragSourceContextPeer' not found 
in the declaration of the return type of method 
`createDragSourceContextPeer'.
       public DragSourceContextPeer 
createDragSourceContextPeer(DragGestureEvent event) 
              ^
javax/org/kde/qtawt/QtToolkit.java:458: Class `InvalidDnDOperationException' 
not found in `throws'.
   	throws InvalidDnDOperationException
                  ^
javax/org/kde/qtawt/QtToolkit.java:469: Type `InputMethodHighlight' not found 
in the declaration of the argument `highlight' of method 
`mapInputMethodHighlight'.
       public Map mapInputMethodHighlight(InputMethodHighlight highlight) 
                                          ^
javax/org/kde/qtawt/QtToolkit.java:470: Class `HeadlessException' not found in 
`throws'.
   	throws HeadlessException
                  ^
javax/org/kde/qtawt/QtTextFieldPeer.java:27: Superclass `QtTextComponentPeer' 
of class `javax.org.kde.qtawt.QtTextFieldPeer' not found.
   public class QtTextFieldPeer extends QtTextComponentPeer
                                        ^
javax/org/kde/qtawt/QtComponentPeer.java:29: Class or interface 
`java.awt.image.VolatileImage' not found in import.
   import java.awt.image.VolatileImage;
          ^
javax/org/kde/qtawt/QtComponentPeer.java:199: Type `VolatileImage' not found 
in the declaration of the return type of method `createVolatileImage'.
       public VolatileImage createVolatileImage(int width, int height)
              ^
javax/org/kde/qtawt/QtComponentPeer.java:226: Type `BufferCapabilities' not 
found in the declaration of the argument `capabilities' of method 
`createBuffers'.
       public void createBuffers(int number, BufferCapabilities capabilities)
                                             ^
javax/org/kde/qtawt/QtComponentPeer.java:249: Type 
`BufferCapabilities.FlipContents' not found in the declaration of the 
argument `action' of method `flip'.
       public void flip(BufferCapabilities.FlipContents action)
                        ^
11 errors
make: *** [classes] Error 1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: qtawt-jdk1.4.patch.bz2
Type: application/x-bzip2
Size: 7046 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-java/attachments/20040621/96120a4f/qtawt-jdk1.4.patch.bz2


More information about the Kde-java mailing list