void WorkspaceTab::OnProjectRemoved(clCommandEvent& e) { e.Skip(); m_fileView->BuildTree(); CallAfter(&WorkspaceTab::DoGoHome); DoUpdateChoiceWithProjects(); SendCmdEvent(wxEVT_FILE_VIEW_REFRESHED); }
void WorkspaceTab::OnProjectRemoved(wxCommandEvent& e) { e.Skip(); Freeze(); m_fileView->BuildTree(); OnGoHome(e); Thaw(); DoUpdateChoiceWithProjects(); SendCmdEvent(wxEVT_FILE_VIEW_REFRESHED); }
void WorkspaceTab::OnProjectAdded(clCommandEvent& e) { e.Skip(); const wxString& projName = e.GetString(); m_fileView->BuildTree(); if(!projName.IsEmpty()) { m_fileView->ExpandToPath(projName, wxFileName()); } DoUpdateChoiceWithProjects(); SendCmdEvent(wxEVT_FILE_VIEW_REFRESHED); }
void WorkspaceTab::OnProjectAdded(wxCommandEvent& e) { e.Skip(); const wxString *projName = (const wxString *) e.GetClientData(); m_fileView->BuildTree(); if (projName && !projName->IsEmpty()) { m_fileView->ExpandToPath(*projName, wxFileName()); } DoUpdateChoiceWithProjects(); SendCmdEvent(wxEVT_FILE_VIEW_REFRESHED); }
void WorkspaceTab::OnWorkspaceLoaded(wxCommandEvent& e) { e.Skip(); if(ManagerST::Get()->IsWorkspaceOpen()) { DoWorkspaceConfig(); DoUpdateChoiceWithProjects(); // Tree construction m_fileView->BuildTree(); CallAfter(&WorkspaceTab::DoGoHome); SendCmdEvent(wxEVT_FILE_VIEW_INIT_DONE); } }