Search Toolkit Book for CDockManager
CDockManager CDockManager sends requests to Window Manager, Window Manager makes decisions about deleting clients and calls Dock Manager functions. More...
#include <gui/widgets/wx/dock_manager.hpp>
CDockManager CDockManager sends requests to Window Manager, Window Manager makes decisions about deleting clients and calls Dock Manager functions.
Definition at line 75 of file dock_manager.hpp.
◆ TClients ◆ TContainers ◆ TDescrMRUList ◆ TFingerprint ◆ TNode ◆ TTreeVector ◆ EDragResult ◆ CDockManager() CDockManager::CDockManager ( CWindowManager & manager, wxWindow & parent ) ◆ ~CDockManager() CDockManager::~CDockManager ( ) virtual ◆ ActivateClients() void CDockManager::ActivateClients ( TClients & clients ) ◆ AddToDefaultLocation() void CDockManager::AddToDefaultLocation ( IWMClient & client, bool bFloat )Definition at line 148 of file dock_manager.cpp.
References CDockContainer::AddClientToDefaultLocation(), client, CFloatingFrame::GetDockContainer(), GetMainContainer(), CDockContainerDescr::GetPos(), GetScreenRect(), CDockContainerDescr::GetSize(), CDockContainerDescr::GetTree(), CDockContainer::HasDefaultPositionFor(), i, m_Containers, m_DeadFrameDescrs, m_ParentWindow, NON_CONST_ITERATE, NULL, CMRUList< T >::SetItems(), and x_CreateFrameAndContainer().
Referenced by CWindowManager::AddClient(), and Restore().
◆ ApplyLayout() void CDockManager::ApplyLayout ( const objects::CUser_object & object )Definition at line 1097 of file dock_manager.cpp.
References CMRUList< T >::AddItem(), CDockContainer::ApplyLayout(), Error(), CDockContainer::GetAllClients(), GetMainContainer(), CWindowManager::GetMainWindow(), GetVideoId(), i, Info(), ITERATE, LOG_POST, m_Containers, m_DeadFrameDescrs, m_WindowManager, Minimize(), Restore(), REVERSE_ITERATE, CMRUList< T >::SetItems(), and x_ReadLayout().
Referenced by CWindowManager::ApplyLayout().
◆ GetDockPanelMenu() wxMenu * CDockManager::GetDockPanelMenu ( CDockPanel & panel )Definition at line 866 of file dock_manager.cpp.
References CUICommandRegistry::AppendMenuItem(), client, eCmdMoveToMainTab, eCmdSetClientColor, eCmdWindowFloat, eCmdWindowMinimize, eCmdWindowRestore, CDockPanel::GetClient(), CUICommandRegistry::GetInstance(), IsFloating(), IsInMainTab(), and IsMinimized().
Referenced by CMinPanelContainer::OnContextMenu(), and CDockPanel::x_ShowContextMenu().
◆ GetMainContainer() [1/2]Definition at line 128 of file dock_manager.cpp.
References m_Containers.
Referenced by AddToDefaultLocation(), CDockContainer::ApplyLayout(), ApplyLayout(), CWindowManager::Create(), IsInMainTab(), LoadLayout(), Minimize(), MoveToMainTab(), CDockContainer::NeedToSavePositions(), OnEndDrag(), and Remove().
◆ GetMainContainer() [2/2] ◆ GetMinPanelContainer() ◆ GetTopAppWindow() wxWindow * CDockManager::GetTopAppWindow ( ) ◆ GetWindowManager() ◆ IsFloating() ◆ IsInMainTab() ◆ IsMinimized() ◆ LoadLayout()creates a new window layout based on the given Memento instantiates the clients as needed using the given factory
Definition at line 1164 of file dock_manager.cpp.
References CWindowManager::AddClient(), CMRUList< T >::AddItem(), CDockContainer::ApplyLayout(), client, IWMClientFactory::CreateClient(), Error(), GetMainContainer(), CWindowManager::GetMainWindow(), ITERATE, LOG_POST, m_DeadFrameDescrs, m_WindowManager, NON_CONST_ITERATE, REVERSE_ITERATE, CMRUList< T >::SetItems(), and x_ReadLayout().
Referenced by CWindowManager::LoadLayout().
◆ Minimize() void CDockManager::Minimize ( IWMClient & client )Definition at line 295 of file dock_manager.cpp.
References CMinPanelContainer::AddClient(), client, CDockContainer::eMinimizeWin, CDockPanel::GetDockContainer(), GetMainContainer(), CDockContainer::HasNoWMClients(), m_MinContainer, CDockContainer::RemoveWindow(), x_DestroyFrameAndContainer(), and x_GetDockPanel().
Referenced by ApplyLayout(), CWindowManager::Minimize(), CWindowManager::OnCaptionPanelCommand(), CDockPanel::OnMinimizeButtonClick(), and CWindowManager::x_HandlePanelCommand().
◆ MoveToFloatingFrame() wxFrame * CDockManager::MoveToFloatingFrame ( IWMClient & client ) ◆ MoveToMainTab() void CDockManager::MoveToMainTab ( IWMClient & client )moves the given client into the Main Tab Control ("Reset")
Definition at line 242 of file dock_manager.cpp.
References _ASSERT, CDockContainer::AddClientToCentralPane(), client, CDockLayoutTree::eClient, CDockContainer::eMoveWin, IDockableWindow::GetDockContainer(), GetMainContainer(), CMinPanelContainer::HasClient(), CDockContainer::HasNoWMClients(), m_MinContainer, CMinPanelContainer::RemoveClient(), CDockContainer::RemoveWindow(), x_DestroyFrameAndContainer(), and x_GetDockPanel().
Referenced by CWindowManager::MoveToMainTab(), and CWindowManager::x_HandlePanelCommand().
◆ OnBeginDrag()Definition at line 417 of file dock_manager.cpp.
References IDockManagerKeyHook::ForwardKeyEventsTo(), IDockableWindow::GetDockContainer(), CDockContainer::GetDockFrame(), CDockContainer::IsRootWindow(), m_ActiveDragContainer, m_DragClient, m_DragFrame, m_FocusedChild, m_FrameHook, m_PrevDragPos, NULL, OnDrag(), and x_MoveToFloatingFrame().
Referenced by OnFloatingPaneBeginMove(), CDockContainer::OnTabBeginDragOutside(), and CWindowManager::x_OnBeginDrag().
◆ OnCancelDrag() void CDockManager::OnCancelDrag ( ) ◆ OnCloseDockable() ◆ OnDockPanelCommand() ◆ OnDrag()Definition at line 462 of file dock_manager.cpp.
References _ASSERT, dummy, m_ActiveDragContainer, m_DragClient, m_DragFrame, NULL, CDockContainer::OnBeginDragOver(), CDockContainer::OnDragOver(), CDockContainer::OnEndDragOver(), x_GetActiveContainerByPos(), and x_MoveDragFrame().
Referenced by OnBeginDrag(), OnEndDrag(), OnFloatingPaneMoving(), CDockContainer::OnMouseMove(), and CWindowManager::x_OnDrag().
◆ OnEndDrag()Definition at line 509 of file dock_manager.cpp.
References _ASSERT, CDockContainer::AddClient(), BroadcastCommandToChildWindows(), eCmdDockMainWindow, eCmdReCreate, eCmdSuspend, CDockContainer::eMoveWin, eNoEffect, IDockManagerKeyHook::ForwardKeyEventsTo(), IDockableWindow::GetDockContainer(), CDockContainer::GetDockFrame(), GetMainContainer(), CDockContainer::GetRootWindow(), CDockContainer::HasNoWMClients(), m_ActiveDragContainer, m_DragClient, m_DragFrame, m_FocusedChild, m_FrameHook, NULL, OnDrag(), CDockContainer::OnEndDragOver(), CDockContainer::RemoveWindow(), and x_DestroyFrameAndContainer().
Referenced by OnCancelDrag(), OnFloatingPaneEndMove(), CDockContainer::OnLeftUp(), CDockContainer::OnMouseCaptureLost(), and CWindowManager::x_OnEndDrag().
◆ OnFloatingFrameActivateEvent() ◆ OnFloatingPaneBeginMove() void CDockManager::OnFloatingPaneBeginMove ( CFloatingFrame & frame, const wxPoint & sc_mouse_pos ) ◆ OnFloatingPaneEndMove() ◆ OnFloatingPaneMoving() void CDockManager::OnFloatingPaneMoving ( CFloatingFrame & frame, const wxPoint & sc_mouse_pos ) ◆ OnFrameClosePressed() ◆ OnKeyDown() void CDockManager::OnKeyDown ( wxKeyEvent & event ) ◆ OnKeyUp() void CDockManager::OnKeyUp ( wxKeyEvent & event ) ◆ OnMove() void CDockManager::OnMove ( wxMoveEvent & event ) ◆ OnTabClosePressed() void CDockManager::OnTabClosePressed ( const vector< IWMClient * > & clients ) ◆ RaiseFloatingInZOrder() [1/2] void CDockManager::RaiseFloatingInZOrder ( ) ◆ RaiseFloatingInZOrder() [2/2] void CDockManager::RaiseFloatingInZOrder ( wxRect r ) ◆ Remove() [1/2]Definition at line 218 of file dock_manager.cpp.
References _ASSERT, CDockContainer::eDestroyWin, IDockableWindow::GetDockContainer(), GetMainContainer(), CMinPanelContainer::HasClient(), CDockContainer::HasNoWMClients(), m_MinContainer, CMinPanelContainer::RemoveClient(), CDockPanel::RemoveClient(), CDockContainer::RemoveWindow(), and x_DestroyFrameAndContainer().
◆ Remove() [2/2] void CDockManager::Remove ( IWMClient & client ) ◆ Restore() void CDockManager::Restore ( IWMClient & client ) ◆ SaveLayout()produces Memento describing the current window layout (including all clients)
Definition at line 1042 of file dock_manager.cpp.
References _ASSERT, CUser_object::AddField(), CMRUList< T >::GetItems(), CWindowManager::GetMainWindow(), GetVideoId(), i, ITERATE, kContainersTag, kLayoutTag2, kMaxContainers, kVideoIdTag, m_Containers, m_DeadFrameDescrs, m_WindowManager, CRef< C, Locker >::Release(), CDockContainer::SaveLayout(), and CUser_object_Base::SetType().
Referenced by CWindowManager::SaveLayout().
◆ SetKeyboardHook() void CDockManager::SetKeyboardHook ( wxFrame * frame ) ◆ x_CreateFrameAndContainer() ◆ x_DestroyFrameAndContainer() void CDockManager::x_DestroyFrameAndContainer ( CDockContainer * cont ) protectedDestroys a Docking Container togather with its Floating Frame.
Definition at line 650 of file dock_manager.cpp.
References _ASSERT, CMRUList< T >::AddItem(), CFloatingFrame::Destroy(), CDockContainer::DisconnectTrees(), CDockContainer::GetDockFrame(), CDockContainer::HasNoWMClients(), m_Containers, m_DeadFrameDescrs, and CDockContainer::NeedToSavePositions().
Referenced by Minimize(), MoveToMainTab(), OnEndDrag(), Remove(), and ~CDockManager().
◆ x_GetActiveContainerByPos() ◆ x_GetDockPanel() ◆ x_MoveDragFrame() void CDockManager::x_MoveDragFrame ( const wxPoint & sc_mouse_pos ) protected ◆ x_MoveToFloatingFrame()Definition at line 679 of file dock_manager.cpp.
References _ASSERT, CDockContainer::AddClientToCentralPane(), BroadcastCommandToChildWindows(), CDockPanel::ClientToWindowSize(), delta(), CDockLayoutTree::eClient, eCmdReCreate, eCmdSuspend, CDockContainer::eMoveWin, CDockPanel::GetClient(), CFloatingFrame::GetDockContainer(), IDockableWindow::GetDockContainer(), IWMClient::GetFingerprint(), GetScreenRect(), IWMClient::GetWindow(), CMinPanelContainer::HasClient(), IWMClient::IsAForm(), m_FocusedChild, m_MinContainer, NULL, CMinPanelContainer::RemoveClient(), CDockContainer::RemoveWindow(), ncbi::grid::netcache::search::fields::size, and x_CreateFrameAndContainer().
Referenced by MoveToFloatingFrame(), and OnBeginDrag().
◆ x_OnEndDrag() ◆ x_ReadLayout() ◆ m_ActiveDragContainer ◆ m_ContainersA list of all Dock containers, the first container in the list is the main one.
Definition at line 182 of file dock_manager.hpp.
Referenced by ActivateClients(), AddToDefaultLocation(), ApplyLayout(), CDockManager(), GetMainContainer(), OnFloatingFrameActivateEvent(), OnMove(), RaiseFloatingInZOrder(), SaveLayout(), x_CreateFrameAndContainer(), x_DestroyFrameAndContainer(), x_GetActiveContainerByPos(), and ~CDockManager().
◆ m_DeadFrameDescrs ◆ m_DragClient ◆ m_DragFrame ◆ m_FocusedChild wxWindow* CDockManager::m_FocusedChild protected ◆ m_FrameHook ◆ m_MinContainer ◆ m_ParentWindow wxWindow& CDockManager::m_ParentWindow protected ◆ m_PrevDragPos wxPoint CDockManager::m_PrevDragPos protected ◆ m_WindowManagerThe documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4