Code::Blocks  SVN r11506
Namespaces | Typedefs | Functions | Variables
globals.cpp File Reference
#include "sdk_precomp.h"
#include <tinyxml.h>
#include <wx/dirdlg.h>
#include <wx/display.h>
#include <wx/filefn.h>
#include <wx/fontmap.h>
#include <wx/msgdlg.h>
#include <wx/tokenzr.h>
#include <algorithm>
#include <string>
#include "filefilters.h"
#include "tinywxuni.h"
#include "filegroupsandmasks.h"
#include <windows.h>
#include <shlwapi.h>
Include dependency graph for globals.cpp:

Go to the source code of this file.

Namespaces

 platform
 

Typedefs

typedef std::map< wxString, wxStringBackticksMap
 Adds support for backtick'd expressions under Windows. More...
 

Functions

int GetPlatformsFromString (const wxString &platforms)
 Return an integer representation of a platform string. More...
 
wxString GetStringFromPlatforms (int platforms, bool forceSeparate)
 Return a string representation of a platform / multiple platforms. More...
 
wxString GetStringFromArray (const wxArrayString &array, const wxString &separator, bool SeparatorAtEnd)
 
wxArrayString GetArrayFromString (const wxString &text, const wxString &separator, bool trimSpaces)
 
wxStringVec GetVectorFromString (const wxString &text, const wxString &separator, bool trimSpaces)
 
wxArrayString MakeUniqueArray (const wxArrayString &array, bool caseSens)
 
wxString MakeUniqueString (const wxString &text, const wxString &separator, bool caseSens)
 
void AppendArray (const wxArrayString &from, wxArrayString &to)
 
wxString UnixFilename (const wxString &filename, wxPathFormat format)
 
void QuoteStringIfNeeded (wxString &str)
 
bool NeedQuotes (const wxString &str)
 
wxString EscapeSpaces (const wxString &str)
 Escapes spaces and tabs (NOT quoting the string) More...
 
FileType FileTypeOf (const wxString &filename)
 
wxString cbFindFileInPATH (const wxString &filename)
 
void DoRememberSelectedNodes (wxTreeCtrl *tree, wxArrayString &selectedItemPaths)
 
void DoSelectRememberedNode (wxTreeCtrl *tree, const wxTreeItemId &parent, wxString &selectedItemPath)
 
bool DoRememberExpandedNodes (wxTreeCtrl *tree, const wxTreeItemId &parent, wxArrayString &nodePaths, wxString &path)
 
void DoExpandRememberedNode (wxTreeCtrl *tree, const wxTreeItemId &parent, const wxString &path)
 
void SaveTreeState (wxTreeCtrl *tree, const wxTreeItemId &parent, wxArrayString &nodePaths, wxArrayString &selectedItemPaths)
 
void RestoreTreeState (wxTreeCtrl *tree, const wxTreeItemId &parent, wxArrayString &nodePaths, wxArrayString &selectedItemPaths)
 
bool CreateDirRecursively (const wxString &full_path, int perms)
 
bool CreateDir (const wxString &full_path, int perms)
 
wxString ChooseDirectory (wxWindow *parent, const wxString &message, const wxString &initialPath, const wxString &basePath, bool askToMakeRelative, bool showCreateDirButton)
 
bool cbRead (wxFile &file, wxString &st, wxFontEncoding encoding)
 Reads a wxString from a non-unicode file. File must be open. File is closed automatically. More...
 
wxString cbReadFileContents (wxFile &file, wxFontEncoding encoding)
 Reads a wxString from a non-unicode file. File must be open. File is closed automatically. More...
 
bool cbWrite (wxFile &file, const wxString &buff, wxFontEncoding encoding)
 Writes a wxString to a non-unicode file. File must be open. File is closed automatically. More...
 
bool cbSaveToFile (const wxString &filename, const wxString &contents, wxFontEncoding encoding, bool bom)
 Writes a wxString to a file. More...
 
bool cbSaveTinyXMLDocument (TiXmlDocument *doc, const wxString &filename)
 Saves a TinyXML document correctly, even if the path contains unicode characters. More...
 
wxString cbC2U (const char *str)
 Return str as a proper unicode-compatible string. More...
 
const wxWX2MBbuf cbU2C (const wxString &str)
 Return multibyte (C string) representation of the string. More...
 
wxFontEncoding DetectEncodingAndConvert (const char *strIn, wxString &strOut, wxFontEncoding possibleEncoding)
 Try converting a C-string from different encodings until a possible match is found. More...
 
wxString GetEOLStr (int eolMode)
 Reads settings if eolMode is -1 Expected input (defined in sdk/wxscintilla/include/wx/wxscintilla.h) is: wxSCI_EOL_CRLF=0, wxSCI_EOL_CR=1, or wxSCI_EOL_LF=2. More...
 
wxString URLEncode (const wxString &str)
 
wxString ExpandBackticks (wxString &str)
 
wxMenuCopyMenu (wxMenu *mnu, bool with_accelerators)
 This function creates a new wxMenu object on the heap and recursively copies a given menu into it. More...
 
bool IsWindowReallyShown (wxWindow *win)
 Finds out if a window is really shown. More...
 
bool NormalizePath (wxFileName &f, const wxString &base)
 
bool IsSuffixOfPath (wxFileName const &suffix, wxFileName const &path)
 
bool cbResolveSymLinkedDirPath (wxString &dirpath)
 If path is pointing to a symlink then the function will set dirpath parameter to the path the symlink points to. More...
 
wxString cbResolveSymLinkedDirPathRecursive (wxString dirpath)
 Call cbResolveSymLinkedPath until the path is not a symlink. More...
 
bool UsesCommonControls6 ()
 Check if CommonControls version is at least 6 (XP and up) More...
 
wxBitmap cbLoadBitmap (const wxString &filename, wxBitmapType bitmapType)
 This function loads a bitmap from disk. More...
 
void SetSettingsIconsStyle (wxListCtrl *lc, SettingsIconsStyle style)
 Set the icons style for the supplied list control. More...
 
SettingsIconsStyle GetSettingsIconsStyle (cb_unused wxListCtrl *lc)
 
SettingsIconsStyle GetSettingsIconsStyle ()
 Get the icons style set in environment-dialog. More...
 
wxRect cbGetMonitorRectForWindow (wxWindow *window)
 
void PlaceWindow (wxTopLevelWindow *w, cbPlaceDialogMode mode, bool enforce)
 
DirAccessCheck cbDirAccessCheck (const wxString &dir)
 Check what access the current user has in a directory. More...
 
windows_version_t platform::cb_get_os ()
 
DLLIMPORT windows_version_t platform::WindowsVersion ()
 
wxString realpath (const wxString &path)
 
int cbMessageBox (const wxString &message, const wxString &caption, int style, wxWindow *parent, int x, int y)
 wxMessageBox wrapper. More...
 
DLLIMPORT int cbGetSingleChoiceIndex (const wxString &message, const wxString &caption, const wxArrayString &choices, wxWindow *parent, const wxSize &size, int initialSelection)
 
DLLIMPORT wxArrayInt cbGetMultiChoiceDialog (const wxString &message, const wxString &caption, const wxArrayString &choices, wxWindow *parent, const wxSize &size, const wxArrayInt &initialSelection)
 wxMultiChoiceDialog wrapper. More...
 
wxString cbGetTextFromUser (const wxString &message, const wxString &caption, const wxString &defaultValue, wxWindow *parent, wxCoord x, wxCoord y, bool centre)
 

Variables

const wxString DEFAULT_WORKSPACE = _T("default.workspace")
 
const wxString DEFAULT_ARRAY_SEP = _T(";")
 
const wxString DEFAULT_CONSOLE_TERM = _T("xterm -T $TITLE -e")
 
const wxString DEFAULT_CONSOLE_SHELL = _T("/bin/sh -c")
 
const wxString cbDEFAULT_OPEN_FOLDER_CMD = _T("explorer.exe /select,")
 
BackticksMap m_Backticks
 
const char * cbGetTextFromUserPromptStr = wxGetTextFromUserPromptStr
 

Typedef Documentation

◆ BackticksMap

typedef std::map<wxString, wxString> BackticksMap

Adds support for backtick'd expressions under Windows.

Definition at line 859 of file globals.cpp.

Function Documentation

◆ AppendArray()

void AppendArray ( const wxArrayString from,
wxArrayString to 
)

◆ cbC2U()

wxString cbC2U ( const char *  str)

Return str as a proper unicode-compatible string.

Definition at line 733 of file globals.cpp.

Referenced by CfgMgrBldr::Build(), ProjectManagerUI::BuildProjectTree(), cbProject::CalculateCommonTopLevelPath(), ScriptBindings::ScriptPluginWrapper::CreateMenu(), ScriptBindings::ScriptPluginWrapper::CreateModuleMenu(), ConfigManager::Delete(), ConfigManager::DeleteAll(), ConfigManager::DeleteSubPath(), ProjectLoader::DoBuild(), ProjectLoader::DoBuildTarget(), ProjectLoader::DoBuildTargetOptions(), ProjectLoader::DoCompilerOptions(), ProjectLoader::DoEnvironment(), ProjectLoader::DoExtraCommands(), ProjectTemplateLoader::DoFileSet(), ProjectTemplateLoader::DoFileSetFile(), ProjectLoader::DoIncludesOptions(), ProjectLoader::DoLibsOptions(), ProjectLoader::DoLinkerOptions(), ProjectLoader::DoMakeCommands(), ProjectTemplateLoader::DoOption(), ProjectTemplateLoader::DoOptionCompiler(), ProjectTemplateLoader::DoOptionLinker(), ProjectTemplateLoader::DoOptionProject(), ProjectLoader::DoProjectOptions(), ProjectLoader::DoResourceCompilerOptions(), ProjectTemplateLoader::DoTemplate(), ProjectTemplateLoader::DoTemplateNotice(), ProjectLoader::DoUnitOptions(), ProjectLoader::DoUnits(), ProjectLoader::DoVirtualTargets(), ConfigManager::EnumerateKeys(), ConfigManager::EnumerateSubPaths(), ScriptBindings::ScriptPluginWrapper::ExecutePlugin(), ScriptingManager::GetErrorString(), ConfigManager::GetPath(), handleConfigError(), ConfigManager::InvalidNameMessage(), EditorLexerLoader::Load(), ScriptingManager::LoadBuffer(), WorkspaceLoader::LoadLayout(), CodeBlocksApp::OnInit(), DebuggerGDB::OnProjectLoadingHook(), NativeParser::OnProjectLoadingHook(), CodeBlocksApp::OnRun(), ScriptBindings::ScriptPluginWrapper::OnScriptMenu(), ScriptBindings::ScriptPluginWrapper::OnScriptModuleMenu(), WorkspaceLoader::Open(), ProjectLayoutLoader::Open(), PrintSquirrelToWxString(), ConfigManager::Read(), ConfigManager::ReadBinary(), PluginManager::ReadExtraFilesFromManifestFile(), PluginManager::ReadManifestFile(), realpath(), ScriptBindings::Register_ScriptPlugin(), EncodingDetector::Report(), ScriptConsolePrintFunc(), StartHerePage::StartHerePage(), ScriptBindings::static_(), ScriptBindings::static_T(), CfgMgrBldr::SwitchToR(), ConfigManager::Write(), ScriptBindings::wxString_AddChar(), ScriptBindings::wxString_OpAdd(), ScriptBindings::wxString_OpCmp(), ScriptBindings::XrcId(), and BlockAllocator< T, pool_size, debug >::~BlockAllocator().

◆ cbDirAccessCheck()

DirAccessCheck cbDirAccessCheck ( const wxString dir)

Check what access the current user has in a directory.

Parameters
dirThe directory in question. It may or may not contain an ending path separator.
Returns
The type of access the current user has in the directory.

Definition at line 1271 of file globals.cpp.

References _T, wxFileName::CreateTempFileName(), dacInvalidDir, dacReadOnly, dacReadWrite, wxString::IsEmpty(), wxString::Last(), wxDirExists(), and wxRemoveFile().

Referenced by PluginsConfigurationDlg::PluginsConfigurationDlg().

◆ cbFindFileInPATH()

wxString cbFindFileInPATH ( const wxString filename)

◆ cbGetMonitorRectForWindow()

wxRect cbGetMonitorRectForWindow ( wxWindow window)
Returns
The client area of the display the window is currently positioned at.

Definition at line 1153 of file globals.cpp.

References wxDisplay::GetClientArea(), wxDisplay::GetCount(), wxDisplay::GetFromWindow(), wxDisplay::GetGeometry(), wxRect::Intersect(), wxDisplaySize(), and wxNOT_FOUND.

Referenced by GotoFile::BuildContent(), and PlaceWindow().

◆ cbGetMultiChoiceDialog()

