Contents Up Previous Next

wxPMWorkplaceBrowserPane

* wxPMWorkplaceBrowserPane class does most of the * work for controlling/updating multiproject-treectrl. * Also, it is meant to be subclassed by concrete * browsers which "hook in" their code into places, * where management of their specific tree-items occures * (eg. could be extended by class/resource/file/whatever browser)

Derived from

wxPMPane
wxPMWorkplaceListener

Data structures

Members

wxPMWorkplaceBrowserPane::wxPMWorkplaceBrowserPane
wxPMWorkplaceBrowserPane::AddProjectItem
wxPMWorkplaceBrowserPane::AddProjectItems
wxPMWorkplaceBrowserPane::AppendItem
wxPMWorkplaceBrowserPane::CreateImageList
wxPMWorkplaceBrowserPane::CreatePaneWindow
wxPMWorkplaceBrowserPane::CreateRootItem
wxPMWorkplaceBrowserPane::CreateTree
wxPMWorkplaceBrowserPane::DeleteBranch
wxPMWorkplaceBrowserPane::DeleteItem
wxPMWorkplaceBrowserPane::FindDataForObject
wxPMWorkplaceBrowserPane::FindTreeItemForObject
wxPMWorkplaceBrowserPane::GetAlwaysShowWorkplace
wxPMWorkplaceBrowserPane::GetDataForObject
wxPMWorkplaceBrowserPane::GetPaneWindow
wxPMWorkplaceBrowserPane::GetProjectForItem
wxPMWorkplaceBrowserPane::GetSelectedObject
wxPMWorkplaceBrowserPane::GetSelectedProject
wxPMWorkplaceBrowserPane::GetTree
wxPMWorkplaceBrowserPane::OnAddItemsToContextMenu
wxPMWorkplaceBrowserPane::OnCmdCloseWorkplace
wxPMWorkplaceBrowserPane::OnCmdInsertProject
wxPMWorkplaceBrowserPane::OnCmdMakeProjectActive
wxPMWorkplaceBrowserPane::OnCmdNewProject
wxPMWorkplaceBrowserPane::OnCmdNewWorkplace
wxPMWorkplaceBrowserPane::OnCmdRemoveProject
wxPMWorkplaceBrowserPane::OnCmdRenameProject
wxPMWorkplaceBrowserPane::OnCmdRenameWorkplace
wxPMWorkplaceBrowserPane::OnCmdSaveWorkplace
wxPMWorkplaceBrowserPane::OnContextMenuRequested
wxPMWorkplaceBrowserPane::OnDeleteRequested
wxPMWorkplaceBrowserPane::OnItemActivated
wxPMWorkplaceBrowserPane::OnItemCollapsed
wxPMWorkplaceBrowserPane::OnItemExpanding
wxPMWorkplaceBrowserPane::OnProjectActivated
wxPMWorkplaceBrowserPane::OnProjectAdded
wxPMWorkplaceBrowserPane::OnProjectRemoved
wxPMWorkplaceBrowserPane::OnSelectionChanged
wxPMWorkplaceBrowserPane::OnSelectionChanging
wxPMWorkplaceBrowserPane::RebuildTree
wxPMWorkplaceBrowserPane::RemoveAllProjectItems
wxPMWorkplaceBrowserPane::RemoveProjectItem
wxPMWorkplaceBrowserPane::SetActiveProjectBitmap
wxPMWorkplaceBrowserPane::SetAlwaysShowWorkplace
wxPMWorkplaceBrowserPane::SetOtherFilesBitmap
wxPMWorkplaceBrowserPane::SetProjectBitmap
wxPMWorkplaceBrowserPane::SetRecentItemsBitmap
wxPMWorkplaceBrowserPane::SetWorkplaceBitmap
wxPMWorkplaceBrowserPane::Start
wxPMWorkplaceBrowserPane::Stop


wxPMWorkplaceBrowserPane::wxPMWorkplaceBrowserPane

