KMdiChildArea Class Reference
Internal class. More...
#include <kmdichildarea.h>
Inheritance diagram for KMdiChildArea:


Detailed Description
Internal class.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.
Definition at line 52 of file kmdichildarea.h.
Constructor & Destructor Documentation
|
Consruction. Note: This class needn't to know about KMdiMainFrm . Definition at line 48 of file kmdichildarea.cpp. References KMdiChildArea(), QFontMetrics::lineSpacing(), m_captionActiveBackColor, m_captionActiveForeColor, m_captionFont, m_captionInactiveBackColor, m_captionInactiveForeColor, m_defaultChildFrmSize, m_pZ, and QPtrList< KMdiChildFrm >::setAutoDelete(). Referenced by KMdiChildArea(). |
|
Destructor : THERE should be no child windows anymore... Howewer it simply deletes all the child widgets :) Definition at line 66 of file kmdichildarea.cpp. References m_pZ. |
Member Function Documentation
|
Appends a new KMdiChildFrm to this manager. The child is shown,raised and gets focus if this window has it. Definition at line 72 of file kmdichildarea.cpp. References QPtrList< KMdiChildFrm >::append(), QPtrList< KMdiChildFrm >::count(), QPtrList< KMdiChildFrm >::findNextRef(), QPtrList< KMdiChildFrm >::findRef(), focusTopChild(), getCascadePoint(), QPtrList< KMdiChildFrm >::insert(), m_pZ, manageChild(), KMdiChildFrm::setState(), KMdiChildFrm::state(), sysButtonConnectionsMustChange(), QPtrList< KMdiChildFrm >::take(), and topChild(). Referenced by KMdiMainFrm::attachWindow(), and manageChild(). |
|
Destroys a managed KMdiChildFrm Also deletes the client attached to this child.
Definition at line 109 of file kmdichildarea.cpp. References KMdiChildFrm::caption(), destroyChild(), focusTopChild(), m_pZ, noMaximizedChildFrmLeft(), QPtrList< KMdiChildFrm >::removeRef(), QPtrList< KMdiChildFrm >::setAutoDelete(), KMdiChildFrm::setState(), KMdiChildFrm::state(), sysButtonConnectionsMustChange(), and topChild(). Referenced by KMdiMainFrm::closeWindow(), and destroyChild(). |
|
Destroys a managed KMdiChildFrm Clients attached to the KMdiChildFrm are not deleted.
Definition at line 141 of file kmdichildarea.cpp. References KMdiChildFrm::caption(), destroyChildButNotItsView(), focusTopChild(), m_pZ, noMaximizedChildFrmLeft(), QPtrList< KMdiChildFrm >::removeRef(), QPtrList< KMdiChildFrm >::setAutoDelete(), KMdiChildFrm::setState(), KMdiChildFrm::state(), sysButtonConnectionsMustChange(), topChild(), and KMdiChildFrm::unsetClient(). Referenced by destroyChildButNotItsView(), KMdiMainFrm::detachWindow(), and KMdiMainFrm::removeWindowFromMdi(). |
|
Brings the child If setFocus is false, the child is just raised.
Definition at line 171 of file kmdichildarea.cpp. References QPtrList< KMdiChildFrm >::append(), KMdiChildFrm::caption(), KMdiChildFrm::m_pClient, m_pZ, QWidget::minimumHeight(), QWidget::minimumWidth(), QPtrList< KMdiChildFrm >::removeRef(), QPtrList< KMdiChildFrm >::setAutoDelete(), QWidget::setFocus(), KMdiChildFrm::setState(), setTopChild(), KMdiChildFrm::state(), sysButtonConnectionsMustChange(), and topChild(). Referenced by KMdiMainFrm::activateView(), KMdiChildFrm::mousePressEvent(), KMdiChildFrm::raiseAndActivate(), and setTopChild(). |
|
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. Definition at line 143 of file kmdichildarea.h. Referenced by KMdiMainFrm::activateView(), KMdiMainFrm::attachWindow(), childMinimized(), KMdiMainFrm::closeWindow(), destroyChild(), destroyChildButNotItsView(), KMdiMainFrm::eventFilter(), focusTopChild(), manageChild(), KMdiMainFrm::removeWindowFromMdi(), resizeEvent(), KMdiChildFrm::setClient(), KMdiMainFrm::setEnableMaximizedChildFrmMode(), KMdiChildFrm::setState(), setTopChild(), tileAllInternal(), tileAnodine(), tileVertically(), and KMdiMainFrm::windowMenuItemActivated(). |
|
Returns the number of visible children.
Definition at line 482 of file kmdichildarea.cpp. References m_pZ. Referenced by KMdiMainFrm::closeWindow(), KMdiMainFrm::removeWindowFromMdi(), tileAllInternal(), tileAnodine(), and tileVertically(). |
|
Calculates the cascade point for the given index. If index is -1 the cascade point is calculated for the window following the last window
Definition at line 258 of file kmdichildarea.cpp. References QPtrList< KMdiChildFrm >::count(), QApplication::desktop(), QPtrList< KMdiChildFrm >::first(), getCascadePoint(), QSize::height(), KMdiChildFrmCaption::heightHint(), m_defaultChildFrmSize, KMdiChildFrm::m_pCaption, m_pZ, QPoint::setX(), QPoint::setY(), and QSize::width(). Referenced by KMdiMainFrm::addWindow(), cascadeMaximized(), cascadeWindows(), KMdiMainFrm::detachWindow(), getCascadePoint(), and manageChild(). |
|
Sets the MDI childframe window caption font A relayout does not occur when using this function.
Definition at line 747 of file kmdichildarea.cpp. References QFontMetrics::lineSpacing(), m_captionFont, m_pZ, and setMdiCaptionFont(). Referenced by setMdiCaptionFont(). |
|
Sets the foreground color of the active MDI childframe window caption A relayout does not occur when using this function.
Definition at line 759 of file kmdichildarea.cpp. References m_captionActiveForeColor, and setMdiCaptionActiveForeColor(). Referenced by setMdiCaptionActiveForeColor(). |
|
Sets the background color of the active MDI childframe window captions A relayout does not occur when using this function.
Definition at line 764 of file kmdichildarea.cpp. References m_captionActiveBackColor, and setMdiCaptionActiveBackColor(). Referenced by setMdiCaptionActiveBackColor(). |
|
Sets the foreground color of inactive MDI childframe window captions A relayout does not occur when using this function.
Definition at line 769 of file kmdichildarea.cpp. References m_captionInactiveForeColor, and setMdiCaptionInactiveForeColor(). Referenced by setMdiCaptionInactiveForeColor(). |
|
Sets the background color of inactive MDI childframe window captions A relayout does not occur when using this function.
Definition at line 774 of file kmdichildarea.cpp. References m_captionInactiveBackColor, and setMdiCaptionInactiveBackColor(). Referenced by setMdiCaptionInactiveBackColor(). |
|
Gets all caption colors, consistent with current WM settings (or other Desktop settings e.g. system settings for win32) This method is useful not only for KMDI child windows. Colors are returned via activeBG, activeFG, inactiveBG, inactiveFG references.
Definition at line 780 of file kmdichildarea.cpp. References getCaptionColors(). Referenced by getCaptionColors(). |
|
Cascades all windows resizing them to the minimum size.
Definition at line 382 of file kmdichildarea.cpp. References QPtrList::first(), focusTopChild(), getCascadePoint(), QPtrList::isEmpty(), m_pZ, QPtrList::removeFirst(), KMdiChildFrm::restorePressed(), QPtrList::setAutoDelete(), and KMdiChildFrm::state(). |
|
Cascades all windows resizing them to the maximum available size.
Definition at line 404 of file kmdichildarea.cpp. References QPtrList::first(), focusTopChild(), getCascadePoint(), QSize::height(), QPtrList::isEmpty(), m_pZ, QPtrList::removeFirst(), KMdiChildFrm::restorePressed(), QPtrList::setAutoDelete(), KMdiChildFrm::state(), QSize::width(), QPoint::x(), and QPoint::y(). |
|
Maximize all windows but only in vertical direction.
Definition at line 438 of file kmdichildarea.cpp. References QPtrList::first(), focusTopChild(), QPtrList::isEmpty(), m_pZ, QPtrList::removeFirst(), KMdiChildFrm::restorePressed(), QPtrList::setAutoDelete(), and KMdiChildFrm::state(). |
|
Maximize all windows but only in horizontal direction.
Definition at line 460 of file kmdichildarea.cpp. References QPtrList::first(), focusTopChild(), QPtrList::isEmpty(), m_pZ, QPtrList::removeFirst(), KMdiChildFrm::restorePressed(), QPtrList::setAutoDelete(), and KMdiChildFrm::state(). |
|
Gives focus to the topmost child if it doesn't get focus automatically or you want to wait to give it focus.
Definition at line 355 of file kmdichildarea.cpp. References KMdiChildView::activate(), KMdiChildFrm::caption(), QWidget::hasFocus(), lastChildFrmClosed(), KMdiChildFrm::m_pClient, m_pZ, and topChild(). Referenced by cascadeMaximized(), cascadeWindows(), childMinimized(), destroyChild(), destroyChildButNotItsView(), KMdiMainFrm::eventFilter(), expandHorizontal(), expandVertical(), and manageChild(). |
|
Tile Pragma.
Definition at line 494 of file kmdichildarea.cpp. References tileAllInternal(). |
|
Tile Anodine.
Definition at line 602 of file kmdichildarea.cpp. References KMdiChildView::activate(), getVisibleChildCount(), KMdiChildFrm::m_pClient, m_pZ, KMdiChildFrm::restorePressed(), KMdiChildFrm::state(), and topChild(). |
|
Tile all the windows in the child area vertically.
Definition at line 676 of file kmdichildarea.cpp. References KMdiChildView::activate(), getVisibleChildCount(), KMdiChildFrm::m_pClient, m_pZ, KMdiChildFrm::restorePressed(), KMdiChildFrm::state(), and topChild(). |
|
Position and layout the minimized child frames.
Definition at line 723 of file kmdichildarea.cpp. References m_pZ, and KMdiChildFrm::state(). Referenced by resizeEvent(), and KMdiChildFrm::switchToMinimizeLayout(). |
|
Internally used for the tile algorithm.
Definition at line 500 of file kmdichildarea.cpp. References KMdiChildView::activate(), getVisibleChildCount(), QSize::height(), m_defaultChildFrmSize, KMdiChildFrm::m_pClient, m_pZ, KMdiChildFrm::restorePressed(), KMdiChildFrm::state(), tileAllInternal(), topChild(), and QSize::width(). Referenced by tileAllInternal(), and tilePragma(). |
|
Automatically resizes a maximized MDI view and layouts the positions of minimized MDI views.
Reimplemented from QFrame. Definition at line 227 of file kmdichildarea.cpp. References QWidget::height(), KMdiChildFrmCaption::heightHint(), layoutMinimizedChildren(), KMdiChildFrm::m_pCaption, KMdiChildFrm::m_pClient, resizeEvent(), KMdiChildFrm::state(), topChild(), and QWidget::width(). Referenced by resizeEvent(). |
|
Shows the 'Window' popup menu on right mouse button click.
Definition at line 249 of file kmdichildarea.cpp. References QMouseEvent::button(), mousePressEvent(), popupWindowMenu(), and QMouseEvent::pos(). Referenced by mousePressEvent(). |
|
Internally used. Actions that are necessary when an MDI view gets minimized Definition at line 319 of file kmdichildarea.cpp. References childMinimized(), QPtrList< KMdiChildFrm >::count(), QPtrList< KMdiChildFrm >::findRef(), focusTopChild(), QPtrList< KMdiChildFrm >::insert(), m_pZ, QPtrList< KMdiChildFrm >::removeRef(), QPtrList< KMdiChildFrm >::setAutoDelete(), KMdiChildFrm::setState(), KMdiChildFrm::state(), and topChild(). Referenced by childMinimized(), and KMdiChildFrm::setState(). |
|
Signals that there aren't maximized child frames any more.
Referenced by destroyChild(), and destroyChildButNotItsView(). |
|
Signals that the child frames are maximized now.
Referenced by KMdiChildFrm::maximizePressed(), KMdiChildFrm::minimizePressed(), and KMdiChildFrm::restorePressed(). |
|
Signals a KMdiMainFrm 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.
Referenced by destroyChild(), destroyChildButNotItsView(), manageChild(), and setTopChild(). |
|
Signals a KMdiMainFrm that the 'Window' popup menu must be shown.
Referenced by mousePressEvent(). |
|
Signals that the last attached (docked) MDI view has been closed. Note: Detached MDI views can remain. Referenced by focusTopChild(). |
Member Data Documentation
|
Z Order stack of KMdiChildFrm childframe windows (top=last).
Definition at line 64 of file kmdichildarea.h. Referenced by cascadeMaximized(), cascadeWindows(), childMinimized(), destroyChild(), destroyChildButNotItsView(), expandHorizontal(), expandVertical(), focusTopChild(), getCascadePoint(), getVisibleChildCount(), KMdiChildArea(), layoutMinimizedChildren(), manageChild(), setMdiCaptionFont(), setTopChild(), tileAllInternal(), tileAnodine(), tileVertically(), and ~KMdiChildArea(). |
|
the default size of an newly created childframe
Definition at line 69 of file kmdichildarea.h. Referenced by getCascadePoint(), KMdiChildArea(), KMdiChildFrm::setClient(), and tileAllInternal(). |
|
The MDI childframe window caption font.
Definition at line 74 of file kmdichildarea.h. Referenced by KMdiChildArea(), KMdiChildFrmCaption::paintEvent(), and setMdiCaptionFont(). |
|
The foreground color of the active MDI childframe window caption.
Definition at line 79 of file kmdichildarea.h. Referenced by KMdiChildArea(), KMdiChildFrmCaption::paintEvent(), KMdiChildFrmCaption::setActive(), and setMdiCaptionActiveBackColor(). |
|
The background color of the active MDI childframe window captions.
Definition at line 84 of file kmdichildarea.h. Referenced by KMdiChildArea(), KMdiChildFrmCaption::paintEvent(), and setMdiCaptionActiveForeColor(). |
|
The foreground color of inactive MDI childframe window captions.
Definition at line 89 of file kmdichildarea.h. Referenced by KMdiChildArea(), KMdiChildFrmCaption::paintEvent(), KMdiChildFrmCaption::setActive(), and setMdiCaptionInactiveBackColor(). |
|
The background color of inactive MDI childframe window captions.
Definition at line 94 of file kmdichildarea.h. Referenced by KMdiChildArea(), KMdiChildFrmCaption::paintEvent(), and setMdiCaptionInactiveForeColor(). |
The documentation for this class was generated from the following files: