mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-01 05:58:12 -06:00
Preferences: always use my default zoom and page layout (fixes #1618)
This commit is contained in:
+22
-22
@@ -7,7 +7,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Greek UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "6eee0b34db6529f26235bfc07fa1fdb9030b8e7b0b10ede271ca9242cb491919"
|
||||
sha256 = "c19934819672de8541ed7e455cadd8d785de8aa450639f0756cf40626add9a58"
|
||||
|
||||
# ATTRIBUTION.toml: one entry per asset (AGENTS.md §1). The source of truth for provenance and licences.
|
||||
# ATTRIBUTION.md is generated from this file: `cargo xtask assets --write`. Checked by `cargo xtask assets` (part of `xtask ci`).
|
||||
@@ -30,7 +30,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Simplified Chinese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "9870c0fb9f7198155be16adee7f45d36cb9a254af90b545a3ce5b04cbbbf24d4"
|
||||
sha256 = "d57bf5b5eabd5f4ba3f30fc4665e058b7dedc0323827f9194fc65dcba134720a"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/zh-hant.tsv"
|
||||
@@ -41,7 +41,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Traditional Chinese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "fc31e40877ce115cfb7033c57dd6acabcae3725b249364387e3fe23e04d94e5e"
|
||||
sha256 = "48876d061afc26fd1d38b3353191e619027ff74016ca09ae9b8c646d5d446fa8"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/cs.tsv"
|
||||
@@ -52,7 +52,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Czech UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "5de19834f293efaea68cb6b7f51a71d320391f53345f56cfebcd73dab828b665"
|
||||
sha256 = "d57182cb12fa764212d99b08e57e6c243a9fc13bafa4ae47f8454c1bb77ff0f7"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/pt-br.tsv"
|
||||
@@ -63,7 +63,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Brazilian Portuguese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "cef0d22341d0722f029c6543fc846fce164331b7ad8f693a6754b7567b9d9e95"
|
||||
sha256 = "b75a9e9995ca53666facdf8483f27f6ea7a4a197ad02b565ee7e194bc31fe4ec"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/es.tsv"
|
||||
@@ -74,7 +74,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Spanish UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "c0ca7761cbabd8096bc9af54cdf6b88b3ae0cd8210003db8b3356e2706e44fc8"
|
||||
sha256 = "0084d032f5ad45a9cb2b0d5b5974867cbf248859fa091047e43172eeb924a07c"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/fr.tsv"
|
||||
@@ -85,7 +85,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "French UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "a8afd51c3296f44b0446d6b06492b1348444b3e3c448a326ad213d18ce7af714"
|
||||
sha256 = "8023d5f2feddba1b6a216d305f3fa49b3d0517742e26d69edbfee720a4cb4178"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/de.tsv"
|
||||
@@ -96,7 +96,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "German UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "7676a2dfaa7d66e2e9ef608d2d9de7f863557dcecbef6d94bafa981097405e6d"
|
||||
sha256 = "5f6a188458ef049091b27819fbc596a7a9afa3e64d3243f809f8675241266e74"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/te.tsv"
|
||||
@@ -107,7 +107,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Telugu UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "9a22996c0308ea5b20ec5e328504cd83cbb560147763faaf0e6987f974844c29"
|
||||
sha256 = "bf8f360cd3d0ef277f5f06eb0d3965b0036eec50d817161d64544a3230189b19"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/it.tsv"
|
||||
@@ -118,7 +118,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Italian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "eacc972d65a2d951e94e1a8cf944638e8328f73f6c05759de6059a425f159cd7"
|
||||
sha256 = "4cf9da6607ade28e35fae637b28c02b6a577a0a9da070495789f1fcc28fd318d"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/pl.tsv"
|
||||
@@ -129,7 +129,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Polish UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "dfa4aa540cc7d61fa22a27a949e6eec0f78dcc5b883d0e4e004d695e460b95aa"
|
||||
sha256 = "48398e09d828c79a37e5ff4f4194f22a10b3ef219ed7bd5292e8a1bc8366e2ca"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/ru.tsv"
|
||||
@@ -140,7 +140,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Russian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "27e02e7bb3d378bceca76988a9dceaa68d974f57cbee962954deca6184cf62aa"
|
||||
sha256 = "b4dc4776bbcc297e302eb3d9ab8950ff23725aad3757875f44c244ec9dff7915"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/hu.tsv"
|
||||
@@ -151,7 +151,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Hungarian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "9675edd36c5ae54d9893fd10c4325aab664941bf714c08fbfeef9134fa42056c"
|
||||
sha256 = "1f0f1a41bd6787ff4e733d4c1285697581edcef39332b1b6003d0b880aad66bb"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/bg.tsv"
|
||||
@@ -162,7 +162,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Bulgarian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "ce18fc96f8516aa917e4a8bcfd290edec13a9800b3d1ee102e4b2a71b8467d2b"
|
||||
sha256 = "7ab2917563c83b8a5b1c787d4316ee7878c0af7b31223116f035eda1b8adc122"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/kk.tsv"
|
||||
@@ -173,7 +173,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Kazakh UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "286a1e2e051748eb4bcee3906918dc78d0704f8a37bde22dc50d3376d5e75017"
|
||||
sha256 = "4de3e12d1dfe292c924fa985e4383eeaff1166f9dd40e18fa5d8fce1e4b50aa3"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/ja.tsv"
|
||||
@@ -184,7 +184,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Japanese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "77593b7497c67f4a79cc31fa43fdd6eae11601dd87c079a8e666b25cdd9117ba"
|
||||
sha256 = "9df5b455a14f4a12f6d486390036bde74556b60d8b33f093a2c4d75d38a846f4"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/uk.tsv"
|
||||
@@ -195,7 +195,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Ukrainian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "d7d93a03f22ab380696f69b20b12104bf30e78c4440b683df63594af716894e2"
|
||||
sha256 = "3a6acd210a3c72cf897503b35cfdb135385caf650022423ad73a7e7038a4654f"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/ar.tsv"
|
||||
@@ -206,7 +206,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Arabic UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "889a0d0a9ea53ca0a818c2ba672c053c232d2cca140f8d63127353e6f36505fe"
|
||||
sha256 = "59326d6ec62fd9756319817cddb6c2f6aee3e94428ae12d414ba2c34469aefa5"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/tr.tsv"
|
||||
@@ -217,7 +217,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Turkish UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "bae8b21651ae2a69c71c91b69ba79727254dbfb078c1be312a13383332934927"
|
||||
sha256 = "10c94faa0804d479ea6ed7950df0f4b8780097b25d1293c1ff663cdf9988627a"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/lt.tsv"
|
||||
@@ -228,7 +228,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Lithuanian UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "7fa70f68a9fa24d0b1cac05fe3aaabaeaca9750c57416124bd317a4eda806d5a"
|
||||
sha256 = "fae73529302aeb16f401b0add261cedd0c948c8c6dc8596d11fb46ae917f3dc7"
|
||||
|
||||
|
||||
[[asset]]
|
||||
@@ -3352,7 +3352,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Vietnamese UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "95b5fc6d10f7bc8371688772741870448de716fa2dd9af62fdfe4e009d269b45"
|
||||
sha256 = "1660e1cbc02c5143cbcf9e53fdad067acc4ff6b93018ea0970c1be6324d8b0f1"
|
||||
|
||||
[[asset]]
|
||||
path = "crates/ui-egui/src/i18n/sl.tsv"
|
||||
@@ -3363,7 +3363,7 @@ licence = "MIT OR Apache-2.0"
|
||||
licence_file = "LICENSE-MIT"
|
||||
kind = "translation"
|
||||
usage = "Slovene UI strings, compiled in by crates/ui-egui/src/i18n/mod.rs"
|
||||
sha256 = "3ac2b113045b7e399dd6d9ddb7773e5b0874c8b43c2ba4cca5854598a2a7ba92"
|
||||
sha256 = "6eabd9780db8789aae58b2337f3662e2357682fc96f5490a30e85b02ee931e44"
|
||||
|
||||
[[asset]]
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
//! `--page N --zoom 150 --layout single|continuous|two-up|two-page --continuous on|off --panel comments|bookmarks|pages|fields|layers|attachments|none
|
||||
//! --theme light|dark|system --language auto|<code> --mode all|read|edit|convert|sign --tool <catalogue id> --left open|closed
|
||||
//! --organize on --fields on --dialog properties|shortcuts|about --palette <query> --home on
|
||||
//! --cover on|off --default-layout single|continuous|two-up|two-page --default-continuous on|off --default-zoom fit-width|fit-page|<percent>
|
||||
//! --cover on|off --default-layout single|continuous|two-up|two-page --default-continuous on|off --default-zoom fit-width|fit-page|<percent> --always-default-view on|off
|
||||
//! --combine-view grid|list --combine-zoom 60..200`
|
||||
//!
|
||||
//! `--new-window` opens a window of its own. Without it, on Windows, a launch that only names files
|
||||
|
||||
@@ -2301,6 +2301,7 @@ key Space مسافة
|
||||
Printer paper and scaling may differ. Check driver settings. قد يختلف ورق الطابعة ومقياس الطباعة. تحقق من إعدادات برنامج التشغيل.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. يتغير مقياس الرسم. استخدم الحجم الفعلي لطباعة المخططات بمقياسها الأصلي.
|
||||
Reload documents when their files change on disk إعادة تحميل المستندات عند تغيّر ملفاتها على القرص
|
||||
Always use my default zoom and page layout استخدام التكبير وتخطيط الصفحة الافتراضيين دائمًا
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. تغيّر هذا الملف على القرص. «إعادة التحميل» تعرض النسخة الجديدة وتُسقط تغييراتك غير المحفوظة؛ و«حفظ» يستبدلها بهذه النسخة.
|
||||
Reload إعادة تحميل
|
||||
Couldn't reload {name}: {e} تعذّرت إعادة تحميل {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -2243,6 +2243,7 @@ key Space Интервал
|
||||
Printer paper and scaling may differ. Check driver settings. Хартията и мащабът на принтера може да се различават. Проверете настройките на драйвера.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. Мащабът на чертежа се променя. Използвайте Действителен размер за планове в оригинален мащаб.
|
||||
Reload documents when their files change on disk Презареждай документите, когато файловете им се променят на диска
|
||||
Always use my default zoom and page layout Винаги използвай моя мащаб и оформление на страниците по подразбиране
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Този файл беше променен на диска. „Презареждане“ показва новата версия и отхвърля незаписаните ви промени; „Запис“ я заменя с тази версия.
|
||||
Reload Презареди
|
||||
Couldn't reload {name}: {e} Неуспешно презареждане на {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 8 and column 16.
|
@@ -138,6 +138,7 @@
|
||||
Used when a PDF doesn't ask for a layout or zoom. Continuous scrolling never snaps between pages. Používá se, když PDF nepožaduje rozložení ani zvětšení. Plynulé posouvání mezi stránkami neskáče.
|
||||
Reopen the files that were open when PdfCraft last closed Znovu otevřít soubory, které byly otevřené při posledním zavření aplikace PdfCraft
|
||||
Reload documents when their files change on disk Znovu načítat dokumenty při změně jejich souborů na disku
|
||||
Always use my default zoom and page layout Vždy používat mé výchozí zvětšení a rozvržení stránky
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Tento soubor se na disku změnil. Znovu načíst zobrazí novou verzi a zahodí neuložené změny; Uložit ji nahradí touto verzí.
|
||||
Reload Znovu načíst
|
||||
Couldn't reload {name}: {e} Soubor {name} nelze znovu načíst: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -2285,6 +2285,7 @@ key Space Leertaste
|
||||
Printer paper and scaling may differ. Check driver settings. Druckerpapier und Skalierung können abweichen. Treibereinstellungen prüfen.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. Der Zeichnungsmaßstab ändert sich. Für maßstabsgetreue Pläne Tatsächliche Größe verwenden.
|
||||
Reload documents when their files change on disk Dokumente neu laden, wenn sich ihre Dateien auf dem Datenträger ändern
|
||||
Always use my default zoom and page layout Immer meinen Standardzoom und mein Standard-Seitenlayout verwenden
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Diese Datei wurde auf dem Datenträger geändert. „Neu laden“ zeigt die neue Version und verwirft Ihre ungespeicherten Änderungen; „Speichern“ ersetzt sie durch diese Version.
|
||||
Reload Neu laden
|
||||
Couldn't reload {name}: {e} {name} konnte nicht neu geladen werden: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 51.
|
@@ -2289,6 +2289,7 @@ comment menu Edit Επεξεργασία
|
||||
Printer paper and scaling may differ. Check driver settings. Το χαρτί και η κλίμακα του εκτυπωτή μπορεί να διαφέρουν. Ελέγξτε τις ρυθμίσεις του προγράμματος οδήγησης.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. Η κλίμακα του σχεδίου αλλάζει. Για σχέδια σε πλήρη κλίμακα χρησιμοποιήστε το Πραγματικό μέγεθος.
|
||||
Reload documents when their files change on disk Επαναφόρτωση εγγράφων όταν αλλάζουν τα αρχεία τους στον δίσκο
|
||||
Always use my default zoom and page layout Να χρησιμοποιείται πάντα η προεπιλεγμένη μεγέθυνση και διάταξη σελίδας μου
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Αυτό το αρχείο άλλαξε στον δίσκο. Η επαναφόρτωση δείχνει τη νέα έκδοση και απορρίπτει τις μη αποθηκευμένες αλλαγές σας· η αποθήκευση την αντικαθιστά με αυτή την έκδοση.
|
||||
Reload Επαναφόρτωση
|
||||
Couldn't reload {name}: {e} Δεν ήταν δυνατή η επαναφόρτωση του {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 477 and column 9.
|
@@ -2154,6 +2154,7 @@ action wizard Start Iniciar
|
||||
Home / End Inicio / Fin
|
||||
H / Space (hold) H / Espacio (mantener)
|
||||
Reload documents when their files change on disk Recargar los documentos cuando sus archivos cambien en el disco
|
||||
Always use my default zoom and page layout Usar siempre mi zoom y presentación de página predeterminados
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Este archivo cambió en el disco. Recargar muestra la versión nueva y descarta los cambios sin guardar; Guardar la reemplaza por esta versión.
|
||||
Reload Recargar
|
||||
Couldn't reload {name}: {e} No se pudo recargar {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 60.
|
@@ -2003,6 +2003,7 @@
|
||||
Used when a PDF doesn't ask for a layout or zoom. Continuous scrolling never snaps between pages. Utilisé lorsqu'un PDF ne demande ni présentation ni zoom. Le défilement continu ne saute jamais d'une page à l'autre.
|
||||
Reopen the files that were open when PdfCraft last closed Rouvrir les fichiers qui étaient ouverts lors de la dernière fermeture de PdfCraft
|
||||
Reload documents when their files change on disk Recharger les documents lorsque leurs fichiers sont modifiés sur le disque
|
||||
Always use my default zoom and page layout Toujours utiliser mon zoom et ma présentation de page par défaut
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Ce fichier a été modifié sur le disque. Recharger affiche la nouvelle version et abandonne vos modifications non enregistrées ; Enregistrer la remplace par cette version.
|
||||
Reload Recharger
|
||||
Couldn't reload {name}: {e} Impossible de recharger {name} : {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 39.
|
@@ -2279,6 +2279,7 @@ key Space Szóköz
|
||||
Printer paper and scaling may differ. Check driver settings. A nyomtató papírja és méretezése eltérhet. Ellenőrizze az illesztőprogram beállításait.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. A rajz méretaránya változik. Méretarányos tervekhez használja a Tényleges méret beállítást.
|
||||
Reload documents when their files change on disk Dokumentumok újratöltése, ha a fájljuk megváltozik a lemezen
|
||||
Always use my default zoom and page layout Mindig az alapértelmezett nagyításom és oldalelrendezésem használata
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Ez a fájl megváltozott a lemezen. Az Újratöltés az új változatot mutatja, és eldobja a nem mentett módosításokat; a Mentés erre a változatra cseréli le.
|
||||
Reload Újratöltés
|
||||
Couldn't reload {name}: {e} {name} újratöltése nem sikerült: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 7 and column 44.
|
@@ -2289,6 +2289,7 @@ key Space Spazio
|
||||
Printer paper and scaling may differ. Check driver settings. Carta e scala della stampante possono differire. Controlla le impostazioni del driver.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. La scala del disegno cambia. Usa Dimensioni effettive per le planimetrie in scala.
|
||||
Reload documents when their files change on disk Ricarica i documenti quando i loro file cambiano sul disco
|
||||
Always use my default zoom and page layout Usa sempre il mio ingrandimento e layout di pagina predefiniti
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Questo file è cambiato sul disco. Ricarica mostra la nuova versione e scarta le modifiche non salvate; Salva la sostituisce con questa versione.
|
||||
Reload Ricarica
|
||||
Couldn't reload {name}: {e} Impossibile ricaricare {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -2280,6 +2280,7 @@ key Space スペース
|
||||
Printer paper and scaling may differ. Check driver settings. プリンターの用紙や倍率は異なる場合があります。ドライバーの設定を確認してください。
|
||||
Drawing scale changes. Use Actual size for full-scale plans. 図面の縮尺が変わります。原寸で印刷するには「実際のサイズ」を使用してください。
|
||||
Reload documents when their files change on disk ディスク上のファイルが変更されたら文書を再読み込みする
|
||||
Always use my default zoom and page layout 常に既定のズームとページレイアウトを使用する
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. このファイルはディスク上で変更されました。「再読み込み」は新しい版を表示して未保存の変更を破棄し、「保存」はこの版で置き換えます。
|
||||
Reload 再読み込み
|
||||
Couldn't reload {name}: {e} {name} を再読み込みできませんでした: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -2279,6 +2279,7 @@ key Space Бос орын
|
||||
Printer paper and scaling may differ. Check driver settings. Принтер қағазы мен масштабы өзгеше болуы мүмкін. Драйвер параметрлерін тексеріңіз.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. Сызба масштабы өзгереді. Толық масштабты жоспарлар үшін Нақты өлшемді пайдаланыңыз.
|
||||
Reload documents when their files change on disk Дискідегі файлдары өзгергенде құжаттарды қайта жүктеу
|
||||
Always use my default zoom and page layout Әрқашан әдепкі масштаб пен бет орналасуын пайдалану
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Бұл файл дискіде өзгертілді. «Қайта жүктеу» жаңа нұсқаны көрсетіп, сақталмаған өзгерістеріңізді тастайды; «Сақтау» оны осы нұсқамен алмастырады.
|
||||
Reload Қайта жүктеу
|
||||
Couldn't reload {name}: {e} {name} қайта жүктеу мүмкін болмады: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 826 and column 9.
|
@@ -939,6 +939,7 @@
|
||||
Redaction code: Šalinimo kodas:
|
||||
Reload Įkelti iš naujo
|
||||
Reload documents when their files change on disk Iš naujo įkelti dokumentus, kai pasikeičia jų failai diske
|
||||
Always use my default zoom and page layout Visada naudoti mano numatytąjį mastelį ir puslapio išdėstymą
|
||||
Remove checkmark Pašalinti varnelę
|
||||
Remove invalid links and bookmarks Pašalinti netinkamus saitus ir žymeles
|
||||
Remove page Pašalinti puslapį
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 404 and column 9.
|
@@ -2260,6 +2260,7 @@ key Space Spacja
|
||||
These objects could not be moved. Select them again and try a smaller move. Nie udało się przenieść tych obiektów. Zaznacz je ponownie i spróbuj mniejszego przesunięcia.
|
||||
This page contains objects that cannot be selected together. Ta strona zawiera obiekty, których nie można zaznaczyć razem.
|
||||
Reload documents when their files change on disk Wczytuj ponownie dokumenty, gdy ich pliki zmienią się na dysku
|
||||
Always use my default zoom and page layout Zawsze używaj mojego domyślnego powiększenia i układu stron
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Ten plik zmienił się na dysku. Wczytaj ponownie pokazuje nową wersję i odrzuca niezapisane zmiany; Zapisz zastępuje ją tą wersją.
|
||||
Reload Wczytaj ponownie
|
||||
Couldn't reload {name}: {e} Nie można ponownie wczytać {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -2282,6 +2282,7 @@ key Space Espaço
|
||||
Printer paper and scaling may differ. Check driver settings. O papel e a escala da impressora podem variar. Confira as configurações do driver.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. A escala do desenho muda. Use Tamanho real para plantas em escala.
|
||||
Reload documents when their files change on disk Recarregar documentos quando os arquivos mudarem no disco
|
||||
Always use my default zoom and page layout Sempre usar meu zoom e layout da página padrão
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Este arquivo foi alterado no disco. Recarregar mostra a nova versão e descarta suas alterações não salvas; Salvar a substitui por esta versão.
|
||||
Reload Recarregar
|
||||
Couldn't reload {name}: {e} Não foi possível recarregar {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 9 and column 16.
|
@@ -2070,6 +2070,7 @@
|
||||
Used when a PDF doesn't ask for a layout or zoom. Continuous scrolling never snaps between pages. Используется, когда PDF не запрашивает макет или масштаб. Непрерывная прокрутка никогда не привязывается между страницами.
|
||||
Reopen the files that were open when PdfCraft last closed Повторно открывать файлы, которые были открыты при последнем закрытии PdfCraft
|
||||
Reload documents when their files change on disk Перезагружать документы при изменении их файлов на диске
|
||||
Always use my default zoom and page layout Всегда использовать мой масштаб и макет страницы по умолчанию
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Этот файл был изменён на диске. «Перезагрузить» покажет новую версию и отбросит несохранённые изменения; «Сохранить» заменит её этой версией.
|
||||
Reload Перезагрузить
|
||||
Couldn't reload {name}: {e} Не удалось перезагрузить {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 9 and column 16.
|
@@ -2286,6 +2286,7 @@ key Space Preslednica
|
||||
Printer paper and scaling may differ. Check driver settings. Papir in merilo tiskalnika se lahko razlikujeta. Preverite nastavitve gonilnika.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. Merilo risbe se spremeni. Za načrte v polnem merilu uporabite Dejansko velikost.
|
||||
Reload documents when their files change on disk Znova naloži dokumente, ko se njihove datoteke na disku spremenijo
|
||||
Always use my default zoom and page layout Vedno uporabi moje privzeto povečanje in postavitev strani
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Ta datoteka se je na disku spremenila. Ponovno naloži pokaže novo različico in zavrže neshranjene spremembe; Shrani jo zamenja s to različico.
|
||||
Reload Znova naloži
|
||||
Couldn't reload {name}: {e} Datoteke {name} ni bilo mogoče znova naložiti: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 9 and column 16.
|
@@ -1989,6 +1989,7 @@ action wizard Start ప్రారంభించు
|
||||
Used when a PDF doesn't ask for a layout or zoom. Continuous scrolling never snaps between pages. PDF ఏ లేఅవుట్ను గానీ జూమ్ను గానీ కోరనప్పుడు ఉపయోగించబడుతుంది. నిరంతర స్క్రోలింగ్ పేజీల మధ్య ఎప్పుడూ స్నాప్ అవ్వదు.
|
||||
Reopen the files that were open when PdfCraft last closed PdfCraftను చివరిసారి మూసివేసినప్పుడు తెరిచి ఉన్న ఫైల్లను మళ్లీ తెరువు
|
||||
Reload documents when their files change on disk డిస్క్లో వాటి ఫైల్లు మారినప్పుడు పత్రాలను మళ్లీ లోడ్ చేయి
|
||||
Always use my default zoom and page layout ఎల్లప్పుడూ నా డిఫాల్ట్ జూమ్ మరియు పేజీ లేఅవుట్ను ఉపయోగించు
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. ఈ ఫైల్ డిస్క్లో మారింది. రీలోడ్ కొత్త వెర్షన్ను చూపించి సేవ్ చేయని మార్పులను వదిలేస్తుంది; సేవ్ దాని స్థానంలో ఈ వెర్షన్ను ఉంచుతుంది.
|
||||
Reload మళ్లీ లోడ్ చేయి
|
||||
Couldn't reload {name}: {e} {name}ను మళ్లీ లోడ్ చేయడం సాధ్యం కాలేదు: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 13 and column 16.
|
@@ -2277,6 +2277,7 @@ key Space Boşluk
|
||||
Printer paper and scaling may differ. Check driver settings. Yazıcı kâğıdı ve ölçekleme farklı olabilir. Sürücü ayarlarını kontrol edin.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. Çizim ölçeği değişir. Tam ölçekli planlar için Gerçek boyutu kullanın.
|
||||
Reload documents when their files change on disk Diskteki dosyaları değiştiğinde belgeleri yeniden yükle
|
||||
Always use my default zoom and page layout Her zaman varsayılan yakınlaştırmamı ve sayfa düzenimi kullan
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Bu dosya diskte değişti. Yeniden yükle yeni sürümü gösterir ve kaydedilmemiş değişikliklerinizi atar; Kaydet onu bu sürümle değiştirir.
|
||||
Reload Yeniden yükle
|
||||
Couldn't reload {name}: {e} {name} yeniden yüklenemedi: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 825 and column 9.
|
@@ -2302,6 +2302,7 @@ key Space Пробіл
|
||||
Printer paper and scaling may differ. Check driver settings. Папір і масштаб принтера можуть відрізнятися. Перевірте налаштування драйвера.
|
||||
Drawing scale changes. Use Actual size for full-scale plans. Масштаб креслення змінюється. Для друку в початковому масштабі виберіть Фактичний розмір.
|
||||
Reload documents when their files change on disk Перезавантажувати документи, коли їхні файли змінюються на диску
|
||||
Always use my default zoom and page layout Завжди використовувати мій типовий масштаб і макет сторінок
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. Цей файл змінено на диску. «Перезавантажити» покаже нову версію й відкине незбережені зміни; «Зберегти» замінить її цією версією.
|
||||
Reload Перезавантажити
|
||||
Couldn't reload {name}: {e} Не вдалося перезавантажити {name}: {e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -934,6 +934,7 @@ theme Appearance Giao diện
|
||||
Redaction code: Mã xóa nội dung nhạy cảm:
|
||||
Reload Tải lại
|
||||
Reload documents when their files change on disk Tải lại tài liệu khi tệp của chúng thay đổi trên đĩa
|
||||
Always use my default zoom and page layout Luôn dùng thu phóng và bố cục trang mặc định của tôi
|
||||
Remove checkmark Bỏ dấu kiểm
|
||||
Remove invalid links and bookmarks Gỡ các liên kết và dấu trang không hợp lệ
|
||||
Remove page Gỡ trang
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 491 and column 12.
|
@@ -2104,6 +2104,7 @@
|
||||
Used when a PDF doesn't ask for a layout or zoom. Continuous scrolling never snaps between pages. PDF 未指定布局或缩放时使用。连续滚动时页面不会逐页吸附。
|
||||
Reopen the files that were open when PdfCraft last closed 重新打开上次关闭 PdfCraft 时打开的文件
|
||||
Reload documents when their files change on disk 文件在磁盘上更改时重新加载对应的文档
|
||||
Always use my default zoom and page layout 始终使用我的默认缩放和页面布局
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. 此文件已在磁盘上更改。“重新加载”显示新版本并放弃未保存的更改;“保存”则用此版本替换它。
|
||||
Reload 重新加载
|
||||
Couldn't reload {name}: {e} 无法重新加载{name}:{e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 9 and column 16.
|
@@ -2154,6 +2154,7 @@ key Space 空格
|
||||
Tools 工具
|
||||
Inspector 檢查器
|
||||
Reload documents when their files change on disk 檔案在磁碟上變更時重新載入對應的文件
|
||||
Always use my default zoom and page layout 一律使用我的預設縮放與頁面佈局
|
||||
This file changed on disk. Reload shows the new version and drops your unsaved changes; Save replaces it with this version. 此檔案已在磁碟上變更。「重新載入」會顯示新版本並捨棄未儲存的變更;「儲存」則會以此版本取代它。
|
||||
Reload 重新載入
|
||||
Couldn't reload {name}: {e} 無法重新載入{name}:{e}
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 9 and column 16.
|
@@ -368,6 +368,7 @@ pub(crate) fn preferences_body(ui: &mut egui::Ui, app: &mut PdfCraftApp, t: &Tok
|
||||
.small()
|
||||
.color(t.text_muted),
|
||||
);
|
||||
ui.add(widgets::checkbox(&mut app.always_default_view, tl!("Always use my default zoom and page layout")));
|
||||
ui.horizontal(|ui| {
|
||||
ui.label(tl!("Units"));
|
||||
for u in crate::units::Unit::ALL {
|
||||
|
||||
+41
-21
@@ -6,6 +6,8 @@
|
||||
//! `pdfcraft-engine`.
|
||||
|
||||
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
||||
// The settings object in `persist` is one `json!` literal past the default limit of 128.
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
/// Whether `a` and `b` name the same file: equal, or equal once made absolute against the
|
||||
/// current directory (links are not resolved, as in `last_session`).
|
||||
@@ -575,6 +577,9 @@ pub struct PdfCraftApp {
|
||||
quit_session: Option<last_session::LastSession>,
|
||||
/// Preferences: reload a document when its file changes on disk (#431).
|
||||
pub reload_changed_files: bool,
|
||||
/// Preferences: open every document at Default zoom and Default page display, whatever
|
||||
/// layout or zoom it asks for (#1618).
|
||||
pub always_default_view: bool,
|
||||
/// Open documents' files, watched for changes on disk.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
pub(crate) watch: file_watch::FileWatch,
|
||||
@@ -939,6 +944,7 @@ impl PdfCraftApp {
|
||||
last_session: Default::default(),
|
||||
quit_session: None,
|
||||
reload_changed_files: true,
|
||||
always_default_view: false,
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
watch: Default::default(),
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
@@ -1089,7 +1095,8 @@ impl PdfCraftApp {
|
||||
}
|
||||
|
||||
/// Open a document the way it asks to be opened: navigation panel, layout, magnification,
|
||||
/// page (Document Properties ▸ Initial View).
|
||||
/// page (Document Properties ▸ Initial View). With Always use my default zoom and page
|
||||
/// layout on, the layout and magnification stay at the defaults the view opened with.
|
||||
fn apply_initial_view(&mut self, index: usize, v: &pdfcraft_engine::InitialView) {
|
||||
use pdfcraft_engine::{InitialLayout as L, Magnification as M, Navigation as N};
|
||||
let pages = self.session.get(self.views[index].id).map_or(0, |d| d.info.pages.len());
|
||||
@@ -1103,29 +1110,31 @@ impl PdfCraftApp {
|
||||
}
|
||||
}
|
||||
let view = &mut self.views[index];
|
||||
match v.layout {
|
||||
// The view opened in Default page display already.
|
||||
L::Default => {}
|
||||
L::SinglePage => (view.layout, view.continuous) = (canvas::PageLayout::Single, false),
|
||||
L::SinglePageContinuous => (view.layout, view.continuous) = (canvas::PageLayout::Single, true),
|
||||
L::TwoUp => (view.layout, view.continuous) = (canvas::PageLayout::TwoUp, false),
|
||||
L::TwoUpContinuous => (view.layout, view.continuous) = (canvas::PageLayout::TwoUp, true),
|
||||
L::TwoUpCoverPage => {
|
||||
(view.layout, view.continuous, view.cover) = (canvas::PageLayout::TwoUp, false, true);
|
||||
if !self.always_default_view {
|
||||
match v.layout {
|
||||
// The view opened in Default page display already.
|
||||
L::Default => {}
|
||||
L::SinglePage => (view.layout, view.continuous) = (canvas::PageLayout::Single, false),
|
||||
L::SinglePageContinuous => (view.layout, view.continuous) = (canvas::PageLayout::Single, true),
|
||||
L::TwoUp => (view.layout, view.continuous) = (canvas::PageLayout::TwoUp, false),
|
||||
L::TwoUpContinuous => (view.layout, view.continuous) = (canvas::PageLayout::TwoUp, true),
|
||||
L::TwoUpCoverPage => {
|
||||
(view.layout, view.continuous, view.cover) = (canvas::PageLayout::TwoUp, false, true);
|
||||
}
|
||||
L::TwoUpContinuousCoverPage => {
|
||||
(view.layout, view.continuous, view.cover) = (canvas::PageLayout::TwoUp, true, true);
|
||||
}
|
||||
}
|
||||
L::TwoUpContinuousCoverPage => {
|
||||
(view.layout, view.continuous, view.cover) = (canvas::PageLayout::TwoUp, true, true);
|
||||
match v.magnification {
|
||||
// The view opened at the default zoom already.
|
||||
M::Default => {}
|
||||
M::ActualSize => view.set_zoom(1.0),
|
||||
M::Percent(p) => view.set_zoom((p / 100.0) as f32),
|
||||
M::FitPage | M::FitVisible => view.fit = canvas::Fit::Page,
|
||||
M::FitWidth => view.fit = canvas::Fit::Width,
|
||||
M::FitHeight => view.fit = canvas::Fit::Height,
|
||||
}
|
||||
}
|
||||
match v.magnification {
|
||||
// The view opened at the default zoom already.
|
||||
M::Default => {}
|
||||
M::ActualSize => view.set_zoom(1.0),
|
||||
M::Percent(p) => view.set_zoom((p / 100.0) as f32),
|
||||
M::FitPage | M::FitVisible => view.fit = canvas::Fit::Page,
|
||||
M::FitWidth => view.fit = canvas::Fit::Width,
|
||||
M::FitHeight => view.fit = canvas::Fit::Height,
|
||||
}
|
||||
if v.page > 0 && v.page < pages {
|
||||
view.go_to_page(v.page);
|
||||
}
|
||||
@@ -2261,6 +2270,7 @@ impl PdfCraftApp {
|
||||
"default_mode": self.default_mode,
|
||||
"default_layout": canvas::display_token(self.view_defaults.layout, self.view_defaults.continuous),
|
||||
"default_zoom": self.view_defaults.zoom_name(),
|
||||
"always_default_view": self.always_default_view,
|
||||
"highlight_fields": self.view_defaults.highlight_fields,
|
||||
"units": self.units,
|
||||
"language": self.language,
|
||||
@@ -2365,6 +2375,9 @@ impl PdfCraftApp {
|
||||
if let Ok(units) = serde_json::from_value::<units::Unit>(v["units"].clone()) {
|
||||
self.units = units;
|
||||
}
|
||||
if let Some(on) = v["always_default_view"].as_bool() {
|
||||
self.always_default_view = on;
|
||||
}
|
||||
if let Some(on) = v["highlight_fields"].as_bool() {
|
||||
self.view_defaults.highlight_fields = on;
|
||||
}
|
||||
@@ -2621,6 +2634,13 @@ impl PdfCraftApp {
|
||||
self.view_defaults =
|
||||
self.view_defaults.with_zoom(value).ok_or("default-zoom must be fit-width, fit-page or a percentage from 8 to 6400")?;
|
||||
}
|
||||
("always-default-view", _) => {
|
||||
self.always_default_view = match value {
|
||||
"on" => true,
|
||||
"off" => false,
|
||||
_ => return Err("always-default-view must be on or off".into()),
|
||||
};
|
||||
}
|
||||
("tools-side", _) => self.docking.set_tools_on_right(match value {
|
||||
"left" => false,
|
||||
"right" => true,
|
||||
|
||||
@@ -693,6 +693,57 @@ fn the_rail_zoom_field_sets_a_typed_zoom() {
|
||||
assert_eq!(h.get_by_role_and_label(Role::TextInput, "Zoom").value().as_deref(), Some("200%"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn always_use_my_default_zoom_and_page_layout_ignores_what_the_pdf_asks_for() {
|
||||
use pdfcraft_ui_egui::canvas::{Fit, PageLayout};
|
||||
// Opens on page 2 at fit page, two pages side by side.
|
||||
let asks = String::from_utf8_lossy(PAGES).replace("/Pages 2 0 R >>", "/Pages 2 0 R /OpenAction [4 0 R /Fit] /PageLayout /TwoPageLeft >>");
|
||||
let open = |always: Option<&str>| {
|
||||
let mut app = PdfCraftApp::new();
|
||||
app.set_option("language", "en").unwrap();
|
||||
if let Some(on) = always {
|
||||
app.set_option("always-default-view", on).unwrap();
|
||||
}
|
||||
app.open_bytes("asks.pdf", None, asks.clone().into_bytes()).expect("opens");
|
||||
let v = &app.views[0];
|
||||
(v.fit, v.layout, v.continuous, v.current)
|
||||
};
|
||||
// Off by default: the document's view wins.
|
||||
assert_eq!(open(None), (Fit::Page, PageLayout::TwoUp, false, 1));
|
||||
assert_eq!(open(Some("off")), (Fit::Page, PageLayout::TwoUp, false, 1));
|
||||
// On: Default zoom and Default page display; the page it opens at is still the document's.
|
||||
assert_eq!(open(Some("on")), (Fit::Width, PageLayout::Single, true, 1));
|
||||
assert!(PdfCraftApp::new().set_option("always-default-view", "yes").is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn always_use_my_default_zoom_and_page_layout_survives_a_restart() {
|
||||
let mut app = PdfCraftApp::new();
|
||||
assert!(!app.always_default_view, "off by default");
|
||||
app.always_default_view = true;
|
||||
let mut restarted = PdfCraftApp::new();
|
||||
restarted.restore(&app.persist());
|
||||
assert!(restarted.always_default_view, "the choice is kept");
|
||||
restarted.restore(r#"{"always_default_view":"bogus"}"#);
|
||||
assert!(restarted.always_default_view, "garbage leaves it alone");
|
||||
let mut legacy = PdfCraftApp::new();
|
||||
legacy.restore("{}");
|
||||
assert!(!legacy.always_default_view, "a legacy file without the key keeps it off");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn preferences_turn_on_always_use_my_default_zoom_and_page_layout() {
|
||||
use egui_kittest::kittest::Queryable;
|
||||
let mut h = harness(&[]);
|
||||
assert!(h.state_mut().execute("app.preferences"));
|
||||
h.run_steps(3);
|
||||
h.get_by_label("Always use my default zoom and page layout").scroll_to_me();
|
||||
h.run_steps(4);
|
||||
h.get_by_label("Always use my default zoom and page layout").click();
|
||||
h.run_steps(2);
|
||||
assert!(h.state().always_default_view);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn preferences_set_the_default_zoom() {
|
||||
use egui_kittest::kittest::Queryable;
|
||||
|
||||
@@ -9816,8 +9816,8 @@ milestone = "M14"
|
||||
status = "partial"
|
||||
commands = []
|
||||
tools = []
|
||||
evidence = ["crates/ui-egui/tests/view.rs::default_page_display_is_used_for_new_documents", "crates/ui-egui/tests/view.rs::default_zoom_is_used_for_new_documents", "crates/ui-egui/tests/view.rs::preferences_set_the_default_zoom"]
|
||||
notes = "Preferences ▸ Documents and view: Default page display and Default zoom (Fit to width, Zoom to page level or a percentage) for every new tab; a PDF that asks for a layout or zoom gets it. Missing: Acrobat's resolution, rendering and page-content options"
|
||||
evidence = ["crates/ui-egui/tests/view.rs::default_page_display_is_used_for_new_documents", "crates/ui-egui/tests/view.rs::default_zoom_is_used_for_new_documents", "crates/ui-egui/tests/view.rs::preferences_set_the_default_zoom", "crates/ui-egui/tests/view.rs::always_use_my_default_zoom_and_page_layout_ignores_what_the_pdf_asks_for"]
|
||||
notes = "Preferences ▸ Documents and view: Default page display and Default zoom (Fit to width, Zoom to page level or a percentage) for every new tab; a PDF that asks for a layout or zoom gets it, unless Always use my default zoom and page layout is on. Missing: Acrobat's resolution, rendering and page-content options"
|
||||
|
||||
[[feature]]
|
||||
id = "misc.prefs-documents"
|
||||
|
||||
Reference in New Issue
Block a user