void EditorSettingsDockingWindows::Save(OptionsConfigPtr options) { options->SetHideOutpuPaneOnUserClick(m_checkBoxHideOutputPaneOnClick->IsChecked()); options->SetHideOutputPaneNotIfBuild(m_checkBoxHideOutputPaneNotIfBuild->IsChecked()); options->SetHideOutputPaneNotIfSearch(m_checkBoxHideOutputPaneNotIfSearch->IsChecked()); options->SetHideOutputPaneNotIfReplace(m_checkBoxHideOutputPaneNotIfReplace->IsChecked()); options->SetHideOutputPaneNotIfReferences(m_checkBoxHideOutputPaneNotIfReferences->IsChecked()); options->SetHideOutputPaneNotIfOutput(m_checkBoxHideOutputPaneNotIfOutput->IsChecked()); options->SetHideOutputPaneNotIfTrace(m_checkBoxHideOutputPaneNotIfTrace->IsChecked()); options->SetHideOutputPaneNotIfTasks(m_checkBoxHideOutputPaneNotIfTasks->IsChecked()); options->SetHideOutputPaneNotIfBuildQ(m_checkBoxHideOutputPaneNotIfBuildQ->IsChecked()); options->SetHideOutputPaneNotIfCppCheck(m_checkBoxHideOutputPaneNotIfCppCheck->IsChecked()); options->SetHideOutputPaneNotIfSvn(m_checkBoxHideOutputPaneNotIfSvn->IsChecked()); options->SetHideOutputPaneNotIfCscope(m_checkBoxHideOutputPaneNotIfCscope->IsChecked()); options->SetHideOutputPaneNotIfGit(m_checkBoxHideOutputPaneNotIfGit->IsChecked()); options->SetHideOutputPaneNotIfDebug(m_checkBoxHideOutputPaneNotIfDebug->IsChecked()); options->SetHideOutputPaneNotIfMemCheck(m_checkBoxHideOutputPaneNotIfMemCheck->IsChecked()); options->SetFindBarAtBottom(m_checkBoxFindBarAtBottom->IsChecked()); options->SetShowReplaceBar(m_checkBoxShowReplaceBar->IsChecked()); options->SetDontAutoFoldResults(m_checkBoxDontFoldSearchResults->IsChecked()); options->SetShowDebugOnRun(m_checkBoxShowDebugOnRun->IsChecked()); options->SetDockingStyle(m_radioBoxHint->GetSelection()); options->SetShowDockingWindowCaption(!m_checkBoxHideCaptions->IsChecked()); options->SetEnsureCaptionsVisible(m_checkBoxEnsureCaptionsVisible->IsChecked()); options->SetTabColourMatchesTheme(m_checkBoxEditorTabsFollowsTheme->IsChecked()); options->SetTabHasXButton(m_checkBoxShowXButton->IsChecked()); options->SetNonEditorTabsAtTop(!m_checkBoxPanesTabsAtBottom->IsChecked()); // Keep the quickreplacebar in sync clMainFrame::Get()->GetMainBook()->ShowQuickReplaceBar(m_checkBoxShowReplaceBar->IsChecked()); }
void EditorSettingsDockingWindows::Save(OptionsConfigPtr options) { options->SetHideOutpuPaneOnUserClick(m_checkBoxHideOutputPaneOnClick->IsChecked()); options->SetHideOutputPaneNotIfBuild(m_checkBoxHideOutputPaneNotIfBuild->IsChecked()); options->SetHideOutputPaneNotIfSearch(m_checkBoxHideOutputPaneNotIfSearch->IsChecked()); options->SetHideOutputPaneNotIfReplace(m_checkBoxHideOutputPaneNotIfReplace->IsChecked()); options->SetHideOutputPaneNotIfReferences(m_checkBoxHideOutputPaneNotIfReferences->IsChecked()); options->SetHideOutputPaneNotIfOutput(m_checkBoxHideOutputPaneNotIfOutput->IsChecked()); options->SetHideOutputPaneNotIfTrace(m_checkBoxHideOutputPaneNotIfTrace->IsChecked()); options->SetHideOutputPaneNotIfTasks(m_checkBoxHideOutputPaneNotIfTasks->IsChecked()); options->SetHideOutputPaneNotIfBuildQ(m_checkBoxHideOutputPaneNotIfBuildQ->IsChecked()); options->SetHideOutputPaneNotIfCppCheck(m_checkBoxHideOutputPaneNotIfCppCheck->IsChecked()); options->SetHideOutputPaneNotIfSvn(m_checkBoxHideOutputPaneNotIfSvn->IsChecked()); options->SetHideOutputPaneNotIfCscope(m_checkBoxHideOutputPaneNotIfCscope->IsChecked()); options->SetHideOutputPaneNotIfGit(m_checkBoxHideOutputPaneNotIfGit->IsChecked()); options->SetHideOutputPaneNotIfDebug(m_checkBoxHideOutputPaneNotIfDebug->IsChecked()); options->SetHideOutputPaneNotIfMemCheck(m_checkBoxHideOutputPaneNotIfMemCheck->IsChecked()); options->SetFindBarAtBottom(m_checkBoxFindBarAtBottom->IsChecked()); options->SetShowReplaceBar(m_checkBoxShowReplaceBar->IsChecked()); options->SetDontAutoFoldResults(m_checkBoxDontFoldSearchResults->IsChecked()); options->SetShowDebugOnRun(m_checkBoxShowDebugOnRun->IsChecked()); options->SetDockingStyle(m_radioBoxHint->GetSelection()); options->SetShowDockingWindowCaption(!m_checkBoxHideCaptions->IsChecked()); options->SetEnsureCaptionsVisible(m_checkBoxEnsureCaptionsVisible->IsChecked()); options->SetTabColourMatchesTheme(m_checkBoxEditorTabsFollowsTheme->IsChecked()); options->SetTabHasXButton(m_checkBoxShowXButton->IsChecked()); switch(m_choiceOutputTabsOrientation->GetSelection()) { case 0: options->SetOutputTabsDirection(wxTOP); break; case 1: options->SetOutputTabsDirection(wxBOTTOM); break; default: break; } switch(m_choiceWorkspaceTabsOrientation->GetSelection()) { case 0: options->SetWorkspaceTabsDirection(wxLEFT); break; case 1: options->SetWorkspaceTabsDirection(wxRIGHT); break; case 2: options->SetWorkspaceTabsDirection(wxTOP); break; case 3: options->SetWorkspaceTabsDirection(wxBOTTOM); break; default: break; } // Keep the quickreplacebar in sync clMainFrame::Get()->GetMainBook()->ShowQuickReplaceBar(m_checkBoxShowReplaceBar->IsChecked()); }
void EditorSettingsDockingWindows::Save(OptionsConfigPtr options) { options->SetHideOutpuPaneOnUserClick(m_checkBoxHideOutputPaneOnClick->IsChecked()); options->SetHideOutputPaneNotIfBuild(m_checkBoxHideOutputPaneNotIfBuild->IsChecked()); options->SetHideOutputPaneNotIfSearch(m_checkBoxHideOutputPaneNotIfSearch->IsChecked()); options->SetHideOutputPaneNotIfReplace(m_checkBoxHideOutputPaneNotIfReplace->IsChecked()); options->SetHideOutputPaneNotIfReferences(m_checkBoxHideOutputPaneNotIfReferences->IsChecked()); options->SetHideOutputPaneNotIfOutput(m_checkBoxHideOutputPaneNotIfOutput->IsChecked()); options->SetHideOutputPaneNotIfTrace(m_checkBoxHideOutputPaneNotIfTrace->IsChecked()); options->SetHideOutputPaneNotIfTasks(m_checkBoxHideOutputPaneNotIfTasks->IsChecked()); options->SetHideOutputPaneNotIfBuildQ(m_checkBoxHideOutputPaneNotIfBuildQ->IsChecked()); options->SetHideOutputPaneNotIfCppCheck(m_checkBoxHideOutputPaneNotIfCppCheck->IsChecked()); options->SetHideOutputPaneNotIfSvn(m_checkBoxHideOutputPaneNotIfSvn->IsChecked()); options->SetHideOutputPaneNotIfCscope(m_checkBoxHideOutputPaneNotIfCscope->IsChecked()); options->SetHideOutputPaneNotIfGit(m_checkBoxHideOutputPaneNotIfGit->IsChecked()); options->SetHideOutputPaneNotIfDebug(m_checkBoxHideOutputPaneNotIfDebug->IsChecked()); options->SetHideOutputPaneNotIfMemCheck(m_checkBoxHideOutputPaneNotIfMemCheck->IsChecked()); options->SetFindBarAtBottom(m_checkBoxFindBarAtBottom->IsChecked()); options->SetShowReplaceBar(m_checkBoxShowReplaceBar->IsChecked()); options->SetDontAutoFoldResults(m_checkBoxDontFoldSearchResults->IsChecked()); options->SetShowDebugOnRun(m_checkBoxShowDebugOnRun->IsChecked()); options->SetDockingStyle(m_radioBoxHint->GetSelection()); options->SetShowDockingWindowCaption(!m_checkBoxHideCaptions->IsChecked()); options->SetEnsureCaptionsVisible(m_checkBoxEnsureCaptionsVisible->IsChecked()); // Keep the quickreplacebar in sync clMainFrame::Get()->GetMainBook()->ShowQuickReplaceBar(m_checkBoxShowReplaceBar->IsChecked()); size_t flags(options->GetOptions()); // set the tab control options: //////////////////////////////////// // Clear the current tab control style flags &= ~OptionsConfig::TabAll; switch(m_radioBoxTabControlStyle->GetSelection()) { case 0: // glossy flags |= OptionsConfig::TabGlossy; m_endFlags |= OptionsConfig::TabGlossy; break; case 1: // curved default: flags |= OptionsConfig::TabCurved; m_endFlags |= OptionsConfig::TabCurved; break; } options->SetOptions(flags); }
void EditorConfig::SetPaneStickiness(const wxString& caption, bool stickiness) { OptionsConfigPtr options = GetOptions(); if(caption == _("Build")) { options->SetHideOutputPaneNotIfBuild(stickiness); } else if(caption == _("Search")) { options->SetHideOutputPaneNotIfSearch(stickiness); } else if(caption == _("Replace")) { options->SetHideOutputPaneNotIfReplace(stickiness); } else if(caption == _("References")) { options->SetHideOutputPaneNotIfReferences(stickiness); } else if(caption == _("Output")) { options->SetHideOutputPaneNotIfOutput(stickiness); } else if(caption == _("Debug")) { options->SetHideOutputPaneNotIfDebug(stickiness); } else if(caption == _("Trace")) { options->SetHideOutputPaneNotIfTrace(stickiness); } else if(caption == _("Tasks")) { options->SetHideOutputPaneNotIfTasks(stickiness); } else if(caption == _("BuildQ")) { options->SetHideOutputPaneNotIfBuildQ(stickiness); } else if(caption == _("CppCheck")) { options->SetHideOutputPaneNotIfCppCheck(stickiness); } else if(caption == _("Subversion")) { options->SetHideOutputPaneNotIfSvn(stickiness); } else if(caption == _("Cscope")) { options->SetHideOutputPaneNotIfCscope(stickiness); } else if(caption == _("Git")) { options->SetHideOutputPaneNotIfGit(stickiness); } else if(caption == _("MemCheck")) { options->SetHideOutputPaneNotIfMemCheck(stickiness); } else { return; } SetOptions(options); Save(); }
void EditorSettingsDockingWindows::Save(OptionsConfigPtr options) { options->SetHideOutpuPaneOnUserClick(m_checkBoxHideOutputPaneOnClick->IsChecked()); options->SetHideOutputPaneNotIfBuild(m_checkBoxHideOutputPaneNotIfBuild->IsChecked()); options->SetHideOutputPaneNotIfSearch(m_checkBoxHideOutputPaneNotIfSearch->IsChecked()); options->SetHideOutputPaneNotIfReplace(m_checkBoxHideOutputPaneNotIfReplace->IsChecked()); options->SetHideOutputPaneNotIfReferences(m_checkBoxHideOutputPaneNotIfReferences->IsChecked()); options->SetHideOutputPaneNotIfOutput(m_checkBoxHideOutputPaneNotIfOutput->IsChecked()); options->SetHideOutputPaneNotIfTrace(m_checkBoxHideOutputPaneNotIfTrace->IsChecked()); options->SetHideOutputPaneNotIfTasks(m_checkBoxHideOutputPaneNotIfTasks->IsChecked()); options->SetHideOutputPaneNotIfBuildQ(m_checkBoxHideOutputPaneNotIfBuildQ->IsChecked()); options->SetHideOutputPaneNotIfCppCheck(m_checkBoxHideOutputPaneNotIfCppCheck->IsChecked()); options->SetHideOutputPaneNotIfSvn(m_checkBoxHideOutputPaneNotIfSvn->IsChecked()); options->SetHideOutputPaneNotIfCscope(m_checkBoxHideOutputPaneNotIfCscope->IsChecked()); options->SetHideOutputPaneNotIfGit(m_checkBoxHideOutputPaneNotIfGit->IsChecked()); options->SetHideOutputPaneNotIfDebug(m_checkBoxHideOutputPaneNotIfDebug->IsChecked()); options->SetHideOutputPaneNotIfMemCheck(m_checkBoxHideOutputPaneNotIfMemCheck->IsChecked()); options->SetFindBarAtBottom(m_checkBoxFindBarAtBottom->IsChecked()); options->SetDontAutoFoldResults(m_checkBoxDontFoldSearchResults->IsChecked()); options->SetShowDebugOnRun(m_checkBoxShowDebugOnRun->IsChecked()); options->SetDockingStyle(m_radioBoxHint->GetSelection()); options->SetShowDockingWindowCaption(!m_checkBoxHideCaptions->IsChecked()); options->SetEnsureCaptionsVisible(m_checkBoxEnsureCaptionsVisible->IsChecked()); options->SetTabColourMatchesTheme(m_checkBoxEditorTabsFollowsTheme->IsChecked()); options->SetTabColourDark(m_checkBoxUseDarkTabTheme->IsChecked()); options->SetTabHasXButton(m_checkBoxShowXButton->IsChecked()); options->SetMouseScrollSwitchTabs(m_checkBoxMouseScrollSwitchTabs->IsChecked()); // Set the tab style: // DEFAULT 0 // MINIMAL 1 // TRAPEZOID 2 int tabStyleSelection = m_choiceTabStyle->GetSelection(); options->EnableOption(OptionsConfig::Opt_TabStyleMinimal, (tabStyleSelection == 1)); options->EnableOption(OptionsConfig::Opt_TabStyleTRAPEZOID, (tabStyleSelection == 2)); int ht(0); switch(m_choiceTabHeight->GetSelection()) { case 3: ht = OptionsConfig::nbTabHt_Tiny; break; case 2: ht = OptionsConfig::nbTabHt_Short; break; case 1: ht = OptionsConfig::nbTabHt_Medium; break; default: ht = OptionsConfig::nbTabHt_Tall; } options->SetNotebookTabHeight(ht); switch(m_choiceOutputTabsOrientation->GetSelection()) { case 0: options->SetOutputTabsDirection(wxTOP); break; case 1: options->SetOutputTabsDirection(wxBOTTOM); break; default: break; } switch(m_choiceWorkspaceTabsOrientation->GetSelection()) { case 0: options->SetWorkspaceTabsDirection(wxLEFT); break; case 1: options->SetWorkspaceTabsDirection(wxRIGHT); break; case 2: options->SetWorkspaceTabsDirection(wxTOP); break; case 3: options->SetWorkspaceTabsDirection(wxBOTTOM); break; default: break; } }