revert(print-area): remove unused die-cut and safe-area detection
Official 22827 Word guides already match the printed layout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e31c5f89bd
commit
729e77b463
9 files changed
+87
-729
No files matched your search
@@ -88,12 +88,10 @@ class MainWindow(QMainWindow):
|
||||
def _status_template_text(self) -> str:
|
||||
if not self.template_ready or not TEMPLATE.id:
|
||||
return "No template selected — download from Avery.com or import a Word blank"
|
||||
safe = TEMPLATE.recommended_safe_inset_in()
|
||||
extra = f" · safe inset {safe:.3f}\"" if safe > 0 else ""
|
||||
return (
|
||||
f"{TEMPLATE.name}: panel {TEMPLATE.label_width_in:.4f}\" · "
|
||||
f"top {TEMPLATE.top_margin_in:.3f}\" · v-gap {TEMPLATE.vertical_gap_in:.3f}\" · "
|
||||
f"{TEMPLATE.labels_per_sheet}/sheet{extra}"
|
||||
f"{TEMPLATE.labels_per_sheet}/sheet"
|
||||
)
|
||||
|
||||
def _build_ui(self) -> None:
|
||||
@@ -677,11 +675,7 @@ class MainWindow(QMainWindow):
|
||||
)
|
||||
self.download_avery_template()
|
||||
return
|
||||
dlg = ImportDocumentDialog(
|
||||
self.project.import_settings,
|
||||
self,
|
||||
recommended_inset_in=TEMPLATE.recommended_safe_inset_in(),
|
||||
)
|
||||
dlg = ImportDocumentDialog(self.project.import_settings, self)
|
||||
if dlg.exec() != dlg.DialogCode.Accepted:
|
||||
return
|
||||
assert dlg.file_path is not None
|
||||
|
||||
Reference in new issue
Block a user