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 <QtGui/QImage> 00028 00029 #include "java/kjavaappletcontext.h" 00030 #include "java/kjavaapplet.h" 00031 #ifdef Q_WS_X11 00032 #include <QX11EmbedContainer> 00033 #else 00034 #define QX11EmbedContainer QWidget 00035 #include <QWidget> 00036 #endif 00037 00080 class KJavaAppletWidgetPrivate; 00081 00082 class KJavaAppletWidget : public QX11EmbedContainer 00083 { 00084 Q_OBJECT 00085 public: 00086 KJavaAppletWidget( QWidget* parent=0 ); 00087 00088 ~KJavaAppletWidget(); 00089 00095 KJavaApplet* applet() { return m_applet; } 00096 00101 void showApplet(); 00102 00103 QSize sizeHint() const; 00104 void resize( int, int ); 00105 00106 protected Q_SLOTS: 00111 void setWindow( WId w ); 00112 00113 protected: 00114 //The counter to generate ID's for the applets 00115 static int appletCount; 00116 void showEvent (QShowEvent *); 00117 00118 private: 00119 KJavaAppletWidgetPrivate* const d; 00120 00121 KJavaApplet* m_applet; 00122 QString m_swallowTitle; 00123 00124 }; 00125 00126 #endif // KJAVAAPPLETWIDGET_H 00127
KDE 4.6 API Reference