25 :
Compiler(
_(
"GNU Fortran Compiler"),
_T(
"gfortran"))
50 wxChar pathSep = platform::windows ? _T(
'\\') : _T(
'/');
52 for (
size_t i = 0; i < pathArray.
GetCount(); ++i)
56 if (pathArray[i].AfterLast(pathSep).IsSameAs(_T(
"bin")))
66 if (platform::windows)
78 m_MasterPath = ini.
Read(_T(
"/InstallSettings/InstallPath"), _T(
"C:\\MinGW"));
81 #ifdef __WXMSW__ // for wxRegKey 85 key.
SetName(_T(
"HKEY_LOCAL_MACHINE\\Software\\Dev-C++"));
97 key.
SetName(_T(
"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"));
100 while (ok && !name.
StartsWith(_T(
"Minimalist GNU for Windows")))
106 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.
virtual ~CompilerGNUFortran()
static wxString GetExecutableFolder()
virtual Compiler * CreateCopy()
Implement this in new compilers, to return a new copy.
bool GetNextKey(wxString &strKeyName, long &lIndex) const
virtual AutoDetectResult AutoDetectInstallationDir()
Try to auto-detect the compiler's installation directory.
bool StartsWith(const wxString &prefix, wxString *rest=NULL) const
bool Open(AccessMode mode=Write)
void SetName(const wxString &strKey)