[Macro] Bit of help for super users :)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: [Macro] Bit of help for super users :)
Looks good thanks
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: [Macro] Bit of help for super users :)
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: [Macro] Bit of help for super users :)
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.
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: [Macro] Bit of help for super users :)
ok My plan is merge with this: https://forum.freecadweb.org/viewtopic.php?f=22&t=44015
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: [Macro] Bit of help for super users :)
I think AutoHide can be a great feature.ATM, it has some major problems to solve :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
- 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.
- 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.
- LMB click to enable/disable AutoHide
- RMB click to enable/disable Info
- MMB and Wheel can still be used for extra functions
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: [Macro] Bit of help for super users :)
Hi I like the slider font sizer. Do you want to add it to Modern UI?
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Re: [Macro] Bit of help for super users :)
Feel free to copy it. It should be pretty to isolate (code is by the end of the macro IIRC).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?
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).
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: [Macro] Bit of help for super users :)
Support me: Hakan Seven on Patreon
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
Modern UI: Modern UI on FreeCAD Forum
Trails Workbench: Trails Workbench on FreeCAD Forum
- adrianinsaval
- Veteran
- Posts: 5551
- Joined: Thu Apr 05, 2018 5:15 pm
Re: [Macro] Bit of help for super users :)
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:
It doesn't reduce functionality of the macro or raise an error if the addon is not instaled.
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()
- Attachments
-
- FC_SU.py
- (11.69 KiB) Downloaded 34 times
Re: [Macro] Bit of help for super users :)
Totally forgot about this macro!
Was this ever added to FreeCAD-macros repo? (or made available through the addon manager?)
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
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