336 Commits

Author SHA1 Message Date
alfrix
a6866e8a0f pause will auto-open extrude
most (maybe all pauses) are done for filament swaps this should make it quicker
2023-09-01 12:23:41 -03:00
alfrix
e01b6e5f26 macros: hide the panel if there are no elegible macros 2023-08-31 22:27:12 -03:00
alfrix
e80ef7eff5 dialogs: simplify dialog calls, fix layout issue 2023-08-30 01:21:17 -03:00
alfrix
6be0a2931f spoolman: change initialization to be equal to the rest of components 2023-08-30 00:19:23 -03:00
alfrix
9c2f927e72 wayland: do not run xset, wayland needs another solution 2023-08-27 23:30:58 -03:00
alfrix
f3c2736f9f refactor temp updates for devices fix extruder_stepper icon error 2023-08-26 13:05:44 -03:00
alfrix
10e9e169e2 log popup messages for debugging 2023-08-21 16:11:56 -03:00
alfrix
d5e55f8aad PEP E721 2023-08-21 16:11:56 -03:00
Blonďák
af1de12f28
Spoolman support close #1060
Refactor post_requrest
Switching to TreeView
More spool info
redesign toggle buttons
Allow spoolman while printing
Styling checkbox as switch
render Toggle switch-like
Fixed wrong timezones
Filtering spools
Removed translations of Spoolman
Spool image can be overided in theme
Added switch-on/off symbols to toggle
rename iter to i to avoid shadowing built-in function
remove redundant parenthesis
convert spoolcompare to static
merge check and treeview shared props
reduce spacing of buttons very useful for vertical/portrait
fix issue with remainings
add spoolman shortcut to extrude
Using backports.zoneinfo for python < 3.9
use decorators for properties
extract format_date function
change top row
last used sort
rebase on upstream
Fix for never used spools


Co-authored-by: alfrix <alfredomonclus@gmail.com>
2023-08-19 18:43:45 -03:00
alfrix
93bb6aeb65 tempstore initialization fixup 2023-08-18 11:48:37 -03:00
alfrix
adb150a2c7 define a minimum python version 2023-08-18 11:48:37 -03:00
alfrix
4800b56492 refactor tempstore initialization
fixes #1074
2023-08-18 11:48:37 -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
9ba8d04861 printer: save and use available commands 2023-08-18 11:48:37 -03:00
alfrix
5fa1e44f16 main_menu: allow closing the keypad with the back button 2023-08-18 11:48:37 -03:00
alfrix
189df7921f screen: reinit if necessary, it does make a noticeable difference in slow hw 2023-08-18 11:48:37 -03:00
alfrix
7dbe11e0b5 screen: preload most used panels 2023-08-18 11:48:37 -03:00
alfrix
8053e97d10 camera: add support for moonraker cameras, deprecates camera_url
this also adds support for flipping and rotation (configured in moonraker)
close #976
2023-08-18 11:48:37 -03:00
alfrix
520ba44c96 fix back button not returning in custom menus fixes #1063 2023-07-31 21:48:19 -03:00
alfrix
6d5eb09010 screen: Changes in printer initialization to prevent loading main to early 2023-07-30 12:22:58 -03:00
alfrix
3a7818bd35 screen: remove pop parameter from show_panel and remove_panel, simpler 2023-07-30 12:22:58 -03:00
alfrix
3f11897491 screen: make show_panel parameters more clear 2023-07-30 12:22:58 -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
cb5b77303f screen: translate dpms failed and save settings after disabling it 2023-07-30 12:22:58 -03:00
alfrix
1d2a89b4e7 screen: remove panel subscription
since now the panels are updated on activate, there is no need to keep them updated anymore
2023-07-30 12:22:58 -03:00
alfrix
0f47d45294 fix language not saving fixes #1015 2023-07-02 13:41:42 -03:00
alfrix
f94c7d38eb fix multiple zcalibrate opening 2023-07-02 11:31:35 -03:00
alfrix
062e51f9be zcalibrate: use the new method manual_probe is_active to improve detection of status 2023-07-01 00:55:12 -03:00
Alfredo Monclus
b5abd3d7b9
temperature: select the device that was selected in job_status (#1025) 2023-06-30 17:43:00 -03:00
alfrix
5fb0acc3ac keyboard: tweak box size 2023-06-25 13:35:47 -03:00
alfrix
2c582acc7b memory leak fix
the leak started in v0.2.9 (e1ea41f147be2a356d5777e65cce37337cd51555) with the addition of del self.panel[panel].
del cannot be called on self.panels because some panels have bound methods that prevent them from being collected by the gc.
so, instead of trying to remove them, reinitialize the panels if it's needed (before v0.2.9 initialize was always called, so it's still better than it was)
at the moment leaving the panels on memory doesn't seem like a big issue, once all panels are loaded memory should remain stable

fixes #1019
fixes #1008
2023-06-21 16:10:29 -03:00
alfrix
92ed72e48b fix panel removal not working correctly
previous fix addresed the leaking memory, but created more issues:
fixes #1012
fixes #1015
fixes #1017
2023-06-16 14:11:10 -03:00
alfrix
4920720c99 return False on Glib functions 2023-06-16 10:05:43 -03:00
alfrix
2241b54153 use only one jinja env
slightly improves performance
2023-06-16 10:05:24 -03:00
alfrix
8a29b6e125 fix not reconnecting to moonraker and prevent simultaneous reconnections
fixes #999
2023-06-13 13:39:23 -03:00
alfrix
c5522b29da screen: Log resolution/size changes 2023-06-13 13:39:23 -03:00
alfrix
c1d8a4f033 menu: get rid of initalize 2023-06-13 13:39:23 -03:00
alfrix
ff94b45c45 close dialogs when transitioning to printing
also simplify the transition
2023-06-13 11:08:18 -03:00
alfrix
1813533bec Revert "always unload panels fixes #932" and fix it in a different way
it did not work as expected (#996) and caused other issues with macros and menus
del self.panels causes a memory leak
2023-06-13 11:07:46 -03:00
alfrix
b74b1b600f screen: fix some warnings about init_check and define ind 2023-06-09 08:59:32 -03:00
alfrix
88afa50ea3 change getdefaultlocale to getlocale since it's getting deprecated in python 3.13 2023-06-06 05:34:35 -03:00
alfrix
791938d733 rework screensaver timeout should fix #992 2023-06-04 10:29:41 -03:00
alfrix
1e4885d291 do not close popups when changing state 2023-05-28 09:18:32 -06:00
alfrix
c38a3273f3 fix Print panel not showing fixes #993 2023-05-27 20:53:32 -06:00
alfrix
be13c1086e make the language list a menu instead of a dropdown fixes #915 2023-05-20 05:00:45 -06:00
alfrix
4db7fd288c always clear the popup timer fixes #967 2023-05-20 03:12:52 -06:00
alfrix
3dc535f8fb always unload panels fixes #932 2023-05-20 02:59:06 -06:00
alfrix
49d910af2b fix popup timer close #946 2023-05-09 07:51:09 -06:00
Jookia
5f3827a2cb
screen: Only switch layouts if the window has been majorly resized (#913)
* screen: Only switch layouts if the window has been majorly resized

Changing the layout can cause the window to resize on some systems.
This can create a feedback loop on systems with square displays.

Keep track of the vertical aspect ratio associated with the current
mode and only switch between vertical and horizontal mode when a
significant aspect ratio change has been detected.

* fixup

---------

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2023-03-17 07:49:28 -06:00