Recent

Author Topic: IDE Coolbar  (Read 11395 times)

staratel20

  • Full Member
  • ***
  • Posts: 226
Re: IDE Coolbar
« Reply #15 on: April 05, 2026, 07:57:22 pm »
I have no problem discussing this in public. I just wanted the right person to see it — someone who can actually implement it 🙂

I have some code that was generated by “my friend” (the first letter is 'A' and the last one, you can guess, is 'I' )) ). I’ve tried to make it work and made some improvements — mainly fixing some errors.

But to make it fully work, you really need to see the whole picture. I’m sure that if I had written Lazarus myself, I would have implemented this feature without much difficulty.

I like a lot the function Desktops, which is very convenient for debugging in different cases. And one time I thought - oh, it would be nice to have the similar feature for the project with the same interface ( I mean - the dedicated button next to the Desktops, named Layouts and absolutely the same popup menu for it ). But the concept of Layouts is essentially - saving the 'current vision' of editor with IDE break points and watch lists - so you  can activate them for certain issues (and you can name issues and you name desktops). It’s a kind of quick solution for when too many units are open and you want to get back to debugging exactly the same issue.

We can only guess how much time it will save — no IDE has such a feature today (or at least I’m not aware of any).

So I’m gladly posting the code here and welcome anyone who would like to take it and integrate it into the IDE. I would create a ticket, but I probably did that a long time ago (if I did it at all), so I’ll just attach the code here and hope it will be helpful.
« Last Edit: April 05, 2026, 08:00:22 pm by staratel20 »
Windows 11 , FPC 3.2.2, Lazarus v4.4

CountIdentity, ModeClassName - good property naming
IdentityCount,  ClassNameMode  - bad property naming

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12288
  • Debugger - SynEdit - and more
    • wiki
Re: IDE Coolbar
« Reply #16 on: April 05, 2026, 08:10:33 pm »
saving the 'current vision' of editor with IDE break points and watch lists - so you  can activate them for certain issues (and you can name issues and you name desktops). It’s a kind of quick solution for when too many units are open and you want to get back to debugging exactly the same issue.

I think you mean the  "session". That is everything that is stored in the *.lps file (if you didn't select to have it stored as part of the lpi).

You can easily test it, by
- backing the lps up
- making changes
- switch to another project, while switched restore the lps
- switch back
=> and all that should be restored.

Actually: nice idea.

(no, I hadn't had time to look at your attached sample, sorry...)

staratel20

  • Full Member
  • ***
  • Posts: 226
Re: IDE Coolbar
« Reply #17 on: April 06, 2026, 02:20:50 am »
Thanks Martin. I hope people like it and someone experienced will integrate/implement it. I believe that the guy is here)). I believe, humanity thanks to him in advance)
Windows 11 , FPC 3.2.2, Lazarus v4.4

CountIdentity, ModeClassName - good property naming
IdentityCount,  ClassNameMode  - bad property naming

 

TinyPortal © 2005-2018