KHTML
kjavaappletwidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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
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