28#ifndef _TDEMDI_CHILD_AREA_H_
29#define _TDEMDI_CHILD_AREA_H_
34#include "tdemdichildfrm.h"
35#include "tdemdichildview.h"
37class KMdiChildAreaPrivate;
64 TQPtrList<KMdiChildFrm> *
m_pZ;
96 int m_captionFontLineSpacing;
116 void manageChild(
KMdiChildFrm *lpC,
bool bShow =
true,
bool bCascade =
true );
122 void destroyChild(
KMdiChildFrm* child,
bool focusTopChild =
true );
128 void destroyChildButNotItsView(
KMdiChildFrm *lpC,
bool bFocusTopChild =
true );
135 void setTopChild(
KMdiChildFrm* child,
bool setFocus =
false );
146 int getVisibleChildCount()
const;
153 TQPoint getCascadePoint(
int indexOfWindow = -1 );
159 void setMdiCaptionFont(
const TQFont &fnt );
165 void setMdiCaptionActiveForeColor(
const TQColor &clr );
171 void setMdiCaptionActiveBackColor(
const TQColor &clr );
177 void setMdiCaptionInactiveForeColor(
const TQColor &clr );
183 void setMdiCaptionInactiveBackColor(
const TQColor &clr );
194 static void getCaptionColors(
const TQPalette &pal, TQColor &activeBG, TQColor &activeFG,
195 TQColor &inactiveBG, TQColor &inactiveFG ) KDE_DEPRECATED;
201 void cascadeWindows();
206 void cascadeMaximized();
211 void expandVertical();
216 void expandHorizontal();
222 void focusTopChild();
237 void tileVertically();
242 void layoutMinimizedChildren();
249 void tileAllInternal(
int maxWnds );
254 virtual void resizeEvent( TQResizeEvent * );
259 void mousePressEvent( TQMouseEvent *e );
264 void childMinimized(
KMdiChildFrm *lpC,
bool bWasMaximized );
299 KMdiChildAreaPrivate *d;
KMdiChildFrm * topChild() const
Returns the topmost child (the active one) or 0 if there are no children.
TQColor m_captionInactiveBackColor
The foreground color of inactive MDI childframe window captions.
TQPtrList< KMdiChildFrm > * m_pZ
Z Order stack of KMdiChildFrm childframe windows (top=last)
TQColor m_captionActiveBackColor
The foreground color of the active MDI childframe window caption.
void lastChildFrmClosed()
Signals that the last attached (docked) MDI view has been closed.
void nowMaximized(bool)
Signals that the child frames are maximized now.
TQColor m_captionInactiveForeColor
The background color of inactive MDI childframe window captions.
void popupWindowMenu(TQPoint)
Signals a KMdiMainFrm that the 'Window' popup menu must be shown.
void sysButtonConnectionsMustChange(KMdiChildFrm *, KMdiChildFrm *)
Signals a KMdiMainFrm that the signal/slot connections of the system buttons in the menubar (only in ...
TQFont m_captionFont
The MDI childframe window caption font.
TQColor m_captionActiveForeColor
The background color of the active MDI childframe window captions.
void noMaximizedChildFrmLeft(KMdiChildFrm *)
Signals that there aren't maximized child frames any more.
TQSize m_defaultChildFrmSize
the default size of an newly created childframe