DLLIMPORT wxArrayInt cbGetMultiChoiceDialog ( const wxString message,
const wxString caption,
const wxArrayString choices,
wxWindow parent = nullptr,
const wxSize size = wxSize(300, 300),
const wxArrayInt initialSelection = wxArrayInt() 
)

◆ cbGetSingleChoiceIndex()

DLLIMPORT int cbGetSingleChoiceIndex ( const wxString message,
const wxString caption,
const wxArrayString choices,
wxWindow parent,
const wxSize size,
int  initialSelection 
)

◆ cbGetTextFromUser()

wxString cbGetTextFromUser ( const wxString message,
const wxString caption,
const wxString defaultValue,
wxWindow parent,
wxCoord  x,
wxCoord  y,
bool  centre 
)

◆ cbLoadBitmap()

wxBitmap cbLoadBitmap ( const wxString filename,
wxBitmapType  bitmapType = wxBITMAP_TYPE_PNG 
)

◆ cbMessageBox()

int cbMessageBox ( const wxString message,
const wxString caption = wxEmptyString,
int  style = wxOK,
wxWindow parent = NULL,
int  x = -1,
int  y = -1 
)

wxMessageBox wrapper.

Use this instead of wxMessageBox(), as this uses PlaceWindow() to show it in the correct monitor.

Note
The return value for wxOK would be wxID_OK and so on for other buttons. So, read wxMessageDialog 's documentation, not wxMessageBox 's...

Definition at line 1395 of file globals.cpp.

References Manager::Get(), Manager::GetAppWindow(), PlaceWindow(), wxMessageDialog::ShowModal(), wxCANCEL, wxID_CANCEL, wxID_NO, wxID_OK, wxID_YES, wxMessageBox(), wxNO, wxOK, and wxYES.

Referenced by EditorConfigurationDlg::AskToSaveTheme(), CompilerICC::AutoDetectInstallationDir(), ProjectManager::BeginLoadingProject(), ScriptBindings::CallMenu(), cbConfigurationPanel::cbMessageBox(), cbWriteBatchBuildPlugins(), EditorManager::CheckForExternallyModifiedFiles(), ProjectManagerUI::CheckForExternallyModifiedProjects(), ChooseDirectory(), ProjectLoader::ConvertVersion_Pre_1_1(), Wiz::CopyFiles(), ScriptBindings::ScriptPluginWrapper::CreateMenu(), ScriptBindings::ScriptPluginWrapper::CreateModuleMenu(), DebuggerSettingsDlg::DeleteConfig(), ConfigManager::DeleteSubPath(), ScriptingManager::DisplayErrors(), dlgAbout::dlgAbout(), CodeCompletion::DoAllMethodsImpl(), DebuggerGDB::DoBreak(), ProjectOptionsDlg::DoCheckScripts(), DebuggerGDB::DoDebug(), ProjectManagerUI::DoOpenFile(), MainFrame::DoOpenProject(), NewFromTemplateDlg::EditScript(), ProjectManager::EndLoadingWorkspace(), BatchLogWindow::EndModal(), ScriptBindings::EndModal(), cbDebuggerPlugin::EnsureBuildUpToDate(), ToolsManager::Execute(), ScriptBindings::ScriptPluginWrapper::ExecutePlugin(), PluginManager::ExportPlugin(), PluginManager::ExtractFile(), FindReplace::Find(), FindReplace::FindInFiles(), Wiz::GenerateFile(), CompilerGCC::GetBuildTargetForFile(), cbDebuggerPlugin::GetDebuggee(), CodeRefactoring::GetSymbolUnderCursor(), DirectCommands::GetTargetLinkCommands(), ScriptBindings::gMessage(), ScriptBindings::gShowMessage(), ScriptBindings::gShowMessageError(), ScriptBindings::gShowMessageInfo(), ScriptBindings::gShowMessageWarn(), CompilerCommandGenerator::Init(), CodeBlocksApp::InitXRCStuff(), ScriptBindings::InstallPlugin(), PluginManager::InstallPlugin(), ScriptingManager::IsScriptTrusted(), Wiz::Launch(), cbWorkspace::Load(), EditorColourSet::Load(), PluginManager::LoadAllPlugins(), ScriptingManager::LoadBuffer(), Compiler::LoadDefaultOptions(), Compiler::LoadSettings(), ConfigManager::MigrateFolders(), ProjectManager::NewProject(), TemplateManager::NewProjectFromUserTemplate(), NotifyMissingFile(), ProjectOptionsDlg::OnAddBuildTargetClick(), VirtualBuildTargetsDlg::OnAddClick(), MainFrame::OnApplicationClose(), Wiz::OnAttach(), CodeBlocksApp::OnBatchBuildDone(), EditPathDlg::OnBrowse(), DebuggerSettingsPanel::OnButtonCreate(), DebuggerSettingsPanel::OnButtonReset(), ProjectOptionsDlg::OnCheckScripts(), EditorConfigurationDlg::OnColoursReset(), EditorConfigurationDlg::OnColourTheme(), ProjectOptionsDlg::OnCopyBuildTargetClick(), CompilerPanel::OnDebugChange(), ProjectsFileMasksDlg::OnDelete(), EditArrayStringDlg::OnDelete(), EditArrayFileDlg::OnDelete(), EditorConfigurationDlg::OnDeleteColourTheme(), AdvancedCompilerOptionsDlg::OnDelExt(), NewFromTemplateDlg::OnDiscardScript(), ProjectOptionsDlg::OnEditBuildTargetClick(), VirtualBuildTargetsDlg::OnEditClick(), NewFromTemplateDlg::OnEditGlobalScript(), PluginsConfigurationDlg::OnExport(), ProjectOptionsDlg::OnExportTargetClick(), CodeBlocksApp::OnFatalException(), MainFrame::OnFileNewWhat(), MainFrame::OnFileOpenDefWorkspace(), MainFrame::OnFileSave(), DebuggerGDB::OnGDBTerminated(), CodeCompletion::OnGotoDeclaration(), CodeCompletion::OnGotoFunction(), NewFromTemplateDlg::OnHelp(), CodeBlocksApp::OnInit(), PluginsConfigurationDlg::OnInstall(), ProjectOptionsDlg::OnOK(), ProjectManagerUI::OnOpenFolderFiles(), CodeCompletion::OnOpenIncludeFile(), WizFilePathPanel::OnPageChanging(), WizProjectPathPanel::OnPageChanging(), WizGenericSelectPathPanel::OnPageChanging(), WizCompilerPanel::OnPageChanging(), WizBuildTargetPanel::OnPageChanging(), cbDebuggerPlugin::OnProjectActivated(), AdvancedCompilerOptionsDlg::OnRegexDefaults(), AdvancedCompilerOptionsDlg::OnRegexDelete(), AdvancedCompilerOptionsDlg::OnRegexTest(), CompilerPanel::OnReleaseChange(), ConfigureToolsDlg::OnRemove(), ProjectOptionsDlg::OnRemoveBuildTargetClick(), VirtualBuildTargetsDlg::OnRemoveClick(), ProjectManagerUI::OnRemoveFileFromProject(), ProjectManagerUI::OnRenameFile(), BacktraceDlg::OnSave(), DisassemblyDlg::OnSave(), CCDebugInfo::OnSave(), ScriptBindings::ScriptPluginWrapper::OnScriptMenu(), ScriptingManager::OnScriptMenu(), ScriptBindings::ScriptPluginWrapper::OnScriptModuleMenu(), ClassBrowser::OnSearch(), MainFrame::OnSettingsEnvironment(), BacktraceDlg::OnSwitchFrame(), ToolsManager::OnToolClick(), PluginsConfigurationDlg::OnUninstall(), ScriptingSettingsDlg::OnValidateTrusts(), CodeCompletion::OnViewClassBrowser(), MainFrame::OnViewLayoutDelete(), ClassBrowser::OnViewScope(), MultiSelectDlg::OnWildcard(), WorkspaceLoader::Open(), cbProject::Open(), MainFrame::OpenGeneric(), CodeRefactoring::Parse(), GdbCmd_AddBreakpointCondition::ParseOutput(), cbEditor::Print(), EditorBase::QueryClose(), ProjectManagerUI::QueryCloseProject(), ProjectManagerUI::QueryCloseWorkspace(), ScriptBindings::Register_ScriptPlugin(), ProjectManager::RemoveFileFromProject(), FindReplace::Replace(), FindReplace::ReplaceInFiles(), NativeParser::RereadParserOptions(), CompilerGCC::Run(), Wiz::RunCustomWizard(), Wiz::RunFilesWizard(), Wiz::RunProjectWizard(), CompilerGCC::RunSingleFile(), Wiz::RunTargetWizard(), cbWorkspace::Save(), UsrGlblMgrEditDialog::Save(), cbEditor::Save(), cbProject::Save(), EditorManager::SaveAll(), cbProject::SaveAs(), CCDebugInfoHelper::SaveCCDebugInfo(), ProjectDepsDlg::SaveList(), TemplateManager::SaveUserTemplate(), ConfigManager::SetUserDataFolder(), VirtualBuildTargetsDlg::SetVirtualTarget(), ScriptBindings::ShowDialog(), cbException::ShowErrorMessage(), FindReplace::ShowFindDialog(), CompilerGCC::StopRunningDebugger(), EditorManager::SwapActiveHeaderSource(), CfgMgrBldr::SwitchTo(), PluginManager::UninstallPlugin(), pfDetails::Update(), ProjectOptionsDlg::ValidateTargetName(), FileManager::WriteWxStringToFile(), and ScriptBindings::XrcId().

