mirror of https://gitlab.com/basile.b/dexed.git
parent
d1c255d44b
commit
fa9b575103
|
@ -31,6 +31,7 @@ type
|
||||||
procedure saveToFile(const aFilename: string);
|
procedure saveToFile(const aFilename: string);
|
||||||
function getIfModified: boolean;
|
function getIfModified: boolean;
|
||||||
//
|
//
|
||||||
|
function getIfIsSource(const aFilename: string): boolean;
|
||||||
function getOutputFilename: string;
|
function getOutputFilename: string;
|
||||||
//
|
//
|
||||||
function getConfigurationCount: integer;
|
function getConfigurationCount: integer;
|
||||||
|
@ -138,23 +139,32 @@ begin
|
||||||
exit(fModified);
|
exit(fModified);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TCEDubProject.getIfIsSource(const aFilename: string): boolean;
|
||||||
|
begin
|
||||||
|
//TODO-cDUB: implement
|
||||||
|
exit(false);
|
||||||
|
end;
|
||||||
|
|
||||||
function TCEDubProject.getOutputFilename: string;
|
function TCEDubProject.getOutputFilename: string;
|
||||||
begin
|
begin
|
||||||
|
//TODO-cDUB: implement
|
||||||
exit('');
|
exit('');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCEDubProject.getConfigurationCount: integer;
|
function TCEDubProject.getConfigurationCount: integer;
|
||||||
begin
|
begin
|
||||||
|
//TODO-cDUB: implement
|
||||||
exit(0);
|
exit(0);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEDubProject.setActiveConfiguration(index: integer);
|
procedure TCEDubProject.setActiveConfiguration(index: integer);
|
||||||
begin
|
begin
|
||||||
|
//TODO-cDUB: implement
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCEDubProject.getConfigurationName(index: integer): string;
|
function TCEDubProject.getConfigurationName(index: integer): string;
|
||||||
begin
|
begin
|
||||||
|
//TODO-cDUB: implement
|
||||||
exit('');
|
exit('');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,8 @@ type
|
||||||
//function moduleImportCount: integer;
|
//function moduleImportCount: integer;
|
||||||
//function moduleImport(index: integer): string;
|
//function moduleImport(index: integer): string;
|
||||||
|
|
||||||
|
// returns true if aFilename is a project source
|
||||||
|
function getIfIsSource(const aFilename: string): boolean;
|
||||||
// returns the name of the file produced when a project is compiled
|
// returns the name of the file produced when a project is compiled
|
||||||
function getOutputFilename: string;
|
function getOutputFilename: string;
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ type
|
||||||
procedure endUpdate;
|
procedure endUpdate;
|
||||||
procedure reset;
|
procedure reset;
|
||||||
procedure addDefaults;
|
procedure addDefaults;
|
||||||
function isProjectSource(const aFilename: string): boolean;
|
function getIfIsSource(const aFilename: string): boolean;
|
||||||
function getAbsoluteSourceName(aIndex: integer): string;
|
function getAbsoluteSourceName(aIndex: integer): string;
|
||||||
function getAbsoluteFilename(const aFilename: string): string;
|
function getAbsoluteFilename(const aFilename: string): string;
|
||||||
procedure addSource(const aFilename: string);
|
procedure addSource(const aFilename: string);
|
||||||
|
@ -395,7 +395,7 @@ begin
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TCENativeProject.isProjectSource(const aFilename: string): boolean;
|
function TCENativeProject.getIfIsSource(const aFilename: string): boolean;
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
|
|
|
@ -81,7 +81,7 @@ type
|
||||||
private
|
private
|
||||||
fAutoRefresh: Boolean;
|
fAutoRefresh: Boolean;
|
||||||
fSingleClick: Boolean;
|
fSingleClick: Boolean;
|
||||||
fProj: TCENativeProject;
|
fProj: ICECommonProject;
|
||||||
fDoc: TCESynMemo;
|
fDoc: TCESynMemo;
|
||||||
fToolProc: TCEProcess;
|
fToolProc: TCEProcess;
|
||||||
fTodos: TTodoItems;
|
fTodos: TTodoItems;
|
||||||
|
@ -336,15 +336,12 @@ end;
|
||||||
{$REGION ICEProjectObserver ----------------------------------------------------}
|
{$REGION ICEProjectObserver ----------------------------------------------------}
|
||||||
procedure TCETodoListWidget.projNew(aProject: ICECommonProject);
|
procedure TCETodoListWidget.projNew(aProject: ICECommonProject);
|
||||||
begin
|
begin
|
||||||
fProj := nil;
|
fProj := aProject;
|
||||||
if aProject.getFormat <> pfNative then
|
|
||||||
exit;
|
|
||||||
fProj := TCENativeProject(aProject.getProject);
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCETodoListWidget.projChanged(aProject: ICECommonProject);
|
procedure TCETodoListWidget.projChanged(aProject: ICECommonProject);
|
||||||
begin
|
begin
|
||||||
if fProj <> aProject.getProject then
|
if fProj <> aProject then
|
||||||
exit;
|
exit;
|
||||||
if Visible and fAutoRefresh then
|
if Visible and fAutoRefresh then
|
||||||
callToolProcess;
|
callToolProcess;
|
||||||
|
@ -352,7 +349,7 @@ end;
|
||||||
|
|
||||||
procedure TCETodoListWidget.projClosing(aProject: ICECommonProject);
|
procedure TCETodoListWidget.projClosing(aProject: ICECommonProject);
|
||||||
begin
|
begin
|
||||||
if fProj <> aProject.getProject then
|
if fProj <> aProject then
|
||||||
exit;
|
exit;
|
||||||
fProj := nil;
|
fProj := nil;
|
||||||
if Visible and fAutoRefresh then
|
if Visible and fAutoRefresh then
|
||||||
|
@ -361,12 +358,9 @@ end;
|
||||||
|
|
||||||
procedure TCETodoListWidget.projFocused(aProject: ICECommonProject);
|
procedure TCETodoListWidget.projFocused(aProject: ICECommonProject);
|
||||||
begin
|
begin
|
||||||
if aProject.getProject = fProj then
|
if aProject = fProj then
|
||||||
exit;
|
exit;
|
||||||
fProj := nil;
|
fProj := aProject;
|
||||||
if aProject.getFormat <> pfNative then
|
|
||||||
exit;
|
|
||||||
fProj := TCENativeProject(aProject.getProject);
|
|
||||||
if Visible and fAutoRefresh then
|
if Visible and fAutoRefresh then
|
||||||
callToolProcess;
|
callToolProcess;
|
||||||
end;
|
end;
|
||||||
|
@ -386,7 +380,7 @@ begin
|
||||||
if ((fProj <> nil) and (fDoc = nil)) then
|
if ((fProj <> nil) and (fDoc = nil)) then
|
||||||
exit(tcProject);
|
exit(tcProject);
|
||||||
//
|
//
|
||||||
if fProj.isProjectSource(fDoc.fileName) then
|
if fProj.getIfIsSource(fDoc.fileName) then
|
||||||
exit(tcProject)
|
exit(tcProject)
|
||||||
else
|
else
|
||||||
exit(tcFile);
|
exit(tcFile);
|
||||||
|
|
Loading…
Reference in New Issue