41 XRCCTRL(*
this,
"wxID_OK",
wxButton)->SetDefault();
75 list->
SetItem(idx, 1,
_(
"Not found"));
90 if (path.
IsEmpty() || path == pathDetected || path_no_macros == pathDetected)
91 list->
SetItem(idx, 1,
_(
"Detected"));
93 list->
SetItem(idx, 1,
_(
"User-defined"));
100 if (
wxFileName::DirExists(path_no_macros) && !(path == pathDetected || path_no_macros == pathDetected) )
102 list->
SetItem(idx, 1,
_(
"User-defined"));
115 list->
SetItem(idx, 1,
_(
"User-defined"));
122 else if (highlight == -1)
164 if (txt ==
wxT(
"Detected") || txt ==
wxT(
"User-defined"))
168 if (list->GetToolTip())
171 list->UnsetToolTip();
172 else if (txt != list->GetToolTip()->GetTip())
173 list->SetToolTip(txt);
176 list->SetToolTip(txt);
183 XRCCTRL(*
this,
"btnDefault",
wxButton)->Enable(en);
virtual const wxString & GetMasterPath() const
Get the compiler's master path (must contain "bin", "include" and "lib")
ConfigManager * GetConfigManager(const wxString &name_space) const
void SetItemBackgroundColour(long item, const wxColour &col)
static Manager * Get()
Use Manager::Get() to get a pointer to its instance Manager::Get() is guaranteed to never return an i...
long GetNextItem(long item, int geometry=wxLIST_NEXT_ALL, int state=wxLIST_STATE_DONTCARE) const
static Compiler * GetDefaultCompiler()
static Compiler * GetCompiler(size_t index)
#define wxLIST_STATE_SELECTED
void OnDefaultClick(wxCommandEvent &event)
wxPoint GetPosition() const
~AutoDetectCompilers() override
const wxString & GetID() const
Get this compiler's unique ID.
long InsertItem(wxListItem &info)
bool Exists(const wxString &name)
void SetItemTextColour(long item, const wxColour &col)
static void SetDefaultCompiler(size_t index)
void OnUpdateUI(wxUpdateUIEvent &event)
MacrosManager * GetMacrosManager() const
const wxString & _(const wxString &string)
void ReplaceMacros(wxString &buffer, ProjectBuildTarget *target=nullptr, bool subrequest=false)
Abstract base class for compilers.
virtual const wxString & GetName() const
Get the compiler's name.
const wxString & GetParentID() const
Get this compiler's parent's unique ID.
long InsertColumn(long col, const wxListItem &info)
bool SetItem(wxListItem &info)
bool SetColumnWidth(int col, int width)
static size_t GetCompilersCount()
long HitTest(const wxPoint &point, int &flags, long *ptrSubItem=NULL) const
static wxXmlResource * Get()
virtual AutoDetectResult AutoDetectInstallationDir()=0
Try to auto-detect the compiler's installation directory.
void OnMouseMotion(wxMouseEvent &event)
wxObject * LoadObject(wxWindow *parent, const wxString &name, const wxString &classname)
virtual void SetMasterPath(const wxString &path)
Set the compiler's master path (must contain "bin", "include" and "lib")
bool GetItem(wxListItem &info) const