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

tdemdi

  • tdemdi
tdemdichildfrmcaption.h
1//----------------------------------------------------------------------------
2// filename : tdemdichildfrmcaption.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 _TDEMDI_CHILD_FRM_CAPTION_H_
28#define _TDEMDI_CHILD_FRM_CAPTION_H_
29
30#include <tqwidget.h>
31
32#include "tdemdidefines.h"
33
34class KMdiChildFrm;
35
36
37class KMdiChildFrmCaptionPrivate;
38
44class KMDI_EXPORT KMdiChildFrmCaption : public TQWidget
45{
46 TQ_OBJECT
47public:
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
73public slots:
77 void slot_moveViaSystemMenu();
78
79protected:
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
112public:
116 TQString m_szCaption;
117
118protected: // Protected attributes
122 KMdiChildFrm *m_pParent;
123
127 bool m_bActive;
128
132 TQPoint m_offset;
133
137 bool m_bChildInDrag;
138
139private:
140 KMdiChildFrmCaptionPrivate *d;
141};
142
143#endif //_TDEMDI_FRM_CAPTION_H_
KMdiChildFrmCaption
Internal class.
Definition: tdemdichildfrmcaption.h:45
KMdiChildFrmCaption::m_bChildInDrag
bool m_bChildInDrag
True if the child knows that it is currently being dragged.
Definition: tdemdichildfrmcaption.h:137
KMdiChildFrmCaption::m_szCaption
TQString m_szCaption
the title string shown in the caption bar
Definition: tdemdichildfrmcaption.h:116
KMdiChildFrmCaption::m_offset
TQPoint m_offset
the position offset related to its parent widget (internally used for translating mouse move position...
Definition: tdemdichildfrmcaption.h:132
KMdiChildFrmCaption::m_bActive
bool m_bActive
state variable indicating whether activated or not activated
Definition: tdemdichildfrmcaption.h:127
KMdiChildFrmCaption::m_pParent
KMdiChildFrm * m_pParent
parent widget
Definition: tdemdichildfrmcaption.h:122
KMdiChildFrm
Internal class.
Definition: tdemdichildfrm.h:131

tdemdi

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

tdemdi

Skip menu "tdemdi"
  • 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 tdemdi by doxygen 1.9.4
This website is maintained by Timothy Pearson.