28 #ifndef _TDEMDI_CHILD_AREA_H_
29 #define _TDEMDI_CHILD_AREA_H_
32 #include <tqptrlist.h>
34 #include "tdemdichildfrm.h"
35 #include "tdemdichildview.h"
37 class 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 );
264 void childMinimized(
KMdiChildFrm *lpC,
bool bWasMaximized );
275 void nowMaximized(
bool );
289 void popupWindowMenu( TQPoint );
295 void lastChildFrmClosed();
299 KMdiChildAreaPrivate *d;
302 #endif // _TDEMDI_CHILDAREA_H_
TQColor m_captionActiveForeColor
The background color of the active MDI childframe window captions.
KMdiChildFrm * topChild() const
Returns the topmost child (the active one) or 0 if there are no children.
virtual void mousePressEvent(TQMouseEvent *e)
Reimplemented from the base class.
TQColor m_captionActiveBackColor
The foreground color of the active MDI childframe window caption.
virtual void resizeEvent(TQResizeEvent *)
Reimplemented from the base class.
TQColor m_captionInactiveForeColor
The background color of inactive MDI childframe window captions.
TQFont m_captionFont
The MDI childframe window caption font.
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)
TQSize m_defaultChildFrmSize
the default size of an newly created childframe