Recent

Author Topic: Rename from Object Inspector List?  (Read 4193 times)

Tony Stone

  • Full Member
  • ***
  • Posts: 219
Rename from Object Inspector List?
« on: April 21, 2021, 06:07:48 pm »
I was thinking a cool shortcut would be able to do a triple click to rename any object quickly from the object inspector list itself.  Kind of like triple clicking a filename in windows explorer to rename.  Seems to be something I always repeadetly scrolle through the properties list looking for.

Or another cool feature for the IDE IMO would be the ability to adjust the order of common properties.  So name is always at the top.  Then you can make caption be second if it is available if you want.  Then maybe make enabled be the third option.  Let the user configure a list of properties that should display first.  I think it would be a great feature for the IDE.

If you think this is a horrible idea I wouldn't mind hearing why.

I was also thinking this could be my first contribution to the Lazarus IDE... except I am not anywhere good enough to mess with this master piece yet! lol  I would love to try and make it happen myself but I don't even know how to beging finding the source code for those windows....  Would I open the Lazarus source in Lazarus itself as a project?  Would the best way be to learn how to use a GIT client?

Handoko

  • Hero Member
  • *****
  • Posts: 5129
  • My goal: build my own game engine using Lazarus
Re: Rename from Object Inspector List?
« Reply #1 on: April 21, 2021, 06:18:28 pm »
Glad to hear you want to spend some of your time to contribute to community.

... another cool feature for the IDE IMO would be the ability to adjust the order of common properties.

I prefer alphabetical order. So if I make screenshot and share it to others, they will see them in the same order on their IDE. Otherwise, the communication becomes harder.
« Last Edit: April 21, 2021, 06:23:28 pm by Handoko »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Rename from Object Inspector List?
« Reply #2 on: April 21, 2021, 06:29:56 pm »
Code: Pascal  [Select][+][-]
  1. Or another cool feature for the IDE IMO would be the ability to adjust the order of common properties.
Not the same, but you can pick your favourites. And use the favourite tab.

Quote
I was also thinking this could be my first contribution to the Lazarus IDE
Don't be discouraged. Where there is a will....

However, you should see, if the ordering is a change that is likely to be added.
I would be ok with it. Though probably prefer to keep it simple with a fav first....
I don't know about other team members.



But seriously, OI is in the package IdeIntf
B:\lazarus_latest_2\components\ideintf\objectinspector.pp

Search for the text "Add to Favorites" unit ObjInspStrConsts.
Then learn how that works. (Search backwards, where is it used, what events does it trigger ....)

You can replicate/change it to add a priority.

Last thing to find is how to sort the fields.


Or Simplify it, and just have a "favourites first" order.  (Or favourites highlight)
The favourite tab is nice, but it means constantly switching....


Maybe better that just sorting is grouping.
Each property goes into a category
Position: Left/Top/Height/Width/Borderspacing/Align
Display: Caption/Font/Color
And those are then ordered. But headers need to be inserted (Hint: none editable property editor, without input).



dseligo

  • Hero Member
  • *****
  • Posts: 1194
Re: Rename from Object Inspector List?
« Reply #3 on: April 21, 2021, 11:06:50 pm »
B:\lazarus_latest_2\components\ideintf\objectinspector.pp

OT: I haven't seen B:\ drive in a very long time.  :)

Quote
The favourite tab is nice, but it means constantly switching....

There is option in IDE options: 'Switch to Object Inspector Favorites tab', which makes it easier to use.

Tony Stone

  • Full Member
  • ***
  • Posts: 219
Re: Rename from Object Inspector List?
« Reply #4 on: April 21, 2021, 11:39:17 pm »
 :-[ Well... I have to admit.  I didn't EVEN NOTICE the Favorite tab!

I am learning something new every time I play with Lazarus.  So I do like the Favorites tab... that is functional for sure!  But like mentioned, it seems to be a little bit annoying switching from tabs.

So how about this little twist to "Favorites" :

Hover the mouse over object in the list and a small window pops up with your favorites in the order you specify?   If I am gonna put time into implementing this functionality I would like it to be well thought out and useful to people more than just myself.  Otherwise I think I am choosing a pretty small "Issue" to put energy into when there are other things I could explore and maybe improve.
« Last Edit: April 21, 2021, 11:44:01 pm by hacknperl »

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: Rename from Object Inspector List?
« Reply #5 on: April 22, 2021, 09:35:08 am »
B:\lazarus_latest_2\components\ideintf\objectinspector.pp

OT: I haven't seen B:\ drive in a very long time.  :)

I like to use it (and A:\) as well for network shares or substs. :)

dseligo

  • Hero Member
  • *****
  • Posts: 1194
Re: Rename from Object Inspector List?
« Reply #6 on: April 22, 2021, 09:53:26 am »
B:\lazarus_latest_2\components\ideintf\objectinspector.pp

OT: I haven't seen B:\ drive in a very long time.  :)

I like to use it (and A:\) as well for network shares or substs. :)

I always thought (subconsciously) that A: and B: are still reserved for floppies :)
Why isn't default Windows installation on A: then?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5446
  • Compiler Developer
Re: Rename from Object Inspector List?
« Reply #7 on: April 22, 2021, 01:36:15 pm »
I always thought (subconsciously) that A: and B: are still reserved for floppies :)
Why isn't default Windows installation on A: then?

Because there is software out there that actively ignores A: and B:. In theory it's possible however as e.g. Windows PE has its RAM drive on X: by default.

 

TinyPortal © 2005-2018