• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
qxembed.h
1 /****************************************************************************
2  Definition of QXEmbed class
3 
4  Copyright (C) 1999-2000 Troll Tech AS
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 *****************************************************************************/
21 
22 #ifndef QXEMBED_H
23 #define QXEMBED_H
24 
25 #include <tqwidget.h>
26 #include <kdelibs_export.h>
27 
28 #ifdef Q_MOC_RUN
29 #define Q_WS_X11
30 #endif // Q_MOC_RUN
31 
32 #ifdef Q_WS_X11
33 
34 class QXEmbedData;
35 
62 class KDEUI_EXPORT QXEmbed : public TQWidget
63 {
64  Q_OBJECT
65  TQ_OBJECT
66 
67 public:
68 
76  QXEmbed( TQWidget *parent=0, const char *name=0, WFlags f = 0 );
77 
81  ~QXEmbed();
82 
90  static void initialize();
91 
92  enum Protocol { XEMBED, XPLAIN };
93 
108  void setProtocol( Protocol proto );
109 
116  Protocol protocol();
117 
130  void embed( WId w );
131 
138  WId embeddedWinId() const;
139 
148  static void embedClientIntoWindow( TQWidget* client, WId window );
149 
160  static bool processClientCmdline( TQWidget* client, int& argc, char ** argv );
161 
169  void sendDelete( void );
170 
180  void setAutoDelete( bool );
181 
188  bool autoDelete() const;
189 
190  /* Reimp */
191  TQSize sizeHint() const;
192  TQSize minimumSizeHint() const;
193  TQSizePolicy sizePolicy() const;
194  bool eventFilter( TQObject *, TQEvent * );
195  bool customWhatsThis() const;
196  void enterWhatsThisMode(); // temporary, fix in Qt (Matthias, Mon Jul 17 15:20:55 CEST 2000 )
197  virtual void reparent( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = false );
198 
202  void updateEmbeddedFocus( bool hasfocus );
203 
204 signals:
210  // KDE4 rename to embeddedWindowLost()
211  void embeddedWindowDestroyed();
212 
213 protected:
214  bool event( TQEvent * );
215  void keyPressEvent( TQKeyEvent * );
216  void keyReleaseEvent( TQKeyEvent * );
217  void focusInEvent( TQFocusEvent * );
218  void focusOutEvent( TQFocusEvent * );
219  void resizeEvent(TQResizeEvent *);
220  void showEvent( TQShowEvent * );
221  bool x11Event( XEvent* );
222 
230  virtual void windowChanged( WId w );
231 
232  bool focusNextPrevChild( bool next );
233 
234 private:
235  WId window;
236  QXEmbedData* d;
237  void checkGrab();
238  void sendSyntheticConfigureNotifyEvent();
239  void handleEmbed();
240 };
241 
242 
243 #endif
244 #endif

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |