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

kmdi

  • kmdi
kmdichildfrmcaption.h
1 //----------------------------------------------------------------------------
2 // filename : kmdichildfrmcaption.h
3 //----------------------------------------------------------------------------
4 // Project : KDE MDI extension
5 //
6 // begin : 07/1999 by Szymon Stefanek as part of kvirc
7 // (an IRC application)
8 // changes : 09/1999 by Falk Brettschneider to create an
9 // - 06/2000 stand-alone Qt extension set of
10 // classes and a Qt-based library
11 // 2000-2003 maintained by the KDevelop project
12 //
13 // copyright : (C) 1999-2003 by Falk Brettschneider
14 // and
15 // Szymon Stefanek (stefanek@tin.it)
16 // email : falkbr@kdevelop.org (Falk Brettschneider)
17 //----------------------------------------------------------------------------
18 //
19 //----------------------------------------------------------------------------
20 //
21 // This program is free software; you can redistribute it and/or modify
22 // it under the terms of the GNU Library General Public License as
23 // published by the Free Software Foundation; either version 2 of the
24 // License, or (at your option) any later version.
25 //
26 //----------------------------------------------------------------------------
27 #ifndef _KMDI_CHILD_FRM_CAPTION_H_
28 #define _KMDI_CHILD_FRM_CAPTION_H_
29 
30 #include <tqwidget.h>
31 
32 #include "kmdidefines.h"
33 
34 class KMdiChildFrm;
35 
36 
37 class KMdiChildFrmCaptionPrivate;
38 
44 class KMDI_EXPORT KMdiChildFrmCaption : public TQWidget
45 {
46  Q_OBJECT
47 public:
51  KMdiChildFrmCaption( KMdiChildFrm *parent );
52 
56  ~KMdiChildFrmCaption();
57 
61  void setActive( bool bActive );
62 
66  void setCaption( const TQString& text );
67 
71  int heightHint();
72 
73 public slots:
77  void slot_moveViaSystemMenu();
78 
79 protected:
83  virtual void paintEvent( TQPaintEvent *e );
84 
88  virtual void mousePressEvent( TQMouseEvent * );
89 
93  virtual void mouseDoubleClickEvent( TQMouseEvent * );
94 
98  virtual void mouseReleaseEvent( TQMouseEvent * );
99 
103  virtual void mouseMoveEvent( TQMouseEvent *e );
104 
109  TQString abbreviateText( TQString origStr, int maxWidth );
110 
111  // attributes
112 public:
116  TQString m_szCaption;
117 
118 protected: // Protected attributes
122  KMdiChildFrm *m_pParent;
123 
127  bool m_bActive;
128 
132  TQPoint m_offset;
133 
137  bool m_bChildInDrag;
138 
139 private:
140  KMdiChildFrmCaptionPrivate *d;
141 };
142 
143 #endif //_KMDICAPTION_H_
144 
145 // kate: space-indent off; replace-tabs off; indent-mode csands; tab-width 4;
KMdiChildFrmCaption
Internal class.
Definition: kmdichildfrmcaption.h:45
KMdiChildFrmCaption::m_bChildInDrag
bool m_bChildInDrag
True if the child knows that it is currently being dragged.
Definition: kmdichildfrmcaption.h:137
KMdiChildFrmCaption::m_szCaption
TQString m_szCaption
the title string shown in the caption bar
Definition: kmdichildfrmcaption.h:116
KMdiChildFrmCaption::m_offset
TQPoint m_offset
the position offset related to its parent widget (internally used for translating mouse move position...
Definition: kmdichildfrmcaption.h:132
KMdiChildFrmCaption::m_bActive
bool m_bActive
state variable indicating whether activated or not activated
Definition: kmdichildfrmcaption.h:127
KMdiChildFrmCaption::m_pParent
KMdiChildFrm * m_pParent
parent widget
Definition: kmdichildfrmcaption.h:122
KMdiChildFrm
Internal class.
Definition: kmdichildfrm.h:131

kmdi

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

kmdi

Skip menu "kmdi"
  • 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 kmdi by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |