Grubuntu / PieMenu

Fork of PieMenu, with some improvements
8 stars 4 forks source link

v1.5 New features to test #66

Closed Grubuntu closed 3 months ago

Grubuntu commented 3 months ago

Hi @pgilfernandez @hasecilu

I've published a draft of version 1.5 with a few new features: https://github.com/Grubuntu/PieMenu/tree/next-release150

Capture d’écran (155) Capture d’écran (157) Capture d’écran (158) Capture d’écran (156)

The shortcuts keys are assigned chronologically, starting with the number 0 and incrementing according to the order of the characters in the ASCII table '0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C etc...' https://www.ascii-code.com/en It is not possible to customise the shortcuts.

Usage : Simply enable the functionnaly, and press the dedicated shortcut when a PieMenu is open.

EDIT : In this version, Tools shortcuts key are not clickable. I'm going to change that in a future version.

Try, test and tell me what you think. Thanks. I hope you will enjoy them.

hasecilu commented 3 months ago

Hi, I have tested the new changes and find this:

Grubuntu commented 3 months ago

Thanks for testing.

  • Del & Supr work, would be useful to have something like Ctrl + Up/Down to move the selected command? if so, what about to add a separator?

Yes, I'm going to think about the possibility of moving the commands around on the keyboard: I'm adding that to my list of things to do.

  • I'll try to make advancement on Wiki today, sent a new PR also

Super !

  • Super useful to have expression in the spinbox but I noticed that pressing Enter/Return no longer closes the task panel.

I'm going to look into it, thanks for pointing it out to me.

  • Toggle works on main PM and when you are in (let's say) PartDesign and the PartDesign menu opens with the default shortcut but in you want the PartDesign in another WB with its custom shortcut it doesn't toggle

Can you explain how to reproduce the problem, I don't see it.

  • pie-key shortcuts seems to work fine, Does PieMenu have a way to detect if a shortcut conflict with default shortcuts? Personally I use < key but is there is someone using letters could be problems or not?

No, there is no detection of duplicate shortcuts at this level. I'd thought about limiting the number of shortcuts to just 8 like in Blender... I'll have to do some more tests because I have the impression that some alphabetical shortcuts don't work properly. I might have to limit the number of shortcuts to 10 (from 0 to 9).

I'm still working on it, so please let me know if there are any problems.

THANKS Grub

hasecilu commented 3 months ago

Can you explain how to reproduce the problem, I don't see it.

  1. Check shortcut toggle
  2. Pressing < toggles the default PieMenu
  3. Pressing P,D activates the PartDesign PieMenu but can't deactivate it. Also note that PD is assigned to be the default on PD WB, so pressing < toggles the same as with the default PieMenu.
  4. Pressing S, K activates the Sketcher PieMenu but can't deactivate it.

Is this the expected behavior?

Grubuntu commented 3 months ago

OK, now I understand : Using multiple-key shortcuts causes problems, it's a known limitation for the moment : https://github.com/Grubuntu/PieMenu/issues/8

it was a bad idea to implement them, only one-key shortcuts or shortcuts with a modifier (CTRL SHIFT ALT) should be used.

Grubuntu commented 3 months ago

Thanks to your advice hasecilu, I've corrected a few problems and adjusted a few elements. I have updated the code:

Capture d’écran (160)

Capture d’écran (161)

pgilfernandez commented 3 months ago

Very nice improvements! I'm not having much time to test or code but they look very cool to me. I would add the option to hide command shortcuts as once users know the ones that are assigned they may want to hide them while continue using the shortcuts...

hasecilu commented 3 months ago

Cleaning some redondant code, redefine/factorize some functions (get and set parameter)

Added UP and DOWN key for delete and move Tools in toollist (Preferences)

Working fine.

  • Added Icon PieMenu to Preference dialog window

  • Fix tools shortcuts keys feature : shortcut from 0 to 9 and A to T (30 shortcuts)

  • Update stylesheets

  • Limits the maximum number of tools in PieMenu to 30 to avoid problems with tools shortcuts (34 or more shortcuts causes unstable behaviour, which I can't explain, so I've deliberately limited to 30 shortcuts)

  • Added label and manage toollist (greyed) if maximum number of tool is reached

Cool

I did #69

Grubuntu commented 3 months ago
  • Do you think that the code would be easier to read/navigate if instead of creating the GUI of the PieMenu settings via code the GUI is created with a .ui file with Qt Designer? Translations would not be lost, in case of any change CrowdIn helps yo "remember".

That's probably true, I've never used QtDesigner.

  • Also what about moving some classes to other files, is possible?

Yes, there are ways of improving the readability and maintenance of the code, and I'm taking it one step at a time.

I have no idea what it is or how to set it up. I'll read the documentation, thanks.

I did #69

Thanks !

Grubuntu commented 3 months ago

I would add the option to hide command shortcuts as once users know the ones that are assigned they may want to hide them while continue using the shortcuts...

I added this function in the last release-150 update, thank you for suggesting this idea.

https://github.com/Grubuntu/PieMenu/commit/2f66dac619ce85ee148735b8d01ebe66cc3ed2c1#diff-bde23e3d8118c05e6614f9923e700773a78f6fc9b0fe18ded5fd27cdbec5db7f

I've also modified the Preferences interface so that it follows the FreeCAD graphic codes and a few other adjustments.

Capture d’écran (170) Capture d’écran (171) Capture d’écran (169) Capture d’écran (168)

I'm thinking of freezing the development of this version now.

Feel free to give it a try. Thanks

hasecilu commented 3 months ago

Looks good, new changes improve UX, specially marking default menu on dialog.

I'll try to recreate the UI on QtDesigner.