67 Commits
Author SHA1 Message Date
Alfredo Monclus 3b96f69701 Fix: keyboard not popping up on mouse click after wayland fix 2025-06-05 20:08:38 -06:00
Andrew Bruce e2dca7dc2b Fix: keyboard not popup in Wayland/Cage (#1580)
Inside Cage, focus-in-event doesn't appear to be triggered when touching
an item, whereas touch-event does.
2025-06-05 20:08:03 -06:00
Alfredo Monclus a92be75c48 refactor: optimize imports 2024-11-26 11:57:43 -03:00
Alfredo Monclus c20d0a2f84 fix: keyboard getting doubled if switching entry via the input switch icon
got mistakenly removed in previous commit 585f477e51
2024-09-21 05:28:21 -03:00
Alfredo Monclus 585f477e51 fix: keyboard not switching entry 2024-09-20 19:16:21 -03:00
Alfredo Monclus 274fc2b263 feat: add float option to the keypad 2024-09-20 19:16:21 -03:00
Alfredo Monclus 7b857ff991 fix: autoscroll now works if the entry is at the very bottom of the scroll
the delay is needed because the osk will change the scrolledwindow adjustment, and it's only possible to scroll down more after the keyboard has been shown
2024-09-20 19:16:21 -03:00
Alfredo Monclus 5d806a82da feat: add auto alpha to keypad switching if hinted the type in the params 2024-09-20 19:16:21 -03:00
Alfredo Monclus 822f5400cf feat: add keyboard to keypad switchs to macro panel 2024-09-20 19:16:21 -03:00
Alfredo Monclus 2d2e80c3fd panels: allow to call them without name 2024-06-04 11:16:50 -03:00
alfrix 1afc67b354 panels: simplificate panel sub-menu system 2024-05-12 15:53:45 -03:00
alfrix c75ba990c8 macros: send gcode style (G/M) macros without = 2024-04-19 21:32:19 -03:00
alfrix 6117b6e10d screen_panel: integrate add_option to deduplicate code 2024-04-16 09:16:38 -03:00
alfrix 43277158f9 gcode_macros: add lowercase letters to the params 2024-03-09 12:32:35 -03:00
Frédéric Beaucamp 84f7c1acff Improve params pattern to catch more macros (#1295)
The current pattern can only take into account params followed by default. The proposal catches more parameters and removes white spaces if present.
2024-03-09 12:31:51 -03:00
alfrix 6cf639c083 refactor widget creation
improves performance and makes the code cleaner

* add parameters instead of calling methods afterwards
* remove a a lot of size requests
* remove parameters that are being set to the default value
* simplify dialogs containers
2024-01-02 08:14:51 -03:00
alfrix 75ee5c4740 macros: fix possible issue when loading macro
apararently according to the log gcode was not defined in a macro, which should not be possible
this handles this cases by not loading the macro and dumping it in the console for debug analysis
2023-09-10 18:31:34 -03:00
alfrix e01b6e5f26 macros: hide the panel if there are no elegible macros 2023-08-31 22:27:12 -03:00
alfrix 7f00a37244 macros: hide load and unload (use them in the extrude panel) 2023-08-26 13:05:44 -03:00
alfrix 8391fdf83e macros: hide macros with rename_existing (equal to Mainsail) 2023-08-26 13:05:44 -03:00
alfrix bd98e758ec base_panel improvements
* generalize macro shortcut to allow changing it in the future
* action_bar functionality is now handled in one place for better maintainability
2023-08-18 11:48:37 -03:00
alfrix 90fc3288d7 Use callbacks to disable and enable buttons to improve user feedback
buttons now show a spinner if watiting for callback
2023-08-18 11:48:37 -03:00
alfrix 8d9236a2df screen: simplify panel loading
this removes create_panel function from panels and mandates a class name Panel

remove panel_type param and only use a panel_name that is it's filename

remove load_panel dict

always reinit panel, (simpler and safer but slower)
2023-07-30 12:22:58 -03:00
alfrix 46311e58f1 macros: use defaults as placeholders fix #1040 2023-07-30 12:22:58 -03:00
alfrix efc8c3f437 macros: add popup (visual confirmation) of the macro sent 2023-06-21 16:10:29 -03:00
alfrix 4920720c99 return False on Glib functions 2023-06-16 10:05:43 -03:00
alfrix f7c12867d5 slimmer topbar buttons fixes #1006 2023-06-13 13:39:23 -03:00
alfrix 2d61eba66b Fix macro shortcut reopening the same panel 2023-06-04 08:09:11 -03:00
alfrix ebaedeaf6c macros: fix arrow not showing after click 2023-05-09 07:43:23 -06:00
alfrix d6f7bdcfe6 macros: use the new get_macro instead of get_config due to recent issues 2023-03-11 16:53:08 -06:00
alfrix dfe1ac8d2c macros: fix list not loading when there are extra spaces fixes #909 2023-03-10 20:03:28 -06:00
alfrix 7120c424d4 gtk: resizability
doesn't rescale the fonts or images
2022-12-11 09:17:18 -03:00
alfrix 683b72ab20 simplify keyboard calls 2022-12-03 15:46:26 -03:00
alfrix e658f562be macros add parameters 2022-12-03 15:46:26 -03:00
alfrix 25797b5ed3 remove frames from lists 2022-11-28 00:15:28 -03:00
alfrix 97106bc2e0 tweak print and macros topbars 2022-11-22 16:33:12 -03:00
alfrix 00bd6ac4db gtk: adjust icon sizes so they are more consistent across font sizes 2022-11-22 16:18:06 -03:00
alfrix 593d8c678b gtk: merge buttonimage and button 2022-11-22 14:55:42 -03:00
alfrix 8d2f90f800 set title for internal options subpanels
the menu/subpanel system is a bit complex and hard to use
consider removing it and use individual panels of options
2022-11-22 14:55:42 -03:00
alfrix d0d79a64df base_panel: simplify action bar buttons enable-disable 2022-11-21 09:20:05 -03:00
alfrix fc0f153023 reorder imports 2022-11-20 07:28:05 -03:00
alfrix 45ab86204b panels: remove initialize from the panels that do not have a menu 2022-11-18 00:53:53 -03:00
alfrix d3281379ee gtk: change scaling of images
This reduces the amount of magic numbers used, some images will scale to bigger sizes, most of the icons and images in vertical mode will be bigger, thumbnails should be bigger in both modes.
2022-10-26 22:36:52 -03:00
alfrix 97f170ba59 buttons: resize side images for better alignment 2022-09-02 19:58:35 -03:00
alfrix 38ceea5204 gtk: improve wrapping of labels 2022-09-02 19:58:35 -03:00
alfrix eb17bb58ad screen_panel: remove unused parameters 2022-08-01 12:23:40 -03:00
alfrix 6510b2ec6b Refactor
Use f-strings
Avoid unnecessary casts to str()bool()int()
Ensure file closure
Merge nested ifs
Simplify for-assigns-appends with comprehensions and internal functions
Avoid shadowing internal function names
Initialize variables
Return value directly instead of assign then return
Make some methods static
2022-08-01 12:23:40 -03:00
alfrix 5ad82a64d4 Translations: install _() 2022-07-03 12:03:50 -03:00
alfrix b611491997 Optimize imports 2022-07-03 12:03:50 -03:00
alfrix 06fceec84a Change the deprecated VBox and HBox to oriented Boxes 2022-07-03 12:03:50 -03:00