[Macro] Bit of help for super users :)

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: [Macro] Bit of help for super users :)

Post by HakanSeven12 »

Looks good :) thanks
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: [Macro] Bit of help for super users :)

Post by HakanSeven12 »

openBrain wrote: Fri Nov 29, 2019 4:26 pm
Can I make some changes on it? Can you add a license?
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [Macro] Bit of help for super users :)

Post by openBrain »

HakanSeven12 wrote: Wed Mar 25, 2020 8:59 am Can I make some changes on it?
This isn't trivial question actually. :) I'm surely open to changes/improvements/new features.
But I think it shall be discussed with care. At first I think this macro shouldn't become a "put all in" one. :)
Also it shall keep it's spirit. And keep user readability while preventing duplicating other WB/macros.
What seems sensible to me is :
  • Discuss here the changes (in terms of features essentially) so we hopefully have enough audience to take the right decision
  • I'll soon publish it as a workbench (I think it's the way to go) on GitHub so you (anybody) can push changes as PR.
Would that be OK ?
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: [Macro] Bit of help for super users :)

Post by HakanSeven12 »

openBrain wrote: Wed Mar 25, 2020 11:56 am Would that be OK ?
ok :) My plan is merge with this: https://forum.freecadweb.org/viewtopic.php?f=22&t=44015
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [Macro] Bit of help for super users :)

Post by openBrain »

HakanSeven12 wrote: Wed Mar 25, 2020 12:07 pm ok :) My plan is merge with this: https://forum.freecadweb.org/viewtopic.php?f=22&t=44015
I think AutoHide can be a great feature.ATM, it has some major problems to solve :
  • It doesn't restore correctly visible docks if FC is closed while the macro is active
  • When active, it shows all available docks, and not only the ones that has been enabled. I think that merging into this macro can be a good way to implement a solution. Eg. user enabled docks could be turned green and only these will be shown. User can still enable/disable docks by clicking on the status bar icons.
About CursorInfo I'm more doubtful.
  • I prevent myself to introduce keyboard shortcuts. They can overlap and be a big mess. Here "Shift+C" and "Shift+M" just don't work
  • The displayed info seems to me rather incomplete/useless. I though like how/what the Curves WB / Info tool displays. Having a mix of both (live select at hovering from yours + style/info of Curve WB could be pretty cool.
At the end I think all that should cost only one new button in the status bar. Something like :
  • LMB click to enable/disable AutoHide
  • RMB click to enable/disable Info
  • MMB and Wheel can still be used for extra functions
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: [Macro] Bit of help for super users :)

Post by HakanSeven12 »

Hi I like the slider font sizer. Do you want to add it to Modern UI?
openBrain
Veteran
Posts: 9034
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: [Macro] Bit of help for super users :)

Post by openBrain »

HakanSeven12 wrote: Sat Apr 18, 2020 9:00 pm Hi I like the slider font sizer. Do you want to add it to Modern UI?
Feel free to copy it. ;) It should be pretty to isolate (code is by the end of the macro IIRC).
But honestly, my thought was more to remove this tool from the FC_SU macro. Mainly because I found a lot of issues related to font propagation on Windows (that was mainly visible on Report view & Python console IIRC).
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: [Macro] Bit of help for super users :)

Post by HakanSeven12 »

openBrain wrote: Sat Apr 18, 2020 9:59 pm Feel free to copy it. ;)
Thanks :)
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [Macro] Bit of help for super users :)

Post by adrianinsaval »

Hi! I added integration with Glass addon, glass mode can be toggled on/off with right click on C. I attach the edited macro if you are interested and here is the diff:

Code: Select all

276a277,283
> ## Glass addon integration
> def glass():
>     try:
>         Gui.getMainWindow().findChild(QtGui.QAction,GlassToggleMode).trigger()
>     except AttributeError:
>         pass
> 
287c294
<         ,[custDockToggler, [Combo View, C, getFCInfo]]
---
>         ,[custDockToggler, [Combo View, C, getFCInfo,glass]]
308c315
<     run()
\No newline at end of file
---
>     run()
It doesn't reduce functionality of the macro or raise an error if the addon is not instaled.
Attachments
FC_SU.py
(11.69 KiB) Downloaded 33 times
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: [Macro] Bit of help for super users :)

Post by Kunda1 »

Totally forgot about this macro!
Was this ever added to FreeCAD-macros repo? (or made available through the addon manager?)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Post Reply