Formats impression configurables + recadrage au ratio

Config admin :
- Chaque format (10x15, 13x18, 15x20) activable avec checkbox
- Imprimante CUPS assignable par format

Écran impression :
- Boutons de format (seuls les activés apparaissent)
- Cadre de recadrage au ratio du format (3:2, 18:13, 4:3)
- Auto-détection portrait/paysage
- Cadre déplaçable avec poignées tactiles
- Galerie → Valider → écran impression avec print_list

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-21 23:22:16 +01:00
parent 9a643eadfc
commit 371ae4a1f8
3 changed files with 263 additions and 83 deletions

View File

@@ -297,7 +297,7 @@ class ImportScreen(QWidget):
self.summary_label.setStyleSheet("color: #999;")
def _validate(self):
"""Envoie les photos sélectionnées à l'impression."""
"""Envoie les photos sélectionnées à l'écran d'impression."""
to_print = []
for card in self.cards:
if card.quantity > 0:
@@ -306,9 +306,8 @@ class ImportScreen(QWidget):
if not to_print:
return
# TODO: envoyer à l'écran d'impression avec les quantités
# Pour l'instant, on envoie la première photo
self.main_window.show_print(to_print[0][0])
self.main_window.print_screen.set_print_list(to_print)
self.main_window.show_print()
def get_print_list(self):
"""Retourne la liste [(path, quantity), ...] pour l'impression."""