qxembed.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 #ifndef QXEMBED_H
00023 #define QXEMBED_H
00024 
00025 #include <qwidget.h>
00026 
00027 #ifndef Q_WS_QWS
00028 
00029 class QXEmbedData;
00030 
00057 class QXEmbed : public QWidget
00058 {
00059     Q_OBJECT
00060 
00061 public:
00062 
00070     QXEmbed( QWidget *parent=0, const char *name=0, WFlags f = 0 );
00071 
00075     ~QXEmbed();
00076 
00084     static void initialize();
00085 
00086     enum Protocol { XEMBED, XPLAIN };
00087 
00102     void setProtocol( Protocol proto );
00103 
00110     Protocol protocol();
00111 
00124     void embed( WId w );
00125 
00132     WId embeddedWinId() const;
00133 
00142     static void embedClientIntoWindow( QWidget* client, WId window );
00143 
00154     static bool processClientCmdline( QWidget* client, int& argc, char ** argv );
00155 
00163     void sendDelete( void );
00164     
00174     void setAutoDelete( bool );
00175 
00182     bool autoDelete() const;
00183 
00184     
00185     QSize sizeHint() const;
00186     QSize minimumSizeHint() const;
00187     QSizePolicy sizePolicy() const;
00188     bool eventFilter( QObject *, QEvent * );
00189     bool customWhatsThis() const;
00190     void enterWhatsThisMode(); 
00191     virtual void reparent( QWidget * parent, WFlags f, const QPoint & p, bool showIt = false );
00192 
00193 signals:
00199     void embeddedWindowDestroyed();
00200 
00201 protected:
00202     bool event( QEvent * );
00203     void keyPressEvent( QKeyEvent * );
00204     void keyReleaseEvent( QKeyEvent * );
00205     void focusInEvent( QFocusEvent * );
00206     void focusOutEvent( QFocusEvent * );
00207     void resizeEvent(QResizeEvent *);
00208     void showEvent( QShowEvent * );
00209     bool x11Event( XEvent* );
00210 
00218     virtual void windowChanged( WId w );
00219 
00220     bool focusNextPrevChild( bool next );
00221 
00222 private:
00223     WId window;
00224     QXEmbedData* d;
00225     void checkGrab();
00226     void sendSyntheticConfigureNotifyEvent();
00227 };
00228 
00229 
00230 #endif
00231 #endif
 
This file is part of the documentation for kdeui Library Version 3.2.0.