org.kde.koala

Class KMdiChildArea

public class KMdiChildArea extends QFrame

The main frame widget KMdiMainFrm 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 KMdiChildFrm's. It provides all placing and positioning algorithms for docked (attached) MDI views. KMdiChildArea 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. See KMdiChildAreaSignals for signals emitted by KMdiChildArea

UNKNOWN: Internal class.

Constructor Summary
protected KMdiChildArea(Class dummy)
KMdiChildArea(QWidget parent)
Consruction.
Method Summary
voidcascadeMaximized()
Cascades all windows resizing them to the maximum available size.
voidcascadeWindows()
Cascades all windows resizing them to the minimum size.
protected voidchildMinimized(KMdiChildFrm lpC, boolean bWasMaximized)
Internally used.
StringclassName()
voiddestroyChild(KMdiChildFrm child, boolean focusTopChild)
Destroys a managed KMdiChildFrm Also deletes the client attached to this child.
voiddestroyChild(KMdiChildFrm child)
voiddestroyChildButNotItsView(KMdiChildFrm lpC, boolean bFocusTopChild)
Destroys a managed KMdiChildFrm Clients attached to the KMdiChildFrm are not deleted.
voiddestroyChildButNotItsView(KMdiChildFrm lpC)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
voidexpandHorizontal()
Maximize all windows but only in horizontal direction
voidexpandVertical()
Maximize all windows but only in vertical direction
protected voidfinalize()
Deletes the wrapped C++ instance
voidfocusTopChild()
Gives focus to the topmost child if it doesn't get focus automatically or you want to wait to give it focus
QPointgetCascadePoint(int indexOfWindow)
Calculates the cascade point for the given index.
QPointgetCascadePoint()
intgetVisibleChildCount()
Returns the number of visible children
booleanisDisposed()
Has the wrapped C++ instance been deleted?
voidlayoutMinimizedChildren()
Position and layout the minimized child frames
voidmanageChild(KMdiChildFrm lpC, boolean bShow, boolean bCascade)
Appends a new KMdiChildFrm to this manager.
voidmanageChild(KMdiChildFrm lpC, boolean bShow)
voidmanageChild(KMdiChildFrm lpC)
QMetaObjectmetaObject()
protected voidmousePressEvent(QMouseEvent e)
Shows the 'Window' popup menu on right mouse button click
protected voidresizeEvent(QResizeEvent arg1)
Automatically resizes a maximized MDI view and layouts the positions of minimized MDI views.
voidsetMdiCaptionActiveBackColor(QColor clr)
Sets the background color of the active MDI childframe window captions A relayout does not occur when using this function
voidsetMdiCaptionActiveForeColor(QColor clr)
Sets the foreground color of the active MDI childframe window caption A relayout does not occur when using this function
voidsetMdiCaptionFont(QFont fnt)
Sets the MDI childframe window caption font A relayout does not occur when using this function
voidsetMdiCaptionInactiveBackColor(QColor clr)
Sets the background color of inactive MDI childframe window captions A relayout does not occur when using this function
voidsetMdiCaptionInactiveForeColor(QColor clr)
Sets the foreground color of inactive MDI childframe window captions A relayout does not occur when using this function
voidsetTopChild(KMdiChildFrm child, boolean setFocus)
Brings the child to the top of the stack The child is focused if setFocus is true.
voidsetTopChild(KMdiChildFrm child)
protected voidtileAllInternal(int maxWnds)
Internally used for the tile algorithm
voidtileAnodine()
Tile Anodine
voidtilePragma()
Tile Pragma
voidtileVertically()
Tile all the windows in the child area vertically
KMdiChildFrmtopChild()
Returns the topmost child (the active one) or 0 if there are no children.

Constructor Detail

KMdiChildArea

protected KMdiChildArea(Class dummy)

KMdiChildArea

public KMdiChildArea(QWidget parent)
Consruction. Note: This class needn't to know about KMdiMainFrm .

UNKNOWN: Consruction.

Method Detail

cascadeMaximized

public void cascadeMaximized()
Cascades all windows resizing them to the maximum available size.

UNKNOWN: Cascades all windows resizing them to the maximum available size.

cascadeWindows

public void cascadeWindows()
Cascades all windows resizing them to the minimum size.

UNKNOWN: Cascades all windows resizing them to the minimum size.

childMinimized

protected void childMinimized(KMdiChildFrm lpC, boolean bWasMaximized)
Internally used. Actions that are necessary when an MDI view gets minimized

UNKNOWN: Internally used.

className

public String className()

destroyChild

public void destroyChild(KMdiChildFrm child, boolean focusTopChild)
Destroys a managed KMdiChildFrm Also deletes the client attached to this child.

UNKNOWN: Destroys a managed KMdiChildFrm Also deletes the client attached to this child.

destroyChild

