kmdi Library API Documentation

kmdichildfrmcaption.h

00001 //---------------------------------------------------------------------------- 00002 // filename : kmdichildfrmcaption.h 00003 //---------------------------------------------------------------------------- 00004 // Project : KDE MDI extension 00005 // 00006 // begin : 07/1999 by Szymon Stefanek as part of kvirc 00007 // (an IRC application) 00008 // changes : 09/1999 by Falk Brettschneider to create an 00009 // - 06/2000 stand-alone Qt extension set of 00010 // classes and a Qt-based library 00011 // 2000-2003 maintained by the KDevelop project 00012 // 00013 // copyright : (C) 1999-2003 by Falk Brettschneider 00014 // and 00015 // Szymon Stefanek (stefanek@tin.it) 00016 // email : falkbr@kdevelop.org (Falk Brettschneider) 00017 //---------------------------------------------------------------------------- 00018 // 00019 //---------------------------------------------------------------------------- 00020 // 00021 // This program is free software; you can redistribute it and/or modify 00022 // it under the terms of the GNU Library General Public License as 00023 // published by the Free Software Foundation; either version 2 of the 00024 // License, or (at your option) any later version. 00025 // 00026 //---------------------------------------------------------------------------- 00027 #ifndef _KMDI_CHILD_FRM_CAPTION_H_ 00028 #define _KMDI_CHILD_FRM_CAPTION_H_ 00029 00030 #include <qwidget.h> 00031 00032 #include "kmdidefines.h" 00033 00034 class KMdiChildFrm; 00035 00036 00037 class KMdiChildFrmCaptionPrivate; 00038 00044 class KMdiChildFrmCaption : public QWidget 00045 { 00046 Q_OBJECT 00047 public: 00051 KMdiChildFrmCaption(KMdiChildFrm *parent); 00055 ~KMdiChildFrmCaption(); 00059 void setActive(bool bActive); 00063 void setCaption(const QString& text); 00067 int heightHint(); 00068 00069 public slots: 00073 void slot_moveViaSystemMenu(); 00074 00075 protected: 00079 virtual void paintEvent(QPaintEvent *e); 00083 virtual void mousePressEvent(QMouseEvent *); 00087 virtual void mouseDoubleClickEvent(QMouseEvent *); 00091 virtual void mouseReleaseEvent(QMouseEvent *); 00095 virtual void mouseMoveEvent(QMouseEvent *e); 00099 QString abbreviateText(QString origStr, int maxWidth); 00100 00101 // attributes 00102 public: 00106 QString m_szCaption; 00107 00108 protected: // Protected attributes 00112 KMdiChildFrm *m_pParent; 00116 bool m_bActive; 00120 QPoint m_offset; 00124 bool m_bChildInDrag; 00125 00126 private: 00127 KMdiChildFrmCaptionPrivate *d; 00128 }; 00129 00130 #endif //_KMDICAPTION_H_ 00131 00132 // kate: space-indent on; indent-width 2; replace-tabs on;
KDE Logo
This file is part of the documentation for kmdi Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 16 17:23:30 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003