Code::Blocks  SVN r11506
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
globals.h File Reference
#include <vector>
#include <wx/string.h>
#include <wx/treectrl.h>
#include <wx/file.h>
#include <wx/filename.h>
#include <wx/intl.h>
#include <wx/msgdlg.h>
#include <wx/bitmap.h>
#include "settings.h"
Include dependency graph for globals.h:

Go to the source code of this file.

Classes

class  cbProjectTreeImages
 

Namespaces

 platform
 

Macros

#define HL_AUTO   _T(" ")
 
#define HL_NONE   _T(" ")
 

Typedefs

typedef wxString HighlightLanguage
 
typedef std::vector< wxStringwxStringVec
 

Enumerations

enum  PluginType {
  ptNone = 1, ptTool, ptMime, ptCompiler,
  ptDebugger, ptCodeCompletion, ptWizard, ptSmartIndent,
  ptOther
}
 Known plugin types. More...
 
enum  ModuleType {
  mtProjectManager = 1, mtEditorManager, mtLogManager, mtOpenFilesList,
  mtEditorTab, mtUnknown
}
 The type of module offering a context menu. More...
 
enum  FileType {
  ftCodeBlocksProject = 0, ftCodeBlocksWorkspace, ftDevCppProject, ftMSVC6Project,
  ftMSVC7Project, ftMSVC10Project, ftMSVC6Workspace, ftMSVC7Workspace,
  ftXcode1Project, ftXcode2Project, ftSource, ftHeader,
  ftTemplateSource, ftObject, ftXRCResource, ftResource,
  ftResourceBin, ftStaticLib, ftDynamicLib, ftExecutable,
  ftNative, ftXMLDocument, ftScript, ftOther
}
 Known file types. More...
 
enum  FileVisualState {
  fvsNormal = 0, fvsMissing, fvsModified, fvsReadOnly,
  fvsVcAdded, fvsVcConflict, fvsVcMissing, fvsVcModified,
  fvsVcOutOfDate, fvsVcUpToDate, fvsVcRequiresLock, fvsVcExternal,
  fvsVcGotLock, fvsVcLockStolen, fvsVcMismatch, fvsVcNonControlled,
  fvsWorkspace, fvsWorkspaceReadOnly, fvsProject, fvsProjectReadOnly,
  fvsFolder, fvsVirtualFolder, fvsLast
}
 These are valid values for the state of each project file. More...
 
enum  ProjectTreeVisualState {
  ptvsNone = 0x00, ptvsCategorize = 0x01, ptvsUseFolders = 0x02, ptvsHideFolderName = 0x04,
  ptvsDefault = 0x03
}
 These are valid values for the visual style of the project tree. More...
 
enum  TemplateOutputType {
  totProject = 0, totTarget, totFiles, totCustom,
  totUser
}
 Template output types. More...
 
enum  SupportedPlatforms { spMac = 0x01, spUnix = 0x02, spWindows = 0x04, spAll = 0xff }
 Supported platforms. More...
 
enum  SettingsIconsStyle { sisLargeIcons = 0, sisNoIcons = 1 }
 Icons styles for settings dialogs. More...
 
enum  cbPlaceDialogMode {
  pdlDont = 0, pdlBest, pdlCentre, pdlHead,
  pdlConstrain, pdlClip
}
 
enum  DirAccessCheck { dacInvalidDir, dacReadWrite, dacReadOnly }
 Result values of cbDirAccessCheck() More...
 
enum  platform::windows_version_t {
  platform::winver_NotWindows = 0, platform::winver_UnknownWindows, platform::winver_Windows9598ME, platform::winver_WindowsNT2000,
  platform::winver_WindowsXP, platform::winver_WindowsServer2003, platform::winver_WindowsVista, platform::winver_Windows7
}
 

Functions

DLLIMPORT bool cbRead (wxFile &file, wxString &st, wxFontEncoding encoding=wxFONTENCODING_SYSTEM)
 Reads a wxString from a non-unicode file. File must be open. File is closed automatically. More...
 
DLLIMPORT wxString cbReadFileContents (wxFile &file, wxFontEncoding encoding=wxFONTENCODING_SYSTEM)
 Reads a wxString from a non-unicode file. File must be open. File is closed automatically. More...
 
DLLIMPORT bool cbWrite (wxFile &file, const wxString &buff, wxFontEncoding encoding=wxFONTENCODING_SYSTEM)
 Writes a wxString to a non-unicode file. File must be open. File is closed automatically. More...
 
