177 Commits

Author SHA1 Message Date
alfrix
8717dd8836 files: refactor and cleanups 2024-01-16 13:56:33 -03:00
alfrix
c6a91a1562 job_status: refactor the estimation code
fixes no-extrusion cases, and some edge cases
2024-01-13 12:29:36 -03:00
alfrix
98da293cee refactor job_status and titlebar_items to allow multiple extruders 2024-01-10 23:30:39 -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
Alfredo Monclus
1794d8aa24
feat: macro prompts close #1216 (#1219)
* feat: macro prompts close #1216

now the user can have confirmation on macros using this feature close #835

* prompt: remove separator and remove the header and close button if windowed

* prompt: wakeup screen

* prompt: slightly larger close icon
2024-01-02 08:04:02 -03:00
alfrix
2e80d532d6 job_status: fix rounding to 100 2023-10-13 13:44:13 -03:00
alfrix
3067651f8b job_status: fix issue with thumbnail at low resolutions 2023-10-13 13:20:20 -03:00
alfrix
9d177d2afc job_status and print: revise the size of the thumbnail close #1136 2023-10-07 13:02:05 -03:00
alfrix
9a215306b7 job_status: fix E225 2023-09-03 11:49:22 -03:00
alfrix
6dc2df25f7 job_status: patch print_time estimating too early 2023-09-02 17:37:56 -03:00
alfrix
e80ef7eff5 dialogs: simplify dialog calls, fix layout issue 2023-08-30 01:21:17 -03:00
alfrix
8209dbabf4 job_status: click thumbnail for fullscreen thumbnail 2023-08-28 15:08:34 -03:00
alfrix
f3c2736f9f refactor temp updates for devices fix extruder_stepper icon error 2023-08-26 13:05:44 -03:00
alfrix
d9a6d0caa6 job_status: fixup progress initialization if restarted during print 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
365b9bde4f job_status: fixup remaining times 2023-08-03 02:08:46 -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
71dcb1f91d job_status: tweaks to the calc of time remaining 2023-07-30 12:22:58 -03:00
alfrix
7ba9e49374 job_status: show save to endstop to apply offset for deltas close #916
Z_OFFSET_APPLY_ENDSTOP works in deltas since f078a27905
2023-07-30 12:22:58 -03:00
alfrix
ae03e7d55d job_status: fix screen overflow on small screens 2023-07-30 12:22:58 -03:00
alfrix
72c6bdfe33 job_status: change progress percentage to time-based instead of file-based 2023-07-30 12:22:58 -03:00
alfrix
3c69bcb4c4 add parameter to labels to silence IDE warnings 2023-07-30 12:22:58 -03:00
alfrix
a149796b19 reduce the use of contextlib 2023-07-30 12:22:58 -03:00
alfrix
2a9044e4f4 job_status: refactor to improve efficiency
job_status: refactor lcd_message
2023-07-30 12:22:58 -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
eb0e6ad803 job_status: disable restart and pause after pressing and simplify enable 2023-06-21 17:42:32 -03:00
alfrix
35498d39c7 job_status: fix not fitting on 480 wide screens 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
7a0848fa9f deprecate user slicer compensation, in hindsight this is something that the ui shouldn't do 2023-06-04 11:00:47 -03:00
alfrix
d775e15fa0 add extra digit for z_offset close #943 2023-04-02 09:29:00 -06:00
alfrix
3417765223 job_status: fix panel not showing and not updating thumbnails
safeguard against thumbnail corruption or other errors fixes #893
better system to update name and thumbnails fixes #889
2023-03-19 05:55:30 -06:00
alfrix
b963c55140 job_status: fix save endstop not working fixes #929 2023-03-17 07:50:50 -06:00
alfrix
3c5449f0db job_status: cast float to zoffset 2022-12-12 19:53:34 -03:00
alfrix
1375c823c9 job_status: clear_file after error 2022-12-11 09:20:06 -03:00
alfrix
778cd84ba8 panels do not call screen.show_all 2022-12-11 09:17:18 -03:00
alfrix
70d7564a78 shorten _screen.printer to _printer 2022-12-11 09:17:18 -03:00
alfrix
7120c424d4 gtk: resizability
doesn't rescale the fonts or images
2022-12-11 09:17:18 -03:00
alfrix
9de058b0d7 dialogs: set title 2022-11-30 11:51:24 -03:00
alfrix
2bacac7efb job_status: info refactor
switching info is much faster, buttons keep their label
2022-11-30 11:00:10 -03:00
alfrix
b1a6d5c182 improve panel initialization
just make a notify_status_update from printer data, it's much simpler
2022-11-30 11:00:10 -03:00
alfrix
68ccf5e803 job_status: hide speed unit on 480x320 2022-11-29 00:24:20 -03:00
alfrix
62ef4f1844 job_status: stabilize the grid, add object height to main, translate units 2022-11-29 00:04:05 -03:00
alfrix
da164b495e job_status: change slicer-filament-file times to totals 2022-11-26 23:21:07 -03:00
alfrix
26030526a9 fix move panel not opening after a61a74d7bf5db fixes #818 2022-11-26 23:14:31 -03:00
alfrix
e9df355b3b job_status: initialize some labels and use live position close #809 2022-11-26 15:57:50 -03:00
alfrix
d8b4d2d293 job_status: add eta 2022-11-26 15:57:50 -03:00
alfrix
b5cf73054a job_status: refactor 2022-11-25 15:50:31 -03:00
alfrix
12b9ee5344 job_status: filename tweak max chars
after the tweaks for bigger font sizes the maximum amount can be raised

TODO: investigate if a pango layout that can detect ellipzised labels is suitable to replace this method
2022-11-22 17:32:53 -03:00