25 Compiler* CompilerFactory::s_DefaultCompiler =
nullptr;
45 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
51 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
63 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
65 if (
Compilers[i]->GetName().IsSameAs(title))
74 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
80 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
92 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
111 if (
id.Matches(from_id))
117 if (
id.Matches(from_id))
122 if (compiler == newcompiler)
127 compiler = newcompiler;
135 for (; idx > 0; --idx)
150 for (
unsigned int i = 0; i < paths.
GetCount(); ++i)
171 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
182 newC->
m_ID = newName;
254 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
261 event.SetInt(static_cast<int>(i));
262 event.SetClientData(static_cast<void*>(
Compilers[i]));
269 bool needAutoDetection =
false;
270 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
277 event.SetInt(static_cast<int>(i));
278 event.SetClientData(static_cast<void*>(
Compilers[i]));
281 if (
Compilers[i]->GetMasterPath().IsEmpty())
284 needAutoDetection =
true;
289 if (needAutoDetection)
305 for (
size_t i = 0; i <
Compilers.GetCount(); ++i)
325 _(
"Compiler selection"),
339 Version = pCompiler->GetVersionString();
wxString F(const wxChar *msg,...)
sprintf-like function
void Remove(const wxString &sz)
const wxString empty(_T(""))
virtual void SetName(const wxString &name)
Set the compiler's name.
static wxArrayString m_CompilerIDs
ConfigManager * GetConfigManager(const wxString &name_space) const
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
static Compiler * GetDefaultCompiler()
EVTIMPORT const wxEventType cbEVT_COMPILER_SETTINGS_CHANGED
static Compiler * GetCompiler(size_t index)
static int GetCompilerIndex(const wxString &id)
static const wxString & GetDefaultCompilerID()
#define WX_CLEAR_ARRAY(wxArray_arrayToBeCleared)
virtual void ReloadOptions()
Reload option flags (for copied compilers).
static void UnregisterCompilers()
Unregister all compilers.
A generic Code::Blocks event.
static Compiler * CreateCompilerCopy(Compiler *compiler, const wxString &newName)
Create a copy of a compiler.
virtual void LoadSettings(const wxString &baseKey)
Load settings.
static void RemoveCompiler(Compiler *compiler)
Remove a compiler.
static Compiler * SelectCompilerUI(const wxString &message=_("Select compiler"), const wxString &preselectedID=wxEmptyString)
void SetSelection(int selection)
const wxString & GetID() const
Get this compiler's unique ID.
virtual Compiler * CreateCopy()=0
Implement this in new compilers, to return a new copy.
wxArrayString EnumerateSubPaths(const wxString &path)
static wxString GetCompilerVersionString(const wxString &Id)
get the version number as string for the compiler with the specified index
size_t Replace(const wxString &strOld, const wxString &strNew, bool replaceAll=true)
bool IsSameAs(const wxString &s, bool caseSensitive=true) const
static void SetDefaultCompiler(size_t index)
static void RegisterCompiler(Compiler *compiler)
Register a supported (builtin) compiler.
LogManager * GetLogManager() const
wxString Read(const wxString &key, const wxString &defaultVal=wxEmptyString)
static void RegisterUserCompilers()
Register all user-defined compiler copies.
static void SaveSettings()
const wxStringCharType * wx_str() const
static void LoadSettings()
const wxString & _(const wxString &string)
static bool CompilerInheritsFrom(const wxString &id, const wxString &from_id)
Abstract base class for compilers.
void DeleteSubPath(const wxString &strPath)
DLLIMPORT void PlaceWindow(wxTopLevelWindow *w, cbPlaceDialogMode mode=pdlBest, bool enforce=false)
virtual const wxString & GetName() const
Get the compiler's name.
const wxString & GetParentID() const
Get this compiler's parent's unique ID.
static Compiler * s_DefaultCompiler
void DebugLog(const wxString &msg, Logger::level lv=Logger::info)
bool ProcessEvent(CodeBlocksEvent &event)
static CompilersArray Compilers
static size_t GetCompilersCount()
static Compiler * GetCompilerByName(const wxString &title)