◆ cbRead()

bool cbRead ( wxFile file,
wxString st,
wxFontEncoding  encoding 
)

Reads a wxString from a non-unicode file. File must be open. File is closed automatically.

Definition at line 668 of file globals.cpp.

References wxFile::Close(), DetectEncodingAndConvert(), wxString::Empty(), wxFile::IsOpened(), wxFile::Length(), and wxFile::Read().

Referenced by cbReadFileContents(), and Tokenizer::ReadFile().

◆ cbReadFileContents()

wxString cbReadFileContents ( wxFile file,
wxFontEncoding  encoding 
)

Reads a wxString from a non-unicode file. File must be open. File is closed automatically.

Definition at line 697 of file globals.cpp.

References cbRead().

Referenced by wxCrc32::FromFile(), ScriptingManager::LoadScript(), ScriptBindings::IOLib::ReadFileContents(), and FindReplace::ReplaceInFiles().

◆ cbResolveSymLinkedDirPath()

bool cbResolveSymLinkedDirPath ( wxString dirpath)

If path is pointing to a symlink then the function will set dirpath parameter to the path the symlink points to.

Note
Does nothing on Windows.
Should be used only for paths pointing to directories.
Returns
true when the symlink is resolved correctly, else false.

Definition at line 1001 of file globals.cpp.

References wxFileName::DirName(), wxString::empty(), wxFileName::GetFullPath(), wxFileName::IsAbsolute(), wxString::Last(), wxString::length(), wxFileName::MakeAbsolute(), wxString::mb_str(), wxString::RemoveLast(), wxFileName::RemoveLastDir(), and wxT.

Referenced by cbResolveSymLinkedDirPathRecursive().

◆ cbResolveSymLinkedDirPathRecursive()

wxString cbResolveSymLinkedDirPathRecursive ( wxString  dirpath)

Call cbResolveSymLinkedPath until the path is not a symlink.

Note
Does nothing on Windows.
Should be used only for paths pointing to directories.
Returns
The resolved path or the same path if not a symlink.

Definition at line 1054 of file globals.cpp.

References cbResolveSymLinkedDirPath().

Referenced by HeaderDirTraverser::OnDir().

◆ cbSaveTinyXMLDocument()

bool cbSaveTinyXMLDocument ( TiXmlDocument *  doc,
const wxString filename 
)

Saves a TinyXML document correctly, even if the path contains unicode characters.

Definition at line 727 of file globals.cpp.

References TinyXML::SaveDocument().

Referenced by ProjectLoader::ExportTargetAsProject(), WorkspaceLoader::Save(), ProjectLayoutLoader::Save(), and WorkspaceLoader::SaveLayout().

◆ cbSaveToFile()

bool cbSaveToFile ( const wxString filename,
const wxString contents,
wxFontEncoding  encoding = wxFONTENCODING_SYSTEM,
bool  bom = false 
)

Writes a wxString to a file.

Takes care of unicode and uses a temporary file to save first and then it copies it over the original.

Definition at line 721 of file globals.cpp.

References Manager::Get(), Manager::GetFileManager(), and FileManager::Save().

Referenced by CrashHandlerSaveEditorFiles(), DisassemblyDlg::OnSave(), and cbEditor::Save().

◆ cbU2C()

const wxWX2MBbuf cbU2C ( const wxString str)

◆ cbWrite()

bool cbWrite ( wxFile file,
const wxString buff,
wxFontEncoding  encoding 
)

