Totally agree with that. Also good that code got cleaned & commented.galou_breizh wrote: ↑Mon Mar 16, 2020 3:39 pm I may add the macro myself but I'll certainly split the "Autohide" and "Cursor Info" functionalities without forgetting to cite all authors. If you disagree, shout!
FCMouse Macro(Autohide Docks and Cursor Info)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: FCMouse Macro(Autohide Docks and Cursor Info)
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: FCMouse Macro(Autohide Docks and Cursor Info)
You can do whatever you want. I don't have any limitation on itgalou_breizh wrote: ↑Mon Mar 16, 2020 3:39 pm I may add the macro myself but I'll certainly split the "Autohide" and "Cursor Info" functionalities without forgetting to cite all authors. If you disagree, shout!
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: FCMouse Macro(Autohide Docks and Cursor Info)
Macro left an annotation inone of my files:
- Attachments
-
- FCMouse annotation residue.JPG (124.24 KiB) Viewed 700 times
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: FCMouse Macro(Autohide Docks and Cursor Info)
Yes macro using it for cursor informations. Maybe I can hide it from tree view
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: FCMouse Macro(Autohide Docks and Cursor Info)
It is fine while macro is working. But this is when I reopened the file without it working. I probably saved that file with the macro working and that annotation got saved also. Maybe macro could monitor for save operation and remove the annotation before the save?
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: FCMouse Macro(Autohide Docks and Cursor Info)
I will take a look.kisolre wrote: ↑Tue Mar 17, 2020 9:12 am It is fine while macro is working. But this is when I reopened the file without it working. I probably saved that file with the macro working and that annotation got saved also. Maybe macro could monitor for save operation and remove the annotation before the save?
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: FCMouse Macro(Autohide Docks and Cursor Info)
I will remove the annotation object and add a qt widget. So you never see an annotation object on your tree view
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: FCMouse Macro(Autohide Docks and Cursor Info)
Thank you, Hakan, you wrote a fantastic feature. And I hope your feature can be merged into FC official build.
I come to 2 issues now, and need your help.
1. Sometimes, mouse is needed to move between side panel and 3d view frequently. Is there a way to stop the macro when running?
As I know, there is no stop button in Macro Manager. So, how about adding a toggle script into your code. To be specific,
First time run your macro from Macro Manager, it run as before.
Second time run your macro from Macro Manager, it stop running.
2. When FasternersWB activated, the mouse call out "Screw Hole Calculator" on the right verge of screen .
I come to 2 issues now, and need your help.
1. Sometimes, mouse is needed to move between side panel and 3d view frequently. Is there a way to stop the macro when running?
As I know, there is no stop button in Macro Manager. So, how about adding a toggle script into your code. To be specific,
First time run your macro from Macro Manager, it run as before.
Second time run your macro from Macro Manager, it stop running.
2. When FasternersWB activated, the mouse call out "Screw Hole Calculator" on the right verge of screen .
Last edited by fc_tofu on Thu Mar 19, 2020 6:50 pm, edited 1 time in total.
- HakanSeven12
- Veteran
- Posts: 1481
- Joined: Wed Feb 06, 2019 10:30 pm
Re: FCMouse Macro(Autohide Docks and Cursor Info)
Shift+Q
That's interesting. I will take a look at this.
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: FCMouse Macro(Autohide Docks and Cursor Info)
Changed annotation with QLineEdit widget. I need to change something but for now its ok.
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