void ReopenEditor::ShowList() { CodeBlocksLogEvent evt1(cbEVT_REMOVE_LOG_WINDOW, m_pListLog); Manager::Get()->ProcessEvent(evt1); CodeBlocksDockEvent evt2(cbEVT_REMOVE_DOCK_WINDOW); evt2.pWindow = m_pListLog; Manager::Get()->ProcessEvent(evt2); if(m_IsManaged) { wxString prefix = ConfigManager::GetDataFolder() + _T("/images/16x16/"); wxBitmap * bmp = new wxBitmap(cbLoadBitmap(prefix + _T("undo.png"), wxBITMAP_TYPE_PNG)); CodeBlocksLogEvent evt3(cbEVT_ADD_LOG_WINDOW, m_pListLog, _("Closed files list"), bmp); Manager::Get()->ProcessEvent(evt3); CodeBlocksLogEvent evt4(cbEVT_SWITCH_TO_LOG_WINDOW, m_pListLog); Manager::Get()->ProcessEvent(evt4); } else { m_pListLog->Reparent(Manager::Get()->GetAppFrame()); m_pListLog->SetSize(wxSize(800,94)); m_pListLog->SetInitialSize(wxSize(800,94)); CodeBlocksDockEvent evt(cbEVT_ADD_DOCK_WINDOW); evt.name = _T("ReopenEditorListPane"); evt.title = _("Closed file list"); evt.pWindow = m_pListLog; evt.dockSide = CodeBlocksDockEvent::dsBottom; evt.shown = true; evt.hideable = true; evt.desiredSize.Set(800, 94); evt.floatingSize.Set(800, 94); evt.minimumSize.Set(350, 94); Manager::Get()->ProcessEvent(evt); } }
void ReopenEditor::ShowList() { CodeBlocksLogEvent evt1(cbEVT_REMOVE_LOG_WINDOW, m_pListLog); Manager::Get()->ProcessEvent(evt1); CodeBlocksDockEvent evt2(cbEVT_REMOVE_DOCK_WINDOW); evt2.pWindow = m_pListLog; Manager::Get()->ProcessEvent(evt2); if(m_IsManaged) { CodeBlocksLogEvent evt3(cbEVT_ADD_LOG_WINDOW, m_pListLog, _("Closed files list"), &m_LogIcon); Manager::Get()->ProcessEvent(evt3); CodeBlocksLogEvent evt4(cbEVT_SWITCH_TO_LOG_WINDOW, m_pListLog); Manager::Get()->ProcessEvent(evt4); } else { m_pListLog->Reparent(Manager::Get()->GetAppFrame()); m_pListLog->SetSize(wxSize(800,94)); m_pListLog->SetInitialSize(wxSize(800,94)); CodeBlocksDockEvent evt(cbEVT_ADD_DOCK_WINDOW); evt.name = _T("ReopenEditorListPane"); evt.title = _("Closed file list"); evt.pWindow = m_pListLog; evt.dockSide = CodeBlocksDockEvent::dsBottom; evt.shown = true; evt.hideable = true; evt.desiredSize.Set(800, 94); evt.floatingSize.Set(800, 94); evt.minimumSize.Set(350, 94); Manager::Get()->ProcessEvent(evt); } }