Recent

Author Topic: IDE Coolbar  (Read 12154 times)

staratel20

  • Full Member
  • ***
  • Posts: 228
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: 12345
  • 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: 228
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

staratel20

  • Full Member
  • ***
  • Posts: 228
Re: IDE Coolbar
« Reply #18 on: April 18, 2026, 07:02:23 pm »
So, I’m wondering if someone is trying to implement it. I can help if needed
Windows 11 , FPC 3.2.2, Lazarus v4.4

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

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4715
  • I like bugs.
Re: IDE Coolbar
« Reply #19 on: April 20, 2026, 08:20:24 am »
So, I’m wondering if someone is trying to implement it. I can help if needed
Sorry but Open Source does not work like that. You throw out an idea and then expect others to implement it. No, you must implement it yourself. Then if others see it as good they may contribute.
You get help when you ask specific questions with code proving that you really try.

Quote
I’m sure that if I had written Lazarus myself, I would have implemented this feature without much difficulty.
Yeah. Lazarus is written by many people during decades. I don't think any one single person could write such a big piece of SW.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12345
  • Debugger - SynEdit - and more
    • wiki
Re: IDE Coolbar
« Reply #20 on: April 20, 2026, 07:40:39 pm »
So, I’m wondering if someone is trying to implement it. I can help if needed
Sorry but Open Source does not work like that. You throw out an idea and then expect others to implement it. No, you must implement it yourself. Then if others see it as good they may contribute.
You get help when you ask specific questions with code proving that you really try.

Quote
I’m sure that if I had written Lazarus myself, I would have implemented this feature without much difficulty.
Yeah. Lazarus is written by many people during decades. I don't think any one single person could write such a big piece of SW.

Well, looking at "unleashed" => people throw out ideas (ok they were invited to do so), and they get done...
That said, it is rare...

IMHO, the thing about ideas is not that they get presented. But managing expectations. I have in the past picked up some ideas, but usually for stuff that I anyway work on. There I am actually glad for ideas, because I don't know how other use the tools I write (and yet I mean those tools to be used by all).

This idea... Well, I wont pick it up myself, because I have to many ideas (my own and others) on other areas already.

staratel20

  • Full Member
  • ***
  • Posts: 228
Re: IDE Coolbar
« Reply #21 on: April 21, 2026, 01:00:32 pm »
I think another purpose of sharing ideas is to avoid working on something that someone else is already implementing. It doesn’t make much sense if two people work on the same problem and end up with nearly identical results.
So my message is basically: “Hey, I’m thinking about implementing this (not 100% sure yet). Has anyone already started working on something similar?”

I think there’s nothing wrong with being a bit lazy, especially when it comes to programming 🙂

Essentially, this improvement was inspired by laziness 🙂
« Last Edit: April 21, 2026, 01:02:53 pm by staratel20 »
Windows 11 , FPC 3.2.2, Lazarus v4.4

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

 

TinyPortal © 2005-2018