wxPMWorkplaceBrowserPane()


wxPMWorkplaceBrowserPane::AddProjectItem

void AddProjectItem(wxPMProject* pPrj)


wxPMWorkplaceBrowserPane::AddProjectItems

void AddProjectItems()


wxPMWorkplaceBrowserPane::AppendItem

wxTreeItemId AppendItem(wxTreeItemId parent, const wxString& text, int image = - 1, int selImage = - 1, wxPMBrowserTreeData* pData = NULL)

utility methods for use in subclasses (not for overriding) **use this method instead of m_pTree->Appned(...), this way the object refered by pData is put to hash in order to find it's corresponding id when needed later


wxPMWorkplaceBrowserPane::CreateImageList

wxImageList* CreateImageList()

the same for image list, use the indexes of below enum for adding "standard" or subclass-specific images to the list


wxPMWorkplaceBrowserPane::CreatePaneWindow

void CreatePaneWindow(wxWindow* pParent)


wxPMWorkplaceBrowserPane::CreateRootItem

wxTreeItemId CreateRootItem()


wxPMWorkplaceBrowserPane::CreateTree

wxPMBrowserTreeCtrl* CreateTree(wxWindow* pParent)

"factory method" for creating custom treectrl in derived classes


wxPMWorkplaceBrowserPane::DeleteBranch

void DeleteBranch(wxTreeItemId item)

same as above, isntead of single item, all the children of the given item are deleted first (recursively)


wxPMWorkplaceBrowserPane::DeleteItem

void DeleteItem(wxTreeItemId item)

use this method instead of m_pTree->Delete, since it keeps hashtable of objects<->tree-items synhronized


wxPMWorkplaceBrowserPane::FindDataForObject

wxPMBrowserTreeData* FindDataForObject(wxObject* pObj)

finds tree-data which has it's member m_pObject machting the given one


wxPMWorkplaceBrowserPane::FindTreeItemForObject

wxTreeItemId FindTreeItemForObject(wxObject* pObj)

same as above, only returns tree-item instead of it's data


wxPMWorkplaceBrowserPane::GetAlwaysShowWorkplace

bool GetAlwaysShowWorkplace()


wxPMWorkplaceBrowserPane::GetDataForObject

wxPMBrowserTreeData* GetDataForObject(wxObject* pObj)

same as above, except that it does wxASSERT_MSG() if data not found


wxPMWorkplaceBrowserPane::GetPaneWindow

wxWindow* GetPaneWindow()

overridden method of wxPMPane


wxPMWorkplaceBrowserPane::GetProjectForItem

wxPMProject* GetProjectForItem(wxTreeItemId item)


wxPMWorkplaceBrowserPane::GetSelectedObject

wxObject* GetSelectedObject()

returns "m_pObject" member of wxPMBrowserTreeData which corresponds to currently selected tree-item (asserts against for null-pointers)


wxPMWorkplaceBrowserPane::GetSelectedProject

wxPMProject* GetSelectedProject()


wxPMWorkplaceBrowserPane::GetTree

wxTreeCtrl* GetTree()

use this if you don't like "m_pTree" with "mp" prefix


wxPMWorkplaceBrowserPane::OnAddItemsToContextMenu

void OnAddItemsToContextMenu(wxMenu& menu, wxPMBrowserTreeData* pData)

called when user right-click-requests popup menu for an item. Override this to add menu-items specfic to the type of item (than call the same method of base class)


wxPMWorkplaceBrowserPane::OnCmdCloseWorkplace

void OnCmdCloseWorkplace(wxCommandEvent& event)


wxPMWorkplaceBrowserPane::OnCmdInsertProject

void OnCmdInsertProject(wxCommandEvent& event)


wxPMWorkplaceBrowserPane::OnCmdMakeProjectActive

void OnCmdMakeProjectActive(wxCommandEvent& event)


wxPMWorkplaceBrowserPane::OnCmdNewProject

void OnCmdNewProject(wxCommandEvent& event)


wxPMWorkplaceBrowserPane::OnCmdNewWorkplace

void OnCmdNewWorkplace(wxCommandEvent& event)


wxPMWorkplaceBrowserPane::OnCmdRemoveProject

void OnCmdRemoveProject(wxCommandEvent& event)

event-handlers for commands received from context-popup menu **


wxPMWorkplaceBrowserPane::OnCmdRenameProject

void OnCmdRenameProject(wxCommandEvent& event)


wxPMWorkplaceBrowserPane::OnCmdRenameWorkplace

void OnCmdRenameWorkplace(wxCommandEvent& event)


wxPMWorkplaceBrowserPane::OnCmdSaveWorkplace

void OnCmdSaveWorkplace(wxCommandEvent& event)


wxPMWorkplaceBrowserPane::OnContextMenuRequested

void OnContextMenuRequested(wxTreeItemId item, wxPMBrowserTreeData* pData, int x, int y)


wxPMWorkplaceBrowserPane::OnDeleteRequested

void OnDeleteRequested(wxTreeItemId item, wxPMBrowserTreeData* pData)


wxPMWorkplaceBrowserPane::OnItemActivated

void OnItemActivated(wxTreeItemId item, wxPMBrowserTreeData* pData)


wxPMWorkplaceBrowserPane::OnItemCollapsed

void OnItemCollapsed(wxTreeItemId item, wxPMBrowserTreeData* pData)


wxPMWorkplaceBrowserPane::OnItemExpanding

void OnItemExpanding(wxTreeItemId item, wxPMBrowserTreeData* pData)

overridables for concrete subclasses **


wxPMWorkplaceBrowserPane::OnProjectActivated

void OnProjectActivated(wxPMProject& project, wxPMProject* pPrevProject)


wxPMWorkplaceBrowserPane::OnProjectAdded

void OnProjectAdded(wxPMProject& project)

overridden notifications of wxPMWorkplaceListener


wxPMWorkplaceBrowserPane::OnProjectRemoved

void OnProjectRemoved(wxPMProject& project)


wxPMWorkplaceBrowserPane::OnSelectionChanged

void OnSelectionChanged(wxTreeItemId item, wxPMBrowserTreeData* pData)


wxPMWorkplaceBrowserPane::OnSelectionChanging

bool OnSelectionChanging(wxTreeItemId item, wxPMBrowserTreeData* pData)


wxPMWorkplaceBrowserPane::RebuildTree

void RebuildTree()


wxPMWorkplaceBrowserPane::RemoveAllProjectItems

void RemoveAllProjectItems()


wxPMWorkplaceBrowserPane::RemoveProjectItem

void RemoveProjectItem(wxPMProject* pPrj)


wxPMWorkplaceBrowserPane::SetActiveProjectBitmap

void SetActiveProjectBitmap(const wxString& name)


wxPMWorkplaceBrowserPane::SetAlwaysShowWorkplace

void SetAlwaysShowWorkplace(bool alwaysShown)

appearance settings **TRUE, if workplace-icon is always shown as a root-item, otherwise it is hidden when only one project is in the workplace and icon of that single project is shown as root


wxPMWorkplaceBrowserPane::SetOtherFilesBitmap

void SetOtherFilesBitmap(const wxString& name)


wxPMWorkplaceBrowserPane::SetProjectBitmap

void SetProjectBitmap(const wxString& name)


wxPMWorkplaceBrowserPane::SetRecentItemsBitmap

void SetRecentItemsBitmap(const wxString& name)


wxPMWorkplaceBrowserPane::SetWorkplaceBitmap

void SetWorkplaceBitmap(const wxString& name)


wxPMWorkplaceBrowserPane::Start

bool Start()

2 overridden methods of wxPMService


wxPMWorkplaceBrowserPane::Stop

bool Stop()