Lazarus

Using the Lazarus IDE => General => Topic started by: stoffman on July 24, 2021, 10:40:26 am

Title: What the icon in the unit dependencies window means?
Post by: stoffman on July 24, 2021, 10:40:26 am
In the unit dependencies window each unit has 1 of 3 possible icons ( as far as I can tell) but I couldn't find an explanation about their meaning.

What each icon means? 


 

https://wiki.freepascal.org/IDE_Window:_Unit_dependencies
Title: Re: What the icon in the unit dependencies window means?
Post by: howardpc on July 24, 2021, 01:46:40 pm
Looking at the sources shows that the red x icon overlay indicates that the unit has a uses clause in the implementation section.
A yellow c icon overlay indicates that there is an interface uses cycle.
A red c icon overlay (not shown in your images) indicates that there is an implementation uses cycle.
Title: Re: What the icon in the unit dependencies window means?
Post by: stoffman on July 24, 2021, 08:02:22 pm
Thanks!

Can you point me to the source code and the exact line?
Title: Re: What the icon in the unit dependencies window means?
Post by: howardpc on July 24, 2021, 08:36:25 pm
in file.../lazarus/ide/unitdependencies.pas
line 2180 (approximately, depends slightly on your version of course)
procedure TUnitDependenciesWindow.CreateTVNodes(...);

Title: Re: What the icon in the unit dependencies window means?
Post by: JuhaManninen on July 24, 2021, 11:26:26 pm
This and some other windows should have a "legend" section or button to explain the meaning of icons. They are not intuitive always.
Patches are welcome.
Title: Re: What the icon in the unit dependencies window means?
Post by: dsiders on July 24, 2021, 11:53:38 pm
This and some other windows should have a "legend" section or button to explain the meaning of icons. They are not intuitive always.
Patches are welcome.

Perhaps a "Show icon legend" option on the context menu?
TinyPortal © 2005-2018