khtml Library API Documentation

kjavaappletwidget.h

00001 // -*- c++ -*-
00002 
00003 /* This file is part of the KDE project
00004  *
00005  * Copyright (C) 2000 Richard Moore <rich@kde.org>
00006  *               2000 Wynn Wilkes <wynnw@caldera.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Library General Public
00010  * License as published by the Free Software Foundation; either
00011  * version 2 of the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016  * Library General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Library General Public License
00019  * along with this library; see the file COPYING.LIB.  If not, write to
00020  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00021  * Boston, MA 02111-1307, USA.
00022  */
00023 
00024 #ifndef KJAVAAPPLETWIDGET_H
00025 #define KJAVAAPPLETWIDGET_H
00026 
00027 #include <qwidget.h>
00028 #ifndef Q_WS_QWS //FIXME(?) I don't think this is possible with Qt Embedded
00029 #include "java/kjavaappletcontext.h"
00030 #include "java/kjavaapplet.h"
00031 #include <qxembed.h>
00032 #include <kwinmodule.h>
00033 
00076 class KJavaAppletWidgetPrivate;
00077 
00078 class KJavaAppletWidget : public QXEmbed
00079 {
00080     Q_OBJECT
00081 public:
00082     KJavaAppletWidget( KJavaAppletContext* context,
00083                        QWidget* parent=0, const char* name=0 );
00084     KJavaAppletWidget( QWidget* parent=0, const char* name=0 );
00085 
00086    ~KJavaAppletWidget();
00087 
00093     KJavaApplet* applet() { return m_applet; }
00094 
00099     void showApplet();
00100 
00101     QSize sizeHint() const;
00102     void resize( int, int );
00103 
00104 protected slots:
00109     void setWindow( WId w );
00110 
00111 protected:
00112     //The counter to generate ID's for the applets
00113     static int appletCount;
00114 
00115 private:
00116     KJavaAppletWidgetPrivate* d;
00117 
00118     KJavaApplet* m_applet;
00119     KWinModule*  m_kwm;
00120     QString      m_swallowTitle;
00121 
00122 };
00123 
00124 #endif
00125 #endif // KJAVAAPPLETWIDGET_H
00126 
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:16:37 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001