kmdichildfrmcaption.h
//----------------------------------------------------------------------------
// filename : kmdichildfrmcaption.h
//----------------------------------------------------------------------------
// Project : KDE MDI extension
//
// begin : 07/1999 by Szymon Stefanek as part of kvirc
// (an IRC application)
// changes : 09/1999 by Falk Brettschneider to create an
// - 06/2000 stand-alone Qt extension set of
// classes and a Qt-based library
// 2000-2003 maintained by the KDevelop project
//
// copyright : (C) 1999-2003 by Falk Brettschneider
// and
// Szymon Stefanek (stefanek@tin.it)
// email : falkbr@kdevelop.org (Falk Brettschneider)
//----------------------------------------------------------------------------
//
//----------------------------------------------------------------------------
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2 of the
// License, or (at your option) any later version.
//
//----------------------------------------------------------------------------
#ifndef _KMDI_CHILD_FRM_CAPTION_H_
#define _KMDI_CHILD_FRM_CAPTION_H_
#include <qwidget.h>
#include "kmdidefines.h"
class KMdiChildFrm;
class KMdiChildFrmCaptionPrivate;
class KMDI_EXPORT KMdiChildFrmCaption : public QWidget
{
Q_OBJECT
public:
KMdiChildFrmCaption( KMdiChildFrm *parent );
~KMdiChildFrmCaption();
void setActive( bool bActive );
void setCaption( const QString& text );
int heightHint();
public slots:
void slot_moveViaSystemMenu();
protected:
virtual void paintEvent( QPaintEvent *e );
virtual void mousePressEvent( QMouseEvent * );
virtual void mouseDoubleClickEvent( QMouseEvent * );
virtual void mouseReleaseEvent( QMouseEvent * );
virtual void mouseMoveEvent( QMouseEvent *e );
QString abbreviateText( QString origStr, int maxWidth );
// attributes
public:
QString m_szCaption;
protected: // Protected attributes
KMdiChildFrm *m_pParent;
bool m_bActive;
QPoint m_offset;
bool m_bChildInDrag;
private:
KMdiChildFrmCaptionPrivate *d;
};
#endif //_KMDICAPTION_H_
// kate: space-indent off; replace-tabs off; indent-mode csands; tab-width 4;
KMdiChildFrmCaption::m_pParent
KMdiChildFrm * m_pParent
parent widget
Definition: kmdichildfrmcaption.h:122
KMdiChildFrmCaption::m_offset
QPoint 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
KMdiChildFrm
Internal class.
Definition: kmdichildfrm.h:130
KMdiChildFrmCaption
Internal class.
Definition: kmdichildfrmcaption.h:44
KMdiChildFrmCaption::m_bChildInDrag
bool m_bChildInDrag
True if the child knows that it is currently being dragged.
Definition: kmdichildfrmcaption.h:137
KMdiChildFrmCaption::m_szCaption
QString m_szCaption
the title string shown in the caption bar
Definition: kmdichildfrmcaption.h:116

KDE Home | KDE Accessibility Home | Description of Access Keys