KHTML
kjavaappletwidget.h
Go to the documentation of this file.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., 51 Franklin Street, Fifth Floor, 00021 * Boston, MA 02110-1301, 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( QWidget* parent=0, const char* name=0 ); 00083 00084 ~KJavaAppletWidget(); 00085 00091 KJavaApplet* applet() { return m_applet; } 00092 00097 void showApplet(); 00098 00099 QSize sizeHint() const; 00100 void resize( int, int ); 00101 00102 protected slots: 00107 void setWindow( WId w ); 00108 00109 protected: 00110 //The counter to generate ID's for the applets 00111 static int appletCount; 00112 void showEvent (QShowEvent *); 00113 00114 private: 00115 KJavaAppletWidgetPrivate* d; 00116 00117 KJavaApplet* m_applet; 00118 KWinModule* m_kwm; 00119 QString m_swallowTitle; 00120 00121 }; 00122 00123 #endif 00124 #endif // KJAVAAPPLETWIDGET_H 00125