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
alfrix
312d131db5
use images for the sort order, drop freefont dependency
2022-07-03 12:03:50 -03:00
alfrix
33195f203f
Simplify code
2022-05-31 11:14:42 -03:00
alfrix
5a36729b76
PEP8, typos and warnings fixes
2022-05-31 11:14:42 -03:00
alfrix
f88a5c8440
macros: put the hide options on the panel
2022-05-31 11:14:42 -03:00
alfrix
53bc6f25ff
macros: allow reverse sorting
2022-05-31 11:14:42 -03:00
alfrix
3a91ba4604
style: set minimum height for distbuttons and simplify border removal
2022-03-25 09:57:11 -03:00
alfrix
5899c8feab
Optimize imports
2022-03-15 12:41:21 -03:00
Jordan
4b0b937c41
Change scrolling behavior to enable touch scroll. Fix #466
2022-01-22 15:30:02 -05:00
Alfredo Monclus
8c489bc465
Support hiding by name using underscore ( #437 )
2022-01-13 11:09:06 -05:00
Jordan
70d8315539
Update code style
2021-09-11 17:25:38 -04:00
Alfredo Monclus
e75a10a888
New Style - Solarized ( #144 )
...
* New Style solarized
2021-05-10 20:55:15 -04:00
jordanruthe
5e31e3cfa6
Multiple printers ( #85 )
...
* screen/printer_select/splash_screen: Updates to allow changing between moonraker instances
* Updates to multiple printers
* settings: Display printer endpoints
* Update macros to be on a per-printer basis
* files: Changes to clear out file cache on printer switch
* job_status: Redo page for action bar
* splash_screen: Change icon
* websocket: Actually close the websocket
* printer: Fix error case
* splash_screen: show buttons update
* readme update
2021-03-05 18:30:59 -05:00
Jordan Ruthe
c0b4b464bd
Changes to logging implementation
2021-02-21 12:19:30 -05:00