void EditorOptionsGeneralGuidesPanel::Save(OptionsConfigPtr options) { options->SetDisplayLineNumbers(m_displayLineNumbers->IsChecked()); options->SetHighlightMatchedBraces(m_checkBoxMatchBraces->IsChecked()); options->SetShowIndentationGuidelines(m_showIndentationGuideLines->IsChecked()); options->SetHighlightCaretLine(m_highlightCaretLine->IsChecked()); options->SetCaretLineColour(m_caretLineColourPicker->GetColour()); options->SetEolMode(m_EOLstringManager.GetStringSelection()); options->SetHideChangeMarkerMargin(m_checkBoxHideChangeMarkerMargin->IsChecked()); options->SetDisableSemicolonShift(m_checkBoxDisableSemicolonShift->IsChecked()); options->SetDebuggerMarkerLine(m_colourPickerDbgLine->GetColour()); options->EnableOption(OptionsConfig::Opt_Mark_Debugger_Line, m_checkBoxMarkdebuggerLine->IsChecked()); // save the whitespace visibility wxString Whitespace = m_WSstringManager.GetStringSelection(); int style(wxSTC_WS_INVISIBLE); // invisible if(Whitespace == wxT("Visible always")) { style = wxSTC_WS_VISIBLEALWAYS; } else if(Whitespace == wxT("Visible after indentation")) { style = wxSTC_WS_VISIBLEAFTERINDENT; } else if(Whitespace == wxT("Indentation only")) { style = wxSTC_WS_VISIBLEAFTERINDENT; } options->SetShowWhitspaces(style); }
void EditorSettingsTerminal::Save(OptionsConfigPtr options) { options->SetProgramConsoleCommand (m_textCtrlProgramConsoleCmd->GetValue()); options->EnableOption( OptionsConfig::Opt_Use_CodeLite_Terminal, m_checkBoxUseCodeLiteTerminal->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->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; } }