Writes a wxString to a non-unicode file. File must be open. File is closed automatically.

Definition at line 705 of file globals.cpp.

References wxFile::Close(), wxFile::Flush(), wxFile::IsOpened(), and wxFile::Write().

Referenced by Wiz::GenerateFile(), and ScriptBindings::IOLib::WriteFileContents().

◆ ChooseDirectory()

wxString ChooseDirectory ( wxWindow parent,
const wxString message,
const wxString initialPath,
const wxString basePath,
bool  askToMakeRelative,
bool  showCreateDirButton 
)

◆ CopyMenu()

wxMenu* CopyMenu ( wxMenu mnu,
bool  with_accelerators = false 
)

This function creates a new wxMenu object on the heap and recursively copies a given menu into it.

It's up to the user to make sure the returned menu is deleted.

Parameters
mnuThe menu to copy
with_acceleratorsIf true, also copies the accelerators (defaults to false).
Returns
The copied menu or a nullptr, if the menu to copy was empty or NULL

Definition at line 911 of file globals.cpp.

References wxMenu::Append(), wxMenu::FindItemByPosition(), wxMenuItem::GetHelp(), wxMenuItem::GetId(), wxMenuItem::GetItemLabel(), wxMenuItem::GetItemLabelText(), wxMenuItem::GetKind(), wxMenu::GetMenuItemCount(), and wxMenuItem::GetSubMenu().

Referenced by MainFrame::OnFileNew().

◆ CreateDir()

bool CreateDir ( const wxString full_path,
int  perms 
)

Definition at line 631 of file globals.cpp.

References wxDirExists(), and wxMkdir().

Referenced by ConfigManager::InitPaths().

◆ CreateDirRecursively()

bool CreateDirRecursively ( const wxString full_path,
int  perms 
)

◆ DetectEncodingAndConvert()

wxFontEncoding DetectEncodingAndConvert ( const char *  strIn,
wxString strOut,
wxFontEncoding  possibleEncoding = wxFONTENCODING_SYSTEM 
)

Try converting a C-string from different encodings until a possible match is found.

This tries the following encoding converters (in the same order): utf8, system, default and iso8859-1 to iso8859-15. Returns the final encoding detected.

Definition at line 754 of file globals.cpp.

References wxString::Clear(), wxString::Length(), wxFONTENCODING_ISO8859_MAX, wxFONTENCODING_SYSTEM, wxFONTENCODING_UTF16, wxFONTENCODING_UTF16BE, wxFONTENCODING_UTF16LE, wxFONTENCODING_UTF32, wxFONTENCODING_UTF32BE, wxFONTENCODING_UTF32LE, and wxFONTENCODING_UTF8.

Referenced by cbRead().

◆ DoExpandRememberedNode()

void DoExpandRememberedNode ( wxTreeCtrl tree,
const wxTreeItemId parent,
const wxString path 
)

◆ DoRememberExpandedNodes()

bool DoRememberExpandedNodes ( wxTreeCtrl tree,
const wxTreeItemId parent,
wxArrayString nodePaths,
wxString path 
)

◆ DoRememberSelectedNodes()

void DoRememberSelectedNodes ( wxTreeCtrl tree,
wxArrayString selectedItemPaths 
)

◆ DoSelectRememberedNode()

void DoSelectRememberedNode ( wxTreeCtrl tree,
const wxTreeItemId parent,
wxString selectedItemPath 
)

◆ EscapeSpaces()

wxString EscapeSpaces ( const wxString str)

Escapes spaces and tabs (NOT quoting the string)

Definition at line 273 of file globals.cpp.

References _T, wxString::IsEmpty(), and wxString::Replace().

Referenced by ScriptBindings::Register_Globals(), and CompilerGCC::Run().

◆ ExpandBackticks()

wxString ExpandBackticks ( wxString str)

◆ FileTypeOf()

FileType FileTypeOf ( const wxString filename)

Definition at line 285 of file globals.cpp.

References _T, wxString::AfterLast(), FileFilters::ASM_EXT, FileFilters::C_EXT, FileFilters::CC_EXT, FileFilters::CODEBLOCKS_EXT, FileFilters::CPLPL_EXT, FileFilters::CPP_EXT, FileFilters::CXX_EXT, FileFilters::D_EXT, FileFilters::DEVCPP_EXT, FileFilters::DYNAMICLIB_EXT, FileFilters::EXECUTABLE_EXT, FileFilters::F03_EXT, FileFilters::F08_EXT, FileFilters::F77_EXT, FileFilters::F90_EXT, FileFilters::F95_EXT, FileFilters::F_EXT, FileFilters::FOR_EXT, FileFilters::FPP_EXT, ftCodeBlocksProject, ftCodeBlocksWorkspace, ftDevCppProject, ftDynamicLib, ftExecutable, ftHeader, ftMSVC10Project, ftMSVC6Project, ftMSVC6Workspace, ftMSVC7Project, ftMSVC7Workspace, ftNative, ftObject, ftOther, ftResource, ftResourceBin, ftScript, ftSource, ftStaticLib, ftTemplateSource, ftXcode1Project, ftXcode2Project, ftXMLDocument, ftXRCResource, FileFilters::H_EXT, FileFilters::HH_EXT, FileFilters::HPLPL_EXT, FileFilters::HPP_EXT, FileFilters::HXX_EXT, FileFilters::INL_EXT, wxString::IsSameAs(), FileFilters::JAVA_EXT, wxString::Lower(), FileFilters::MSVC10_EXT, FileFilters::MSVC6_EXT, FileFilters::MSVC6_WORKSPACE_EXT, FileFilters::MSVC7_EXT, FileFilters::MSVC7_WORKSPACE_EXT, FileFilters::NATIVE_EXT, FileFilters::OBJECT_EXT, FileFilters::RESOURCE_EXT, FileFilters::RESOURCEBIN_EXT, FileFilters::S62_EXT, FileFilters::S_EXT, FileFilters::SCRIPT_EXT, FileFilters::SS_EXT, FileFilters::STATICLIB_EXT, FileFilters::TCC_EXT, FileFilters::TPP_EXT, FileFilters::WORKSPACE_EXT, FileFilters::XCODE1_EXT, FileFilters::XCODE2_EXT, FileFilters::XML_EXT, and FileFilters::XRCRESOURCE_EXT.

