khtml Library API Documentation

javaembed.h

00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2000 Wynn Wilkes <wynnw@caldera.com>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  * Boston, MA 02111-1307, USA.
00019  */
00020 
00021 /****************************************************************************
00022    This is a modified version of QXEmbed from Troll Tech.  It's been modified
00023    to work better with java applets.
00024 *****************************************************************************/
00025 
00026 #ifndef KJAVAEMBED_H
00027 #define KJAVAEMBED_H
00028 
00029 #include <qwidget.h>
00030 
00031 #ifndef Q_WS_QWS // FIXME(E)? I don't think this is possible with Qt Embedded.
00032 class KJavaEmbedPrivate;
00033 class KJavaEmbed : public QWidget
00034 {
00035     Q_OBJECT
00036 
00037 public:
00038 
00039     KJavaEmbed( QWidget *parent=0, const char *name=0, WFlags f = 0 );
00040     ~KJavaEmbed();
00041 
00045     void embed( WId w );
00046 
00050     bool embedded() { if( window != 0 ) return true; else return false; }
00051 
00052     QSize sizeHint() const;
00053     QSize minimumSizeHint() const;
00054     QSizePolicy sizePolicy() const;
00055 
00056     bool eventFilter( QObject *, QEvent * );
00057 
00058 protected:
00059     bool event( QEvent * );
00060     void focusInEvent( QFocusEvent * );
00061     void focusOutEvent( QFocusEvent * );
00062     void resizeEvent(QResizeEvent *);
00063     //void showEvent( QShowEvent * );
00064 
00065     bool x11Event( XEvent* );
00066 
00067     bool focusNextPrevChild( bool next );
00068 
00069 private:
00070     WId window;
00071     KJavaEmbedPrivate* d;
00072     void sendSyntheticConfigureNotifyEvent();
00073 };
00074 
00075 
00076 #endif
00077 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.0.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Oct 8 12:22:38 2003 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001