public void destroyChild(KMdiChildFrm child)

destroyChildButNotItsView

public void destroyChildButNotItsView(KMdiChildFrm lpC, boolean bFocusTopChild)
Destroys a managed KMdiChildFrm Clients attached to the KMdiChildFrm are not deleted.

UNKNOWN: Destroys a managed KMdiChildFrm Clients attached to the KMdiChildFrm are not deleted.

destroyChildButNotItsView

public void destroyChildButNotItsView(KMdiChildFrm lpC)

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

expandHorizontal

public void expandHorizontal()
Maximize all windows but only in horizontal direction

UNKNOWN: Maximize all windows but only in horizontal direction

expandVertical

public void expandVertical()
Maximize all windows but only in vertical direction

UNKNOWN: Maximize all windows but only in vertical direction

finalize

protected void finalize()
Deletes the wrapped C++ instance

focusTopChild

public void focusTopChild()
Gives focus to the topmost child if it doesn't get focus automatically or you want to wait to give it focus

UNKNOWN: Gives focus to the topmost child if it doesn't get focus automatically or you want to wait to give it focus

getCascadePoint

public QPoint getCascadePoint(int indexOfWindow)
Calculates the cascade point for the given index. If index is -1 the cascade point is calculated for the window following the last window

Parameters: indexOfWindow the index of the window in relation the z-ordered window list

UNKNOWN: Calculates the cascade point for the given index.

getCascadePoint

public QPoint getCascadePoint()

getVisibleChildCount

public int getVisibleChildCount()
Returns the number of visible children

UNKNOWN: Returns the number of visible children

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

layoutMinimizedChildren

public void layoutMinimizedChildren()
Position and layout the minimized child frames

UNKNOWN: Position and layout the minimized child frames

manageChild

public void manageChild(KMdiChildFrm lpC, boolean bShow, boolean bCascade)
Appends a new KMdiChildFrm to this manager. The child is shown,raised and gets focus if this window has it.

UNKNOWN: Appends a new KMdiChildFrm to this manager.

manageChild

public void manageChild(KMdiChildFrm lpC, boolean bShow)

manageChild

public void manageChild(KMdiChildFrm lpC)

metaObject

public QMetaObject metaObject()

mousePressEvent

protected void mousePressEvent(QMouseEvent e)
Shows the 'Window' popup menu on right mouse button click

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

resizeEvent

protected void resizeEvent(QResizeEvent arg1)
Automatically resizes a maximized MDI view and layouts the positions of minimized MDI views.

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

setMdiCaptionActiveBackColor

public void setMdiCaptionActiveBackColor(QColor clr)
Sets the background color of the active MDI childframe window captions A relayout does not occur when using this function

UNKNOWN: Sets the background color of the active MDI childframe window captions A relayout does not occur when using this function

setMdiCaptionActiveForeColor

public void setMdiCaptionActiveForeColor(QColor clr)
Sets the foreground color of the active MDI childframe window caption A relayout does not occur when using this function

UNKNOWN: Sets the foreground color of the active MDI childframe window caption A relayout does not occur when using this function

setMdiCaptionFont

public void setMdiCaptionFont(QFont fnt)
Sets the MDI childframe window caption font A relayout does not occur when using this function

UNKNOWN: Sets the MDI childframe window caption font A relayout does not occur when using this function

setMdiCaptionInactiveBackColor

public void setMdiCaptionInactiveBackColor(QColor clr)
Sets the background color of inactive MDI childframe window captions A relayout does not occur when using this function

UNKNOWN: Sets the background color of inactive MDI childframe window captions A relayout does not occur when using this function

setMdiCaptionInactiveForeColor

public void setMdiCaptionInactiveForeColor(QColor clr)
Sets the foreground color of inactive MDI childframe window captions A relayout does not occur when using this function

UNKNOWN: Sets the foreground color of inactive MDI childframe window captions A relayout does not occur when using this function

setTopChild

public void setTopChild(KMdiChildFrm child, boolean setFocus)
Brings the child to the top of the stack The child is focused if setFocus is true. If setFocus is false, the child is just raised.

UNKNOWN: Brings the child to the top of the stack The child is focused if setFocus is true.

setTopChild

public void setTopChild(KMdiChildFrm child)

tileAllInternal

protected void tileAllInternal(int maxWnds)
Internally used for the tile algorithm

UNKNOWN: Internally used for the tile algorithm

tileAnodine

public void tileAnodine()
Tile Anodine

UNKNOWN: Tile Anodine

tilePragma

public void tilePragma()
Tile Pragma

UNKNOWN: Tile Pragma

tileVertically

public void tileVertically()
Tile all the windows in the child area vertically

UNKNOWN: Tile all the windows in the child area vertically

topChild

public KMdiChildFrm 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.

UNKNOWN: Returns the topmost child (the active one) or 0 if there are no children.