New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: Tree : Remove useless root item and hide description by default. #9697
Conversation
CC @MisterMakerNL (just a heads up since you started the forum thread) |
It's amazing how much better/cleaner that looks. |
I use the description column. =/ |
Note this is only the default preference. So you can still enable the preference if you want to use it. |
You're definitely in the minority. I did a google image search for "FreeCAD tree" and couldn't find a single example where someone was using it. Most people use descriptive names instead. Not saying it doesn't have value, but really an unused feature. |
I use it too. "Description" is a central item in IFC. But this solution is good to me, indeed the tree looks way less cluttered. Two observations, though:
|
The tree context menu seems to be a correct solution. Better than to add in preference page. I will have a look to find where the context menu is implemented. Can you please confirm if I'm missing something here ? I'm not sure how this hideColumn is supposed to be set in the first place and when this auto generated stuff is actually called. |
I also don't understand what that script is needed for... @realthunder maybe you can help here? |
The |
Thanks for your explanations @realthunder ! So now I'm adding a submenu to add 'Tree settings' to the contextual menu of the tree. In this submenu I will add this 'show/hide description column'. And in the future we can put more settings in here, such at text size and icon size as you implemented in linkstage. |
… used 'Description' colum. On top of that the headers are now hidden if the description column is hidden.
… description column' setting in it.
d63259b
to
9a39b6c
Compare
This looks like high-value/low-risk. Can we merge this for 0.21? |
Looks really nice! And it's prime screenspace we are saving! |
Is this what is called a regression? Seems to be back in the windows build:
|
perhaps you enabled the column by mistake? |
As @sliptonic wrote:
I'm for this. I'm using Label2 for my comments too / ok I'm minority ;-) Another note: The 2nd column is headlined as "Description", but the content is Label2. It could be confusing, especially with examples that adds property named "Description": Create a FeaturePython object part I / Adding properties |
This PR solve this : https://forum.freecad.org/viewtopic.php?t=78555&sid=6c1c30d9b4ae46d34c3b0d929d6ab34e&start=10
It does 2 things :
A - Remove the useless "Application" root item.
B - Hide by default the seldomly used "Description" column. Also when it is hidden, the labels are now hidden too.
Below a comparaison picture : on the left after this PR, on the right before.
Thank you for creating a pull request to contribute to FreeCAD! Place an "X" in between the brackets below to "check off" to confirm that you have satisfied the requirement, or ask for help in the FreeCAD forum if there is something you don't understand.
Please remember to update the Wiki with the features added or changed once this PR is merged.
Note: If you don't have wiki access, then please mention your contribution on the 1.0 Changelog Forum Thread.