Code::Blocks
SVN r11506
|
#include <compilergcc.h>
Classes | |
struct | BuildJobTarget |
struct | CompilerProcess |
struct | CompilerValidResult |
Public Member Functions | |
CompilerGCC () | |
virtual | ~CompilerGCC () |
virtual void | OnAttach () |
Any descendent plugin should override this virtual method and perform any necessary initialization. More... | |
virtual void | OnRelease (bool appShutDown) |
virtual void | BuildMenu (wxMenuBar *menuBar) |
virtual void | BuildModuleMenu (const ModuleType type, wxMenu *menu, const FileTreeData *data=0) |
virtual bool | BuildToolBar (wxToolBar *toolBar) |
virtual int | GetToolBarPriority () |
This method return the priority of the plugin's toolbar, the less value indicates a more preceding position when C::B starts with no configuration file. More... | |
virtual int | Run (ProjectBuildTarget *target=0L) |
Run the project/target. More... | |
virtual int | Run (const wxString &target) |
Same as Run(ProjectBuildTarget*) but with a wxString argument. More... | |
virtual int | RunSingleFile (const wxString &filename) |
virtual int | Clean (const wxString &target) |
Same as Clean(ProjectBuildTarget*) but with a wxString argument. More... | |
virtual int | Clean (ProjectBuildTarget *target=0L) |
Clean the project/target. More... | |
virtual int | DistClean (ProjectBuildTarget *target=0L) |
DistClean the project/target. More... | |
virtual int | DistClean (const wxString &target) |
Same as DistClean(ProjectBuildTarget*) but with a wxString argument. More... | |
virtual int | Build (ProjectBuildTarget *target=0L) |
Build the project/target. More... | |
virtual int | Build (const wxString &target) |
Same as Build(ProjectBuildTarget*) but with a wxString argument. More... | |
virtual int | Rebuild (ProjectBuildTarget *target=0L) |
Rebuild the project/target. More... | |
virtual int | Rebuild (const wxString &target) |
Same as Rebuild(ProjectBuildTarget*) but with a wxString argument. More... | |
virtual int | CleanWorkspace (const wxString &target=wxEmptyString) |
Clean all open projects. More... | |
virtual int | BuildWorkspace (const wxString &target=wxEmptyString) |
Build all open projects. More... | |
virtual int | RebuildWorkspace (const wxString &target=wxEmptyString) |
Rebuild all open projects. More... | |
virtual int | CompileFile (const wxString &file) |
Compile a specific file. More... | |
virtual int | CompileFileWithoutProject (const wxString &file) |
virtual int | CompileFileDefault (cbProject *project, ProjectFile *pf, ProjectBuildTarget *bt) |
virtual int | KillProcess () |
Abort the current build process. More... | |
virtual bool | IsRunning () const |
Is the plugin currently compiling? More... | |
virtual int | GetExitCode () const |
Get the exit code of the last build process. More... | |
virtual int | Configure (cbProject *project, ProjectBuildTarget *target=0L) |
Display configuration dialog. More... | |
int | GetConfigurationPriority () const |
Return the plugin's configuration priority. More... | |
int | GetConfigurationGroup () const |
Return the configuration group for this plugin. More... | |
cbConfigurationPanel * | GetConfigurationPanel (wxWindow *parent) |
bool | IsValidTarget (const wxString &target) const |
void | SwitchCompiler (const wxString &id) |
const wxString & | GetCurrentCompilerID () |
void | OnIdle (wxIdleEvent &event) |
void | OnTimer (wxTimerEvent &event) |
void | OnCompile (wxCommandEvent &event) |
void | OnCompileFile (wxCommandEvent &event) |
void | OnCleanFile (wxCommandEvent &event) |
void | OnRebuild (wxCommandEvent &event) |
void | OnCompileAll (wxCommandEvent &event) |
void | OnRebuildAll (wxCommandEvent &event) |
void | OnCleanAll (wxCommandEvent &event) |
void | OnClean (wxCommandEvent &event) |
void | OnRun (wxCommandEvent &event) |
void | OnProjectCompilerOptions (wxCommandEvent &event) |
void | OnTargetCompilerOptions (wxCommandEvent &event) |
void | OnCompileAndRun (wxCommandEvent &event) |
void | OnKillProcess (wxCommandEvent &event) |
void | OnSelectTarget (wxCommandEvent &event) |
void | OnNextError (wxCommandEvent &event) |
void | OnPreviousError (wxCommandEvent &event) |
void | OnClearErrors (wxCommandEvent &event) |
void | OnUpdateUI (wxUpdateUIEvent &event) |
void | OnConfig (wxCommandEvent &event) |
Public Member Functions inherited from cbCompilerPlugin | |
cbCompilerPlugin () | |
Public Member Functions inherited from cbPlugin | |
cbPlugin () | |
In default cbPlugin's constructor the associated PluginInfo structure is filled with default values. More... | |
~cbPlugin () override | |
cbPlugin destructor. More... | |
virtual PluginType | GetType () const |
The plugin must return its type on request. More... | |
virtual cbConfigurationPanel * | GetConfigurationPanel (cb_optional wxWindow *parent) |
Return plugin's configuration panel. More... | |
virtual cbConfigurationPanel * | GetProjectConfigurationPanel (cb_optional wxWindow *parent, cb_optional cbProject *project) |
Return plugin's configuration panel for projects. More... | |
virtual void | BuildMenu (cb_optional wxMenuBar *menuBar) |
This method is called by Code::Blocks and is used by the plugin to add any menu items it needs on Code::Blocks's menu bar. More... | |
virtual void | BuildModuleMenu (cb_optional const ModuleType type, cb_optional wxMenu *menu, cb_optional const FileTreeData *data=nullptr) |
This method is called by Code::Blocks core modules (EditorManager, ProjectManager etc) and is used by the plugin to add any menu items it needs in the module's popup menu. More... | |
virtual bool | BuildToolBar (cb_optional wxToolBar *toolBar) |
This method is called by Code::Blocks and is used by the plugin to add any toolbar items it needs on Code::Blocks's toolbar. More... | |
virtual void | CreateStatusField (cbStatusBar *statusBar) |
This method is called by Code::Blocks and is used by the plugin to add a field on Code::Blocks's statusbar. More... | |
bool | IsAttached () const |
See whether this plugin is attached or not. More... | |
virtual bool | CanDetach () const |
See whether this plugin can be detached (unloaded) or not. More... | |
Private Types | |
typedef std::queue< BuildJobTarget > | BuildJobTargetsList |
typedef std::vector< CompilerProcess > | CompilerProcessList |
Friends | |
class | CompilerOptionsDlg |
Additional Inherited Members | |
Protected Member Functions inherited from cbPlugin | |
virtual void | OnRelease (cb_optional bool appShutDown) |
Any descendent plugin should override this virtual method and perform any necessary de-initialization. More... | |
virtual void | NotImplemented (const wxString &log) const |
This method logs a "Not implemented" message and is provided for convenience only. More... | |
Protected Attributes inherited from cbPlugin | |
PluginType | m_Type |
Holds the plugin's type. More... | |
bool | m_IsAttached |
Holds the "attached" state. More... | |
Definition at line 87 of file compilergcc.h.
struct CompilerGCC::CompilerProcess |
Definition at line 264 of file compilergcc.h.
Class Members | ||
---|---|---|
wxString | OutputFile | |
long int | PID | |
PipedProcess * | pProcess |
struct CompilerGCC::CompilerValidResult |
Definition at line 211 of file compilergcc.h.
Class Members | ||
---|---|---|
Compiler * | compiler | |
bool | isValid |
|
private |
Definition at line 256 of file compilergcc.h.
|
private |
Definition at line 270 of file compilergcc.h.
CompilerGCC::CompilerGCC | ( | ) |
Definition at line 279 of file compilergcc.cpp.
References _T, Manager::LoadResource(), and NotifyMissingFile().
|
virtual |
Definition at line 313 of file compilergcc.cpp.
|
private |
Definition at line 3483 of file compilergcc.cpp.
References _(), _T, Compiler::CheckForWarningsAndErrors(), cltError, cltNormal, LogManager::DebugLog(), F(), wxString::Find(), Manager::Get(), CompileTargetBase::GetBasePath(), CompilerFactory::GetCompiler(), Manager::GetConfigManager(), wxArrayString::GetCount(), cbProject::GetExecutionDir(), wxFileName::GetFullPath(), Compiler::GetLastError(), Compiler::GetLastErrorFilename(), Compiler::GetLastErrorLine(), Manager::GetLogManager(), wxFileName::GetPathSeparator(), wxFileName::IsAbsolute(), wxArrayString::IsEmpty(), wxString::IsEmpty(), wxArrayString::Item(), ltAll, ltFile, wxFileName::MakeRelativeTo(), ConfigManager::ReadArrayString(), ConfigManager::ReadInt(), Compiler::WithMultiLineMsg(), wxString::wx_str(), wxEmptyString, and wxNOT_FOUND.
|
private |
Definition at line 1085 of file compilergcc.cpp.
References COMPILER_SIMPLE_LOG, COMPILER_TARGET_CHANGE, COMPILER_WAIT, COMPILER_WAIT_LINK, wxArrayString::GetCount(), CompilerCommand::isLink, wxString::Length(), CompilerCommand::mustWait, wxString::Remove(), wxString::StartsWith(), and wxEmptyString.
|
private |
Definition at line 1136 of file compilergcc.cpp.
References _T, Manager::Get(), Manager::GetConfigManager(), wxThread::GetCPUCount(), and ConfigManager::ReadInt().
|
private |
Definition at line 1015 of file compilergcc.cpp.
References Manager::Get(), ProjectManager::GetActiveProject(), and Manager::GetProjectManager().
|
virtual |
Build the project/target.
target | The specific build target to build. If NULL, it builds all the targets of the current project. |
Implements cbCompilerPlugin.
Definition at line 2780 of file compilergcc.cpp.
References _T, and CompileTargetBase::GetTitle().
Referenced by GetToolBarPriority().
|
virtual |
Same as Build(ProjectBuildTarget*) but with a wxString argument.
Implements cbCompilerPlugin.
Definition at line 2774 of file compilergcc.cpp.
|
virtual |
Definition at line 492 of file compilergcc.cpp.
References _(), _T, wxMenu::FindChildItem(), wxMenu::FindItem(), wxMenuBar::FindMenu(), Manager::Get(), wxMenuBar::GetMenu(), wxMenu::GetMenuItemCount(), wxMenuItem::GetSubMenu(), idMenuProjectCompilerOptions, idMenuSelectTarget, wxMenu::Insert(), wxMenuBar::Insert(), wxMenu::InsertSeparator(), Manager::LoadMenu(), NULL, and wxNOT_FOUND.
|
virtual |
Definition at line 538 of file compilergcc.cpp.
References _(), wxMenu::Append(), wxMenu::AppendSeparator(), wxMenu::Enable(), FileTypeOf(), wxMenu::FindItemByPosition(), FileTreeData::ftdkFile, FileTreeData::ftdkProject, FileTreeData::ftdkUndefined, ftHeader, ftSource, ftTemplateSource, Manager::Get(), ProjectManager::GetIsRunning(), FileTreeData::GetKind(), wxMenu::GetMenuItemCount(), FileTreeData::GetProjectFile(), Manager::GetProjectManager(), idMenuBuildWorkspace, idMenuCleanFileFromProjectManager, idMenuCleanFromProjectManager, idMenuCleanWorkspace, idMenuCompileFileFromProjectManager, idMenuCompileFromProjectManager, idMenuProjectCompilerOptionsFromProjectManager, idMenuRebuildFromProjectManager, idMenuRebuildWorkspace, wxMenuItem::IsSeparator(), mtProjectManager, and ProjectFile::relativeFilename.
|
private |
This uses m_BuildJob.
Definition at line 2320 of file compilergcc.cpp.
References _(), wxArrayString::Add(), baBuild, baClean, bsNone, bsProjectDone, bsProjectPostBuild, bsProjectPreBuild, bsTargetBuild, bsTargetClean, bsTargetDone, bsTargetPostBuild, bsTargetPreBuild, clogFull, clogNone, clogSimple, cltError, cltNormal, COMPILER_ERROR_LOG, COMPILER_SIMPLE_LOG, wxString::empty(), F(), Manager::Get(), CompileOptionsBase::GetAlwaysRunPostBuildSteps(), getBuildTargetName(), DirectCommands::GetCleanCommands(), DirectCommands::GetCompileCommands(), CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), wxArrayString::GetCount(), Manager::GetMacrosManager(), DirectCommands::GetPostBuildCommands(), DirectCommands::GetPreBuildCommands(), Compiler::GetSwitches(), CompilerSwitches::logging, DirectCommands::m_doYield, mcAskRebuildNeeded, mcBuild, mcSilentBuild, MacrosManager::RecalcVars(), wxString::wx_str(), wxEXEC_NODISABLE, wxEXEC_SYNC, wxExecute(), wxSetWorkingDirectory(), and Manager::Yield().
|
virtual |
Definition at line 604 of file compilergcc.cpp.
References _T, Manager::AddonToolBar(), Manager::Get(), Manager::isToolBar16x16(), and wxToolBar::Realize().
|
virtual |
Build all open projects.
target | If not empty, the target to build in each project. Else all targets. |
Implements cbCompilerPlugin.
Definition at line 2844 of file compilergcc.cpp.
Referenced by GetToolBarPriority().
|
private |
Definition at line 2686 of file compilergcc.cpp.
References _(), F(), Manager::Get(), ProjectManager::GetDependenciesForProject(), Manager::GetLogManager(), Manager::GetProjectManager(), ProjectManager::GetProjects(), CompileTargetBase::GetTitle(), LogManager::Log(), Logger::warning, wxString::wx_str(), and wxNOT_FOUND.
|
private |
Definition at line 2676 of file compilergcc.cpp.
References Manager::Get(), Manager::GetProjectManager(), and ProjectManager::GetProjects().
|
private |
Definition at line 1001 of file compilergcc.cpp.
References CompilerFactory::GetDefaultCompilerID().
|
virtual |
Same as Clean(ProjectBuildTarget*) but with a wxString argument.
Implements cbCompilerPlugin.
Definition at line 2076 of file compilergcc.cpp.
Referenced by GetToolBarPriority().
|
virtual |
Clean the project/target.
Cleaning a project means deleting any files created by building it. This includes any object files, the binary output file, etc.
target | The specific build target to "clean". If NULL, it cleans all the build targets of the current project. |
Implements cbCompilerPlugin.
Definition at line 2071 of file compilergcc.cpp.
References _T, and CompileTargetBase::GetTitle().
|
virtual |
Clean all open projects.
target | If not empty, the target to clean in each project. Else all targets. |
Implements cbCompilerPlugin.
Definition at line 2860 of file compilergcc.cpp.
Referenced by GetToolBarPriority().
|
private |
Definition at line 1052 of file compilergcc.cpp.
References cbEVT_SWITCH_TO_LOG_WINDOW, Manager::Get(), and Manager::ProcessEvent().
|
virtual |
Compile a specific file.
file | The file to compile (must be a project file!) |
Implements cbCompilerPlugin.
Definition at line 2956 of file compilergcc.cpp.
References _(), baBuildFile, cltError, ProjectFile::relativeToCommonTopLevelPath, wxEmptyString, and wxSetWorkingDirectory().
Referenced by GetToolBarPriority().
|
virtual |
Definition at line 3002 of file compilergcc.cpp.
References _(), cltError, DirectCommands::CompileFile(), wxString::Format(), CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), CompileTargetBase::GetTitle(), ProjectFile::relativeToCommonTopLevelPath, wxString::wx_str(), and wxEmptyString.
Referenced by GetToolBarPriority().
|
virtual |
Definition at line 2983 of file compilergcc.cpp.
References Manager::Get(), DirectCommands::GetCompileSingleFileCommand(), CompilerFactory::GetDefaultCompiler(), CompilerFactory::GetDefaultCompilerID(), Manager::GetEditorManager(), Manager::GetMacrosManager(), MacrosManager::Reset(), and EditorManager::Save().
Referenced by GetToolBarPriority().
|
private |
Definition at line 1641 of file compilergcc.cpp.
References CompilerGCC::CompilerValidResult::compiler, CompilerFactory::GetCompiler(), CompilerFactory::GetDefaultCompiler(), CompilerGCC::CompilerValidResult::isValid, and Compiler::IsValid().
|
virtual |
Display configuration dialog.
project | The selected project (can be NULL). |
target | The selected target (can be NULL). |
Implements cbCompilerPlugin.
Definition at line 459 of file compilergcc.cpp.
References _(), _T, cbConfigurationDialog::AttachConfigurationPanel(), Manager::Get(), Manager::GetConfigManager(), Manager::GetMacrosManager(), PlaceWindow(), ConfigManager::ReadBool(), MacrosManager::Reset(), cbConfigurationPanel::SetParentDialog(), wxDialog::ShowModal(), wxID_ANY, and wxID_OK.
Referenced by GetExitCode().
|
private |
Definition at line 619 of file compilergcc.cpp.
References Manager::Get(), cbEditor::GetControl(), idMenuBuildWorkspace, idMenuClean, idMenuCleanFileFromProjectManager, idMenuCleanFromProjectManager, idMenuCleanWorkspace, idMenuClearErrors, idMenuCompile, idMenuCompileAndRun, idMenuCompileFile, idMenuCompileFileFromProjectManager, idMenuCompileFromProjectManager, idMenuKillProcess, idMenuNextError, idMenuPreviousError, idMenuProjectCompilerOptions, idMenuProjectCompilerOptionsFromProjectManager, idMenuRebuild, idMenuRebuildFromProjectManager, idMenuRebuildWorkspace, idMenuRun, idMenuSettings, and idMenuTargetCompilerOptions.
|
virtual |
DistClean the project/target.
DistClean will typically remove any config files and anything else that got created as part of building a software package.
target | The specific build target to "distclean". If NULL, it cleans all the build targets of the current project. |
Implements cbCompilerPlugin.
Definition at line 2134 of file compilergcc.cpp.
References _(), _T, Manager::Get(), Manager::GetLogManager(), LogManager::Log(), mcDistClean, wxEmptyString, and wxSetWorkingDirectory().
Referenced by GetToolBarPriority().
|
virtual |
Same as DistClean(ProjectBuildTarget*) but with a wxString argument.
Implements cbCompilerPlugin.
Definition at line 2127 of file compilergcc.cpp.
References wxString::IsEmpty().
|
private |
Definition at line 1601 of file compilergcc.cpp.
|
private |
Definition at line 2645 of file compilergcc.cpp.
References _(), Manager::Get(), cbProject::GetBuildTarget(), Manager::GetLogManager(), LogManager::Log(), CompilerGCC::BuildJobTarget::project, cbProject::SaveAllFiles(), and CompilerGCC::BuildJobTarget::targetName.
|
private |
Definition at line 2734 of file compilergcc.cpp.
References bjProject, Manager::Get(), EditorManager::GetActiveEditor(), Manager::GetEditorManager(), EditorBase::GetFilename(), and wxString::IsEmpty().
|
private |
Definition at line 2065 of file compilergcc.cpp.
References wxArrayString::GetCount(), and wxRemoveFile().
|
private |
Definition at line 2087 of file compilergcc.cpp.
References _(), clogFull, cltError, cltNormal, COMPILER_ERROR_LOG, wxString::empty(), ExpandBackticks(), F(), getBuildTargetName(), CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), wxArrayString::GetCount(), Compiler::GetSwitches(), CompilerSwitches::logging, mcClean, wxString::wx_str(), wxEXEC_SYNC, wxExecute(), wxSetWorkingDirectory(), and wxT.
|
private |
Definition at line 1750 of file compilergcc.cpp.
|
private |
Definition at line 1366 of file compilergcc.cpp.
|
private |
Definition at line 1732 of file compilergcc.cpp.
References cbEVT_SWITCH_TO_LOG_WINDOW, Manager::Get(), and Manager::ProcessEvent().
|
private |
Definition at line 1741 of file compilergcc.cpp.
References cbEVT_SWITCH_TO_LOG_WINDOW, Manager::Get(), and Manager::ProcessEvent().
|
private |
Definition at line 1609 of file compilergcc.cpp.
|
private |
Definition at line 1562 of file compilergcc.cpp.
References cbEVT_COMPILER_STARTED, Manager::Get(), Manager::ProcessEvent(), wxGetLocalTimeMillis(), and Manager::Yield().
|
private |
Definition at line 1400 of file compilergcc.cpp.
References _(), wxString::Append(), Manager::Get(), Manager::GetAppFrame(), Manager::GetProjectManager(), ProjectManager::GetWorkspace(), idMenuSelectTargetDialog, idMenuSelectTargetHasMore, idMenuSelectTargetOther, wxString::IsEmpty(), maxTargetInMenus, OnSelectTarget(), and wxString::Printf().
|
private |
Definition at line 846 of file compilergcc.cpp.
References _(), _T, wxArrayString::Add(), Manager::Get(), wxXmlNode::GetAttribute(), Manager::GetConfigManager(), wxArrayString::GetCount(), wxDir::GetFirst(), ConfigManager::GetFolder(), Manager::GetLogManager(), wxXmlNode::GetName(), wxDir::GetNext(), wxXmlDocument::GetRoot(), wxXmlDocument::Load(), LogManager::Log(), wxDir::Open(), ConfigManager::ReadBool(), CompilerFactory::RegisterCompiler(), CompilerFactory::RegisterUserCompilers(), sdDataGlobal, sdDataUser, wxDIR_FILES, wxDirExists(), wxEmptyString, and wxT.
Referenced by CompilerOptionsDlg::OnApply().
|
private |
Definition at line 1206 of file compilergcc.cpp.
References _(), _T, wxString::AfterFirst(), bsNone, cbGetDynamicLinkerPathForTarget(), cbMergeLibPaths(), cltError, cltNormal, CompilerCommand::command, DEFAULT_CONSOLE_SHELL, Delete(), CompilerCommand::dir, ExpandBackticks(), wxString::Format(), Manager::Get(), Manager::GetConfigManager(), Manager::GetMacrosManager(), CompileTargetBase::GetOutputFilename(), Manager::GetScriptingManager(), idGCCProcess, Manager::IsBatchBuild(), wxString::IsEmpty(), CompilerCommand::isLink, CompilerCommand::isRun, ScriptingManager::LoadScript(), ltAll, ltFile, ltMessages, CompilerCommand::message, CompilerCommand::mustWait, CompilerGCC::CompilerProcess::OutputFile, CompilerGCC::CompilerProcess::PID, CompilerGCC::CompilerProcess::pProcess, ConfigManager::Read(), ConfigManager::ReadBool(), MacrosManager::ReplaceMacros(), wxString::StartsWith(), CompilerCommand::target, wxString::wx_str(), wxEmptyString, wxEXEC_ASYNC, wxEXEC_MAKE_GROUP_LEADER, wxExecute(), wxGetCwd(), wxGetEnv(), and wxSetEnv().
|
private |
Definition at line 1070 of file compilergcc.cpp.
References Manager::Get(), wxTreeCtrl::GetItemData(), FileTreeData::GetProject(), Manager::GetProjectManager(), cbProjectManagerUI::GetTree(), cbProjectManagerUI::GetTreeSelection(), ProjectManager::GetUI(), wxTreeItemId::IsOk(), and ProjectManager::SetProject().
|
private |
Definition at line 1496 of file compilergcc.cpp.
References wxMenuItem::Check(), idMenuSelectTargetOther, wxMenuItem::IsCheckable(), and maxTargetInMenus.
|
private |
Definition at line 2801 of file compilergcc.cpp.
References _(), bjWorkspace, F(), Manager::Get(), Manager::GetLogManager(), Manager::GetProjectManager(), ProjectManager::GetProjects(), CompileTargetBase::GetTitle(), wxString::IsEmpty(), LogManager::Log(), cbProject::SaveAllFiles(), and wxString::wx_str().
|
private |
Definition at line 2540 of file compilergcc.cpp.
References wxArrayString::Add(), wxArrayString::Clear(), cbProject::GetBuildTarget(), and cbProject::GetExpandedVirtualBuildTargetGroup().
|
private |
Definition at line 1150 of file compilergcc.cpp.
References Delete().
|
private |
Definition at line 1195 of file compilergcc.cpp.
|
private |
Definition at line 2928 of file compilergcc.cpp.
References _(), ProjectFile::buildTargets, cbMessageBox(), wxArrayString::GetCount(), and wxICON_INFORMATION.
|
inlinevirtual |
Return the configuration group for this plugin.
Default is cgUnknown. Notice that you can logically AND more than one configuration groups, so you could set it, for example, as "cgCompiler | cgContribPlugin".
Reimplemented from cbPlugin.
Definition at line 123 of file compilergcc.h.
References cgCompiler, GetConfigurationPanel(), GetCurrentCompilerID(), IsValidTarget(), OnClean(), OnCleanAll(), OnCleanFile(), OnClearErrors(), OnCompile(), OnCompileAll(), OnCompileAndRun(), OnCompileFile(), OnConfig(), OnIdle(), OnKillProcess(), OnNextError(), OnPreviousError(), OnProjectCompilerOptions(), OnRebuild(), OnRebuildAll(), OnRun(), OnSelectTarget(), OnTargetCompilerOptions(), OnTimer(), OnUpdateUI(), and SwitchCompiler().
cbConfigurationPanel * CompilerGCC::GetConfigurationPanel | ( | wxWindow * | parent | ) |
Definition at line 481 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
|
inlinevirtual |
Return the plugin's configuration priority.
This is a number (default is 50) that is used to sort plugins in configuration dialogs. Lower numbers mean the plugin's configuration is put higher in the list.
Reimplemented from cbPlugin.
Definition at line 122 of file compilergcc.h.
const wxString & CompilerGCC::GetCurrentCompilerID | ( | ) |
Definition at line 949 of file compilergcc.cpp.
References CompilerFactory::GetCompiler(), and wxEmptyString.
Referenced by GetConfigurationGroup().
|
private |
Definition at line 1630 of file compilergcc.cpp.
References CompileTargetBase::GetCompilerID(), and wxEmptyString.
|
private |
Definition at line 3962 of file compilergcc.cpp.
References _(), cltError, cltWarning, wxString::Format(), and wxT.
|
inlinevirtual |
Get the exit code of the last build process.
Implements cbCompilerPlugin.
Definition at line 119 of file compilergcc.h.
References Configure(), and m_LastExitCode.
|
private |
Definition at line 2044 of file compilergcc.cpp.
References _T, wxString::empty(), Manager::Get(), CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), CompilerFactory::GetDefaultCompilerID(), Manager::GetMacrosManager(), CompileTargetBase::GetMakeCommandFor(), cbProject::GetMakefile(), Compiler::GetPrograms(), CompileTargetBase::GetTitle(), CompilerFactory::IsValidCompilerID(), CompilerPrograms::MAKE, wxString::Replace(), MacrosManager::ReplaceMacros(), and wxEmptyString.
|
private |
Definition at line 3974 of file compilergcc.cpp.
References _(), wxString::Format(), wxGetLocalTimeMillis(), and wxT.
|
private |
Definition at line 1184 of file compilergcc.cpp.
References CompilerGCC::CompilerProcess::PID, and CompilerGCC::CompilerProcess::pProcess.
|
private |
Definition at line 2626 of file compilergcc.cpp.
|
private |
Definition at line 2224 of file compilergcc.cpp.
References bjTarget, bsNone, bsProjectDone, bsProjectPostBuild, bsProjectPreBuild, bsTargetBuild, bsTargetClean, bsTargetDone, bsTargetPostBuild, bsTargetPreBuild, CompilerGCC::BuildJobTarget::project, and CompilerGCC::BuildJobTarget::targetName.
Definition at line 2527 of file compilergcc.cpp.
References cbProject::GetBuildTarget(), cbProject::GetBuildTargetsCount(), CompileTargetBase::GetTitle(), and wxString::IsEmpty().
|
private |
Definition at line 1553 of file compilergcc.cpp.
References wxEmptyString.
|
inlinevirtual |
This method return the priority of the plugin's toolbar, the less value indicates a more preceding position when C::B starts with no configuration file.
Reimplemented from cbPlugin.
Definition at line 98 of file compilergcc.h.
References Build(), BuildWorkspace(), Clean(), CleanWorkspace(), CompileFile(), CompileFileDefault(), CompileFileWithoutProject(), DistClean(), IsRunning(), KillProcess(), Rebuild(), RebuildWorkspace(), Run(), RunSingleFile(), and wxEmptyString.
|
private |
Definition at line 3675 of file compilergcc.cpp.
References _(), _T, Manager::Get(), cbWorkspace::GetFilename(), Manager::GetProjectManager(), cbWorkspace::GetTitle(), ProjectManager::GetWorkspace(), wxString::IsEmpty(), and wxDateTime::Now().
Definition at line 2164 of file compilergcc.cpp.
References bsNone, bsProjectPreBuild, and wxString::Clear().
|
private |
Definition at line 1165 of file compilergcc.cpp.
|
virtual |
Is the plugin currently compiling?
Implements cbCompilerPlugin.
Definition at line 2923 of file compilergcc.cpp.
References bjIdle.
Referenced by GetToolBarPriority(), and CompilerOptionsDlg::OnApply().
bool CompilerGCC::IsValidTarget | ( | const wxString & | target | ) | const |
Definition at line 1388 of file compilergcc.cpp.
References Manager::Get(), ProjectManager::GetActiveProject(), cbProject::GetBuildTarget(), Manager::GetProjectManager(), wxString::IsEmpty(), and CompileOptionsBase::SupportsCurrentPlatform().
Referenced by GetConfigurationGroup().
|
virtual |
Abort the current build process.
Implements cbCompilerPlugin.
Definition at line 2865 of file compilergcc.cpp.
References _(), cltInfo, F(), Manager::Get(), ProjectManager::GetIsRunning(), Manager::GetLogManager(), Manager::GetProjectManager(), wxProcess::Kill(), LogManager::Log(), ltMessages, NULL, ProjectManager::SetIsRunning(), wxKILL_ACCESS_DENIED, wxKILL_BAD_SIGNAL, wxKILL_CHILDREN, wxKILL_ERROR, wxKILL_NO_PROCESS, wxKILL_OK, and wxSIGKILL.
Referenced by GetToolBarPriority().
|
private |
Definition at line 840 of file compilergcc.cpp.
References CompilerFactory::LoadSettings().
Referenced by CompilerOptionsDlg::OnApply().
|
private |
Definition at line 3581 of file compilergcc.cpp.
References _T, Logger::caption, cltError, cltWarning, COMPILER_ERROR_ID_LOG, COMPILER_NOTE_ID_LOG, COMPILER_SIMPLE_LOG, COMPILER_WARNING_ID_LOG, Logger::critical, Logger::error, wxString::FromUTF8(), Manager::Get(), Manager::GetLogManager(), Logger::info, LogManager::Log(), LogManager::LogToStdOut(), ltFile, ltMessages, wxString::Printf(), wxString::Replace(), wxString::StartsWith(), Logger::warning, and wxEmptyString.
|
private |
Definition at line 3553 of file compilergcc.cpp.
References wxArrayString::Add(), cltError, cltWarning, Logger::error, Logger::info, wxString::IsEmpty(), wxDateTime::Now(), wxString::Replace(), wxTimeSpan::Seconds(), Logger::warning, wxString::wc_str(), and wxT.
|
private |
Definition at line 1580 of file compilergcc.cpp.
References cbEVT_CLEAN_PROJECT_STARTED, Manager::Get(), Manager::ProcessEvent(), CodeBlocksEvent::SetBuildTargetName(), and Manager::Yield().
|
private |
Definition at line 1591 of file compilergcc.cpp.
References cbEVT_CLEAN_WORKSPACE_STARTED, Manager::Get(), Manager::ProcessEvent(), and Manager::Yield().
|
private |
Definition at line 3930 of file compilergcc.cpp.
References _(), bjIdle, cbEVT_COMPILER_FINISHED, cbEVT_HIDE_LOG_MANAGER, cltError, Manager::Get(), ProjectManager::GetIsRunning(), Manager::GetProjectManager(), NULL, Manager::ProcessEvent(), and ProjectManager::SetIsRunning().
|
virtual |
Any descendent plugin should override this virtual method and perform any necessary initialization.
This method is called by Code::Blocks (PluginManager actually) when the plugin has been loaded and should attach in Code::Blocks. When Code::Blocks starts up, it finds and loads all plugins but does not activate (attaches) them. It then activates all plugins that the user has selected to be activated on start-up.
This means that a plugin might be loaded but not activated...
Think of this method as the actual constructor...
Reimplemented from cbPlugin.
Definition at line 317 of file compilergcc.cpp.
References _(), _T, wxArrayString::Add(), bjIdle, bsNone, cbEVT_ADD_LOG_WINDOW, cbEVT_COMPILE_FILE_REQUEST, cbEVT_PROJECT_ACTIVATE, cbEVT_PROJECT_CLOSE, cbEVT_PROJECT_OPEN, cbEVT_PROJECT_TARGETS_MODIFIED, cbEVT_WORKSPACE_CLOSING_COMPLETE, cbLoadBitmap(), ScriptBindings::gBuildLog(), ScriptBindings::gBuildLogId, Manager::Get(), Manager::GetConfigManager(), ConfigManager::GetDataFolder(), Manager::GetLogManager(), Manager::GetScriptingManager(), LogSlot::icon, idMenuSelectTargetOther, idTimerPollCompiler, Manager::IsBatchBuild(), maxTargetInMenus, OnCompileFileRequest(), OnProjectActivated(), OnProjectLoaded(), OnProjectUnloaded(), OnWorkspaceClosed(), Manager::ProcessEvent(), ConfigManager::ReadBool(), Manager::RegisterEventSink(), CompilerFactory::SetDefaultCompiler(), LogManager::SetLog(), LogManager::Slot(), LogSlot::title, wxBITMAP_TYPE_PNG, and wxNewId().
void CompilerGCC::OnClean | ( | wxCommandEvent & | event | ) |
Definition at line 3189 of file compilergcc.cpp.
References _(), idMenuCleanFromProjectManager, AnnoyingDialog::rtNO, AnnoyingDialog::ShowModal(), and wxART_QUESTION.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnCleanAll | ( | wxCommandEvent & | event | ) |
Definition at line 3171 of file compilergcc.cpp.
References _(), AnnoyingDialog::rtNO, AnnoyingDialog::ShowModal(), and wxART_QUESTION.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnCleanFile | ( | wxCommandEvent & | event | ) |
Definition at line 3084 of file compilergcc.cpp.
References _T, LogManager::DebugLog(), F(), wxFileName::FileExists(), Manager::Get(), CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), Manager::GetLogManager(), Manager::GetMacrosManager(), CompileTargetBase::GetObjectOutput(), ProjectFile::GetObjName(), FileTreeData::GetProjectFile(), Compiler::GetSwitches(), idMenuCleanFileFromProjectManager, MacrosManager::ReplaceEnvVars(), CompilerSwitches::UseFlatObjects, wxString::wx_str(), wxRemoveFile(), and wxSetWorkingDirectory().
Referenced by GetConfigurationGroup().
void CompilerGCC::OnClearErrors | ( | wxCommandEvent & | event | ) |
Definition at line 3320 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnCompile | ( | wxCommandEvent & | event | ) |
Definition at line 3058 of file compilergcc.cpp.
References idMenuCompileFromProjectManager.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnCompileAll | ( | wxCommandEvent & | event | ) |
Definition at line 3150 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnCompileAndRun | ( | wxCommandEvent & | event | ) |
Definition at line 3051 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnCompileFile | ( | wxCommandEvent & | event | ) |
Definition at line 3072 of file compilergcc.cpp.
References idMenuCompileFileFromProjectManager.
Referenced by GetConfigurationGroup().
|
private |
Definition at line 3412 of file compilergcc.cpp.
References _T, wxFileName::Assign(), ProjectFile::buildTargets, LogManager::DebugLog(), F(), Manager::Get(), CompileTargetBase::GetBasePath(), cbProject::GetBuildTarget(), wxArrayString::GetCount(), cbProject::GetFileByFilename(), EditorBase::GetFilename(), wxFileName::GetFullPath(), Manager::GetLogManager(), wxString::IsEmpty(), wxFileName::MakeRelativeTo(), UnixFilename(), and wxString::wx_str().
Referenced by OnAttach().
void CompilerGCC::OnConfig | ( | wxCommandEvent & | event | ) |
Definition at line 487 of file compilergcc.cpp.
References NULL.
Referenced by GetConfigurationGroup().
|
private |
Definition at line 3470 of file compilergcc.cpp.
References wxString::IsEmpty().
|
private |
Definition at line 3456 of file compilergcc.cpp.
References _T, wxString::IsEmpty(), and wxString::Matches().
|
private |
Definition at line 3477 of file compilergcc.cpp.
void CompilerGCC::OnIdle | ( | wxIdleEvent & | event | ) |
Definition at line 3023 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
|
private |
Definition at line 3764 of file compilergcc.cpp.
References _(), _T, bsNone, cbEVT_GET_ACTIVE_LOG_WINDOW, cbEVT_HIDE_LOG_MANAGER, cbEVT_SHOW_LOG_MANAGER, cbEVT_SWITCH_TO_LOG_WINDOW, cltError, cltNormal, cltWarning, wxString::Format(), Manager::Get(), EditorManager::GetBuiltinEditor(), CompilerFactory::GetCompiler(), Manager::GetConfigManager(), cbEditor::GetControl(), Manager::GetEditorManager(), Manager::GetLogManager(), Manager::GetMacrosManager(), Manager::IsBatchBuild(), wxString::IsEmpty(), wxFFile::Length(), LogManager::Log(), CodeBlocksLogEvent::logger, ltAll, CompilerGCC::CompilerProcess::OutputFile, CompilerGCC::CompilerProcess::PID, CompilerGCC::CompilerProcess::pProcess, wxString::Printf(), Manager::ProcessEvent(), ConfigManager::ReadBool(), MacrosManager::ReplaceMacros(), UnixFilename(), wxString::wx_str(), and wxEmptyString.
void CompilerGCC::OnKillProcess | ( | wxCommandEvent & | event | ) |
Definition at line 3269 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnNextError | ( | wxCommandEvent & | event | ) |
Definition at line 3310 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnPreviousError | ( | wxCommandEvent & | event | ) |
Definition at line 3315 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
|
private |
Definition at line 3382 of file compilergcc.cpp.
References Manager::Get(), ProjectManager::GetActiveProject(), CodeBlocksEvent::GetProject(), and Manager::GetProjectManager().
Referenced by OnAttach().
void CompilerGCC::OnProjectCompilerOptions | ( | wxCommandEvent & | event | ) |
Definition at line 3217 of file compilergcc.cpp.
References Manager::Get(), cbProject::GetBuildTarget(), wxTreeCtrl::GetItemData(), FileTreeData::GetProject(), Manager::GetProjectManager(), CompileTargetBase::GetTitle(), cbProjectManagerUI::GetTree(), cbProjectManagerUI::GetTreeSelection(), ProjectManager::GetUI(), and wxTreeItemId::IsOk().
Referenced by GetConfigurationGroup().
|
private |
Definition at line 3395 of file compilergcc.cpp.
Referenced by OnAttach().
|
private |
Definition at line 3399 of file compilergcc.cpp.
References CodeBlocksEvent::GetProject().
Referenced by OnAttach().
void CompilerGCC::OnRebuild | ( | wxCommandEvent & | event | ) |
Definition at line 3124 of file compilergcc.cpp.
References _(), idMenuRebuildFromProjectManager, AnnoyingDialog::rtNO, AnnoyingDialog::ShowModal(), and wxART_QUESTION.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnRebuildAll | ( | wxCommandEvent & | event | ) |
Definition at line 3155 of file compilergcc.cpp.
References _(), AnnoyingDialog::rtNO, AnnoyingDialog::ShowModal(), and wxART_QUESTION.
Referenced by GetConfigurationGroup().
|
virtual |
Definition at line 425 of file compilergcc.cpp.
References _T, cbEVT_REMOVE_LOG_WINDOW, ScriptBindings::gBuildLogId, Manager::Get(), Manager::GetConfigManager(), CompilerFactory::GetDefaultCompilerID(), Manager::IsBatchBuild(), Manager::ProcessEvent(), CompilerFactory::UnregisterCompilers(), and ConfigManager::Write().
void CompilerGCC::OnRun | ( | wxCommandEvent & | event | ) |
Definition at line 3045 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnSelectTarget | ( | wxCommandEvent & | event | ) |
Definition at line 3274 of file compilergcc.cpp.
References _(), Manager::Get(), Manager::GetProjectManager(), IncrementalSelectDialog::GetSelection(), ProjectManager::GetWorkspace(), idMenuSelectTargetDialog, idMenuSelectTargetOther, idToolTarget, cbWorkspace::SetPreferredTarget(), wxDialog::ShowModal(), and wxID_OK.
Referenced by DoRecreateTargetMenu(), and GetConfigurationGroup().
void CompilerGCC::OnTargetCompilerOptions | ( | wxCommandEvent & | event | ) |
Definition at line 3251 of file compilergcc.cpp.
Referenced by GetConfigurationGroup().
void CompilerGCC::OnTimer | ( | wxTimerEvent & | event | ) |
Definition at line 3040 of file compilergcc.cpp.
References wxWakeUpIdle().
Referenced by GetConfigurationGroup().
void CompilerGCC::OnUpdateUI | ( | wxUpdateUIEvent & | event | ) |
Definition at line 3325 of file compilergcc.cpp.
References wxMenuBar::Enable(), wxToolBar::EnableTool(), Manager::Get(), ProjectManager::GetActiveProject(), Manager::GetAppFrame(), EditorManager::GetBuiltinActiveEditor(), Manager::GetEditorManager(), ProjectManager::GetIsRunning(), Manager::GetProjectManager(), idMenuBuildWorkspace, idMenuClean, idMenuCleanWorkspace, idMenuClearErrors, idMenuCompile, idMenuCompileAndRun, idMenuCompileFile, idMenuKillProcess, idMenuNextError, idMenuPreviousError, idMenuProjectCompilerOptions, idMenuRebuild, idMenuRebuildWorkspace, idMenuRun, idMenuSelectTarget, and idMenuSelectTargetDialog.
Referenced by GetConfigurationGroup().
|
private |
Definition at line 3406 of file compilergcc.cpp.
Referenced by OnAttach().
|
private |
Definition at line 2636 of file compilergcc.cpp.
|
private |
Definition at line 978 of file compilergcc.cpp.
References wxFileName::Assign(), Manager::Get(), EditorManager::GetBuiltinActiveEditor(), Manager::GetEditorManager(), EditorBase::GetFilename(), ProjectFile::GetParentProject(), cbEditor::GetProjectFile(), Manager::GetProjectManager(), cbEditor::Save(), and ProjectManager::SetProject().
|
private |
Definition at line 965 of file compilergcc.cpp.
References ProjectFile::file, and FileTreeData::GetProjectFile().
Definition at line 2553 of file compilergcc.cpp.
References _T, CompilerGCC::CompilerValidResult::compiler, F(), Manager::Get(), cbProject::GetBuildTarget(), wxArrayString::GetCount(), Manager::GetLogManager(), Manager::GetProjectManager(), ProjectManager::GetProjects(), CompileTargetBase::GetTitle(), CompilerGCC::CompilerValidResult::isValid, LogManager::LogWarning(), wxString::Printf(), CompilerGCC::BuildJobTarget::project, CompileOptionsBase::SupportsCurrentPlatform(), CompilerGCC::BuildJobTarget::targetName, and wxString::wx_str().
|
private |
Definition at line 1687 of file compilergcc.cpp.
References _(), baBuild, baBuildFile, baClean, baRun, cbEVT_SHOW_LOG_MANAGER, cltNormal, Manager::Get(), CompilerFactory::GetCompiler(), Compiler::GetName(), CompileTargetBase::GetTitle(), ltAll, wxString::Printf(), Manager::ProcessEvent(), wxString::wx_str(), wxEmptyString, and wxT.
|
private |
Definition at line 1656 of file compilergcc.cpp.
References _T, Manager::Get(), ProjectBuildTarget::GetFullTitle(), Manager::GetLogManager(), Compiler::GetName(), LogManager::LogError(), Compiler::MakeInvalidCompilerMessages(), wxString::Printf(), wxString::wx_str(), and wxT.
|
private |
Definition at line 1042 of file compilergcc.cpp.
References wxEmptyString.
|
private |
Definition at line 1158 of file compilergcc.cpp.
Referenced by CompilerOptionsDlg::OnApply().
|
virtual |
Rebuild the project/target.
Rebuilding a project is equal to calling Clean() and then Build(). This makes sure that all compilable files in the project will be compiled again.
target | The specific build target to rebuild. If NULL, it rebuilds all the build targets of the current project. |
Implements cbCompilerPlugin.
Definition at line 2785 of file compilergcc.cpp.
References _T, and CompileTargetBase::GetTitle().
Referenced by GetToolBarPriority().
|
virtual |
Same as Rebuild(ProjectBuildTarget*) but with a wxString argument.
Implements cbCompilerPlugin.
Definition at line 2790 of file compilergcc.cpp.
References _T, Manager::Get(), Manager::GetConfigManager(), and ConfigManager::ReadBool().
|
virtual |
Rebuild all open projects.
target | If not empty, the target to rebuild in each project. Else all targets. |
Implements cbCompilerPlugin.
Definition at line 2849 of file compilergcc.cpp.
References _T, Manager::Get(), Manager::GetConfigManager(), and ConfigManager::ReadBool().
Referenced by GetToolBarPriority().
|
private |
Definition at line 2176 of file compilergcc.cpp.
References bjIdle, bsNone, Manager::Get(), Manager::GetProjectManager(), and ProjectManager::GetProjects().
|
virtual |
Run the project/target.
Running a project means executing its build output. Of course this depends on the selected build target and its type.
target | The specific build target to "run". If NULL, the plugin should ask the user which target to "run" (except maybe if there is only one build target in the project). |
Implements cbCompilerPlugin.
Definition at line 1823 of file compilergcc.cpp.
References _(), _T, baRun, cbGetDynamicLinkerPathForTarget(), cbMessageBox(), CompilerGCC::CompilerValidResult::compiler, wxString::Contains(), DEFAULT_CONSOLE_SHELL, DEFAULT_CONSOLE_TERM, EscapeSpaces(), F(), Manager::Get(), wxString::GetChar(), CompileTargetBase::GetCompilerID(), Manager::GetConfigManager(), ConfigManager::GetExecutableFolder(), CompileTargetBase::GetExecutionParameters(), wxFileName::GetFullPath(), CompileTargetBase::GetHostApplication(), Manager::GetLogManager(), Manager::GetMacrosManager(), CompileTargetBase::GetOutputFilename(), Manager::GetProjectManager(), CompileTargetBase::GetRunHostApplicationInTerminal(), CompileTargetBase::GetTargetType(), ProjectBuildTarget::GetUseConsoleRunner(), CompileTargetBase::GetWorkingDir(), wxString::IsEmpty(), wxFileName::IsRelative(), CompilerGCC::CompilerValidResult::isValid, wxString::length(), LogManager::Log(), wxFileName::MakeAbsolute(), wxString::Mid(), QuoteStringIfNeeded(), ConfigManager::Read(), wxString::Replace(), MacrosManager::ReplaceEnvVars(), MacrosManager::ReplaceMacros(), ProjectManager::SetIsRunning(), ttCommandsOnly, ttConsoleOnly, ttDynamicLib, ttStaticLib, UnixFilename(), wxString::wx_str(), wxCANCEL, wxEmptyString, wxFileExists(), wxGetEnv(), wxICON_QUESTION, wxID_NO, wxID_YES, wxT, and wxYES_NO.
Referenced by GetToolBarPriority().
|
virtual |
Same as Run(ProjectBuildTarget*) but with a wxString argument.
Implements cbCompilerPlugin.
Definition at line 1816 of file compilergcc.cpp.
References wxString::IsEmpty().
|
virtual |
Definition at line 1757 of file compilergcc.cpp.
References _(), _T, cbMessageBox(), DEFAULT_CONSOLE_TERM, FileFilters::EXECUTABLE_EXT, F(), Manager::Get(), Manager::GetConfigManager(), ConfigManager::GetExecutableFolder(), wxFileName::GetExt(), wxFileName::GetFullPath(), Manager::GetLogManager(), Manager::GetMacrosManager(), wxFileName::GetPath(), Manager::GetScriptingManager(), ScriptingManager::LoadScript(), LogManager::Log(), ConfigManager::Read(), wxString::Replace(), MacrosManager::ReplaceEnvVars(), wxFileName::SetExt(), wxString::wx_str(), wxCANCEL, wxEmptyString, wxFileExists(), wxICON_QUESTION, wxID_NO, wxID_YES, and wxYES_NO.
Referenced by GetToolBarPriority().
|
private |
Definition at line 3707 of file compilergcc.cpp.
References _(), _T, wxURI::BuildURI(), F(), Manager::Get(), Manager::GetLogManager(), wxFile::IsOpened(), LogManager::Log(), wxDateTime::Now(), wxString::Replace(), Logger::warning, wxFile::Write(), wxFile::write, and wxString::wx_str().
|
private |
Definition at line 834 of file compilergcc.cpp.
References CompilerFactory::SaveSettings().
Referenced by CompilerOptionsDlg::OnApply().
|
private |
Definition at line 683 of file compilergcc.cpp.
References _(), _T, wxPathList::Add(), wxPathList::AddEnvList(), CompilerPrograms::C, LogManager::DebugLog(), LogManager::DebugLogError(), InfoWindow::Display(), F(), wxPathList::FindAbsoluteValidPath(), Manager::Get(), CompilerFactory::GetCompiler(), wxArrayString::GetCount(), Compiler::GetExtraPaths(), Manager::GetLogManager(), Manager::GetMacrosManager(), Compiler::GetMasterPath(), Compiler::GetName(), wxFileName::GetPathSeparator(), Compiler::GetPrograms(), wxArrayString::Index(), wxString::IsEmpty(), wxString::Last(), wxArrayString::Remove(), wxString::RemoveLast(), MacrosManager::ReplaceMacros(), wxString::Trim(), wxString::wx_str(), wxEmptyString, wxFileExists(), wxGetEnv(), wxNOT_FOUND, wxPathOnly(), wxSetEnv(), and wxT.
Referenced by CompilerOptionsDlg::OnApply().
|
private |
Definition at line 1022 of file compilergcc.cpp.
References _(), cbEVT_SWITCH_TO_LOG_WINDOW, Manager::Get(), wxFileName::GetFullPath(), Manager::GetLogManager(), wxString::IsEmpty(), LogManager::Log(), wxFileName::MakeRelativeTo(), Manager::ProcessEvent(), and UnixFilename().
|
private |
Definition at line 805 of file compilergcc.cpp.
References _(), cbMessageBox(), Manager::Get(), DebuggerManager::GetActiveDebugger(), Manager::GetDebuggerManager(), Manager::GetLogManager(), cbDebuggerPlugin::IsRunning(), LogManager::Log(), cbDebuggerPlugin::Stop(), wxCANCEL, wxICON_QUESTION, wxID_NO, wxID_YES, and wxYES_NO.
void CompilerGCC::SwitchCompiler | ( | const wxString & | id | ) |
Definition at line 955 of file compilergcc.cpp.
References CompilerFactory::GetCompiler().
Referenced by GetConfigurationGroup().
|
private |
Definition at line 675 of file compilergcc.cpp.
References wxTextUrlEvent::GetURLStart(), idBuildLog, and wxMOUSE_BTN_LEFT.
|
private |
|
private |
Definition at line 1617 of file compilergcc.cpp.
References CompilerFactory::GetCompiler(), CompileTargetBase::GetCompilerID(), and cbProject::IsMakefileCustom().
|
friend |
Definition at line 155 of file compilergcc.h.
|
private |
Definition at line 310 of file compilergcc.h.
|
private |
Definition at line 302 of file compilergcc.h.
|
private |
Definition at line 303 of file compilergcc.h.
|
private |
Definition at line 257 of file compilergcc.h.
|
private |
Definition at line 322 of file compilergcc.h.
|
private |
Definition at line 320 of file compilergcc.h.
|
private |
Definition at line 321 of file compilergcc.h.
|
private |
Definition at line 323 of file compilergcc.h.
|
private |
Definition at line 304 of file compilergcc.h.
|
private |
Definition at line 292 of file compilergcc.h.
|
private |
Definition at line 309 of file compilergcc.h.
|
private |
Definition at line 277 of file compilergcc.h.
|
private |
Definition at line 278 of file compilergcc.h.
|
private |
Definition at line 271 of file compilergcc.h.
|
private |
Definition at line 327 of file compilergcc.h.
|
private |
Definition at line 295 of file compilergcc.h.
|
private |
Definition at line 318 of file compilergcc.h.
|
private |
Definition at line 313 of file compilergcc.h.
|
private |
Definition at line 294 of file compilergcc.h.
Referenced by GetExitCode().
|
private |
Definition at line 296 of file compilergcc.h.
|
private |
Definition at line 280 of file compilergcc.h.
|
private |
Definition at line 328 of file compilergcc.h.
Referenced by CompilerOptionsDlg::OnApply().
|
private |
Definition at line 326 of file compilergcc.h.
|
private |
Definition at line 281 of file compilergcc.h.
|
private |
Definition at line 305 of file compilergcc.h.
|
private |
Definition at line 297 of file compilergcc.h.
|
private |
Definition at line 279 of file compilergcc.h.
|
private |
Definition at line 301 of file compilergcc.h.
|
private |
Definition at line 284 of file compilergcc.h.
|
private |
Definition at line 306 of file compilergcc.h.
|
private |
Definition at line 307 of file compilergcc.h.
|
private |
Definition at line 289 of file compilergcc.h.
|
private |
Definition at line 288 of file compilergcc.h.
|
private |
Definition at line 285 of file compilergcc.h.
|
private |
Definition at line 286 of file compilergcc.h.
|
private |
Definition at line 290 of file compilergcc.h.
|
private |
Definition at line 275 of file compilergcc.h.
|
private |
Definition at line 274 of file compilergcc.h.
|
private |
Definition at line 291 of file compilergcc.h.
|
private |
Definition at line 293 of file compilergcc.h.
|
private |
Definition at line 316 of file compilergcc.h.
|
private |
Definition at line 315 of file compilergcc.h.
|
private |
Definition at line 298 of file compilergcc.h.
|
private |
Definition at line 283 of file compilergcc.h.
|
private |
Definition at line 282 of file compilergcc.h.
|
private |
Definition at line 273 of file compilergcc.h.
|
private |
Definition at line 287 of file compilergcc.h.