Recent

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

stoffman

  • New Member
  • *
  • Posts: 39
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: 3757
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

  • New Member
  • *
  • Posts: 39
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: 3757
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: 3961
  • 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: 512
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?
Lazarus 2.0.12, 2.2.0-RC1, 2.3.0 (Git) / FPC 3.2.0, 3.2.2 / x86-win64 / Windows 8.1

 

TinyPortal © 2005-2018