RecentFiles recentFiles { };
RecentWorkspaces recentWorkspaces { };
+ property CompilerConfigs compilers
+ {
+ set { compilers.Free(); delete compilers; compilers = value; }
+ get { return compilers; }
+ }
+ property RecentFiles recentFiles
+ {
+ set { recentFiles.Free(); delete recentFiles; recentFiles = value; }
+ get { return recentFiles; }
+ }
+ property RecentWorkspaces recentProjects
+ {
+ set { recentWorkspaces.Free(); delete recentWorkspaces; recentWorkspaces = value; }
+ get { return recentWorkspaces; }
+ }
+
+ ~IDEConfigHolder()
+ {
+ compilers.Free();
+ recentFiles.Free();
+ recentWorkspaces.Free();
+ }
+
void forcePathSeparatorStyle(bool unixStyle)
{
char from, to;
char moduleLocation[MAX_LOCATION];
+ FileMonitor recentFilesMonitor
+ {
+ this, fileChange = { modified = true };
+
+ bool OnFileNotify(FileChange action, const char * param)
+ {
+ File f;
+ recentFilesMonitor.StopMonitoring();
+ f = FileOpen(recentFilesMonitor.fileName, read);
+ if(f)
+ {
+ int c;
+ bool locked;
+ for(c = 0; c < 10 && !(locked = f.Lock(shared, 0, 0, false)); c++) ecere::sys::Sleep(0.01);
+ RecentFiles::read();
+ f.Unlock(0,0,true);
+ delete f;
+ }
+ return true;
+ }
+ };
+
+ FileMonitor recentProjectsMonitor
+ {
+ this, fileChange = { modified = true };
+
+ bool OnFileNotify(FileChange action, const char * param)
+ {
+ File f;
+ recentProjectsMonitor.StopMonitoring();
+ f = FileOpen(recentProjectsMonitor.fileName, read);
+ if(f)
+ {
+ int c;
+ bool locked;
+ for(c = 0; c < 10 && !(locked = f.Lock(shared, 0, 0, false)); c++) ecere::sys::Sleep(0.01);
+ RecentWorkspaces::read();
+ f.Unlock(0,0,true);
+ delete f;
+ }
+ return true;
+ }
+ };
+
private:
bool oldConfig;
FileSize settingsFileSize;
}
}
- if(oldConfig)
- {
- if(data.compilerConfigs && data.compilerConfigs.count)
- {
- for(c : data.compilerConfigs)
- ideConfig.compilers.Add(c);
- data.compilerConfigs.RemoveAll();
- }
- if(data.recentFiles && data.recentFiles.count)
- {
- for(s : data.recentFiles)
- ideConfig.recentFiles.Add(s);
- data.recentFiles.RemoveAll();
- }
- if(data.recentProjects && data.recentProjects.count)
- {
- for(s : data.recentProjects)
- ideConfig.recentWorkspaces.Add(s);
- data.recentProjects.RemoveAll();
- }
- ideConfig.forcePathSeparatorStyle(true);
- }
-
CloseAndMonitor();
FileGetSize(settingsFilePath, &settingsFileSize);
- if(oldConfig)
- CompilerConfigs::fix();
if(portable && moduleLocation[0] && FileExists(moduleLocation).isDirectory)
data.ManagePortablePaths(moduleLocation, true);
data.ForcePathSeparatorStyle(true);
-#if !defined(ECERE_DOCUMENTOR) && !defined(ECERE_EPJ2MAKE)
- globalSettingsDialog.ideSettings = data;
+ // Import from previous ecereIDE settings
if(oldConfig)
{
- ide.updateRecentMenus();
- ide.UpdateCompilerConfigs(true);
- }
-#endif
+ data.compilerConfigs.ensureDefaults();
+ data.compilerConfigs.write(null);
+ data.compilerConfigs.Free();
+
+ data.recentFiles.write();
+ data.recentFiles.Free();
+
+ data.recentProjects.write();
+ data.recentProjects.Free();
- if(oldConfig)
- {
- useNewConfigurationFiles = true;
Save();
- CompilerConfigs::write(null);
}
+
+#if !defined(ECERE_DOCUMENTOR) && !defined(ECERE_EPJ2MAKE)
+ globalSettingsDialog.ideSettings = data;
+#endif
return result;
}
char * path = CopyString(fl.path);
MakeSlashPath(path);
GetLastDirectory(path, name);
- {
- char * s = strstr(name, ".");
- if(s) *s = 0;
- }
+ StripExtension(name);
map[name] = path;
}
}
char * path = CopyString(fl.path);
MakeSlashPath(path);
GetLastDirectory(path, name);
- {
- char * s = strstr(name, ".");
- if(s) *s = 0;
- }
+ StripExtension(name);
{
CompilerConfig ccfg = CompilerConfig::read(path);
if(ccfg)
if(configName)
{
PathCatSlash(path, configName);
- ChangeExtension(path, "econ", path);
+ strcat(path, ".econ");
}
}
else if(_class == class(RecentFilesData))
RecentFiles recentFiles { };
RecentWorkspaces recentProjects { };
- CompilerConfig GetCompilerConfig(const String compilerName)
- {
- const char * name = compilerName && compilerName[0] ? compilerName : defaultCompilerName;
- CompilerConfig compilerConfig = null;
- for(compiler : compilerConfigs)
- {
- if(!strcmp(compiler.name, name))
- {
- compilerConfig = compiler;
- break;
- }
- }
- if(!compilerConfig && compilerConfigs.count)
- compilerConfig = compilerConfigs.firstIterator.data;
- if(compilerConfig)
- incref compilerConfig;
- return compilerConfig;
- }
-
~IDESettings()
{
compilerConfigs.Free();
readConfigFile(path, _class, &d);
if(d && d.recentFiles && d.recentFiles.count)
{
- IDESettings s = (IDESettings)settingsContainer.data;
- s.property::recentFiles = d.recentFiles;
+ ideConfig.recentFiles = d.recentFiles;
d.recentFiles = null;
#if !defined(ECERE_DOCUMENTOR) && !defined(ECERE_EPJ2MAKE)
ide.updateRecentFilesMenu();
#endif
}
delete d;
+ settingsContainer.recentFilesMonitor.fileName = path;
+ settingsContainer.recentFilesMonitor.StartMonitoring();
}
- void ::write()
+ void write()
{
char path[MAX_LOCATION];
- IDESettings s = (IDESettings)settingsContainer.data;
RecentFilesData d { };
Class _class = class(RecentFilesData);
getConfigFilePath(path, _class, null, null);
- d.recentFiles = s.recentFiles;
+ d.recentFiles = this;
writeConfigFile(path, _class, d);
d.recentFiles = null;
delete d;
readConfigFile(path, _class, &d);
if(d && d.recentWorkspaces && d.recentWorkspaces.count)
{
- IDESettings s = (IDESettings)settingsContainer.data;
- s.property::recentProjects = d.recentWorkspaces;
+ ideConfig.recentProjects = d.recentWorkspaces;
d.recentWorkspaces = null;
#if !defined(ECERE_DOCUMENTOR) && !defined(ECERE_EPJ2MAKE)
ide.updateRecentProjectsMenu();
#endif
}
+ settingsContainer.recentProjectsMonitor.fileName = path;
+ settingsContainer.recentProjectsMonitor.StartMonitoring();
delete d;
}
- void ::write()
+ void write()
{
char path[MAX_LOCATION];
- IDESettings s = (IDESettings)settingsContainer.data;
RecentWorkspacesData d { };
Class _class = class(RecentWorkspacesData);
getConfigFilePath(path, _class, null, null);
- d.recentWorkspaces = s.recentProjects;
+ d.recentWorkspaces = this;
writeConfigFile(path, _class, d);
d.recentWorkspaces = null;
delete d;
return Array::Add((T)filePath);
}
- IteratorPointer addRecent(T value)
+ IteratorPointer addRecent(const String value)
{
int c;
- char * filePath = (char *)value;
+ char * filePath = CopyString((char *)value);
IteratorPointer ip;
ChangeCh(filePath, '\\', '/');
for(c = 0; c < count; c++)
int OnCompare(CompilerConfig b)
{
int result;
- if(!(result = name.OnCompare(b.name)) &&
+ if(
+ !(result = type.OnCompare(b.type)) &&
+ !(result = targetPlatform.OnCompare(b.targetPlatform)) &&
+ !(result = numJobs.OnCompare(b.numJobs)));
+
+ if(!result &&
+ !(result = name.OnCompare(b.name)) &&
!(result = ecpCommand.OnCompare(b.ecpCommand)) &&
!(result = eccCommand.OnCompare(b.eccCommand)) &&
!(result = ecsCommand.OnCompare(b.ecsCommand)) &&
!(result = executableLauncher.OnCompare(b.executableLauncher)) &&
!(result = distccHosts.OnCompare(b.distccHosts)) &&
!(result = gnuToolchainPrefix.OnCompare(b.gnuToolchainPrefix)) &&
- !(result = sysroot.OnCompare(b.sysroot)))
- ;
+ !(result = sysroot.OnCompare(b.sysroot)));
if(!result &&
!(result = includeDirs.OnCompare(b.includeDirs)) &&
!(result = cxxFlags.OnCompare(b.cxxFlags)) &&
!(result = eCcompilerFlags.OnCompare(b.eCcompilerFlags)) &&
!(result = compilerFlags.OnCompare(b.compilerFlags)) &&
- !(result = linkerFlags.OnCompare(b.linkerFlags)))
- ;
-
+ !(result = linkerFlags.OnCompare(b.linkerFlags)));
return result;
}
class CompilerConfigs : List<CompilerConfig>
{
- void ::fix()
+ CompilerConfig GetCompilerConfig(const String compilerName)
+ {
+ const char * name = compilerName && compilerName[0] ? compilerName : defaultCompilerName;
+ CompilerConfig compilerConfig = null;
+ for(compiler : this)
+ {
+ if(!strcmp(compiler.name, name))
+ {
+ compilerConfig = compiler;
+ break;
+ }
+ }
+ if(!compilerConfig && count)
+ compilerConfig = this[0];
+ if(compilerConfig)
+ {
+ incref compilerConfig;
+ if(compilerConfig._refCount == 1)
+ incref compilerConfig;
+ }
+ return compilerConfig;
+ }
+
+ void ensureDefaults()
{
- IDESettings s = (IDESettings)settingsContainer.data;
// Ensure we have a default compiler
- CompilerConfig defaultCompiler = null;
- defaultCompiler = s.GetCompilerConfig(defaultCompilerName);
+ CompilerConfig defaultCompiler = GetCompilerConfig(defaultCompilerName);
if(!defaultCompiler)
{
defaultCompiler = MakeDefaultCompiler(defaultCompilerName, true);
- s.compilerConfigs.Insert(null, defaultCompiler);
+ Insert(null, defaultCompiler);
defaultCompiler = null;
}
delete defaultCompiler;
- if(s.compilerConfigs)
+ for(ccfg : this)
{
- for(ccfg : s.compilerConfigs)
- {
- if(!ccfg.ecpCommand || !ccfg.ecpCommand[0])
- ccfg.ecpCommand = ecpDefaultCommand;
- if(!ccfg.eccCommand || !ccfg.eccCommand[0])
- ccfg.eccCommand = eccDefaultCommand;
- if(!ccfg.ecsCommand || !ccfg.ecsCommand[0])
- ccfg.ecsCommand = ecsDefaultCommand;
- if(!ccfg.earCommand || !ccfg.earCommand[0])
- ccfg.earCommand = earDefaultCommand;
- if(!ccfg.cppCommand || !ccfg.cppCommand[0])
- ccfg.cppCommand = cppDefaultCommand;
- if(!ccfg.ccCommand || !ccfg.ccCommand[0])
- ccfg.ccCommand = ccDefaultCommand;
- if(!ccfg.cxxCommand || !ccfg.cxxCommand[0])
- ccfg.cxxCommand = cxxDefaultCommand;
- /*if(!ccfg.ldCommand || !ccfg.ldCommand[0])
- ccfg.ldCommand = ldDefaultCommand;*/
- if(!ccfg.arCommand || !ccfg.arCommand[0])
- ccfg.arCommand = arDefaultCommand;
- if(!ccfg.objectFileExt || !ccfg.objectFileExt[0])
- ccfg.objectFileExt = objectDefaultFileExt;
- /*if(!ccfg.staticLibFileExt || !ccfg.staticLibFileExt[0])
- ccfg.staticLibFileExt = staticLibDefaultFileExt;*/
- /*if(!ccfg.sharedLibFileExt || !ccfg.sharedLibFileExt[0])
- ccfg.sharedLibFileExt = sharedLibDefaultFileExt;*/
- /*if(!ccfg.executableFileExt || !ccfg.executableFileExt[0])
- ccfg.executableFileExt = outputDefaultFileExt;*/
- if(!ccfg._refCount) incref ccfg;
- }
+ if(!ccfg.ecpCommand || !ccfg.ecpCommand[0])
+ ccfg.ecpCommand = ecpDefaultCommand;
+ if(!ccfg.eccCommand || !ccfg.eccCommand[0])
+ ccfg.eccCommand = eccDefaultCommand;
+ if(!ccfg.ecsCommand || !ccfg.ecsCommand[0])
+ ccfg.ecsCommand = ecsDefaultCommand;
+ if(!ccfg.earCommand || !ccfg.earCommand[0])
+ ccfg.earCommand = earDefaultCommand;
+ if(!ccfg.cppCommand || !ccfg.cppCommand[0])
+ ccfg.cppCommand = cppDefaultCommand;
+ if(!ccfg.ccCommand || !ccfg.ccCommand[0])
+ ccfg.ccCommand = ccDefaultCommand;
+ if(!ccfg.cxxCommand || !ccfg.cxxCommand[0])
+ ccfg.cxxCommand = cxxDefaultCommand;
+ /*if(!ccfg.ldCommand || !ccfg.ldCommand[0])
+ ccfg.ldCommand = ldDefaultCommand;*/
+ if(!ccfg.arCommand || !ccfg.arCommand[0])
+ ccfg.arCommand = arDefaultCommand;
+ if(!ccfg.objectFileExt || !ccfg.objectFileExt[0])
+ ccfg.objectFileExt = objectDefaultFileExt;
+ /*if(!ccfg.staticLibFileExt || !ccfg.staticLibFileExt[0])
+ ccfg.staticLibFileExt = staticLibDefaultFileExt;*/
+ /*if(!ccfg.sharedLibFileExt || !ccfg.sharedLibFileExt[0])
+ ccfg.sharedLibFileExt = sharedLibDefaultFileExt;*/
+ /*if(!ccfg.executableFileExt || !ccfg.executableFileExt[0])
+ ccfg.executableFileExt = outputDefaultFileExt;*/
+ if(!ccfg._refCount) incref ccfg;
}
}
AVLTree<String> list { };
for(ccfg : this)
{
- for(occfg : oldConfigs)
+ bool found = false;
+ for(occfg : oldConfigs; !strcmp(ccfg.name, occfg.name))
{
- if(!strcmp(ccfg.name, occfg.name))
- {
- if(ccfg.OnCompare(occfg))
- list.Add(CopyString(ccfg.name));
- break;
- }
+ found = true;
+ if(ccfg.OnCompare(occfg))
+ list.Add(CopyString(ccfg.name));
+ break;
}
+ if(!found)
+ list.Add(CopyString(ccfg.name));
}
return list;
}
- void ::read()
+ void read()
{
if(settingsContainer.settingsFilePath)
{
getConfigFilePath(path, _class, dir, null);
if(dir[0])
{
- CompilerConfigs ccfgs { };
AVLTree<const String> addedConfigs { };
- IDESettings s = (IDESettings)settingsContainer.data;
Map<String, CompilerConfig> compilerConfigsByName = getCompilerConfigsByName(dir);
MapIterator<const String, CompilerConfig> it { map = compilerConfigsByName };
if(it.Index("Default", false))
{
CompilerConfig ccfg = it.data;
- ccfgs.Add(ccfg.Copy());
+ Add(ccfg.Copy());
addedConfigs.Add(ccfg.name);
}
for(ccfg : compilerConfigsByName)
{
if(!addedConfigs.Find(ccfg.name))
{
- ccfgs.Add(ccfg.Copy());
+ Add(ccfg.Copy());
addedConfigs.Add(ccfg.name);
}
}
- for(ccfg : s.compilerConfigs)
+ /*
+ for(ccfg : this)
{
if(!addedConfigs.Find(ccfg.name))
- ccfgs.Add(ccfg.Copy());
+ Add(ccfg.Copy());
}
+ */
delete addedConfigs;
- s.property::compilerConfigs = ccfgs;
- fix();
+ ensureDefaults();
compilerConfigsByName.Free();
delete compilerConfigsByName;
#if !defined(ECERE_DOCUMENTOR) && !defined(ECERE_EPJ2MAKE)
}
}
- void ::write(AVLTree<String> cfgsToWrite)
+ void write(AVLTree<String> cfgsToWrite)
{
char dir[MAX_LOCATION];
char path[MAX_LOCATION];
Map<String, String> paths;
- IDESettings s = (IDESettings)settingsContainer.data;
getConfigFilePath(path, class(CompilerConfig), dir, null);
paths = getCompilerConfigFilePathsByName(dir);
{
MapIterator<String, String> it { map = paths };
- for(c : s.compilerConfigs)
+ for(c : this)
{
CompilerConfig ccfg = c;
if(!cfgsToWrite || cfgsToWrite.Find(ccfg.name))
if(ide.workspace && ide.projectView && row && strcmp(row.string, ide.workspace.activeCompiler))
{
bool silent = ide.projectView.buildInProgress == none ? false : true;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(row.string);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(row.string);
ide.workspace.activeCompiler = row.string;
ide.projectView.ShowOutputBuildLog(!silent);
if(!silent)
if(ide.workspace && ide.projectView && row)
{
bool silent = ide.projectView.buildInProgress == none ? false : true;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ide.workspace.bitDepth = (int)row.tag;
ide.projectView.ShowOutputBuildLog(!silent);
if(!silent)
void OnGotoError(const char * line, bool noParsing)
{
- CompilerConfig compiler = ide.workspace ? ideSettings.GetCompilerConfig(ide.workspace.activeCompiler) : null;
+ CompilerConfig compiler = ide.workspace ? ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler) : null;
const char * objectFileExt = compiler ? compiler.objectFileExt : objectDefaultFileExt;
ide.GoToError(line, noParsing, objectFileExt);
delete compiler;
void OnCodeLocationParseAndGoTo(const char * line)
{
- CompilerConfig compiler = ide.workspace ? ideSettings.GetCompilerConfig(ide.workspace.activeCompiler) : null;
+ CompilerConfig compiler = ide.workspace ? ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler) : null;
const char * objectFileExt = compiler ? compiler.objectFileExt : objectDefaultFileExt;
ide.CodeLocationParseAndGoTo(line, ide.findInFilesDialog.findProject, ide.findInFilesDialog.findDir, objectFileExt);
delete compiler;
newProjectDialog.CreateNewProject();
if(projectView)
{
- ideConfig.recentWorkspaces.addRecent(CopyString(projectView.fileName));
+ ideConfig.recentWorkspaces.addRecent(projectView.fileName);
ide.updateRecentProjectsMenu();
}
}
void DocumentSaved(Window document, const char * fileName)
{
- ideConfig.recentFiles.addRecent(CopyString(fileName));
+ ideConfig.recentFiles.addRecent(fileName);
ide.updateRecentFilesMenu();
ide.AdjustFileMenus();
}
{
if(workspace)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(workspace.activeCompiler);
for(prj : workspace.projects)
projectView.ProjectUpdateMakefileForAllConfigs(prj);
delete compiler;
if(workspace)
{
bool silent = mute || (ide.projectView.buildInProgress == none ? false : true);
- CompilerConfig compiler = ideSettings.GetCompilerConfig(workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(workspace.activeCompiler);
if(!silent)
{
projectView.ShowOutputBuildLog(true);
ide.projectView.ShowOutputBuildLog(true);
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ide.projectView.DisplayCompiler(compiler, false);
delete compiler;
}
if(prj)
{
const char * activeConfigName = null;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(workspace.activeCompiler);
prj.StartMonitoring();
workspace.AddProject(prj, null);
if(toolBar.activeConfig.currentRow && toolBar.activeConfig.currentRow != toolBar.activeConfig.firstRow &&
document.state = maximized;
if(isProject)
- ideConfig.recentWorkspaces.addRecent(CopyString(document.fileName));
- else if(!workspace)
- ideConfig.recentFiles.addRecent(CopyString(document.fileName));
- ide.AdjustFileMenus();
+ {
+ ideConfig.recentWorkspaces.addRecent(document.fileName);
+ ide.updateRecentProjectsMenu();
+ settingsContainer.Save();
+ }
+ else if(workspace)
+ {
+ workspace.recentFiles.addRecent(document.fileName);
+ workspace.Save();
+ }
+ else
+ {
+ ideConfig.recentFiles.addRecent(document.fileName);
+ settingsContainer.Save();
+ }
ide.updateRecentFilesMenu();
-
+ ide.AdjustFileMenus();
return document;
}
else
newProjectDialog.Modal();
if(projectView)
{
- ideConfig.recentWorkspaces.addRecent(CopyString(projectView.fileName));
+ ideConfig.recentWorkspaces.addRecent(projectView.fileName);
ide.updateRecentMenus();
}
delete newProjectDialog;
if(buildInProgress == none)
{
Project prj = project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
ProjectConfig config;
if(selection || !ide.activeClient)
bool ProjectInstall(MenuItem selection, Modifiers mods)
{
Project prj = project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
BuildOutputMode mode = selection ? (BuildOutputMode)selection.id : normal;
ProjectConfig config;
bool ProjectLink(MenuItem selection, Modifiers mods)
{
Project prj = project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
BuildOutputMode mode = selection ? (BuildOutputMode)selection.id : normal;
ProjectConfig config;
bool ProjectRebuild(MenuItem selection, Modifiers mods)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
Project prj = project;
BuildOutputMode mode = selection ? (BuildOutputMode)selection.id : normal;
{
Project prj = project;
Array<Project> projects { };
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
if(selection)
{
bool ProjectRegenerate(MenuItem selection, Modifiers mods)
{
Project prj = project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ShowOutputBuildLog(true);
if(selection || !ide.activeClient)
{
if(result)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
result = false;
if(ProjectPrepareForToolchain(project, normal, true, true, compiler, config))
if(result)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
int bitDepth = ide.workspace.bitDepth;
result = false;
if(ProjectPrepareForToolchain(project, normal, true, true, compiler, config))
bool ProjectUpdateMakefileForAllConfigs(Project project)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
// This call really does not belong here:
ide.UpdateToolBarActiveConfigs(false);
bool Run(MenuItem selection, Modifiers mods)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool shellOpen = compiler.hasDocumentOutput;
bool DebugStart()
{
bool result = false;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;
{
char name[MAX_FILENAME];
Project project = node.project;
- CompilerConfig compiler = ideSettings.GetCompilerConfig(project.lastBuildCompilerName);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(project.lastBuildCompilerName);
if(compiler)
{
int bitDepth = ide.workspace.bitDepth;
bool DebugRestart()
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;
bool DebugStepInto()
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;
bool DebugStepOver(bool skip)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;
bool DebugStepUntil(bool skip)
{
- CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.activeCompiler);
+ CompilerConfig compiler = ideConfig.compilers.GetCompilerConfig(ide.workspace.activeCompiler);
ProjectConfig config = project.config;
int bitDepth = ide.workspace.bitDepth;
bool useValgrind = ide.workspace.useValgrind;