本文整理汇总了C++中OptionsConfigPtr::GetShowReplaceBar方法的典型用法代码示例。如果您正苦于以下问题:C++ OptionsConfigPtr::GetShowReplaceBar方法的具体用法?C++ OptionsConfigPtr::GetShowReplaceBar怎么用?C++ OptionsConfigPtr::GetShowReplaceBar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OptionsConfigPtr
的用法示例。
在下文中一共展示了OptionsConfigPtr::GetShowReplaceBar方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DoToggleReplacebar
void QuickFindBar::DoToggleReplacebar()
{
OptionsConfigPtr options = EditorConfigST::Get()->GetOptions();
bool show = !options->GetShowReplaceBar();
options->SetShowReplaceBar(show);
EditorConfigST::Get()->SetOptions(options);
ShowReplacebar(show);
}
示例2: tabStyle
EditorSettingsDockingWindows::EditorSettingsDockingWindows(wxWindow* parent)
: EditorSettingsDockingWindowsBase(parent)
{
OptionsConfigPtr options = EditorConfigST::Get()->GetOptions();
m_checkBoxHideOutputPaneOnClick->SetValue(options->GetHideOutpuPaneOnUserClick());
m_checkBoxHideOutputPaneNotIfBuild->SetValue(options->GetHideOutputPaneNotIfBuild());
m_checkBoxHideOutputPaneNotIfSearch->SetValue(options->GetHideOutputPaneNotIfSearch());
m_checkBoxHideOutputPaneNotIfReplace->SetValue(options->GetHideOutputPaneNotIfReplace());
m_checkBoxHideOutputPaneNotIfReferences->SetValue(options->GetHideOutputPaneNotIfReferences());
m_checkBoxHideOutputPaneNotIfOutput->SetValue(options->GetHideOutputPaneNotIfOutput());
m_checkBoxHideOutputPaneNotIfTrace->SetValue(options->GetHideOutputPaneNotIfTrace());
m_checkBoxHideOutputPaneNotIfTasks->SetValue(options->GetHideOutputPaneNotIfTasks());
m_checkBoxHideOutputPaneNotIfBuildQ->SetValue(options->GetHideOutputPaneNotIfBuildQ());
m_checkBoxHideOutputPaneNotIfCppCheck->SetValue(options->GetHideOutputPaneNotIfCppCheck());
m_checkBoxHideOutputPaneNotIfSvn->SetValue(options->GetHideOutputPaneNotIfSvn());
m_checkBoxHideOutputPaneNotIfCscope->SetValue(options->GetHideOutputPaneNotIfCscope());
m_checkBoxHideOutputPaneNotIfGit->SetValue(options->GetHideOutputPaneNotIfGit());
m_checkBoxHideOutputPaneNotIfDebug->SetValue(options->GetHideOutputPaneNotIfDebug());
m_checkBoxHideOutputPaneNotIfMemCheck->SetValue(options->GetHideOutputPaneNotIfMemCheck());
m_checkBoxFindBarAtBottom->SetValue(options->GetFindBarAtBottom());
m_checkBoxShowReplaceBar->SetValue(options->GetShowReplaceBar());
m_checkBoxDontFoldSearchResults->SetValue(options->GetDontAutoFoldResults());
m_checkBoxShowDebugOnRun->SetValue(options->GetShowDebugOnRun());
m_radioBoxHint->SetSelection(options->GetDockingStyle());
m_checkBoxHideCaptions->SetValue(!options->IsShowDockingWindowCaption());
m_checkBoxEnsureCaptionsVisible->SetValue(options->IsEnsureCaptionsVisible());
int tabStyle(0); // Glossy
m_startingFlags = OptionsConfig::TabGlossy;
if(options->GetOptions() & OptionsConfig::TabCurved) {
tabStyle = 1;
m_startingFlags = OptionsConfig::TabCurved;
}
m_endFlags = m_startingFlags;
m_radioBoxTabControlStyle->SetSelection(tabStyle);
#if CL_USE_NATIVEBOOK
m_radioBoxTabControlStyle->Enable(false);
#endif
m_checkBoxHideOutputPaneNotIfDebug->Connect(
wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(EditorSettingsDockingWindows::OnHideOutputPaneNotIfDebugUI),
NULL,
this);
}
示例3: EditorSettingsDockingWindowsBase
EditorSettingsDockingWindows::EditorSettingsDockingWindows(wxWindow* parent)
: EditorSettingsDockingWindowsBase(parent)
{
OptionsConfigPtr options = EditorConfigST::Get()->GetOptions();
m_checkBoxHideOutputPaneOnClick->SetValue(options->GetHideOutpuPaneOnUserClick());
m_checkBoxHideOutputPaneNotIfBuild->SetValue(options->GetHideOutputPaneNotIfBuild());
m_checkBoxHideOutputPaneNotIfSearch->SetValue(options->GetHideOutputPaneNotIfSearch());
m_checkBoxHideOutputPaneNotIfReplace->SetValue(options->GetHideOutputPaneNotIfReplace());
m_checkBoxHideOutputPaneNotIfReferences->SetValue(options->GetHideOutputPaneNotIfReferences());
m_checkBoxHideOutputPaneNotIfOutput->SetValue(options->GetHideOutputPaneNotIfOutput());
m_checkBoxHideOutputPaneNotIfTrace->SetValue(options->GetHideOutputPaneNotIfTrace());
m_checkBoxHideOutputPaneNotIfTasks->SetValue(options->GetHideOutputPaneNotIfTasks());
m_checkBoxHideOutputPaneNotIfBuildQ->SetValue(options->GetHideOutputPaneNotIfBuildQ());
m_checkBoxHideOutputPaneNotIfCppCheck->SetValue(options->GetHideOutputPaneNotIfCppCheck());
m_checkBoxHideOutputPaneNotIfSvn->SetValue(options->GetHideOutputPaneNotIfSvn());
m_checkBoxHideOutputPaneNotIfCscope->SetValue(options->GetHideOutputPaneNotIfCscope());
m_checkBoxHideOutputPaneNotIfGit->SetValue(options->GetHideOutputPaneNotIfGit());
m_checkBoxHideOutputPaneNotIfDebug->SetValue(options->GetHideOutputPaneNotIfDebug());
m_checkBoxHideOutputPaneNotIfMemCheck->SetValue(options->GetHideOutputPaneNotIfMemCheck());
m_checkBoxFindBarAtBottom->SetValue(options->GetFindBarAtBottom());
m_checkBoxShowReplaceBar->SetValue(options->GetShowReplaceBar());
m_checkBoxDontFoldSearchResults->SetValue(options->GetDontAutoFoldResults());
m_checkBoxShowDebugOnRun->SetValue(options->GetShowDebugOnRun());
m_radioBoxHint->SetSelection(options->GetDockingStyle());
m_checkBoxHideCaptions->SetValue(!options->IsShowDockingWindowCaption());
m_checkBoxEnsureCaptionsVisible->SetValue(options->IsEnsureCaptionsVisible());
m_checkBoxEditorTabsFollowsTheme->SetValue(options->IsTabColourMatchesTheme());
m_checkBoxShowXButton->SetValue(options->IsTabHasXButton());
m_checkBoxPanesTabsAtBottom->SetValue(!options->IsNonEditorTabsAtTop());
m_checkBoxHideOutputPaneNotIfDebug->Connect(
wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(EditorSettingsDockingWindows::OnHideOutputPaneNotIfDebugUI),
NULL,
this);
}
示例4: EditorSettingsDockingWindowsBase
EditorSettingsDockingWindows::EditorSettingsDockingWindows(wxWindow* parent)
: EditorSettingsDockingWindowsBase(parent)
{
OptionsConfigPtr options = EditorConfigST::Get()->GetOptions();
m_checkBoxHideOutputPaneOnClick->SetValue(options->GetHideOutpuPaneOnUserClick());
m_checkBoxHideOutputPaneNotIfBuild->SetValue(options->GetHideOutputPaneNotIfBuild());
m_checkBoxHideOutputPaneNotIfSearch->SetValue(options->GetHideOutputPaneNotIfSearch());
m_checkBoxHideOutputPaneNotIfReplace->SetValue(options->GetHideOutputPaneNotIfReplace());
m_checkBoxHideOutputPaneNotIfReferences->SetValue(options->GetHideOutputPaneNotIfReferences());
m_checkBoxHideOutputPaneNotIfOutput->SetValue(options->GetHideOutputPaneNotIfOutput());
m_checkBoxHideOutputPaneNotIfTrace->SetValue(options->GetHideOutputPaneNotIfTrace());
m_checkBoxHideOutputPaneNotIfTasks->SetValue(options->GetHideOutputPaneNotIfTasks());
m_checkBoxHideOutputPaneNotIfBuildQ->SetValue(options->GetHideOutputPaneNotIfBuildQ());
m_checkBoxHideOutputPaneNotIfCppCheck->SetValue(options->GetHideOutputPaneNotIfCppCheck());
m_checkBoxHideOutputPaneNotIfSvn->SetValue(options->GetHideOutputPaneNotIfSvn());
m_checkBoxHideOutputPaneNotIfCscope->SetValue(options->GetHideOutputPaneNotIfCscope());
m_checkBoxHideOutputPaneNotIfGit->SetValue(options->GetHideOutputPaneNotIfGit());
m_checkBoxHideOutputPaneNotIfDebug->SetValue(options->GetHideOutputPaneNotIfDebug());
m_checkBoxHideOutputPaneNotIfMemCheck->SetValue(options->GetHideOutputPaneNotIfMemCheck());
m_checkBoxFindBarAtBottom->SetValue(options->GetFindBarAtBottom());
m_checkBoxShowReplaceBar->SetValue(options->GetShowReplaceBar());
m_checkBoxDontFoldSearchResults->SetValue(options->GetDontAutoFoldResults());
m_checkBoxShowDebugOnRun->SetValue(options->GetShowDebugOnRun());
m_radioBoxHint->SetSelection(options->GetDockingStyle());
m_checkBoxHideCaptions->SetValue(!options->IsShowDockingWindowCaption());
m_checkBoxEnsureCaptionsVisible->SetValue(options->IsEnsureCaptionsVisible());
m_checkBoxEditorTabsFollowsTheme->SetValue(options->IsTabColourMatchesTheme());
m_checkBoxShowXButton->SetValue(options->IsTabHasXButton());
#ifdef __WXOSX__
{
wxArrayString tabOptionsArr;
tabOptionsArr.Add(wxT("TOP"));
tabOptionsArr.Add(wxT("BOTTOM"));
m_choiceWorkspaceTabsOrientation->Clear();
m_choiceWorkspaceTabsOrientation->Append(tabOptionsArr);
}
#endif
switch(options->GetOutputTabsDirection()) {
case wxTOP:
m_choiceOutputTabsOrientation->SetSelection(0);
break;
case wxBOTTOM:
m_choiceOutputTabsOrientation->SetSelection(1);
break;
default:
break;
}
#ifdef __WXOSX__
// On OSX we dont support left-right (due to blurred images)
switch(options->GetWorkspaceTabsDirection()) {
case wxLEFT:
case wxTOP:
m_choiceWorkspaceTabsOrientation->SetSelection(0);
break;
case wxRIGHT:
case wxBOTTOM:
m_choiceWorkspaceTabsOrientation->SetSelection(1);
break;
default:
break;
}
#else
switch(options->GetWorkspaceTabsDirection()) {
case wxLEFT:
m_choiceWorkspaceTabsOrientation->SetSelection(0);
break;
case wxRIGHT:
m_choiceWorkspaceTabsOrientation->SetSelection(1);
break;
case wxTOP:
m_choiceWorkspaceTabsOrientation->SetSelection(2);
break;
case wxBOTTOM:
m_choiceWorkspaceTabsOrientation->SetSelection(3);
break;
default:
break;
}
#endif
m_checkBoxHideOutputPaneNotIfDebug->Connect(wxEVT_UPDATE_UI,
wxUpdateUIEventHandler(EditorSettingsDockingWindows::OnHideOutputPaneNotIfDebugUI), NULL, this);
}