[merged] Draft Statusbar

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Draft Statusbar

Post by carlopav »

yorik wrote: Mon Mar 23, 2020 1:13 pm Thanks @carlopav! I think it's perfect way to go. I can merge 3227 already but it has merge conflicts.. Can you have a look?
About the interface, this looks good to me... We can still think of something better later on if more tools need to go to the status bar.
Ok! Wait that for me to finish the preferences tab and we can rebase and merge.
follow my experiments on BIM modelling for architecture design
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Draft Statusbar

Post by vocx »

yorik wrote: Mon Mar 23, 2020 1:13 pm Thanks @carlopav! I think it's perfect way to go. I can merge 3227 already but it has merge conflicts...
I don't want to ruin the fun, but could we postpone #3227 until after #3082?

I'm not against the status bar, it's just that #3082 has many small changes all over the the new draft modules like gui_snaps and gui_snapper. These are mostly PEP8 changes, some movement of the order of the imports, and addition of docstrings. Adding Carlo's branch at this moment will cause a ton of conflicts that will take a while to correct.

These are some relevant commits in #3082. Carlo, if you can manually integrate these changes then rebasing is going to be much easier. Of course, some of the cleanup work no longer applies to Carlo's branch because of the new code.

gui_snapper
https://github.com/FreeCAD/FreeCAD/pull ... 03bbf373e1
https://github.com/FreeCAD/FreeCAD/pull ... c1f7750be0
https://github.com/FreeCAD/FreeCAD/pull ... 215866f672

gui_snaps
https://github.com/FreeCAD/FreeCAD/pull ... 97d741cc66

An alternative would be to remove these commits from #3082, and place them inside another branch, so that there are no major conflicts. Then later on they could be merged in a separate commit.
Last edited by vocx on Thu Apr 09, 2020 6:08 pm, edited 1 time in total.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Draft Statusbar

Post by carlopav »

vocx wrote: Mon Mar 23, 2020 5:59 pm I don't want to ruin the fun, but could we postpone #3227 until after #3082?
No problem to me!
follow my experiments on BIM modelling for architecture design
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Draft Statusbar

Post by carlopav »

Here is the proposed modification of Draft Preferences.
By the way, do I have to do something to add a new panel in Draft user preferences?
pref1.JPG
pref1.JPG (76.01 KiB) Viewed 1035 times
pref2.JPG
pref2.JPG (51.1 KiB) Viewed 1035 times
follow my experiments on BIM modelling for architecture design
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: Draft Statusbar

Post by vocx »

carlopav wrote: Tue Mar 24, 2020 3:06 pm By the way, do I have to do something to add a new panel in Draft user preferences?
Check the InitGui.py

Code: Select all

                FreeCADGui.addPreferencePage(":/ui/preferences-draft.ui", QT_TRANSLATE_NOOP("Draft", "Draft"))
                FreeCADGui.addPreferencePage(":/ui/preferences-draftsnap.ui", QT_TRANSLATE_NOOP("Draft", "Draft"))
                FreeCADGui.addPreferencePage(":/ui/preferences-draftvisual.ui", QT_TRANSLATE_NOOP("Draft", "Draft"))
                FreeCADGui.addPreferencePage(":/ui/preferences-drafttexts.ui", QT_TRANSLATE_NOOP("Draft", "Draft"))
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Draft Statusbar

Post by HakanSeven12 »

What is the status of this?
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Draft Statusbar

Post by carlopav »

HakanSeven12 wrote: Thu Apr 09, 2020 5:55 pm What is the status of this?
Hi, the PR was pending because of the massive reorganization of the Draft code vocx is carrying on.
Last conflicting commits of him were merged day before yesterday, so I was thinking to rebase my PRs next days to let Yorik evaluate the code.
follow my experiments on BIM modelling for architecture design
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: Draft Statusbar

Post by HakanSeven12 »

Thanks for answer
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Draft Statusbar

Post by carlopav »

HakanSeven12 wrote: Thu Apr 09, 2020 7:53 pm ping
PR 3228 was merged right now! thanks to everyone for the effort :)
follow my experiments on BIM modelling for architecture design
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: [merged] Draft Statusbar

Post by HakanSeven12 »

Thanks everyone :) is it default or need to activate from preferences?
Post Reply