Code::Blocks
SVN r11506
|
#include <macrosmanager.h>
Public Member Functions | |
void | CreateMenu (wxMenuBar *menuBar) |
void | ReleaseMenu (wxMenuBar *menuBar) |
void | ReplaceMacros (wxString &buffer, ProjectBuildTarget *target=nullptr, bool subrequest=false) |
wxString | ReplaceMacros (const wxString &buffer, ProjectBuildTarget *target=nullptr) |
void | ReplaceEnvVars (wxString &buffer) |
void | RecalcVars (cbProject *project, EditorBase *editor, ProjectBuildTarget *target) |
void | ClearProjectKeys () |
void | Reset () |
Private Member Functions | |
MacrosManager () | |
~MacrosManager () override | |
wxString | EvalCondition (const wxString &cond, const wxString &true_clause, const wxString &false_clause, ProjectBuildTarget *target) |
int | MatchBrace (const wxString &buffer, int index) |
Friends | |
class | Manager |
class | Mgr< MacrosManager > |
Additional Inherited Members | |
Static Public Member Functions inherited from Mgr< MacrosManager > | |
static bool | Valid () |
static MacrosManager * | Get () |
static void | Free () |
Protected Member Functions inherited from Mgr< MacrosManager > | |
Mgr () | |
virtual | ~Mgr () |
Definition at line 23 of file macrosmanager.h.
|
private |
Definition at line 50 of file macrosmanager.cpp.
|
overrideprivate |
Definition at line 55 of file macrosmanager.cpp.
void MacrosManager::ClearProjectKeys | ( | ) |
Definition at line 115 of file macrosmanager.cpp.
References _T, wxString::Clear(), Manager::Get(), cbWorkspace::GetFilename(), wxLocale::GetLanguageName(), Manager::GetProjectManager(), wxLocale::GetSystemEncodingName(), wxLocale::GetSystemLanguage(), cbWorkspace::GetTitle(), ProjectManager::GetWorkspace(), UnixFilename(), and wxEmptyString.
void MacrosManager::CreateMenu | ( | wxMenuBar * | menuBar | ) |
Definition at line 59 of file macrosmanager.cpp.
|
private |
Definition at line 627 of file macrosmanager.cpp.
References _T, wxString::Cmp(), ExpressionConsts::GT, wxString::IsEmpty(), wxString::IsSameAs(), and ExpressionConsts::LT.
|
private |
Definition at line 679 of file macrosmanager.cpp.
References wxString::Length(), and wxT.
void MacrosManager::RecalcVars | ( | cbProject * | project, |
EditorBase * | editor, | ||
ProjectBuildTarget * | target | ||
) |
Definition at line 217 of file macrosmanager.cpp.
References _T, wxString::erase(), wxDateTime::Format(), wxString::Format(), wxStandardPaths::Get(), CompileTargetBase::GetBasePath(), cbProject::GetBuildTarget(), cbProject::GetBuildTargetsCount(), wxScintilla::GetColumn(), cbProject::GetCommonTopLevelPath(), CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), cbEditor::GetControl(), wxScintilla::GetCurrentLine(), wxScintilla::GetCurrentPos(), wxTimeSpan::GetDays(), CompileTargetBase::GetExecutionParameters(), wxFileName::GetExt(), EditorBase::GetFilename(), CompileTargetBase::GetFilename(), cbProject::GetFilesList(), cbProject::GetMakefile(), wxFileName::GetName(), CompileTargetBase::GetObjectOutput(), CompileTargetBase::GetOutputFilename(), wxFileName::GetPath(), wxFileName::GetPathWithSep(), GetSelectedText(), CompileTargetBase::GetTitle(), EditorBase::IsBuiltinEditor(), wxDateTime::Jan, wxDateTime::Now(), wxString::Printf(), QuoteStringIfNeeded(), wxString::Replace(), wxFileName::SetPath(), wxDateTime::Subtract(), UnixFilename(), wxString::Upper(), wxEmptyString, and wxPATH_NATIVE.
Referenced by CompilerGCC::BuildStateManagement(), and ToolsManager::Execute().
void MacrosManager::ReleaseMenu | ( | wxMenuBar * | menuBar | ) |
Definition at line 63 of file macrosmanager.cpp.
|
inline |
Definition at line 32 of file macrosmanager.h.
Referenced by DebuggerGDB::AddSourceDir(), GdbCmd_RemoteTarget::GdbCmd_RemoteTarget(), cbDebuggerPlugin::GetDebuggee(), DebuggerConfiguration::GetDebuggerExecutable(), DebuggerConfiguration::GetUserArguments(), EditPathDlg::OnBrowse(), DebuggerConfigurationPanel::OnBrowse(), CompilerGCC::OnCleanFile(), CompilerGCC::Run(), cbDebuggerPlugin::RunNixConsole(), CompilerGCC::RunSingleFile(), pfDetails::Update(), and DebuggerConfigurationPanel::ValidateExecutablePath().
void MacrosManager::ReplaceMacros | ( | wxString & | buffer, |
ProjectBuildTarget * | target = nullptr , |
||
bool | subrequest = false |
||
) |
Definition at line 446 of file macrosmanager.cpp.
References _T, wxString::append(), wxString::assign(), wxString::compare(), const_COIN, const_RANDOM, wxString::Empty(), wxString::EndsWith(), wxString::find(), wxString::find_first_of(), wxString::Format(), Manager::Get(), cbProject::GetActiveBuildTarget(), EditorManager::GetActiveEditor(), ProjectManager::GetActiveProject(), CompileTargetBase::GetBasePath(), cbProject::GetBuildTarget(), wxString::GetChar(), cbProject::GetCurrentlyCompilingTarget(), Manager::GetEditorManager(), EditorBase::GetFilename(), wxFileName::GetFullPath(), ProjectBuildTarget::GetParentProject(), Manager::GetProjectManager(), Manager::GetScriptingManager(), wxFileName::GetShortPath(), CompileTargetBase::GetTitle(), wxString::IsEmpty(), wxString::Last(), wxString::Len(), wxString::Length(), ScriptingManager::LoadBufferRedirectOutput(), wxFileName::MakeAbsolute(), wxString::Mid(), wxString::npos, wxString::Replace(), wxString::StartsWith(), toNativePath, toUnixPath, toWindowsPath, wxString::Trim(), UnixFilename(), wxString::Upper(), wxString::wx_str(), wxGetEnv(), wxNOT_FOUND, wxPATH_UNIX, wxPATH_WIN, and wxT.
Referenced by NativeParser::AddCompilerPredefinedMacrosGCC(), NativeParser::AddCompilerPredefinedMacrosVC(), cbProject::AddFile(), NativeParser::AddGCCCompilerDirs(), NativeParser::AddIncludeDirsToParser(), NativeParser::AddProjectDefinedMacros(), DirectCommands::AreExternalDepsOutdated(), AutoDetectCompilers::AutoDetectCompilers(), CompilerICC::AutoDetectInstallationDir(), DirectCommands::DepsSearchStart(), CompilerCommandGenerator::DoBuildScripts(), CompilerGCC::DoRunQueue(), ToolsManager::Execute(), CompilerCommandGenerator::GenerateCommandLine(), CodeCompletion::GetAbsolutePath(), CompilerGCC::GetMakeCommandFor(), CompilerCommandGenerator::GetOrderedIncludeDirs(), CompilerCommandGenerator::GetOrderedLibrariesDirs(), CompilerCommandGenerator::GetOrderedResourceIncludeDirs(), CompilerCommandGenerator::GetProcessedIncludeDir(), DirectCommands::GetTargetCleanCommands(), DirectCommands::GetTargetLinkCommands(), ScriptBindings::gReplaceMacros(), PluginManager::InstallPlugin(), ProjectOptionsDlg::IsScriptValid(), Compiler::IsValid(), Compiler::MakeInvalidCompilerMessages(), EditorManager::New(), WizGenericSelectPathPanel::OnButton(), CompilerGCC::OnJobEnd(), ProjectOptionsDlg::OnKeyDown(), WizGenericSelectPathPanel::OnPageChanging(), GDB_driver::Prepare(), CompilerGCC::Run(), CompilerCommandGenerator::SetupCompilerOptions(), CompilerGCC::SetupEnvironment(), CompilerOWGenerator::SetupLibrariesDirs(), CompilerOWGenerator::SetupLinkerOptions(), CompilerCommandGenerator::SetupLinkerOptions(), CompilerCommandGenerator::SetupOutputFilenames(), CompilerCommandGenerator::SetupResourceCompilerOptions(), CompilerMINGW::SetVersionString(), EditorManager::SwapActiveHeaderSource(), and pfDetails::Update().
wxString MacrosManager::ReplaceMacros | ( | const wxString & | buffer, |
ProjectBuildTarget * | target = nullptr |
||
) |
Definition at line 67 of file macrosmanager.cpp.
void MacrosManager::Reset | ( | ) |
Definition at line 74 of file macrosmanager.cpp.
References _T, Manager::Get(), ConfigManager::GetDataFolder(), ConfigManager::GetExecutableFolder(), ConfigManager::GetPluginsFolder(), Manager::GetUserVariableManager(), UnixFilename(), wxEmptyString, wxRE_ADVANCED, wxRE_EXTENDED, and wxRE_NEWLINE.
Referenced by cbProject::ClearAllProperties(), CompilerGCC::CompileFileWithoutProject(), CompilerGCC::Configure(), and CompilerOptionsDlg::OnApply().
|
friend |
Definition at line 26 of file macrosmanager.h.
|
friend |
Definition at line 27 of file macrosmanager.h.
|
protected |
Definition at line 48 of file macrosmanager.h.
|
protected |
Definition at line 46 of file macrosmanager.h.
|
protected |
Definition at line 47 of file macrosmanager.h.
|
protected |
Definition at line 43 of file macrosmanager.h.
|
protected |
Definition at line 44 of file macrosmanager.h.
|
protected |
Definition at line 38 of file macrosmanager.h.
|
protected |
Definition at line 37 of file macrosmanager.h.
|
protected |
Definition at line 64 of file macrosmanager.h.
|
protected |
Definition at line 57 of file macrosmanager.h.
|
protected |
Definition at line 45 of file macrosmanager.h.
|
protected |
Definition at line 54 of file macrosmanager.h.
|
protected |
Definition at line 52 of file macrosmanager.h.
|
protected |
Definition at line 56 of file macrosmanager.h.
|
protected |
Definition at line 53 of file macrosmanager.h.
|
protected |
Definition at line 55 of file macrosmanager.h.
|
protected |
Definition at line 40 of file macrosmanager.h.
|
protected |
Definition at line 66 of file macrosmanager.h.
|
protected |
Definition at line 67 of file macrosmanager.h.
|
protected |
Definition at line 68 of file macrosmanager.h.
|
protected |
Definition at line 72 of file macrosmanager.h.
|
protected |
Definition at line 69 of file macrosmanager.h.
|
protected |
Definition at line 71 of file macrosmanager.h.
|
protected |
Definition at line 70 of file macrosmanager.h.
|
protected |
Definition at line 65 of file macrosmanager.h.
|
protected |
Definition at line 62 of file macrosmanager.h.
|
protected |
Definition at line 59 of file macrosmanager.h.
|
protected |
Definition at line 60 of file macrosmanager.h.
|
protected |
Definition at line 58 of file macrosmanager.h.
|
protected |
Definition at line 61 of file macrosmanager.h.
|
protected |
Definition at line 73 of file macrosmanager.h.
|
protected |
Definition at line 51 of file macrosmanager.h.
|
protected |
Definition at line 49 of file macrosmanager.h.
|
protected |
Definition at line 50 of file macrosmanager.h.
|
protected |
Definition at line 41 of file macrosmanager.h.