Referenced by cbProject::AddFile(), NativeParser::AddProjectToParser(), CompilerGCC::BuildModuleMenu(), CodeCompletion::DoAllMethodsImpl(), CodeCompletion::DoClassMethodDeclImpl(), CodeCompletion::DoCodeComplete(), CodeCompletion::DoCodeCompleteIncludes(), CodeCompletion::DoCodeCompletePreprocessor(), ProjectManagerUI::DoOpenFile(), ProjectLoader::ExportTargetAsProject(), EditorManager::FindHeaderSource(), Wiz::GenerateFile(), DirectCommands::GetCleanSingleFileCommand(), DirectCommands::GetCompileFileCommand(), DirectCommands::GetCompileSingleFileCommand(), DirectCommands::GetTargetLinkCommands(), EditorManager::IsHeaderSource(), cbWorkspace::Load(), ProjectManager::LoadProject(), EditorManager::New(), TemplateManager::NewProjectFromUserTemplate(), MainFrame::OnDropFiles(), cbProject::Open(), MainFrame::OpenGeneric(), CodeBlocksApp::ParseCmdLine(), ScriptBindings::Register_Globals(), Parser::ReparseModifiedFiles(), cbProject::SetCompilerID(), ProjectFile::SetObjName(), CompilerMINGWGenerator::SetupIncludeDirs(), EditorManager::SwapActiveHeaderSource(), cbDebuggerPlugin::SyncEditor(), pfDetails::Update(), ProjectFileOptionsDlg::UpdateBuildCommand(), and ProjectFile::UpdateFileDetails().

◆ GetArrayFromString()

wxArrayString GetArrayFromString ( const wxString text,
const wxString separator,
bool  trimSpaces 
)

Definition at line 134 of file globals.cpp.

References wxArrayString::Add(), wxString::Find(), wxString::IsEmpty(), wxString::Left(), wxString::Length(), wxString::Remove(), and wxString::Trim().

Referenced by Wiz::AddGenericSingleChoiceListPage(), Wiz::AppendContainerWithChoices(), Wiz::AppendContainerWithSelectCompilers(), DirectCommands::AreExternalDepsOutdated(), CompilerXML::AutoDetectInstallationDir(), CompilerGNUFortran::AutoDetectInstallationDir(), CompilerMSVC10::AutoDetectInstallationDir(), CompilerMSVC8::AutoDetectInstallationDir(), CompilerG95::AutoDetectInstallationDir(), CompilerMINGW::AutoDetectInstallationDir(), cbFindFileInPATH(), EditorManager::CollectDefines(), ProjectLoader::DoEnvironment(), EditorLexerLoader::DoLangAttributesLexerStyles(), ProjectLoader::DoProjectOptions(), EditorLexerLoader::DoStyles(), ProjectLoader::DoVirtualTargets(), Compiler::EvalXMLCondition(), ExternalDepsDlg::FillAdditional(), Wizard::FillCompilerControl(), Wiz::FillContainerWithChoices(), Wiz::FillContainerWithSelectCompilers(), ExternalDepsDlg::FillExternal(), FindReplace::FindInFiles(), CompilerCommandGenerator::GenerateCommandLine(), FileFilters::GetFilterIndexFromName(), FileFilters::GetFilterNameFromIndex(), FileFilters::GetFilterString(), EditorColourSet::Load(), Compiler::LoadRegExArray(), Compiler::LoadSettings(), MakeUniqueString(), CompilerOptionsDlg::OnAddLibClick(), ProjectOptionsDlg::OnAddScript(), EditorConfigurationDlg::OnEditKeywords(), CompilerOptionsDlg::OnOptionChanged(), ProjectOptionsDlg::OnPlatform(), ParseCDBWatchValue(), CDB_driver::ParseOutput(), GDB_driver::ParseOutput(), CdbCmd_GetPID::ParseOutput(), CdbCmd_AttachToProcess::ParseOutput(), CdbCmd_AddBreakpoint::ParseOutput(), GdbCmd_AttachToProcess::ParseOutput(), GdbCmd_Detach::ParseOutput(), CdbCmd_Backtrace::ParseOutput(), CdbCmd_SwitchFrame::ParseOutput(), CdbCmd_InfoRegisters::ParseOutput(), CdbCmd_Disassembly::ParseOutput(), CdbCmd_DisassemblyInit::ParseOutput(), GdbCmd_Start::ParseOutput(), GdbCmd_Threads::ParseOutput(), GdbCmd_Backtrace::ParseOutput(), GdbCmd_InfoRegisters::ParseOutput(), GdbCmd_Disassembly::ParseOutput(), GdbCmd_DisassemblyInit::ParseOutput(), GdbCmd_ExamineMemory::ParseOutput(), GdbCmd_FindCursor::ParseOutput(), GdbCmd_InfoRegisters::ParseOutputFromOR32gdbPort(), GDB_driver::Prepare(), ScriptBindings::Register_Globals(), FindReplace::ReplaceInFiles(), Wiz::RunProjectWizard(), AdvancedCompilerOptionsDlg::SaveCommands(), cbAuiNotebook::SavePerspective(), MultiSelectDlg::SelectWildCard(), FilesGroupsAndMasks::SetFileMasks(), and EditorColourSet::SetFileMasks().

◆ GetEOLStr()

wxString GetEOLStr ( int  eolMode)

Reads settings if eolMode is -1 Expected input (defined in sdk/wxscintilla/include/wx/wxscintilla.h) is: wxSCI_EOL_CRLF=0, wxSCI_EOL_CR=1, or wxSCI_EOL_LF=2.

Definition at line 812 of file globals.cpp.

References Manager::Get(), Manager::GetConfigManager(), ConfigManager::ReadInt(), wxSCI_EOL_CR, wxSCI_EOL_CRLF, wxSCI_EOL_LF, and wxT.

Referenced by cbEditorInternalData::EnsureFinalLineEnd(), Wiz::GenerateFile(), InsertNewLine(), CodeCompletion::MatchCodeStyle(), and MainFrame::OnEditBoxCommentSelected().

◆ GetPlatformsFromString()

int GetPlatformsFromString ( const wxString platforms)

◆ GetSettingsIconsStyle() [1/2]

SettingsIconsStyle GetSettingsIconsStyle ( cb_unused wxListCtrl lc)

Definition at line 1143 of file globals.cpp.

◆ GetSettingsIconsStyle() [2/2]

SettingsIconsStyle GetSettingsIconsStyle ( )

Get the icons style set in environment-dialog.

Returns
The icons style.

Definition at line 1148 of file globals.cpp.

References _T, and Manager::Get().

◆ GetStringFromArray()

