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( 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     
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 
 
This file is part of the documentation for khtml Library Version 3.2.0.