{
no, summary, yes, full;
- property char *
+ property const char *
{
get { return OnGetString(null, null, null); }
}
- char * OnGetString(char * tempString, void * fieldData, bool * needClass)
+ const char * OnGetString(char * tempString, void * fieldData, bool * needClass)
{
if(this >= no && this <= full)
{
char * workspaceFile;
char * workspaceDir;
char * commandLineArgs;
- property char * commandLineArgs { set { delete commandLineArgs; if(value) commandLineArgs = CopyString(value); } }
+ property const char * commandLineArgs { set { delete commandLineArgs; if(value) commandLineArgs = CopyString(value); } }
char * debugDir;
- property char * debugDir { set { delete debugDir; if(value) debugDir = CopyString(value); } }
+ property const char * debugDir { set { delete debugDir; if(value) debugDir = CopyString(value); } }
int bpCount;
- property char * compiler
+ property const char * compiler
{
set { delete compiler; if(value && value[0]) compiler = CopyString(value); }
get { return compiler && compiler[0] ? compiler : null; }
}
};
- property char * workspaceFile
+ property const char * workspaceFile
{
set
{
get { return workspaceFile; }
}
- property char * projectDir
+ property const char * projectDir
{
get
{
}
}
- char * GetAbsolutePathFromRelative(char * relative)
+ char * GetAbsolutePathFromRelative(const char * relative)
{
char name[MAX_LOCATION];
char absolute[MAX_LOCATION];
GetLastDirectory(relative, name);
for(p : projects)
{
- if(node = p.topNode.Find(name, false))
+ if((node = p.topNode.Find(name, false)))
{
prj = p;
break;
return null;
}
- char * GetPathWorkspaceRelativeOrAbsolute(char * path)
+ char * GetPathWorkspaceRelativeOrAbsolute(const char * path)
{
if(IsPathInsideOf(path, workspaceDir))
{
return CopyUnixPath(path);
}
- Array<ProjectNode> GetAllProjectNodes(char *fullPath, bool skipExcluded)
+ Array<ProjectNode> GetAllProjectNodes(const char *fullPath, bool skipExcluded)
{
Array<ProjectNode> nodes = null;
for(project : projects)
return nodes;
}
- OpenedFileInfo UpdateOpenedFileInfo(char * fileName, OpenedFileState state)
+ OpenedFileInfo UpdateOpenedFileInfo(const char * fileName, OpenedFileState state)
{
char filePath[MAX_LOCATION];
OpenedFileInfo ofi = null;
void UpdateSourceDirsArray(Array<String> dirs)
{
- byte * tokens[256];
- int c, numTokens;
-
sourceDirs.Free();
for(s : dirs)
delete project;
}
- void SelectActiveConfig(char * configName)
+ void SelectActiveConfig(const char * configName)
{
bool change = false;
for(prj : ide.workspace.projects)
ide.projectView.Update(null);
Save();
}
+ ide.AdjustDebugMenus();
}
- bool FindPath(ProjectNode node, char * path)
+ bool FindPath(ProjectNode node, const char * path)
{
if(node.type == file)
{
return false;
}
- void ChangeBreakpoint(DataRow row, char * location)
+ void ChangeBreakpoint(DataRow row, const char * location)
{
- Breakpoint bp = (Breakpoint)row.tag;
+ Breakpoint bp = (Breakpoint)(intptr)row.tag;
if(bp)
{
char * currentLoc = bp.CopyUserLocationString();
void ChangeBreakpointIgnore(DataRow row, int ignore)
{
- Breakpoint bp = (Breakpoint)row.tag;
+ Breakpoint bp = (Breakpoint)(intptr)row.tag;
if(bp)
{
bp.ignore = ignore;
void ChangeBreakpointLevel(DataRow row, int level)
{
- Breakpoint bp = (Breakpoint)row.tag;
+ Breakpoint bp = (Breakpoint)(intptr)row.tag;
if(bp)
{
bp.level = level;
}
}
- void ChangeBreakpointCondition(DataRow row, char * condition)
+ void ChangeBreakpointCondition(DataRow row, const char * condition)
{
- Breakpoint bp = (Breakpoint)row.tag;
+ Breakpoint bp = (Breakpoint)(intptr)row.tag;
if(bp && !(!bp.condition && !(condition && condition[0])))
{
if(!bp.condition)
Window document;
for(document = ide.firstChild; document; document = document.next)
{
- char * fileName = document.fileName;
+ const char * fileName = document.fileName;
if(document.isDocument && fileName && document.created)
{
char winFilePath[MAX_LOCATION];
- char * slashPath = GetSlashPathBuffer(winFilePath, fileName);
+ const char * slashPath = GetSlashPathBuffer(winFilePath, fileName);
if(!fstrcmp(slashPath, bp.absoluteFilePath))
{
Link bpLink, next;
for(bpLink = breakpoints.first; bpLink; bpLink = next)
{
- Breakpoint bp = (Breakpoint)bpLink.data;
+ Breakpoint bp = (Breakpoint)(intptr)bpLink.data;
next = bpLink.next;
if(bp.type == user)
}
-Workspace LoadWorkspace(char * filePath, char * fromProjectFile)
+Workspace LoadWorkspace(const char * filePath, const char * fromProjectFile)
{
File file;
Workspace workspace = null;
{
char buffer[65536];
char * equal;
- int len;
Watch wh;
- Breakpoint bp;
+ Breakpoint bp = null;
file.GetLine(buffer, 65536 - 1);
TrimLSpaces(buffer, buffer);
else if(fromProjectFile)
{
//MessageBox { type = Ok, master = ide, contents = "Worspace load file failed", text = "Worspace Load File Error" }.Modal();
-
- char projectFile[MAX_LOCATION];
+ //char projectFile[MAX_LOCATION];
Project newProject;
//strcpy(projectFile, filePath);