wxString GetStringFromArray ( const wxArrayString array,
const wxString separator,
bool  SeparatorAtEnd 
)

◆ GetStringFromPlatforms()

wxString GetStringFromPlatforms ( int  platforms,
bool  forceSeparate 
)

◆ GetVectorFromString()

wxStringVec GetVectorFromString ( const wxString text,
const wxString separator,
bool  trimSpaces 
)

◆ IsSuffixOfPath()

bool IsSuffixOfPath ( wxFileName const &  suffix,
wxFileName const &  path 
)

◆ IsWindowReallyShown()

bool IsWindowReallyShown ( wxWindow win)

◆ MakeUniqueArray()

wxArrayString MakeUniqueArray ( const wxArrayString array,
bool  caseSens 
)

◆ MakeUniqueString()

wxString MakeUniqueString ( const wxString text,
const wxString separator,
bool  caseSens 
)

◆ NeedQuotes()

bool NeedQuotes ( const wxString str)

Definition at line 266 of file globals.cpp.

References _T, wxString::Find(), wxString::GetChar(), and wxString::IsEmpty().

Referenced by QuoteString(), and QuoteStringIfNeeded().

◆ NormalizePath()

bool NormalizePath ( wxFileName f,
const wxString base 
)

◆ PlaceWindow()

void PlaceWindow ( wxTopLevelWindow w,
cbPlaceDialogMode  mode,
bool  enforce 
)

Definition at line 1177 of file globals.cpp.

References _T, cbGetMonitorRectForWindow(), cbThrow, Manager::Get(), Manager::GetAppWindow(), wxRect::GetBottom(), Manager::GetConfigManager(), wxRect::GetRight(), wxRect::height, pdlBest, pdlCentre, pdlClip, pdlConstrain, pdlHead, ConfigManager::ReadBool(), ConfigManager::ReadInt(), wxRect::width, wxSIZE_ALLOW_MINUS_ONE, wxRect::x, and wxRect::y.

Referenced by DebuggerGDB::AddDataBreakpoint(), UserVariableManager::Arrogate(), ProjectManagerUI::AskForMultiBuildTargetIndex(), RecentItemsList::AskToRemoveFileFromHistory(), CodeBlocksApp::BatchJob(), cbGetMultiChoiceDialog(), cbGetSingleChoiceIndex(), cbGetTextFromUser(), cbMessageBox(), EditorManager::CheckForExternallyModifiedFiles(), ProjectManagerUI::CheckForExternallyModifiedProjects(), ChooseDirectory(), ScriptBindings::IOLib::ChooseFile(), UsrGlblMgrEditDialog::CloneSet(), UsrGlblMgrEditDialog::CloneVar(), UserVariableManager::Configure(), ToolsManager::Configure(), CompilerGCC::Configure(), PluginManager::Configure(), ProjectManagerUI::ConfigureProjectDependencies(), DebuggerSettingsDlg::DeleteConfig(), UsrGlblMgrEditDialog::DeleteSet(), UsrGlblMgrEditDialog::DeleteVar(), CodeCompletion::DoClassMethodDeclImpl(), ConfigureToolsDlg::DoEditTool(), MainFrame::DoOnFileOpen(), FindReplace::FindInFiles(), CfgMgrBldr::Flush(), CodeBlocksApp::InitAssociations(), CompilerFactory::LoadSettings(), TemplateManager::New(), UsrGlblMgrEditDialog::NewSet(), UsrGlblMgrEditDialog::NewVar(), EditArrayFileDlg::OnAdd(), CCOptionsProjectDlg::OnAdd(), DebuggerOptionsProjectDlg::OnAdd(), EditorConfigurationDlg::OnAddColourTheme(), CompilerOptionsDlg::OnAddDirClick(), CompilerOptionsDlg::OnAddExtraPathClick(), ProjectManagerUI::OnAddFilesToProjectRecursively(), ProjectManagerUI::OnAddFileToProject(), CompilerOptionsDlg::OnAddLibClick(), ProjectOptionsDlg::OnAddScript(), CompilerOptionsDlg::OnAddVarClick(), CompilerOptionsDlg::OnAdvancedClick(), EditPairDlg::OnBrowse(), EditPathDlg::OnBrowse(), DebuggerConfigurationPanel::OnBrowse(), ScriptingSettingsDlg::OnBrowse(), ProjectOptionsDlg::OnBrowseDefinitionFileFilenameClick(), ProjectOptionsDlg::OnBrowseImportLibraryFilenameClick(), ProjectOptionsDlg::OnBrowseOutputFilenameClick(), FilePathPanel::OnbtnBrowseClick(), ProjectOptionsDlg::OnBuildOrderClick(), DebuggerSettingsPanel::OnButtonCreate(), EditorConfigurationDlg::OnChooseColour(), EnvironmentSettingsDlg::OnChooseColour(), CCOptionsDlg::OnChooseColour(), DebuggerSettingsCommonPanel::OnChooseFontClick(), cbEditor::OnContextMenuEntry(), EditArrayFileDlg::OnEdit(), CCOptionsProjectDlg::OnEdit(), DebuggerOptionsProjectDlg::OnEdit(), ProjectOptionsDlg::OnEditDepsClick(), CompilerOptionsDlg::OnEditDirClick(), CompilerOptionsDlg::OnEditExtraPathClick(), EditorConfigurationDlg::OnEditKeywords(), CompilerOptionsDlg::OnEditLibClick(), CompilerOptionsDlg::OnEditVarClick(), MainFrame::OnFilePrint(), ProjectManagerUI::OnFindFile(), CompilerOptionsDlg::OnFlagsPopup(), ProjectManagerUI::OnGotoFile(), CodeCompletion::OnGotoFunction(), EnvironmentSettingsDlg::OnHeadCheck(), MainFrame::OnHelpAbout(), MainFrame::OnHelpPluginMenu(), SelectTargetDlg::OnHostApplicationButtonClick(), EnvironmentSettingsDlg::OnManageAssocs(), CodeCompletion::OnOpenIncludeFile(), ProjectManagerUI::OnProperties(), EditorManager::OnProperties(), ProjectManagerUI::OnRemoveFileFromProject(), EditorConfigurationDlg::OnRenameColourTheme(), ProjectManagerUI::OnRenameFile(), BacktraceDlg::OnSave(), DisassemblyDlg::OnSave(), CompilerOptionsDlg::OnSelectProgramClick(), MainFrame::OnSettingsCompiler(), MainFrame::OnSettingsDebugger(), MainFrame::OnSettingsEditor(), MainFrame::OnSettingsEnvironment(), ProjectManagerUI::OnViewFileMasks(), UserVariableManager::Replace(), FindReplace::ReplaceInFiles(), cbWorkspace::SaveAs(), cbEditor::SaveAs(), cbProject::SaveAs(), CCDebugInfoHelper::SaveCCDebugInfo(), TemplateManager::SaveUserTemplate(), CodeRefactoring::SearchInFiles(), CompilerFactory::SelectCompilerUI(), cbProject::SelectTarget(), FindReplace::ShowFindDialog(), AnnoyingDialog::ShowModal(), cbProject::ShowNotes(), MainFrame::ShowOpenFileDialog(), ProjectFile::ShowOptions(), DebuggerGDB::UpdateBreakpoint(), EditorConfigurationDlg::UpdateSampleFont(), UsrGlblMgrEditDialog::UsrGlblMgrEditDialog(), and CodeRefactoring::VerifyResult().

