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
00085 ~KJavaAppletWidget();
00086
00092 KJavaApplet* applet() { return m_applet; }
00093
00098 void showApplet();
00099
00100 QSize sizeHint() const;
00101 void resize( int, int );
00102
00103 protected slots:
00108 void setWindow( WId w );
00109
00110 protected:
00111
00112 static int appletCount;
00113
00117 void focusOutEvent( QFocusEvent * );
00118 void focusInEvent( QFocusEvent * );
00119 bool x11Event( XEvent* e);
00120
00121 private:
00122 KJavaAppletWidgetPrivate* d;
00123
00124 KJavaApplet* m_applet;
00125 KWinModule* m_kwm;
00126 QString m_swallowTitle;
00127
00128 };
00129
00130 #endif
00131 #endif // KJAVAAPPLETWIDGET_H
00132
This file is part of the documentation for kdelibs Version 3.1.0.