

Public Types | |
| enum | Direction_t { kResizeE, kResizeSE, kResizeS, kNone } |
| Direction of the resizing. More... | |
Public Member Functions | |
| WindowManager (intf_thread_t *pIntf) | |
| virtual | ~WindowManager () |
| void | registerWindow (TopWindow &rWindow) |
| Add a window to the list of known windows. | |
| void | unregisterWindow (TopWindow &rWindow) |
| Remove a previously registered window. | |
| void | startMove (TopWindow &rWindow) |
| Tell the window manager that a move is initiated for rWindow. | |
| void | stopMove () |
| Tell the window manager that the current move ended. | |
| void | move (TopWindow &rWindow, int left, int top) const |
| Move the rWindow window to (left, top), and move all its anchored windows. | |
| void | startResize (GenericLayout &rLayout, Direction_t direction) |
| Tell the window manager that a resize is initiated for rLayout. | |
| void | stopResize () |
| Tell the window manager that the current resizing ended. | |
| void | resize (GenericLayout &rLayout, int width, int height) const |
| Resize the rLayout layout to (width, height), and move all its anchored windows, if some anchors are moved during the resizing. | |
| void | maximize (TopWindow &rWindow) |
| Maximize the given window. | |
| void | unmaximize (TopWindow &rWindow) |
| Unmaximize the given window. | |
| void | raiseAll () const |
| Raise all the registered windows. | |
| void | showAll (bool firstTime=false) const |
| Show all the registered windows. | |
| void | hideAll () const |
| Hide all the registered windows. | |
| void | synchVisibility () const |
| Synchronize the windows with their visibility variable. | |
| void | saveVisibility () |
| Save the current visibility of the windows. | |
| void | restoreVisibility () const |
| Restore the saved visibility of the windows. | |
| void | raise (TopWindow &rWindow) const |
| Raise the given window. | |
| void | show (TopWindow &rWindow) const |
| Show the given window. | |
| void | hide (TopWindow &rWindow) const |
| Hide the given window. | |
| void | setOnTop (bool b_ontop) |
| Set/unset all the windows on top. | |
| void | toggleOnTop () |
| Toggle all the windows on top. | |
| void | setMagnetValue (int magnet) |
| Set the magnetism of screen edges. | |
| void | setAlphaValue (int alpha) |
| Set the alpha value of the static windows. | |
| void | setMoveAlphaValue (int moveAlpha) |
| Set the alpha value of the moving windows. | |
| void | createTooltip (const GenericFont &rTipFont) |
| Create the tooltip window. | |
| void | showTooltip () |
| Show the tooltip window. | |
| void | hideTooltip () |
| Hide the tooltip window. | |
| void | addLayout (TopWindow &rWindow, GenericLayout &rLayout) |
| Add a layout of the given window. | |
| void | setActiveLayout (TopWindow &rWindow, GenericLayout &rLayout) |
| Change the active layout of the given window. | |
| void | setActivePopup (Popup &rPopup) |
| Mark the given popup as active. | |
| Popup * | getActivePopup () const |
| Return the active popup, or NULL if none is active. | |
| WindowManager::WindowManager | ( | intf_thread_t * | pIntf | ) |
References SkinObject::getIntf(), VarManager::instance(), and VarManager::registerVar().
| WindowManager::~WindowManager | ( | ) | [virtual] |
| void WindowManager::registerWindow | ( | TopWindow & | rWindow | ) |
Add a window to the list of known windows.
Necessary if you want your window to be movable...
Referenced by TopWindow::TopWindow().
| void WindowManager::unregisterWindow | ( | TopWindow & | rWindow | ) |
| void WindowManager::startMove | ( | TopWindow & | rWindow | ) |
Tell the window manager that a move is initiated for rWindow.
References SkinObject::getIntf(), and var_InheritBool.
Referenced by Theme::loadConfig(), maximize(), and unmaximize().
| void WindowManager::stopMove | ( | ) |
Tell the window manager that the current move ended.
References SkinObject::getIntf(), and var_InheritBool.
Referenced by ThemeLoader::load(), Theme::loadConfig(), maximize(), setActiveLayout(), stopResize(), and unmaximize().
| void WindowManager::move | ( | TopWindow & | rWindow, | |
| int | left, | |||
| int | top | |||
| ) | const |
Move the rWindow window to (left, top), and move all its anchored windows.
If a new anchoring is detected, the windows will move accordingly.
References GenericWindow::getLeft(), and GenericWindow::getTop().
Referenced by Theme::loadConfig(), maximize(), and unmaximize().
| void WindowManager::startResize | ( | GenericLayout & | rLayout, | |
| Direction_t | direction | |||
| ) |
Tell the window manager that a resize is initiated for rLayout.
References GenericLayout::getAnchorList(), GenericLayout::getWindow(), Position::kLeftBottom, Position::kRightBottom, and Position::kRightTop.
Referenced by CtrlVideo::attachVoutWindow(), Theme::loadConfig(), maximize(), CtrlVideo::resizeControl(), and unmaximize().
| void WindowManager::stopResize | ( | ) |
Tell the window manager that the current resizing ended.
References stopMove().
Referenced by CtrlVideo::attachVoutWindow(), Theme::loadConfig(), maximize(), CtrlVideo::resizeControl(), and unmaximize().
| void WindowManager::resize | ( | GenericLayout & | rLayout, | |
| int | width, | |||
| int | height | |||
| ) | const |
Resize the rLayout layout to (width, height), and move all its anchored windows, if some anchors are moved during the resizing.
If a new anchoring is detected, the windows will move (or resize) accordingly.
References GenericLayout::getHeight(), GenericLayout::getMaxHeight(), GenericLayout::getMaxWidth(), GenericLayout::getMinHeight(), GenericLayout::getMinWidth(), GenericLayout::getWidth(), GenericLayout::getWindow(), kResizeE, kResizeS, kResizeSE, and GenericLayout::resize().
Referenced by CtrlVideo::attachVoutWindow(), CmdResize::execute(), Theme::loadConfig(), maximize(), CtrlVideo::resizeControl(), and unmaximize().
| void WindowManager::maximize | ( | TopWindow & | rWindow | ) |
Maximize the given window.
References TopWindow::getActiveLayout(), GenericWindow::getHeight(), SkinObject::getIntf(), GenericWindow::getLeft(), GenericWindow::getTop(), GenericLayout::getWidth(), GenericWindow::getWidth(), OSFactory::getWorkArea(), OSFactory::instance(), kResizeSE, TopWindow::m_pVarMaximized, move(), resize(), VarBoolImpl::set(), startMove(), startResize(), stopMove(), and stopResize().
Referenced by CmdMaximize::execute().
| void WindowManager::unmaximize | ( | TopWindow & | rWindow | ) |
Unmaximize the given window.
References TopWindow::getActiveLayout(), SkinsRect::getHeight(), SkinsRect::getLeft(), SkinsRect::getTop(), SkinsRect::getWidth(), kResizeSE, TopWindow::m_pVarMaximized, move(), resize(), VarBoolImpl::set(), startMove(), startResize(), stopMove(), and stopResize().
Referenced by CmdUnmaximize::execute().
| void WindowManager::raiseAll | ( | ) | const |
| void WindowManager::showAll | ( | bool | firstTime = false |
) | const |
| void WindowManager::hideAll | ( | ) | const |
| void WindowManager::synchVisibility | ( | ) | const |
Synchronize the windows with their visibility variable.
| void WindowManager::saveVisibility | ( | ) |
| void WindowManager::restoreVisibility | ( | ) | const |
Restore the saved visibility of the windows.
References SkinObject::getIntf(), and msg_Warn.
Referenced by CmdChangeSkin::execute().
| void WindowManager::raise | ( | TopWindow & | rWindow | ) | const [inline] |
| void WindowManager::show | ( | TopWindow & | rWindow | ) | const [inline] |
Show the given window.
References GenericWindow::setOpacity(), and GenericWindow::show().
Referenced by CtrlVideo::attachVoutWindow(), CmdShowWindow::execute(), and Theme::loadConfig().
| void WindowManager::hide | ( | TopWindow & | rWindow | ) | const [inline] |
| void WindowManager::setOnTop | ( | bool | b_ontop | ) |
Set/unset all the windows on top.
References CountedPtr< T >::get(), and VarBoolImpl::set().
Referenced by CmdSetOnTop::execute(), and toggleOnTop().
| void WindowManager::toggleOnTop | ( | ) |
Toggle all the windows on top.
References VarBoolImpl::get(), CountedPtr< T >::get(), and setOnTop().
Referenced by CmdOnTop::execute().
| void WindowManager::setMagnetValue | ( | int | magnet | ) | [inline] |
Set the magnetism of screen edges.
| void WindowManager::setAlphaValue | ( | int | alpha | ) | [inline] |
Set the alpha value of the static windows.
| void WindowManager::setMoveAlphaValue | ( | int | moveAlpha | ) | [inline] |
Set the alpha value of the moving windows.
| void WindowManager::createTooltip | ( | const GenericFont & | rTipFont | ) |
| void WindowManager::showTooltip | ( | ) |
Show the tooltip window.
References Tooltip::show().
Referenced by TopWindow::onControlRelease(), and TopWindow::onTooltipChange().
| void WindowManager::hideTooltip | ( | ) |
Hide the tooltip window.
References Tooltip::hide().
Referenced by TopWindow::onControlRelease(), TopWindow::onTooltipChange(), and TopWindow::processEvent().
| void WindowManager::addLayout | ( | TopWindow & | rWindow, | |
| GenericLayout & | rLayout | |||
| ) |
Add a layout of the given window.
This new layout will be the active one.
References TopWindow::setActiveLayout().
| void WindowManager::setActiveLayout | ( | TopWindow & | rWindow, | |
| GenericLayout & | rLayout | |||
| ) |
Change the active layout of the given window.
References TopWindow::setActiveLayout(), and stopMove().
Referenced by CmdLayout::execute(), and Theme::loadConfig().
| void WindowManager::setActivePopup | ( | Popup & | rPopup | ) | [inline] |
| Popup* WindowManager::getActivePopup | ( | ) | const [inline] |
1.5.6