kjavaappletwidget.h
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 <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
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
This file is part of the documentation for kdelibs Version 3.1.4.