javaembed.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
00025
00026 #ifndef KJAVAEMBED_H
00027 #define KJAVAEMBED_H
00028
00029 #include <qwidget.h>
00030
00031 #ifndef Q_WS_QWS // FIXME(E)? I don't think this is possible with Qt Embedded.
00032 class KJavaEmbedPrivate;
00033 class KJavaEmbed : public QWidget
00034 {
00035 Q_OBJECT
00036
00037 public:
00038
00039 KJavaEmbed( QWidget *parent=0, const char *name=0, WFlags f = 0 );
00040 ~KJavaEmbed();
00041
00045 void embed( WId w );
00046
00050 bool embedded() { if( window != 0 ) return true; else return false; }
00051
00052 QSize sizeHint() const;
00053 QSize minimumSizeHint() const;
00054 QSizePolicy sizePolicy() const;
00055
00056 bool eventFilter( QObject *, QEvent * );
00057
00058 protected:
00059 bool event( QEvent * );
00060 void focusInEvent( QFocusEvent * );
00061 void focusOutEvent( QFocusEvent * );
00062 void resizeEvent(QResizeEvent *);
00063
00064
00065 bool x11Event( XEvent* );
00066
00067 bool focusNextPrevChild( bool next );
00068
00069 private:
00070 WId window;
00071 KJavaEmbedPrivate* d;
00072 void sendSyntheticConfigureNotifyEvent();
00073 };
00074
00075
00076 #endif
00077 #endif
This file is part of the documentation for kdelibs Version 3.1.0.