KMdiChildArea Class Reference
#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
KMdiChildArea::KMdiChildArea | ( | QWidget * | parent | ) |
Consruction.
Note: This class needn't to know about KMdiMainFrm .
Definition at line 48 of file kmdichildarea.cpp.
KMdiChildArea::~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.
Member Function Documentation
void KMdiChildArea::manageChild | ( | KMdiChildFrm * | lpC, | |
bool | bShow = true , |
|||
bool | bCascade = true | |||
) |
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.
void KMdiChildArea::destroyChild | ( | KMdiChildFrm * | child, | |
bool | focusTopChild = true | |||
) |
Destroys a managed KMdiChildFrm Also deletes the client attached to this child.
Definition at line 109 of file kmdichildarea.cpp.
void KMdiChildArea::destroyChildButNotItsView | ( | KMdiChildFrm * | lpC, | |
bool | bFocusTopChild = true | |||
) |
Destroys a managed KMdiChildFrm Clients attached to the KMdiChildFrm are not deleted.
Definition at line 141 of file kmdichildarea.cpp.
void KMdiChildArea::setTopChild | ( | KMdiChildFrm * | child, | |
bool | setFocus = false | |||
) |
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.
- Todo:
- : setting the maximum size doesn't work properly - fix this later
Definition at line 171 of file kmdichildarea.cpp.
KMdiChildFrm* KMdiChildArea::topChild | ( | ) | const [inline] |
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 141 of file kmdichildarea.h.
int KMdiChildArea::getVisibleChildCount | ( | ) | const |
QPoint KMdiChildArea::getCascadePoint | ( | int | indexOfWindow = -1 |
) |
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
Definition at line 258 of file kmdichildarea.cpp.
void KMdiChildArea::setMdiCaptionFont | ( | const QFont & | fnt | ) |
Sets the MDI childframe window caption font A relayout does not occur when using this function.
Definition at line 747 of file kmdichildarea.cpp.
void KMdiChildArea::setMdiCaptionActiveForeColor | ( | const QColor & | clr | ) |
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.
void KMdiChildArea::setMdiCaptionActiveBackColor | ( | const QColor & | clr | ) |
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.
void KMdiChildArea::setMdiCaptionInactiveForeColor | ( | const QColor & | clr | ) |
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.
void KMdiChildArea::setMdiCaptionInactiveBackColor | ( | const QColor & | clr | ) |
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.
void KMdiChildArea::getCaptionColors | ( | const QPalette & | pal, | |
QColor & | activeBG, | |||
QColor & | activeFG, | |||
QColor & | inactiveBG, | |||
QColor & | inactiveFG | |||
) | [static] |
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.
- Deprecated:
- Use KGlobalSettings::activeTitleColor(), KGlobalSettings::activeTextColor(), KGlobalSettings::inactiveTitleColor() and KGlobalSettings::inactiveTextColor() instead.
Definition at line 780 of file kmdichildarea.cpp.
void KMdiChildArea::cascadeWindows | ( | ) | [slot] |
Cascades all windows resizing them to the minimum size.
Definition at line 382 of file kmdichildarea.cpp.
void KMdiChildArea::cascadeMaximized | ( | ) | [slot] |
Cascades all windows resizing them to the maximum available size.
Definition at line 404 of file kmdichildarea.cpp.
void KMdiChildArea::expandVertical | ( | ) | [slot] |
Maximize all windows but only in vertical direction.
Definition at line 438 of file kmdichildarea.cpp.
void KMdiChildArea::expandHorizontal | ( | ) | [slot] |
Maximize all windows but only in horizontal direction.
Definition at line 460 of file kmdichildarea.cpp.
void KMdiChildArea::focusTopChild | ( | ) | [slot] |
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.
void KMdiChildArea::tilePragma | ( | ) | [slot] |
void KMdiChildArea::tileAnodine | ( | ) | [slot] |
void KMdiChildArea::tileVertically | ( | ) | [slot] |
Tile all the windows in the child area vertically.
Definition at line 676 of file kmdichildarea.cpp.
void KMdiChildArea::layoutMinimizedChildren | ( | ) | [slot] |
void KMdiChildArea::tileAllInternal | ( | int | maxWnds | ) | [protected] |
void KMdiChildArea::resizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
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.
void KMdiChildArea::mousePressEvent | ( | QMouseEvent * | e | ) | [protected] |
Shows the 'Window' popup menu on right mouse button click.
Definition at line 249 of file kmdichildarea.cpp.
void KMdiChildArea::childMinimized | ( | KMdiChildFrm * | lpC, | |
bool | bWasMaximized | |||
) | [protected] |
Internally used.
Actions that are necessary when an MDI view gets minimized
Definition at line 319 of file kmdichildarea.cpp.
void KMdiChildArea::noMaximizedChildFrmLeft | ( | KMdiChildFrm * | ) | [signal] |
Signals that there aren't maximized child frames any more.
void KMdiChildArea::nowMaximized | ( | bool | ) | [signal] |
Signals that the child frames are maximized now.
void KMdiChildArea::sysButtonConnectionsMustChange | ( | KMdiChildFrm * | , | |
KMdiChildFrm * | ||||
) | [signal] |
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.
void KMdiChildArea::popupWindowMenu | ( | QPoint | ) | [signal] |
Signals a KMdiMainFrm that the 'Window' popup menu must be shown.
void KMdiChildArea::lastChildFrmClosed | ( | ) | [signal] |
Signals that the last attached (docked) MDI view has been closed.
Note: Detached MDI views can remain.
Member Data Documentation
Z Order stack of KMdiChildFrm childframe windows (top=last).
Definition at line 64 of file kmdichildarea.h.
QFont KMdiChildArea::m_captionFont [protected] |
QColor KMdiChildArea::m_captionActiveBackColor [protected] |
The foreground color of the active MDI childframe window caption.
Definition at line 79 of file kmdichildarea.h.
QColor KMdiChildArea::m_captionActiveForeColor [protected] |
The background color of the active MDI childframe window captions.
Definition at line 84 of file kmdichildarea.h.
QColor KMdiChildArea::m_captionInactiveBackColor [protected] |
The foreground color of inactive MDI childframe window captions.
Definition at line 89 of file kmdichildarea.h.
QColor KMdiChildArea::m_captionInactiveForeColor [protected] |
The background color of inactive MDI childframe window captions.
Definition at line 94 of file kmdichildarea.h.
The documentation for this class was generated from the following files: