void CFrame::ReloadPanes() { // Close all pages ClosePages(); CloseAllNotebooks(); // Create new panes with notebooks for (u32 i = 0; i < Perspectives[ActivePerspective].Width.size() - 1; i++) { wxString PaneName = wxString::Format("Pane %i", i + 1); m_Mgr->AddPane(CreateEmptyNotebook(), wxAuiPaneInfo().Hide() .CaptionVisible(m_bEdit).Dockable(!m_bNoDocking).Position(i) .Name(PaneName).Caption(PaneName)); } // Perspectives m_Mgr->LoadPerspective(Perspectives[ActivePerspective].Perspective, false); // Restore settings TogglePaneStyle(m_bNoDocking, IDM_NO_DOCKING); TogglePaneStyle(m_bEdit, IDM_EDIT_PERSPECTIVES); // Load GUI settings g_pCodeWindow->Load(); // Open notebook pages AddRemoveBlankPage(); g_pCodeWindow->OpenPages(); // Repopulate perspectives PopulateSavedPerspectives(); }
/* #FN# Called when the user clicks the wizard's CANCEL button */ void /* #AS# Nothing */ CWizardDlg:: OnCancel() { ClosePages(); CCommonDlg::OnCancel(); } /* #OF# CWizardDlg::OnCancel */
// Destructor CFrame::~CFrame() { drives.clear(); #if defined(HAVE_XRANDR) && HAVE_XRANDR delete m_XRRConfig; #endif ClosePages(); delete m_Mgr; }
/* #FN# Called when the user clicks the wizard's FINISH button */ void /* #AS# Nothing */ CWizardDlg:: OnFinish() { CWizardPage *pPage = NULL; for( int i = 0; i < m_arrPages.GetUpperBound() + 1; i++ ) { pPage = GetPage( i ); if( pPage ) pPage->UpdateData(); } ClosePages(); CCommonDlg::OnOK(); } /* #OF# CWizardDlg::OnFinish */