◆ QuoteStringIfNeeded()

void QuoteStringIfNeeded ( wxString str)

◆ realpath()

wxString realpath ( const wxString path)

◆ RestoreTreeState()

void RestoreTreeState ( wxTreeCtrl tree,
const wxTreeItemId parent,
wxArrayString nodePaths,
wxArrayString selectedItemPaths 
)

◆ SaveTreeState()

void SaveTreeState ( wxTreeCtrl tree,
const wxTreeItemId parent,
wxArrayString nodePaths,
wxArrayString selectedItemPaths 
)

◆ SetSettingsIconsStyle()

void SetSettingsIconsStyle ( wxListCtrl lc,
SettingsIconsStyle  style 
)

◆ UnixFilename()

wxString UnixFilename ( const wxString filename,
wxPathFormat  format 
)

Definition at line 228 of file globals.cpp.

References _T, wxString::Prepend(), wxString::Replace(), wxString::StartsWith(), wxPATH_NATIVE, wxPATH_UNIX, wxPATH_WIN, and wxT.

Referenced by ProjectLoader::AddArrayOfElements(), CompileOptionsBase::AddBuildScript(), cbProject::AddFile(), CompileOptionsBase::AddIncludeDir(), CompileOptionsBase::AddLibDir(), NativeParser::AddPaths(), CompileOptionsBase::AddResourceIncludeDir(), DirectCommands::AreExternalDepsOutdated(), Compiler::CheckForWarningsAndErrors(), MacrosManager::ClearProjectKeys(), DebuggerGDB::ConvertToGDBFriendly(), ProjectLoader::DoBuildTargetOptions(), ProjectLoader::DoCompilerOptions(), ProjectLoader::DoEnvironment(), ProjectLoader::DoIncludesOptions(), ProjectLoader::DoLibsOptions(), ProjectLoader::DoLinkerOptions(), ProjectLoader::DoProjectOptions(), ProjectLoader::DoResourceCompilerOptions(), ProjectLoader::DoUnitOptions(), ProjectLoader::DoUnits(), ProjectLoader::ExportTargetAsProject(), PluginsConfigurationDlg::FillList(), ParserBase::FindFirstFileInIncludeDirs(), DirectCommands::GetCompileFileCommand(), cbDebuggerPlugin::GetDebuggee(), cbProject::GetFileByFilename(), DirectCommands::GetTargetLinkCommands(), ConfigManager::InitPaths(), PluginManager::InstallPlugin(), EditorManager::IsOpen(), ScriptingManager::LoadBuffer(), ScriptingSettingsDlg::OnBrowse(), CompilerGCC::OnCompileFileRequest(), CompilerGCC::OnJobEnd(), PluginsConfigurationDlg::OnSelect(), WorkspaceLoader::Open(), EditorManager::Open(), GDB_driver::ParseOutput(), PipedProcess::PipedProcess(), cbProject::ProjectFileRenamed(), MacrosManager::RecalcVars(), ScriptBindings::Register_Globals(), CompileOptionsBase::RemoveBuildScript(), cbProject::RemoveFile(), CompileOptionsBase::RemoveIncludeDir(), CompileOptionsBase::RemoveLibDir(), CompileOptionsBase::RemoveResourceIncludeDir(), MacrosManager::ReplaceMacros(), MacrosManager::Reset(), CompilerGCC::Run(), WorkspaceLoader::Save(), WorkspaceLoader::SaveLayout(), CompileOptionsBase::SetBuildScripts(), CompileTargetBase::SetDefinitionFileFilename(), CompileTargetBase::SetDepsOutput(), CompileTargetBase::SetImportLibraryFilename(), CompileOptionsBase::SetIncludeDirs(), CompileOptionsBase::SetLibDirs(), CompileTargetBase::SetObjectOutput(), CompileTargetBase::SetOutputFilename(), cbEditor::SetProjectFile(), CompileOptionsBase::SetResourceIncludeDirs(), EditorBase::SetTitle(), CompilerCommandGenerator::SetupOutputFilenames(), CompileTargetBase::SetWorkingDir(), CompilerGCC::StartCompileFile(), CompileTargetBase::SuggestOutputFilename(), cbDebuggerPlugin::SyncEditor(), and pfDetails::Update().

◆ URLEncode()

wxString URLEncode ( const wxString str)

◆ UsesCommonControls6()

bool UsesCommonControls6 ( )

Check if CommonControls version is at least 6 (XP and up)

Definition at line 1065 of file globals.cpp.

References _T, and LibLoader::LoadLibrary().

Referenced by cbLoadBitmap().

Variable Documentation

◆ cbDEFAULT_OPEN_FOLDER_CMD

const wxString cbDEFAULT_OPEN_FOLDER_CMD = _T("explorer.exe /select,")

◆ cbGetTextFromUserPromptStr

const char* cbGetTextFromUserPromptStr = wxGetTextFromUserPromptStr

Definition at line 1460 of file globals.cpp.

◆ DEFAULT_ARRAY_SEP

const wxString DEFAULT_ARRAY_SEP = _T(";")

◆ DEFAULT_CONSOLE_SHELL

const wxString DEFAULT_CONSOLE_SHELL = _T("/bin/sh -c")

◆ DEFAULT_CONSOLE_TERM

const wxString DEFAULT_CONSOLE_TERM = _T("xterm -T $TITLE -e")

◆ DEFAULT_WORKSPACE

const wxString DEFAULT_WORKSPACE = _T("default.workspace")

◆ m_Backticks

BackticksMap m_Backticks

Definition at line 860 of file globals.cpp.

Referenced by ExpandBackticks().