Main Page | Namespace List | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

layoutmanager.cpp File Reference

#include <wx/layoutmanager.h>
#include <wx/dockhost.h>
#include <wx/dockpanel.h>
#include <wx/dockwindow.h>
#include <wx/slidebar.h>
#include <wx/util.h>
#include <wx/mdi.h>
#include <wx/xml/xml.h>
#include <wx/gdicmn.h>
#include <wx/filename.h>
#include <wx/list.h>
#include <wx/listimpl.cpp>

Include dependency graph for layoutmanager.cpp:

Go to the source code of this file.

Defines

#define STREAM_VERSION   wxT("wxDocking-Stream-v1.0")

Functions

 WX_DECLARE_LIST (wxDockPanel, DockPanelList)
 WX_DEFINE_LIST (DockPanelList)
 WX_DEFINE_LIST (DockHostList)
wxXmlNode * eNode (const wxString &nodename, const wxString &content)
 This function creates a new XML_ELEMENT_NODE and then creates a XML_TEXT_NODE that is then assigned the content passed to the function.
wxXmlNode * changeNode (wxXmlNode *, const wxString &nodePath, const wxString &content)
 Used in the SaveToXML() method for either changing existing XML node content or to create a new XML node if the existing node does not exist.
wxXmlNode * xmlFindNode (wxXmlNode *root, const wxString &nodePath, bool getText=true)
 Searches the XML document tree starting from the given node, the argument "nodePath" denotes the tree structure to follow (node names separated by '/') if getText is true the returned node pointer will point to the XML_TEXT_NODE otherwise it will return the final XML_ELEMENT_NODE.


Define Documentation

#define STREAM_VERSION   wxT("wxDocking-Stream-v1.0")
 

Definition at line 80 of file layoutmanager.cpp.

Referenced by wxSlideBar::LoadFromStream(), wxLayoutManager::LoadFromStream(), wxLayoutManager::LoadFromXML(), wxSlideBar::SaveToStream(), wxLayoutManager::SaveToStream(), and wxLayoutManager::SaveToXML().


Function Documentation

wxXmlNode* changeNode wxXmlNode *  ,
const wxString &  nodePath,
const wxString &  content
 

Used in the SaveToXML() method for either changing existing XML node content or to create a new XML node if the existing node does not exist.

TODO: move this to the wxDockUtil namespace so it is shared by wxSlideBar

Author:
Landon Bradshaw <landon@phazeforward.com>
Parameters:
wxXmlNode *root
const wxString nodePath The physical name given for the new element node
const wxString content The string to assign to the text node

Definition at line 736 of file layoutmanager.cpp.

wxXmlNode* eNode const wxString &  nodename,
const wxString &  content
 

This function creates a new XML_ELEMENT_NODE and then creates a XML_TEXT_NODE that is then assigned the content passed to the function.

The pointer to the new element node is returned to the caller.

TODO: move this to the wxDockUtil namespace so it is shared by wxSlideBar

Author:
Landon Bradshaw <landon@phazeforward.com>
Parameters:
const wxString nodename The physical name given for the new element node
const wxString content The string to assign to the text node
Returns:
wxXmlNode *

Definition at line 715 of file layoutmanager.cpp.

Referenced by wxLayoutManager::SaveToXML().

WX_DECLARE_LIST wxDockPanel  ,
DockPanelList 
 

WX_DEFINE_LIST DockHostList   ) 
 

WX_DEFINE_LIST DockPanelList   ) 
 

wxXmlNode* xmlFindNode wxXmlNode *  root,
const wxString &  nodePath,
bool  getText = true
 

Searches the XML document tree starting from the given node, the argument "nodePath" denotes the tree structure to follow (node names separated by '/') if getText is true the returned node pointer will point to the XML_TEXT_NODE otherwise it will return the final XML_ELEMENT_NODE.

TODO: move this to the wxDockUtil namespace so it is shared by wxSlideBar

Author:
Landon Bradshaw <landon@phazeforward.com>
Parameters:
wxXmlNode *root
const wxString nodePath The physical name given for the new element node
bool getText true = return the XML_TEXT_NODE false = return the final XML_ELEMENT_NODE
Returns:
wxXmlNode *

Definition at line 757 of file layoutmanager.cpp.

Referenced by wxLayoutManager::LoadFromXML().


Generated on Sat May 14 14:54:39 2005 for wxDockIt by  doxygen 1.4.2