#include <layoutmanager.h>
Collaboration diagram for wxLayoutManager:
It handles all the XXXX
Definition at line 109 of file layoutmanager.h.
Public Member Functions | |
wxLayoutManager (wxWindow *pOwnerWindow) | |
~wxLayoutManager () | |
void | Init () |
void | SetLayout (unsigned int flags, wxWindow *pAutoLayoutClientWindow=NULL) |
void | SetWindowMenu (wxMenu *menu) |
void | AddDefaultHosts () |
void | AddDockHost (wxDirection dir, int initialSize=wxINITIAL_HOST_SIZE, const wxString &name=wxT("guessname")) |
wxDockHost * | GetDockHost (const wxString &name) |
wxDockHost * | GetDockHost (const wxDirection &_dir) |
void | AddDockWindow (wxDockWindowBase *pDockWindow) |
void | DockWindow (wxDockWindowBase *pDockWindow, wxHostInfo &hi, bool noHideOperation=false) |
void | UndockWindow (wxDockWindowBase *pDockWindow, bool noShowOperation=false) |
bool | SaveToStream (wxOutputStream &stream) |
bool | LoadFromStream (wxInputStream &stream) |
bool | SaveToXML (const wxString &filename) |
SaveToXML allows the layout manager to save the current window layout and host setup into an XML document for reloading later. | |
bool | LoadFromXML (const wxString &filename) |
LoadFromXML will retrieve the layout from the specified XML document and apply it to the current dock windows and hosts. | |
bool | SaveToConfig (wxConfigBase *, const wxString &key) const |
bool | LoadFromConfig (wxConfigBase *, const wxString &key) |
wxHostInfo | TestForHost (int sx, int sy) |
wxRect | TrimDockArea (wxDockHost *pDockHost, wxRect &dockArea) |
bool | IsPrimaryDockHost (wxDockHost *pDockHost) |
void | SetDockArea (wxRect &rect) |
wxRect | GetDockArea () |
wxRect | RectToScreen (wxRect &rect) |
wxPoint | PointFromScreen (wxPoint &point) |
unsigned int | GetFlags () |
void | UpdateAllHosts (bool sizeChange, wxDockHost *pIgnoreHost=NULL) |
void | OnSize () |
void | OnMove () |
void | OnUpdateLayout () |
void | OnMenuToggle (int entryId) |
Private Member Functions | |
wxDockHost * | findDockHost (const wxString &name) |
wxDockWindowBase * | findDockWindow (const wxString &name) |
void | settingsChanged () |
Private Attributes | |
DockHostList | dockHosts_ |
DockWindowList | dockWindows_ |
wxWindow * | pOwnerWindow_ |
wxOwnerEventHandler | frameEventHandler_ |
unsigned int | flags_ |
wxWindow * | pAutoLayoutClientWindow_ |
wxRect | dockArea_ |
wxMenu * | pWindowMenu_ |
|
Definition at line 89 of file layoutmanager.cpp. |
|
Definition at line 98 of file layoutmanager.cpp. References dockWindows_, and pOwnerWindow_. |
|
Definition at line 126 of file layoutmanager.cpp. References AddDockHost(). |
|
Definition at line 134 of file layoutmanager.cpp. References dockHosts_, wxDockHost::GetDirection(), pOwnerWindow_, wxDockHost::SetAreaSize(), wxDockHost::SetLayoutManager(), wxDEFAULT_BOTTOM_HOST, wxDEFAULT_LEFT_HOST, wxDEFAULT_RIGHT_HOST, and wxDEFAULT_TOP_HOST. Referenced by AddDefaultHosts(). |
|
Definition at line 202 of file layoutmanager.cpp. References dockWindows_. |
|
|
Definition at line 430 of file layoutmanager.cpp. References dockHosts_. Referenced by LoadFromStream(), and LoadFromXML(). |
|
Definition at line 443 of file layoutmanager.cpp. References dockWindows_. Referenced by LoadFromStream(), and LoadFromXML(). |
|
Definition at line 304 of file layoutmanager.cpp. References dockArea_. Referenced by wxDockHost::CalcHostPlacement(), and wxExSplitter::SetBoundaries(). |
|
Definition at line 186 of file layoutmanager.cpp. References dockHosts_. |
|
Definition at line 174 of file layoutmanager.cpp. References dockHosts_. |
|
Definition at line 286 of file layoutmanager.cpp. References flags_. Referenced by wxDockHost::SettingsChanged(). |
|
Definition at line 110 of file layoutmanager.cpp. References dockHosts_, dockWindows_, flags_, pAutoLayoutClientWindow_, pWindowMenu_, and wxDWF_SPLITTER_BORDERS. |
|
Definition at line 290 of file layoutmanager.cpp. References dockHosts_. Referenced by wxDockHost::OnCalculateLayout(). |
|
Definition at line 1123 of file layoutmanager.cpp. |
|
|
LoadFromXML will retrieve the layout from the specified XML document and apply it to the current dock windows and hosts. TODO: need to error-check the xmlFindNode() return value properly TODO: figure out a way to handle existing windows that do not exist in the saved layout
Definition at line 942 of file layoutmanager.cpp. References wxDockWindowBase::Appear(), wxDockWindowBase::ClearDockingInfo(), DockWindow(), dockWindows_, findDockHost(), findDockWindow(), wxDockWindowBase::GetDockPanel(), wxDockPanel::LockAreaValue(), wxDockHost::LockPanelValue(), wxDockWindowBase::Remove(), wxDockHost::SetAreaSize(), wxDockWindowBase::SetDocked(), wxDockWindowBase::SetDockingInfo(), wxDockHost::SetPanelArea(), STREAM_VERSION, UpdateAllHosts(), and xmlFindNode(). |
|
Definition at line 370 of file layoutmanager.cpp. References dockWindows_, wxDockWindowBase::GetTitle(), pWindowMenu_, wxDockWindowBase::Show(), and UpdateAllHosts(). Referenced by wxOwnerEventHandler::OnMenu(). |
|
Definition at line 362 of file layoutmanager.cpp. Referenced by wxOwnerEventHandler::OnMove(). |
|
Definition at line 357 of file layoutmanager.cpp. References UpdateAllHosts(). |
|
Definition at line 366 of file layoutmanager.cpp. References UpdateAllHosts(). Referenced by wxOwnerEventHandler::OnUpdateLayout(). |
|
Definition at line 281 of file layoutmanager.cpp. References pOwnerWindow_. Referenced by wxDockWindowBase::OnMouseMove(). |
|
Definition at line 272 of file layoutmanager.cpp. References pOwnerWindow_. Referenced by wxDockHost::GetScreenArea(), and wxDockWindowBase::OnMouseMove(). |
|
Definition at line 1118 of file layoutmanager.cpp. |
|
|
SaveToXML allows the layout manager to save the current window layout and host setup into an XML document for reloading later. This XML tree will contain three main sections, windows, hosts and slidebars, though the slidebars have a similiar function to save their state separately. TODO: only change existing nodes, currently conflicts with wxSlideBar::SaveToXML()
Definition at line 807 of file layoutmanager.cpp. References dockHosts_, dockWindows_, eNode(), wxDockPanel::GetArea(), wxDockHost::GetAreaSize(), wxDockWindowBase::GetDockingInfo(), wxDockWindowBase::GetDockPanel(), wxDockHost::GetDockWindowList(), wxDockHost::GetPanelArea(), wxDockWindowBase::IsDocked(), wxHostInfo::pHost, and STREAM_VERSION. |
|
Definition at line 300 of file layoutmanager.cpp. References dockArea_. Referenced by wxDockHost::OnCalculateLayout(). |
|
Definition at line 118 of file layoutmanager.cpp. References flags_, pAutoLayoutClientWindow_, and settingsChanged(). |
|
Definition at line 456 of file layoutmanager.cpp. References dockHosts_, and wxDockHost::SettingsChanged(). Referenced by SetLayout(). |
|
Definition at line 120 of file layoutmanager.h. |
|
Definition at line 216 of file layoutmanager.cpp. References dockHosts_, and wxDockHost::TestForPanel(). Referenced by wxDockWindowBase::OnMouseMove(). |
|
Definition at line 228 of file layoutmanager.cpp. References dockHosts_, wxDockHost::GetClientArea(), wxDockHost::GetDirection(), and wxDockHost::IsEmpty(). Referenced by wxDockHost::GetScreenArea(). |
|
Definition at line 335 of file layoutmanager.cpp. References wxDockWindowBase::ActualShow(), wxDockPanel::GetDockedHost(), wxDockWindowBase::GetDockPanel(), wxDockWindowBase::IsDocked(), wxDockWindowBase::SetDocked(), wxDockHost::UndockPanel(), and UpdateAllHosts(). Referenced by DockWindow(), wxDockPanel::OnGripDblClick(), wxDockWindowBase::Remove(), and wxDockWindowBase::StopDragging(). |
|
Definition at line 392 of file layoutmanager.cpp. References dockWindows_, wxDockWindowBase::GetTitle(), wxDockWindowBase::IsVisible(), pAutoLayoutClientWindow_, pOwnerWindow_, and pWindowMenu_. Referenced by DockWindow(), LoadFromStream(), LoadFromXML(), OnMenuToggle(), wxDockPanel::OnPaneClose(), OnSize(), wxDockHost::OnSize(), OnUpdateLayout(), and UndockWindow(). |
|
Definition at line 180 of file layoutmanager.h. Referenced by GetDockArea(), and SetDockArea(). |
|
Definition at line 172 of file layoutmanager.h. Referenced by AddDockHost(), findDockHost(), GetDockHost(), Init(), IsPrimaryDockHost(), SaveToStream(), SaveToXML(), settingsChanged(), TestForHost(), and TrimDockArea(). |
|
Definition at line 173 of file layoutmanager.h. Referenced by AddDockWindow(), findDockWindow(), Init(), LoadFromStream(), LoadFromXML(), OnMenuToggle(), SaveToStream(), SaveToXML(), UpdateAllHosts(), and ~wxLayoutManager(). |
|
Definition at line 178 of file layoutmanager.h. Referenced by GetFlags(), Init(), and SetLayout(). |
|
Definition at line 176 of file layoutmanager.h. |
|
Definition at line 179 of file layoutmanager.h. Referenced by Init(), SetLayout(), and UpdateAllHosts(). |
|
Definition at line 175 of file layoutmanager.h. Referenced by AddDockHost(), PointFromScreen(), RectToScreen(), UpdateAllHosts(), and ~wxLayoutManager(). |
|
Definition at line 181 of file layoutmanager.h. Referenced by Init(), OnMenuToggle(), and UpdateAllHosts(). |