<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Michael Van Canneyt via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a>> schrieb am Mi., 6. Apr. 2022, 14:47:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On Wed, 6 Apr 2022, Sven Barth via lazarus wrote:<br>
<br>
> Michael Van Canneyt via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank" rel="noreferrer">lazarus@lists.lazarus-ide.org</a>> schrieb am<br>
> Mi., 6. Apr. 2022, 12:56:<br>
><br>
>><br>
>> 1. Currently a component is identified by its class name.<br>
>><br>
>> This should be enhanced: a component must be identified with<br>
>> UnitName.Name.<br>
>> a unit name is a "namespace" and so MyControls.TButton <><br>
>> StdCtrls.TButton.<br>
>><br>
>> Currently there are several component name clashes in the pas2js and<br>
>> FPC class trees.<br>
>><br>
><br>
> The streaming system can't differentiate by unit name, so this simply isn't<br>
> possible.<br>
<br>
I know that.<br>
<br>
We simply need to adapt the streaming system so it can, <br>
I already studied that, it's fairly trivial:<br>
<br>
* When writing: write UnitName.ComponentName instead of ComponentName.<br>
A trivial change, which can be done in a backward compatible manner.<br>
<br>
* When reading, there are 2 lines that must be changed:<br>
One in GetClass and one in TReader.FindComponentClass.<br>
<br>
* To handle the text format, 2 lines need changing.<br>
<br>
So this is not exactly lots of work.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">But then this needs to be in FPC first and there it will only be officially available once 3.4.0 is released. And since Lazarus supports the last two releases it would need to be handled in a way that allows the user to cater to older FPC versions as well. </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> 3. Please add a search edit in the component palette, as delphi has it:<br>
>> typing in that edit should reduce the visible tabs to show only tabs<br>
>> that have a<br>
>> component with the typed text in the classname, just like the one on<br>
>> the component window...<br>
>> (the component window is IMO not really usable if you are not using a<br>
>> docked IDE)<br>
>><br>
><br>
> Why don't you use the component list instead of the palette then? This<br>
> already provides a search.<br>
<br>
If you read my message correctly, you'll see that I know this. <br>
Additionally my last sentence tells you why I don't use it...<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Gotta admit that I had only skimmed the last sentence ^^'</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>