Manipulator WorkBench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Manipulator WorkBench
Hello,
I have 2 questions:
1) is the Caliper tool App::Link aware ? By that, I wish to know whether it's possible to measure distances and angles between 2 linked objects (parts). I tested it and it doesn't seem like it.
2) why did you choose to use panels instead of windows ? (QDialog type for example). Would it be possible/difficult to have an option for choosing between the 2 layouts ? (panel/window).
I have 2 questions:
1) is the Caliper tool App::Link aware ? By that, I wish to know whether it's possible to measure distances and angles between 2 linked objects (parts). I tested it and it doesn't seem like it.
2) why did you choose to use panels instead of windows ? (QDialog type for example). Would it be possible/difficult to have an option for choosing between the 2 layouts ? (panel/window).
Re: Manipulator WorkBench
R 1) would you post a FC file example to check?
R 2) I used a DockWidget because I wanted to allow to dock the widget to LeftDockWidgetArea or RightDockWidgetArea.
As far as I know, this is not available with a QDialog.
Re: Manipulator WorkBench
attached. When you measure between 2 links, it actually returns the value of the measurement between the 2 original parts.
I understand. On the other hand, you might not want the caliper tool to always be there, it is something that I really need, but only sometimes: for me, I'd like to be able to activate it, make my measurements, and when I'm done close the window and it's not cluttering my screen. So the question was to be able to choose between the 2 layouts: panel or window. May-be it's not possible.R 2) I used a DockWidget because I wanted to allow to dock the widget to LeftDockWidgetArea or RightDockWidgetArea.
As far as I know, this is not available with a QDialog.
- Attachments
-
- asm_tuto2.FCStd
- (61.12 KiB) Downloaded 84 times
Re: Manipulator WorkBench
Hello Maurice.easyw-fc wrote: ↑Fri Jan 31, 2020 8:59 pm Hi Mateusz
I've just added a hdpi branch to my repo
https://github.com/easyw/Manipulator/tree/hdpi
you can test the new Aligner with your HDPI screen
.. and, if you want, adapt the other tools...
then just poke me here or make a PR to the hdpi branch and I will merge it and finalizing the merging.
To be honest I do not like the docked behaviour. It expands too much for my taste. Too much mouse movement necessary. Screenshot attached.
One solution that comes to mind is hiding/showing widgets when necessary. Qt should handle the rest automagically.
E.g.
Code: Select all
...
...
...
ALGDockWidget.ui.Label_Align_Gui.setVisible(False)
ALGDockWidget.ui.AlignGroup.setVisible(False)
ALGDockWidget.ui.ReferenceGroup.setVisible(False)
ALGDockWidget.ui.ControlsGroup.setVisible(False)
...
...
...
Mateusz
- Attachments
-
- align.png (71.79 KiB) Viewed 3020 times
Re: Manipulator WorkBench
it should be simply closable clicking on the red cross button... Caliper button can be assigned to the Toolbar and be activated or closed at your needs...
Re: Manipulator WorkBench
Hi Mateuszf3nix wrote: ↑Sun Feb 02, 2020 12:34 pm Hello Maurice.
To be honest I do not like the docked behaviour. It expands too much for my taste. Too much mouse movement necessary. Screenshot attached.
...
One solution that comes to mind is hiding/showing widgets when necessary. Qt should handle the rest automagically.
Cheers,
Mateusz
I reverted to your Aligner hdpi ui solution...
Then I have added the hiding to allow the minimize resizing...
I have uploaded a first release of Aligner fully adapted for hdpi ... could you please test it?
https://github.com/easyw/Manipulator/tree/hdpi
https://github.com/easyw/Manipulator/ra ... Aligner.py
Re: Manipulator WorkBench
Hi Mateusz
I've updated also Caliper in the hdpi branch...
you can test the latest code it here:
https://github.com/easyw/Manipulator/ra ... Caliper.py
Re: Manipulator WorkBench
Hello Maurice.easyw-fc wrote: ↑Mon Feb 03, 2020 10:11 pmHi Mateusz
I've updated also Caliper in the hdpi branch...
you can test the latest code it here:
https://github.com/easyw/Manipulator/ra ... Caliper.py
Caliper looks good. Works great with scaling.
One thing is missing I think:
Code: Select all
diff --git a/Caliper.py b/Caliper.py
index 510a717..c6403a0 100644
--- a/Caliper.py
+++ b/Caliper.py
@@ -1026,6 +1026,7 @@ def Cp_undock():
def Cp_internal(show):
CPDockWidget.ui.Controls_Group.setVisible(show)
+ CPDockWidget.ui.Label.setVisible(show)
def Cp_resize():
CPDockWidget.resize(sizeXmin,sizeYmin)
Sorry but I do not see any change in the behaviour. It almost looks the same as before. After checking the ui files it looks the vertical and horizontal spacers are not in the right spots (could you please check my original branch).
The undock button is not top aligned.
Cheers,
Mateusz
P.S.1 Does PyQt add QtCore.Qt.AlignTop automatically or do you have to add them by hand. PySide2's uic does not do it.
P.S.2 I have spotted some odd behavior. I am able to test only with QT_SCREEN_SCALE_FACTORS=1;2;1;2. Sometimes when moving across screens with different factors the window gets resized randomly. The window gets spread across two monitors. Or the window is doubling its size after every move (not always). Will have to investigate it further if it is a Qt bug, PySide bug or something else.
- Attachments
-
- align-proposed.png (23.52 KiB) Viewed 2903 times
-
- align-current.png (24.56 KiB) Viewed 2903 times
Re: Manipulator WorkBench
Caliper should be fine now
I should have fixed both Aligner and Moverf3nix wrote: ↑Tue Feb 04, 2020 5:38 am Sorry but I do not see any change in the behaviour. It almost looks the same as before. After checking the ui files it looks the vertical and horizontal spacers are not in the right spots (could you please check my original branch).
The undock button is not top aligned.
Could you please test the three widgets?
https://github.com/easyw/Manipulator/tree/hdpi