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>
This commit is contained in:
Blonďákandalfrix authored and GitHub committed 2023-08-19 18:43:45 -03:00
1 parent 65c4b172e8
commit af1de12f28
26 files changed
+1356 -26

No files matched your search

+7
View File
@@ -26,6 +26,7 @@ class Printer:
self.tempstore_size = 1200
self.cameras = []
self.available_commands = {}
self.spoolman = False
def reinit(self, printer_info, data):
self.config = data['configfile']['config']
@@ -37,6 +38,7 @@ class Printer:
self.fancount = 0
self.output_pin_count = 0
self.tempstore = {}
self.spoolman = False
self.busy = False
if not self.store_timeout:
self.store_timeout = GLib.timeout_add_seconds(1, self._update_temp_store)
@@ -236,6 +238,7 @@ class Printer:
"pause_resume": {"is_paused": self.state == "paused"},
"power_devices": {"count": len(self.get_power_devices())},
"cameras": {"count": len(self.cameras)},
"spoolman": self.spoolman
}
}
@@ -364,3 +367,7 @@ class Printer:
temp = 0
self.tempstore[device][x].append(temp)
return True
def enable_spoolman(self):
logging.info("Enabling Spoolman")
self.spoolman = True