# kdeui Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# qxembed.h

    00001 /****************************************************************************
    00002     Definition of QXEmbed class
    00003
    00004    Copyright (C) 1999-2000 Troll Tech AS
    00005
    00006     This library is free software; you can redistribute it and/or
    00007     modify it under the terms of the GNU Library General Public
    00008     License as published by the Free Software Foundation; either
    00009     version 2 of the License, or (at your option) any later version.
    00010
    00011     This library is distributed in the hope that it will be useful,
    00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00014     Library General Public License for more details.
    00015
    00016     You should have received a copy of the GNU Library General Public License
    00017     along with this library; see the file COPYING.LIB.  If not, write to
    00018     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00019     Boston, MA 02111-1307, USA.
    00020 *****************************************************************************/
    00021
    00022 #ifndef QXEMBED_H
    00023 #define QXEMBED_H
    00024
    00025 #include <qwidget.h>
    00026
    00027 #ifndef Q_WS_QWS
    00028
    00029 /*
    00030   Documentation for this class is in the cpp-file!
    00031  */
    00032
    00033
    00034 class QXEmbedData;
    00035
    00061 class QXEmbed : public QWidget
    00062 {
    00063     Q_OBJECT
    00064
    00065 public:
    00066
    00074     QXEmbed( QWidget *parent=0, const char *name=0, WFlags f = 0 );
    00075
    00079     ~QXEmbed();
    00080
    00088     static void initialize();
    00089
    00090     enum Protocol { XEMBED, XPLAIN };
    00091
    00106     void setProtocol( Protocol proto );
    00107
    00114     Protocol protocol();
    00115
    00129     void embed( WId w );
    00130
    00137     WId embeddedWinId() const;
    00138
    00147     static void embedClientIntoWindow( QWidget* client, WId window );
    00148
    00159     static bool processClientCmdline( QWidget* client, int& argc, char ** argv );
    00160
    00161
    00165     QSize sizeHint() const;
    00166
    00170     QSize minimumSizeHint() const;
    00171
    00176     QSizePolicy sizePolicy() const;
    00177
    00178     bool eventFilter( QObject *, QEvent * );
    00179
    00180     void setAutoDelete( bool );
    00181     bool autoDelete() const;
    00182
    00183     bool customWhatsThis() const;
    00184     void enterWhatsThisMode(); // temporary, fix in Qt (Matthias, Mon Jul 17 15:20:55 CEST 2000  )
    00185
    00186 signals:
    00192     void embeddedWindowDestroyed();
    00193
    00194 protected:
    00195     bool event( QEvent * );
    00196     void keyPressEvent( QKeyEvent * );
    00197     void keyReleaseEvent( QKeyEvent * );
    00198     void focusInEvent( QFocusEvent * );
    00199     void focusOutEvent( QFocusEvent * );
    00200     void resizeEvent(QResizeEvent *);
    00201     void showEvent( QShowEvent * );
    00202     bool x11Event( XEvent* );
    00203
    00211     virtual void windowChanged( WId w );
    00212
    00213     bool focusNextPrevChild( bool next );
    00214
    00215 private:
    00216     WId window;
    00217     QXEmbedData* d;
    00218     void checkGrab();
    00219     void sendSyntheticConfigureNotifyEvent();
    00220 };
    00221
    00222
    00223 #endif
    00224 #endif

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:58:07 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001