Forum > Suggestions

Rename from Object Inspector List?

(1/2) > >>

Tony Stone:
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:
Glad to hear you want to spend some of your time to contribute to community.


--- Quote from: hacknperl on April 21, 2021, 06:07:48 pm ---... another cool feature for the IDE IMO would be the ability to adjust the order of common properties.
--- End quote ---

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.

Martin_fr:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---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
--- End quote ---
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:

--- Quote from: Martin_fr on April 21, 2021, 06:29:56 pm ---B:\lazarus_latest_2\components\ideintf\objectinspector.pp

--- End quote ---

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


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

--- End quote ---

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

Tony Stone:
 :-[ 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.

Navigation

[0] Message Index

[#] Next page

Go to full version