mirror of https://gitlab.com/basile.b/dexed.git
upstream fix, grouped project reloaded as FSP after saving project file from an editor
This commit is contained in:
parent
4bd3e09d78
commit
f2de2bacff
|
@ -116,6 +116,7 @@ type
|
||||||
function binaryKind: TProjectBinaryKind;
|
function binaryKind: TProjectBinaryKind;
|
||||||
function getCommandLine: string;
|
function getCommandLine: string;
|
||||||
function outputFilename: string;
|
function outputFilename: string;
|
||||||
|
procedure reload;
|
||||||
//
|
//
|
||||||
function isSource(const fname: string): boolean;
|
function isSource(const fname: string): boolean;
|
||||||
function sourcesCount: integer;
|
function sourcesCount: integer;
|
||||||
|
@ -349,6 +350,12 @@ begin
|
||||||
exit(fBasePath);
|
exit(fBasePath);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCEDubProject.reload;
|
||||||
|
begin
|
||||||
|
if fFilename.fileExists then
|
||||||
|
loadFromFile(fFilename);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TCEDubProject.loadFromFile(const fname: string);
|
procedure TCEDubProject.loadFromFile(const fname: string);
|
||||||
var
|
var
|
||||||
loader: TMemoryStream;
|
loader: TMemoryStream;
|
||||||
|
|
|
@ -43,6 +43,8 @@ type
|
||||||
procedure loadFromFile(const fname: string);
|
procedure loadFromFile(const fname: string);
|
||||||
// saves project to filename
|
// saves project to filename
|
||||||
procedure saveToFile(const fname: string);
|
procedure saveToFile(const fname: string);
|
||||||
|
// reloads from filename
|
||||||
|
procedure reload;
|
||||||
// indicates of the project is modified (should be saved or not)
|
// indicates of the project is modified (should be saved or not)
|
||||||
function modified: boolean;
|
function modified: boolean;
|
||||||
// returns the base path used to solve relative locations
|
// returns the base path used to solve relative locations
|
||||||
|
|
|
@ -1430,6 +1430,7 @@ begin
|
||||||
topsplt := nil;
|
topsplt := nil;
|
||||||
end;
|
end;
|
||||||
fSymlWidg.showWidget;
|
fSymlWidg.showWidget;
|
||||||
|
// TODO-cdocking: Put the new unified project editors and inspectors to the right once done
|
||||||
// right
|
// right
|
||||||
DockMaster.GetAnchorSite(fProjWidg).Width := 190;
|
DockMaster.GetAnchorSite(fProjWidg).Width := 190;
|
||||||
DockMaster.GetAnchorSite(fPrjCfWidg).Width := 190;
|
DockMaster.GetAnchorSite(fPrjCfWidg).Width := 190;
|
||||||
|
@ -3209,9 +3210,8 @@ begin
|
||||||
if checkProjectLock then exit;
|
if checkProjectLock then exit;
|
||||||
//
|
//
|
||||||
fname := fProject.filename;
|
fname := fProject.filename;
|
||||||
fProject.getProject.Free;
|
|
||||||
document.saveToFile(fname);
|
document.saveToFile(fname);
|
||||||
openProj(fname);
|
fProject.reload;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCEMainForm.closeProj: boolean;
|
function TCEMainForm.closeProj: boolean;
|
||||||
|
|
|
@ -103,6 +103,7 @@ type
|
||||||
function binaryKind: TProjectBinaryKind;
|
function binaryKind: TProjectBinaryKind;
|
||||||
function getCommandLine: string;
|
function getCommandLine: string;
|
||||||
function modified: boolean;
|
function modified: boolean;
|
||||||
|
procedure reload;
|
||||||
//
|
//
|
||||||
function configurationCount: integer;
|
function configurationCount: integer;
|
||||||
procedure setActiveConfigurationIndex(index: integer);
|
procedure setActiveConfigurationIndex(index: integer);
|
||||||
|
@ -251,6 +252,12 @@ begin
|
||||||
endUpdate;
|
endUpdate;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TCENativeProject.reload;
|
||||||
|
begin
|
||||||
|
if fFilename.fileExists then
|
||||||
|
loadFromFile(fFilename);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TCENativeProject.customLoadFromFile(const fname: string);
|
procedure TCENativeProject.customLoadFromFile(const fname: string);
|
||||||
begin
|
begin
|
||||||
fbasePath := fname.extractFilePath;
|
fbasePath := fname.extractFilePath;
|
||||||
|
|
Loading…
Reference in New Issue