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

tdeui

  • tdeui
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 <tdelibs_export.h>
27 
28 #ifdef TQ_WS_X11
29 
30 class QXEmbedData;
31 
58 class TDEUI_EXPORT QXEmbed : public TQWidget
59 {
60  TQ_OBJECT
61 
62 
63 public:
64 
72  QXEmbed( TQWidget *parent=0, const char *name=0, WFlags f = 0 );
73 
77  ~QXEmbed();
78 
86  static void initialize();
87 
88  enum Protocol { XEMBED, XPLAIN };
89 
104  void setProtocol( Protocol proto );
105 
112  Protocol protocol();
113 
126  void embed( WId w );
127 
134  WId embeddedWinId() const;
135 
144  static void embedClientIntoWindow( TQWidget* client, WId window );
145 
156  static bool processClientCmdline( TQWidget* client, int& argc, char ** argv );
157 
165  void sendDelete( void );
166 
176  void setAutoDelete( bool );
177 
184  bool autoDelete() const;
185 
186  /* Reimp */
187  TQSize sizeHint() const;
188  TQSize minimumSizeHint() const;
189  TQSizePolicy sizePolicy() const;
190  bool eventFilter( TQObject *, TQEvent * );
191  bool customWhatsThis() const;
192  void enterWhatsThisMode(); // temporary, fix in Qt (Matthias, Mon Jul 17 15:20:55 CEST 2000 )
193  virtual void reparent( TQWidget * parent, WFlags f, const TQPoint & p, bool showIt = false );
194 
198  void updateEmbeddedFocus( bool hasfocus );
199 
200 signals:
206  // KDE4 rename to embeddedWindowLost()
207  void embeddedWindowDestroyed();
208 
209 protected:
210  bool event( TQEvent * );
211  void keyPressEvent( TQKeyEvent * );
212  void keyReleaseEvent( TQKeyEvent * );
213  void focusInEvent( TQFocusEvent * );
214  void focusOutEvent( TQFocusEvent * );
215  void resizeEvent(TQResizeEvent *);
216  void showEvent( TQShowEvent * );
217  bool x11Event( XEvent* );
218 
226  virtual void windowChanged( WId w );
227 
228  bool focusNextPrevChild( bool next );
229 
230 private:
231  WId window;
232  QXEmbedData* d;
233  void checkGrab();
234  void sendSyntheticConfigureNotifyEvent();
235  void handleEmbed();
236 };
237 
238 
239 #endif
240 #endif
KNotifyClient::event
int event(const TQString &message, const TQString &text=TQString::null) TDE_DEPRECATED

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.1
This website is maintained by Timothy Pearson.