Hi all,
When you now right click on unit in a uses section to get the popup menu, click on "Find / Find references of used unit" to find all references in the current unit to the used unit.
Mattias

Mailing lists / lazarus / 2013-09
20 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi all,
When you now right click on unit in a uses section to get the popup menu, click on "Find / Find references of used unit" to find all references in the current unit to the used unit.
Mattias
Mattias Gaertner wroteWhen you now right click on unit in a uses section to get the popup menu, click on "Find / Find references of used unit" to find all references in the current unit to the used unit.
Is already possible to do the same to variables and types ?
Nice feature, thanks.
Do you mean all variables in a unit?
Mattias
When you now right click on unit in a uses section to get the popup menu, click on "Find…
Ok, didnt find it right away, since you need the compiler error to trigger it.
Also first time I tried, I had the unit dependencies win open before, and it did not jump to the unit. Even closing the window and calling it again from the poup menu wouldn't fix that
only after an IDE restart it worked
Do you mean all variables in a unit? Mattias
No, to find uses of a variable (or a type) in all files of a project.
On Tue, Sep 10, 2013 at 5:17 PM, Mattias Gaertner Is already possible to do the same to…
Do you mean "Find identifier references"?
e.g select a variable, and find all places where it is used? (same for types)
That has been there for a long time.
Some reading, I do highly recommend:
http://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools http://wiki.lazarus.freepascal.org/New_IDE_features_since
Martin wroteDo you mean "Find identifier references"? e.g select a variable, and find all places where it is used? (same for types)
I believe this the one:
http://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools#Find_Identifier_References
Thank you, Martin.
Ok, didnt find it right away, since you need the compiler error to trigger it. Also first…
Maybe you confuse two things here?
The Find / Find references does not need a compiler error. It just need the source editor caret on an identifier.
The new feature for "circular unit reference" require a compiler error.
Also first time I tried, I had the unit dependencies win open before, and it did not jump to the unit.
Fixed.
Even closing the window and calling it again from the poup menu wouldn't fix that
That only hides and shows it.
only after an IDE restart it worked
Mattias
Not so much confused, as had my expectation to high.
That is finding circles, before compiling, therefore seeing all circles, instead of resolving them one by one.
And maybe even seeing circles via implementation (that the compiler will be ok with)
I can add an overlay icon to all the units and uses in cycles if you provide an icon.
And maybe even seeing circles via implementation (that the compiler will be ok with)
+1
As option or as an extra icon?
Mattias
I know, you said so.
Ill scan the fam fam again...
I tried making one, but I am no gfx artist....
Either way..
On Sun, 15 Sep 2013 13:54:51 +0100 I can add an overlay icon to all the units and uses in…
Or as an alternative,
have an extra section in the tree, in which they are listed (as copies, to the normal entries),
Then if enabled, the right side, can also have such an extra node. This means that all circle members are on top, and easy to find
Of coulse, if they are listed as copies in there, then they cas still have the overlay...
On Sun, 15 Sep 2013 13:54:51 +0100 I can add an overlay icon to all the units and uses in…
Mattias Gaertner wroteI can add an overlay icon to all the units and uses in cycles if you provide an icon.
from famfam, recolored, and resized
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arrow_rotate_clockwise_red1small.png
Type: image/png
Size: 411 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/eff4fcd6/attachment.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: arrow_rotate_clockwise_red2.png
Type: image/png
Size: 474 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/eff4fcd6/attachment-0001.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: arrow_rotate_clockwise_red2small.png
Type: image/png
Size: 345 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/eff4fcd6/attachment-0002.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: arrow_rotate_clockwise.png
Type: image/png
Size: 602 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/eff4fcd6/attachment-0003.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: arrow_rotate_clockwise_red1.png
Type: image/png
Size: 522 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/eff4fcd6/attachment-0004.png>
redone with gimp, to keep the antialiasing correct
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/af35ff87/attachment.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: cbaecfja.png
Type: image/png
Size: 583 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/af35ff87/attachment.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: jiebgcdh.png
Type: image/png
Size: 542 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/af35ff87/attachment-0001.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: ejgfaaeg.png
Type: image/png
Size: 544 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/af35ff87/attachment-0002.png>
yellow for implementation ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/8174b568/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: jdadfbad.png
Type: image/png
Size: 530 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/8174b568/attachment-0002.png> -------------- next part --------------
A non-text attachment was scrubbed...
Name: arrow_rotate_clockwise_new_yellow_small2.png Type: image/png
Size: 530 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130915/8174b568/attachment-0003.png>
Thanks. Implemented.
Mattias
Mattias Gaertner wroteImplemented.
Great. Thanks.
Yet something not yet working,
they show on some rtl units (win/sysutils) Which (for whatever reason) is in view, whew I open the window.
But I do not see them on other units
( I have the IDE as open project)
I switched off "Show nodes for directory "
missing:
SourceEditor > Impl: EditorFileManager > Intf: SourceEditor
Some flags were not cleared. Fixed.
I switched off "Show nodes for directory " missing: SourceEditor > Impl: EditorFileManager > Intf: SourceEditor
?
SourceEditor does not use EditorFileManager.
Mattias
Mattias Gaertner wrotel: EditorFileManager > Intf: SourceEditor ? SourceEditor does not use EditorFileManager.
Ups sorry, thot is in the "usedby" section