49 wxChar pathSep = platform::windows ? _T(
'\\') : _T(
'/');
51 for (
size_t i = 0; i < pathArray.
GetCount(); ++i)
55 if (pathArray[i].AfterLast(pathSep).IsSameAs(_T(
"bin")))
65 if (platform::windows)
77 m_MasterPath = ini.
Read(_T(
"/InstallSettings/InstallPath"), _T(
"C:\\MinGW"));
80 #ifdef __WXMSW__ // for wxRegKey 84 key.
SetName(_T(
"HKEY_LOCAL_MACHINE\\Software\\Dev-C++"));
96 key.
SetName(_T(
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"));
99 while (ok && !name.
StartsWith(_T(
"Minimalist GNU for Windows")))
105 name = key.
GetName() + _T(
"\\") + name;
wxString GetName(bool bShortPrefix=true) const
DLLIMPORT wxArrayString GetArrayFromString(const wxString &text, const wxString &separator=DEFAULT_ARRAY_SEP, bool trimSpaces=true)
bool wxGetEnv(const wxString &var, wxString *value)
bool Read(const wxString &key, wxString *str) const
bool wxFileExists(const wxString &filename)
bool GetFirstKey(wxString &strKeyName, long &lIndex)
virtual void Reset()
Reset settings to defaults.
bool QueryValue(const wxString &szValue, wxString &strValue, bool raw) const
CompilerPrograms m_Programs
wxUSE_UNICODE_dependent wxChar
static wxUniChar GetPathSeparator(wxPathFormat format=wxPATH_NATIVE)
wxString wxGetOSDirectory()
const wxString & _(const wxString &string)
Abstract base class for compilers.
static wxString GetExecutableFolder()
bool GetNextKey(wxString &strKeyName, long &lIndex) const
virtual Compiler * CreateCopy()
Implement this in new compilers, to return a new copy.
bool StartsWith(const wxString &prefix, wxString *rest=NULL) const
bool Open(AccessMode mode=Write)
void SetName(const wxString &strKey)
virtual void SetVersionString()
Set the compiler version string.
virtual AutoDetectResult AutoDetectInstallationDir()
Try to auto-detect the compiler's installation directory.