kmdichildarea.h
//----------------------------------------------------------------------------
// filename : kmdichildarea.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_AREA_H_
#define _KMDI_CHILD_AREA_H_
#include <qframe.h>
#include <qptrlist.h>
#include "kmdichildfrm.h"
#include "kmdichildview.h"
class KMdiChildAreaPrivate;
class KMDI_EXPORT KMdiChildArea : public QFrame
{
friend class KMdiChildFrmCaption;
friend class KMdiChildFrm;
Q_OBJECT
// attributes
public:
QPtrList<KMdiChildFrm> *m_pZ; //Auto delete enabled
QSize m_defaultChildFrmSize;
protected:
QFont m_captionFont;
QColor m_captionActiveBackColor;
QColor m_captionActiveForeColor;
QColor m_captionInactiveBackColor;
QColor m_captionInactiveForeColor;
int m_captionFontLineSpacing;
// methods
public:
KMdiChildArea( QWidget *parent );
~KMdiChildArea();
void manageChild( KMdiChildFrm *lpC, bool bShow = true, bool bCascade = true );
void destroyChild( KMdiChildFrm* child, bool focusTopChild = true );
void destroyChildButNotItsView( KMdiChildFrm *lpC, bool bFocusTopChild = true );
void setTopChild( KMdiChildFrm* child, bool setFocus = false );
inline KMdiChildFrm * topChild() const { return m_pZ->last(); }
int getVisibleChildCount() const;
QPoint getCascadePoint( int indexOfWindow = -1 );
void setMdiCaptionFont( const QFont &fnt );
void setMdiCaptionActiveForeColor( const QColor &clr );
void setMdiCaptionActiveBackColor( const QColor &clr );
void setMdiCaptionInactiveForeColor( const QColor &clr );
void setMdiCaptionInactiveBackColor( const QColor &clr );
static void getCaptionColors( const QPalette &pal, QColor &activeBG, QColor &activeFG,
QColor &inactiveBG, QColor &inactiveFG ) KDE_DEPRECATED;
public slots:
void cascadeWindows();
void cascadeMaximized();
void expandVertical();
void expandHorizontal();
void focusTopChild();
void tilePragma();
void tileAnodine();
void tileVertically();
void layoutMinimizedChildren();
protected:
void tileAllInternal( int maxWnds );
virtual void resizeEvent( QResizeEvent * );
void mousePressEvent( QMouseEvent *e );
void childMinimized( KMdiChildFrm *lpC, bool bWasMaximized );
signals:
void noMaximizedChildFrmLeft( KMdiChildFrm* );
void nowMaximized( bool );
void sysButtonConnectionsMustChange( KMdiChildFrm*, KMdiChildFrm* );
void popupWindowMenu( QPoint );
void lastChildFrmClosed();
private:
KMdiChildAreaPrivate *d;
};
#endif // _KMDICHILDAREA_H_
// kate: indent-mode csands; tab-width 4; auto-insert-doxygen on;
KMdiChildFrm::mousePressEvent
virtual void mousePressEvent(QMouseEvent *e)
Reimplemented from the base class.
Definition: kmdichildfrm.cpp:183
KMdiChildArea::topChild
KMdiChildFrm * topChild() const
Returns the topmost child (the active one) or 0 if there are no children.
Definition: kmdichildarea.h:141
KMdiChildArea::m_captionActiveForeColor
QColor m_captionActiveForeColor
The background color of the active MDI childframe window captions.
Definition: kmdichildarea.h:84
KMdiChildArea::m_captionFont
QFont m_captionFont
The MDI childframe window caption font.
Definition: kmdichildarea.h:74
KMdiChildArea::m_defaultChildFrmSize
QSize m_defaultChildFrmSize
the default size of an newly created childframe
Definition: kmdichildarea.h:69
KMdiChildArea::m_pZ
QPtrList< KMdiChildFrm > * m_pZ
Z Order stack of KMdiChildFrm childframe windows (top=last)
Definition: kmdichildarea.h:64
KMdiChildFrm::resizeEvent
virtual void resizeEvent(QResizeEvent *)
Reimplemented from the base class.
Definition: kmdichildfrm.cpp:982
KMdiChildFrm
Internal class.
Definition: kmdichildfrm.h:130
KMdiChildArea::m_captionInactiveForeColor
QColor m_captionInactiveForeColor
The background color of inactive MDI childframe window captions.
Definition: kmdichildarea.h:94
KMdiChildFrmCaption
Internal class.
Definition: kmdichildfrmcaption.h:44
KMdiChildArea::m_captionActiveBackColor
QColor m_captionActiveBackColor
The foreground color of the active MDI childframe window caption.
Definition: kmdichildarea.h:79
KMdiChildArea::m_captionInactiveBackColor
QColor m_captionInactiveBackColor
The foreground color of inactive MDI childframe window captions.
Definition: kmdichildarea.h:89
KMdiChildArea
Internal class.
Definition: kmdichildarea.h:52

KDE Home | KDE Accessibility Home | Description of Access Keys