Google

class QextMdiChildArea

Internal class. More...

Definition#include <include/qextmdichildarea.h>
InheritsQFrame [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Signals

Public Members

Protected Methods

Protected Members

Private Members


Detailed Description

The main frame widget QextMdiMainFrm consists of 2 child widgets. One is this class. It's the widget where the child frames (emulated toplevel MDI views) live in. This class is the manager for the child frame widgets because it controls the Z-order widget stack of QextMdiChildFrm's. It provides all placing and positioning algorithms for docked (attached) MDI views.

QextMdiChildArea doesn't know anything about the actual MDI views. It only knows and manages the frame widgets of attached MDI views. All actions and stuff concerning only to childframes are handled here.

friend class QextMdiChildFrmCaption

QextMdiChildFrmCaption

[private]

friend class QextMdiChildFrm

QextMdiChildFrm

[private]

QList<QextMdiChildFrm> * m_pZ

m_pZ

QSize m_defaultChildFrmSize

m_defaultChildFrmSize

QFont m_captionFont

m_captionFont

[protected]

QColor m_captionActiveBackColor

m_captionActiveBackColor

[protected]

QColor m_captionActiveForeColor

m_captionActiveForeColor

[protected]

QColor m_captionInactiveBackColor

m_captionInactiveBackColor

[protected]

QColor m_captionInactiveForeColor

m_captionInactiveForeColor

[protected]

int m_captionFontLineSpacing

m_captionFontLineSpacing

[protected]

 QextMdiChildArea (QWidget *parent)

QextMdiChildArea

Consruction. Note: This class needn't to know about QextMdiMainFrm .

 ~QextMdiChildArea ()

~QextMdiChildArea

Destructor : THERE should be no child windows anymore... Howewer it simply deletes all the child widgets :)

void  manageChild (QextMdiChildFrm *lpC,bool bShow=TRUE,bool bCascade=TRUE)

manageChild

Appends a new QextMdiChildFrm to this manager. The child is shown,raised and gets focus if this window has it.

void  destroyChild (QextMdiChildFrm *lpC,bool bFocusTopChild = TRUE)

destroyChild

Destroys a QextMdiChildFrm managed.
Note that if a client is attached to this child , it is deleted too!

void  destroyChildButNotItsView (QextMdiChildFrm *lpC,bool bFocusTopChild = TRUE)

destroyChildButNotItsView

Destroys a QextMdiChildFrm managed.
Note that if a client is attached to this child , it is NOT deleted!

void  setTopChild (QextMdiChildFrm *lpC,bool bSetFocus=FALSE)

setTopChild

Brings the child lpC to the top of the stack The children is focused if bSetFocus is TRUE otherwise is raised only

inline QextMdiChildFrm *  topChild ()

topChild

Returns the topmost child (the active one) or 0 if there are no children. Note that the topmost child may be also hidded , if ALL the windows are minimized.

int  getVisibleChildCount ()

getVisibleChildCount

Returns the number of visible children

QPoint  getCascadePoint (int indexOfWindow = -1)

getCascadePoint

Calculates the cascade point for the given index. If index is -1 the cascade point is calculated for the window following the last window

void  setMdiCaptionFont (const QFont &fnt)

setMdiCaptionFont

Sets the MDI childframe window caption font (no relayout)

void  setMdiCaptionActiveForeColor (const QColor &clr)

setMdiCaptionActiveForeColor

Sets the foreground color of the active MDI childframe window caption (no relayout)

void  setMdiCaptionActiveBackColor (const QColor &clr)

setMdiCaptionActiveBackColor

Sets the background color of the active MDI childframe window captions (no relayout)

void  setMdiCaptionInactiveForeColor (const QColor &clr)

setMdiCaptionInactiveForeColor

Sets the foreground color of inactive MDI childframe window captions (no relayout)

void  setMdiCaptionInactiveBackColor (const QColor &clr)

setMdiCaptionInactiveBackColor

Sets the background color of inactive MDI childframe window captions (no relayout)

void  cascadeWindows ()

cascadeWindows

[slot]

Cascades the windows resizing it to the minimum size.

void  cascadeMaximized ()

cascadeMaximized

[slot]

Casecades the windows resizing it to the maximum available size.

void  expandVertical ()

expandVertical

[slot]

Maximize all windows but only in vertical direction

void  expandHorizontal ()

expandHorizontal

[slot]

Maximize all windows but only in horizontal direction

void  focusTopChild ()

focusTopChild

[slot]

Foces focus to the topmost child In case that it not gets focused automatically... Btw : It should not happen.

void  tilePragma ()

tilePragma

[slot]

Tile Pragma

void  tileAnodine ()

tileAnodine

[slot]

Tile Anodine

void  tileVertically ()

tileVertically

[slot]

Tile Vertically

void  layoutMinimizedChildren ()

layoutMinimizedChildren

[slot]

Positioning of minimized child frames

void  tileAllInternal (int maxWnds)

tileAllInternal

[protected]

Internally used for the tile algorithm

void  resizeEvent (QResizeEvent *)

resizeEvent

[protected virtual]

Automatically resizes a maximized MDI view and layouts the positions of minimized MDI views.

void  mousePressEvent (QMouseEvent *e)

mousePressEvent

[protected]

Shows the 'Window' popup menu on right mouse button click

void  childMinimized (QextMdiChildFrm *lpC,bool bWasMaximized)

childMinimized

[protected]

Internally used. Actions that are necessary when an MDI view gets minimized

void  noMaximizedChildFrmLeft (QextMdiChildFrm*)

noMaximizedChildFrmLeft

[signal]

Signalizes that there aren't maximized child frames any more

void  nowMaximized (bool)

nowMaximized

[signal]

Signalizes that the child frames are maximized now

void  sysButtonConnectionsMustChange (QextMdiChildFrm*, QextMdiChildFrm*)

sysButtonConnectionsMustChange

[signal]

Internally used. Signalizes from QextMdiChildArea to QextMdiMainFrm that the signal/slot connections of the system buttons in the menubar (only in Maximize mode) must be updated to another MDI view because the focused MDI view has changed

void  popupWindowMenu ( QPoint)

popupWindowMenu

[signal]

Internally used. Signalizes from QextMdiChildArea to QextMdiMainFrm that the 'Window' popup menu must be shown

void  lastChildFrmClosed ()

lastChildFrmClosed

[signal]

Signalizes that the last attached (docked) MDI view has been closed. Note: Detached MDI views can remain.


Generated by: falk on pc9 on Fri Nov 30 14:44:26 2001, using kdoc 2.0a53.