Recent

Author Topic: What the icon in the unit dependencies window means?  (Read 3645 times)

stoffman

  • Jr. Member
  • **
  • Posts: 67
What the icon in the unit dependencies window means?
« 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

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: What the icon in the unit dependencies window means?
« Reply #1 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.

stoffman

  • Jr. Member
  • **
  • Posts: 67
Re: What the icon in the unit dependencies window means?
« Reply #2 on: July 24, 2021, 08:02:22 pm »
Thanks!

Can you point me to the source code and the exact line?

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: What the icon in the unit dependencies window means?
« Reply #3 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(...);


JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4458
  • I like bugs.
Re: What the icon in the unit dependencies window means?
« Reply #4 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.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

dsiders

  • Hero Member
  • *****
  • Posts: 1045
Re: What the icon in the unit dependencies window means?
« Reply #5 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?
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

 

TinyPortal © 2005-2018