DLLIMPORT bool cbSaveToFile (const wxString &filename, const wxString &contents, wxFontEncoding encoding=wxFONTENCODING_SYSTEM, bool bom=false)
 Writes a wxString to a file. More...
 
DLLIMPORT bool cbSaveTinyXMLDocument (TiXmlDocument *doc, const wxString &filename)
 Saves a TinyXML document correctly, even if the path contains unicode characters. More...
 
DLLIMPORT wxString cbC2U (const char *str)
 Return str as a proper unicode-compatible string. More...
 
DLLIMPORT const wxWX2MBbuf cbU2C (const wxString &str)
 Return multibyte (C string) representation of the string. More...
 
DLLIMPORT 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. More...
 
DLLIMPORT int GetPlatformsFromString (const wxString &platforms)
 Return an integer representation of a platform string. More...
 
DLLIMPORT wxString GetStringFromPlatforms (int platforms, bool forceSeparate=false)
 Return a string representation of a platform / multiple platforms. More...
 
DLLIMPORT wxString GetStringFromArray (const wxArrayString &array, const wxString &separator=DEFAULT_ARRAY_SEP, bool SeparatorAtEnd=true)
 
DLLIMPORT wxArrayString GetArrayFromString (const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
 
DLLIMPORT wxStringVec GetVectorFromString (const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
 
DLLIMPORT wxArrayString MakeUniqueArray (const wxArrayString &array, bool caseSens)
 
DLLIMPORT wxString MakeUniqueString (const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool caseSens=true)
 
DLLIMPORT void AppendArray (const wxArrayString &from, wxArrayString &to)
 
DLLIMPORT wxString UnixFilename (const wxString &filename, wxPathFormat format=wxPATH_NATIVE)
 
DLLIMPORT void QuoteStringIfNeeded (wxString &str)
 
DLLIMPORT bool NeedQuotes (const wxString &str)
 
DLLIMPORT wxString EscapeSpaces (const wxString &str)
 Escapes spaces and tabs (NOT quoting the string) More...
 
DLLIMPORT FileType FileTypeOf (const wxString &filename)
 
DLLIMPORT wxString cbFindFileInPATH (const wxString &filename)
 
DLLIMPORT void SaveTreeState (wxTreeCtrl *tree, const wxTreeItemId &parent, wxArrayString &nodePaths, wxArrayString &selectedItemPaths)
 
DLLIMPORT void RestoreTreeState (wxTreeCtrl *tree, const wxTreeItemId &parent, wxArrayString &nodePaths, wxArrayString &selectedItemPaths)
 
DLLIMPORT bool CreateDirRecursively (const wxString &full_path, int perms=0755)
 
DLLIMPORT bool CreateDir (const wxString &full_path, int perms=0755)
 
DLLIMPORT wxString ChooseDirectory (wxWindow *parent, const wxString &message=_("Select directory"), const wxString &initialPath=_T(""), const wxString &basePath=_T(""), bool askToMakeRelative=false, bool showCreateDirButton=false)
 
DLLIMPORT bool NormalizePath (wxFileName &f, const wxString &base)
 
DLLIMPORT bool IsSuffixOfPath (wxFileName const &suffix, wxFileName const &path)
 
DLLIMPORT 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...
 
DLLIMPORT wxString cbResolveSymLinkedDirPathRecursive (wxString dirpath)
 Call cbResolveSymLinkedPath until the path is not a symlink. More...
 
DLLIMPORT wxString GetEOLStr (int eolMode=-1)
 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...
 
DLLIMPORT wxString URLEncode (const wxString &str)
 
DLLIMPORT wxString ExpandBackticks (wxString &str)
 
DLLIMPORT wxMenuCopyMenu (wxMenu *mnu, bool with_accelerators=false)
 This function creates a new wxMenu object on the heap and recursively copies a given menu into it. More...
 
DLLIMPORT bool UsesCommonControls6 ()
 Check if CommonControls version is at least 6 (XP and up) More...
 
DLLIMPORT wxBitmap cbLoadBitmap (const wxString &filename, wxBitmapType bitmapType=wxBITMAP_TYPE_PNG)
 This function loads a bitmap from disk. More...
 
wxBitmap LoadPNGWindows2000Hack (const wxString &filename)
 
DLLIMPORT bool IsWindowReallyShown (wxWindow *win)
 Finds out if a window is really shown. More...
 
DLLIMPORT void SetSettingsIconsStyle (wxListCtrl *lc, SettingsIconsStyle style)
 Set the icons style for the supplied list control. More...
 
DLLIMPORT SettingsIconsStyle GetSettingsIconsStyle (wxListCtrl *lc)
 Get the icons style set in environment-dialog. More...
 
DLLIMPORT SettingsIconsStyle GetSettingsIconsStyle ()
 Get the icons style set in environment-dialog. More...
 
DLLIMPORT void PlaceWindow (wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
 
DLLIMPORT wxRect cbGetMonitorRectForWindow (wxWindow *window)
 
DLLIMPORT int cbMessageBox (const wxString &message, const wxString &caption=wxEmptyString, int style=wxOK, wxWindow *parent=NULL, int x=-1, int y=-1)
 wxMessageBox wrapper. More...
 
DLLIMPORT int cbGetSingleChoiceIndex (const wxString &message, const wxString &caption, const wxArrayString &choices, wxWindow *parent=NULL, const wxSize &size=wxSize(300, 300), int initialSelection=0)
 
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())
 wxMultiChoiceDialog wrapper. More...
 
DLLIMPORT wxString cbGetTextFromUser (const wxString &message, const wxString &caption=cbGetTextFromUserPromptStr, const wxString &default_value=wxEmptyString, wxWindow *parent=NULL, int x=wxDefaultCoord, int y=wxDefaultCoord, bool centre=true)
 
void NotifyMissingFile (const wxString &name)
 
DLLIMPORT DirAccessCheck cbDirAccessCheck (const wxString &dir)
 Check what access the current user has in a directory. More...
 
DLLIMPORT windows_version_t platform::WindowsVersion ()
 
DLLIMPORT wxString realpath (const wxString &path)
 

Variables

DLLIMPORT const wxString DEFAULT_WORKSPACE
 
DLLIMPORT const wxString DEFAULT_ARRAY_SEP
 
DLLIMPORT const wxString DEFAULT_CONSOLE_TERM
 
DLLIMPORT const wxString DEFAULT_CONSOLE_SHELL
 
DLLIMPORT const wxString cbDEFAULT_OPEN_FOLDER_CMD
 
DLLIMPORT const char * cbGetTextFromUserPromptStr
 

Macro Definition Documentation

◆ HL_AUTO

#define HL_AUTO   _T(" ")

◆ HL_NONE

#define HL_NONE   _T(" ")

Typedef Documentation

◆ HighlightLanguage

Definition at line 165 of file globals.h.

◆ wxStringVec

typedef std::vector<wxString> wxStringVec

Definition at line 205 of file globals.h.

Enumeration Type Documentation

◆ cbPlaceDialogMode

Enumerator
pdlDont 
pdlBest 
pdlCentre 
pdlHead 
pdlConstrain 
pdlClip 

Definition at line 322 of file globals.h.

◆ DirAccessCheck

Result values of cbDirAccessCheck()

Enumerator
dacInvalidDir 

Invalid directory (does not exist).

dacReadWrite 

Current user has read-write access to the directory.

dacReadOnly 

Current user has read-only access to the directory.

Definition at line 378 of file globals.h.

◆ FileType

enum FileType

Known file types.

Enumerator
ftCodeBlocksProject 
ftCodeBlocksWorkspace 
ftDevCppProject 
ftMSVC6Project 
ftMSVC7Project 
ftMSVC10Project 
ftMSVC6Workspace 
ftMSVC7Workspace 
ftXcode1Project 
ftXcode2Project 
ftSource 
ftHeader 
ftTemplateSource 
ftObject 
ftXRCResource 
ftResource 
ftResourceBin 
ftStaticLib 
ftDynamicLib 
ftExecutable 
ftNative 
ftXMLDocument 
ftScript 
ftOther 

Definition at line 49 of file globals.h.

◆ FileVisualState

These are valid values for the state of each project file.

If a value is casted to integer, it corresponds to the tree's imagelist index for the state. NOTE: Keep in sync with icons loaded in ProjectManager::BuildTree()!

Enumerator
fvsNormal 
fvsMissing 
fvsModified 
fvsReadOnly 
fvsVcAdded 
fvsVcConflict 
fvsVcMissing 
fvsVcModified 
fvsVcOutOfDate 
fvsVcUpToDate 
fvsVcRequiresLock 
fvsVcExternal 
fvsVcGotLock 
fvsVcLockStolen 
fvsVcMismatch 
fvsVcNonControlled 
fvsWorkspace 
fvsWorkspaceReadOnly 
fvsProject 
fvsProjectReadOnly 
fvsFolder 
fvsVirtualFolder 
fvsLast 

do not use this, it exists just to know the number of items...

Definition at line 81 of file globals.h.

◆ ModuleType

enum ModuleType

The type of module offering a context menu.

Enumerator
mtProjectManager 
mtEditorManager 
mtLogManager 
mtOpenFilesList 
mtEditorTab 
mtUnknown 

Definition at line 38 of file globals.h.

◆ PluginType

enum PluginType

Known plugin types.

Enumerator
ptNone 
ptTool 
ptMime 
ptCompiler 
ptDebugger 
ptCodeCompletion 
ptWizard 
ptSmartIndent 
ptOther 

Definition at line 24 of file globals.h.

◆ ProjectTreeVisualState

These are valid values for the visual style of the project tree.

They can be OR'ed to modify the representation of the project tree.

Enumerator
ptvsNone 

The default style: All "off".

ptvsCategorize 

If true, use virtual folders like "Sources", "Headers", etc.

ptvsUseFolders 

If true, create folders as needed. If false, the list is flat (not compatible with "hie folder name")

ptvsHideFolderName 

If true, the folder name will be hidden and only the file name will be shown (not compatible with "use folders")

ptvsDefault 

Just here for convenience, "categorise" + "use folders" ON.

Definition at line 135 of file globals.h.

◆ SettingsIconsStyle

Icons styles for settings dialogs.

Enumerator
sisLargeIcons 

Large icons (default)

sisNoIcons 

No icons, just text.

Definition at line 297 of file globals.h.

◆ SupportedPlatforms

Supported platforms.

Enumerator
spMac 
spUnix 
spWindows 
spAll 

Definition at line 155 of file globals.h.

◆ TemplateOutputType

Template output types.

Enumerator
totProject 

template outputs a new project

totTarget 

template adds a new target in a project

totFiles 

template outputs a new file (or files)

totCustom 

template produces custom output (entirely up to the wizard used)

totUser 

template is a user-saved project template

Definition at line 145 of file globals.h.

Function Documentation

◆ AppendArray()

DLLIMPORT void AppendArray ( const wxArrayString from,
wxArrayString to 
)

◆ cbC2U()

DLLIMPORT 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()

DLLIMPORT 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()

DLLIMPORT wxString cbFindFileInPATH ( const wxString filename)

◆ cbGetMonitorRectForWindow()

DLLIMPORT 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 = NULL,
const wxSize size = wxSize(300, 300),
int  initialSelection = 0 
)

◆ cbGetTextFromUser()

DLLIMPORT wxString cbGetTextFromUser ( const wxString message,
const wxString caption = cbGetTextFromUserPromptStr,
const wxString default_value = wxEmptyString,
wxWindow parent = NULL,
int  x = wxDefaultCoord,
int  y = wxDefaultCoord,
bool  centre = true 
)

◆ cbLoadBitmap()

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

◆ cbMessageBox()

DLLIMPORT 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()

DLLIMPORT bool cbRead ( wxFile file,
wxString st,
wxFontEncoding  encoding = wxFONTENCODING_SYSTEM 
)

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()

DLLIMPORT wxString cbReadFileContents ( wxFile file,
wxFontEncoding  encoding = wxFONTENCODING_SYSTEM 
)

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()

DLLIMPORT 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()

DLLIMPORT 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()

DLLIMPORT 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()

DLLIMPORT 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()

DLLIMPORT const wxWX2MBbuf cbU2C ( const wxString str)

◆ cbWrite()

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

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()

DLLIMPORT wxString ChooseDirectory ( wxWindow parent,
const wxString message = _("Select directory"),
const wxString initialPath = _T(""),
const wxString basePath = _T(""),
bool  askToMakeRelative = false,
bool  showCreateDirButton = false 
)

◆ CopyMenu()

DLLIMPORT 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()

DLLIMPORT bool CreateDir ( const wxString full_path,
int  perms = 0755 
)

Definition at line 631 of file globals.cpp.

References wxDirExists(), and wxMkdir().

Referenced by ConfigManager::InitPaths().

◆ CreateDirRecursively()

DLLIMPORT bool CreateDirRecursively ( const wxString full_path,
int  perms = 0755 
)

◆ DetectEncodingAndConvert()

DLLIMPORT 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().

◆ EscapeSpaces()

DLLIMPORT 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()

DLLIMPORT wxString ExpandBackticks ( wxString str)

◆ FileTypeOf()

DLLIMPORT 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()

DLLIMPORT wxArrayString GetArrayFromString ( const wxString text,
const wxString separator = DEFAULT_ARRAY_SEP,
bool  trimSpaces = true 
)

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()

DLLIMPORT wxString GetEOLStr ( int  eolMode = -1)

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()

DLLIMPORT int GetPlatformsFromString ( const wxString platforms)

◆ GetSettingsIconsStyle() [1/2]

DLLIMPORT SettingsIconsStyle GetSettingsIconsStyle ( wxListCtrl lc)

Get the icons style set in environment-dialog.

This version is left for backwardscompatibility.

Returns
The icons style.

◆ GetSettingsIconsStyle() [2/2]

DLLIMPORT 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()

DLLIMPORT wxString GetStringFromArray ( const wxArrayString array,
const wxString separator = DEFAULT_ARRAY_SEP,
bool  SeparatorAtEnd = true 
)

◆ GetStringFromPlatforms()

DLLIMPORT wxString GetStringFromPlatforms ( int  platforms,
bool  forceSeparate = false 
)

◆ GetVectorFromString()

DLLIMPORT wxStringVec GetVectorFromString ( const wxString text,
const wxString separator = DEFAULT_ARRAY_SEP,
bool  trimSpaces = true 
)

◆ IsSuffixOfPath()

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

◆ IsWindowReallyShown()

DLLIMPORT bool IsWindowReallyShown ( wxWindow win)

◆ LoadPNGWindows2000Hack()

wxBitmap LoadPNGWindows2000Hack ( const wxString filename)
inline

Definition at line 281 of file globals.h.

References cbLoadBitmap(), DLLIMPORT, and IsWindowReallyShown().

◆ MakeUniqueArray()

DLLIMPORT wxArrayString MakeUniqueArray ( const wxArrayString array,
bool  caseSens 
)

◆ MakeUniqueString()

DLLIMPORT wxString MakeUniqueString ( const wxString text,
const wxString separator = DEFAULT_ARRAY_SEP,
bool  caseSens = true 
)

◆ NeedQuotes()

DLLIMPORT 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()

DLLIMPORT bool NormalizePath ( wxFileName f,
const wxString base 
)

◆ NotifyMissingFile()

void NotifyMissingFile ( const wxString name)
inline

◆ PlaceWindow()

DLLIMPORT void PlaceWindow ( wxTopLevelWindow w,
cbPlaceDialogMode  mode = pdlBest,
bool  enforce = false 
)

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()

DLLIMPORT void QuoteStringIfNeeded ( wxString str)

◆ realpath()

DLLIMPORT wxString realpath ( const wxString path)

◆ RestoreTreeState()

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

◆ SaveTreeState()

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

◆ SetSettingsIconsStyle()

DLLIMPORT void SetSettingsIconsStyle ( wxListCtrl lc,
SettingsIconsStyle  style 
)

◆ UnixFilename()

DLLIMPORT wxString UnixFilename ( const wxString filename,
wxPathFormat  format = wxPATH_NATIVE 
)

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()

DLLIMPORT wxString URLEncode ( const wxString str)

◆ UsesCommonControls6()

DLLIMPORT 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

DLLIMPORT const wxString cbDEFAULT_OPEN_FOLDER_CMD

◆ cbGetTextFromUserPromptStr

DLLIMPORT const char* cbGetTextFromUserPromptStr

Definition at line 1460 of file globals.cpp.

◆ DEFAULT_ARRAY_SEP

DLLIMPORT const wxString DEFAULT_ARRAY_SEP

◆ DEFAULT_CONSOLE_SHELL

DLLIMPORT const wxString DEFAULT_CONSOLE_SHELL

◆ DEFAULT_CONSOLE_TERM

DLLIMPORT const wxString DEFAULT_CONSOLE_TERM

◆ DEFAULT_WORKSPACE

DLLIMPORT const wxString DEFAULT_WORKSPACE