Rename application to Deckstride
This commit is contained in:
parent
56672964b3
commit
9fef5f12ef
10
AGENTS.md
10
AGENTS.md
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter
|
||||
# Deckstride
|
||||
|
||||
Standalone Rust application foundation for multiscreen PDF presentation. Read
|
||||
`AGENT_DOCUMENTATION.md` and `docs/development/plan.md` before implementing behavior.
|
||||
|
|
@ -8,12 +8,12 @@ Physical display, performance, sleep and clean-machine acceptance remain open.
|
|||
|
||||
## Structure and intended architecture
|
||||
|
||||
- `crates/pdf-presenter/src/lib.rs`: tested, UI-independent presentation state.
|
||||
- `crates/deckstride/src/lib.rs`: tested, UI-independent presentation state.
|
||||
- `src/main.rs` in that crate: CLI/native entry point. `native.rs` owns windows, `presenter_ui.rs` controls, `studio.rs` shared state,
|
||||
`document.rs` rendering, `worker.rs` supervised jobs, `output.rs` independent host/leases,
|
||||
`settings.rs` persistence. `desktop.rs`/`poc.rs`/`paint.rs` retain the display diagnostic.
|
||||
- `crates/pdf-presenter/tests/`: meaningful behavior tests, including boundary cases.
|
||||
- `crates/pdf-presenter/assets/`: generated app artwork and provenance.
|
||||
- `crates/deckstride/tests/`: meaningful behavior tests, including boundary cases.
|
||||
- `crates/deckstride/assets/`: generated app artwork and provenance.
|
||||
- `scripts/`, `tests/`, `Jenkinsfile`: standalone validation and badge publication.
|
||||
- `docs/development/`: architecture decisions, implementation plan and CI setup.
|
||||
- `docs/interfaces/`: persistent-format contracts when formats are introduced.
|
||||
|
|
@ -85,7 +85,7 @@ for Windows/macOS artifacts do not authorize rebuilding them on every later task
|
|||
Report platform validation that was not run accurately; do not imply it passed.
|
||||
|
||||
CI uses `rust_no_docker`; it archives exactly three badge SVGs and only main/non-PR
|
||||
builds publish to `/mnt/assets/coverage/idle-org/pdf-presenter/main/`. No automatic
|
||||
builds publish to `/mnt/assets/coverage/idle-org/deckstride/main/`. No automatic
|
||||
releases, binaries or manual publication. Jenkins job creation is external setup.
|
||||
Never modify another tool's badges or the shared manuals root.
|
||||
|
||||
|
|
|
|||
|
|
@ -668,6 +668,37 @@ dependencies = [
|
|||
"syn 2.0.119",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "deckstride"
|
||||
version = "0.1.96"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"chrono",
|
||||
"directories",
|
||||
"egui",
|
||||
"egui-winit",
|
||||
"egui_software_backend",
|
||||
"font8x8",
|
||||
"hayro",
|
||||
"image",
|
||||
"keepawake",
|
||||
"libc",
|
||||
"rfd",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2",
|
||||
"softbuffer",
|
||||
"sys-locale",
|
||||
"sysinfo",
|
||||
"tempfile",
|
||||
"toml 0.8.23",
|
||||
"wayland-client",
|
||||
"wayland-protocols",
|
||||
"winit",
|
||||
"winresource",
|
||||
"x11-dl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "derive_builder"
|
||||
version = "0.20.2"
|
||||
|
|
@ -2243,37 +2274,6 @@ dependencies = [
|
|||
"windows-link 0.2.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pdf-presenter"
|
||||
version = "0.1.95"
|
||||
dependencies = [
|
||||
"bytemuck",
|
||||
"chrono",
|
||||
"directories",
|
||||
"egui",
|
||||
"egui-winit",
|
||||
"egui_software_backend",
|
||||
"font8x8",
|
||||
"hayro",
|
||||
"image",
|
||||
"keepawake",
|
||||
"libc",
|
||||
"rfd",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2",
|
||||
"softbuffer",
|
||||
"sys-locale",
|
||||
"sysinfo",
|
||||
"tempfile",
|
||||
"toml 0.8.23",
|
||||
"wayland-client",
|
||||
"wayland-protocols",
|
||||
"winit",
|
||||
"winresource",
|
||||
"x11-dl",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "peniko"
|
||||
version = "0.6.1"
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
[workspace]
|
||||
members = ["crates/pdf-presenter"]
|
||||
default-members = ["crates/pdf-presenter"]
|
||||
members = ["crates/deckstride"]
|
||||
default-members = ["crates/deckstride"]
|
||||
resolver = "3"
|
||||
|
||||
[workspace.package]
|
||||
version = "0.1.95"
|
||||
version = "0.1.96"
|
||||
edition = "2024"
|
||||
license = "MIT"
|
||||
repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter"
|
||||
repository = "https://proxy.dandaedre.com/gitea/idle-org/deckstride"
|
||||
|
||||
[profile.dev]
|
||||
debug = 0
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ pipeline {
|
|||
PYTHONUNBUFFERED = '1'
|
||||
PYTHONDONTWRITEBYTECODE = '1'
|
||||
NO_COLOR = '1'
|
||||
PDF_PRESENTER_HEADLESS_CI = '1'
|
||||
DECKSTRIDE_HEADLESS_CI = '1'
|
||||
CARGO_TERM_COLOR = 'never'
|
||||
BADGE_ROOT = '/mnt/assets/coverage'
|
||||
}
|
||||
|
|
@ -60,7 +60,7 @@ pipeline {
|
|||
sh '''
|
||||
set -eu
|
||||
uv run --no-project --python ">=3.11" python -m unittest discover -s tests -v
|
||||
unset PDF_PRESENTER_GUI_TESTS
|
||||
unset DECKSTRIDE_GUI_TESTS
|
||||
cargo test --locked --workspace --all-features
|
||||
cargo build --locked --workspace --all-features
|
||||
uv run --no-project --python ">=3.11" python scripts/ci.py tests-passed
|
||||
|
|
@ -72,7 +72,7 @@ pipeline {
|
|||
steps {
|
||||
sh '''
|
||||
set -eu
|
||||
unset PDF_PRESENTER_GUI_TESTS
|
||||
unset DECKSTRIDE_GUI_TESTS
|
||||
uv run --no-project --python ">=3.11" python scripts/ci.py coverage
|
||||
'''
|
||||
}
|
||||
|
|
|
|||
54
README.md
54
README.md
|
|
@ -1,23 +1,23 @@
|
|||
<p align="center">
|
||||
<img src="crates/pdf-presenter/assets/app-icon.png" width="96" height="96" alt="PDF Presenter icon">
|
||||
<img src="crates/deckstride/assets/app-icon.png" width="96" height="96" alt="Deckstride icon">
|
||||
</p>
|
||||
<h1 align="center">PDF Presenter</h1>
|
||||
<h1 align="center">Deckstride</h1>
|
||||
<p align="center"><strong>A fast, portable presenter for PDFs and picture folders.</strong></p>
|
||||
<p align="center">Fullscreen slides for the room. Notes, previews and controls for you.</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="docs/changelog.md"><img src="https://assets.dandaedre.com/coverage/idle-org/pdf-presenter/main/version.svg" alt="Version"></a>
|
||||
<a href="docs/development/ci.md"><img src="https://assets.dandaedre.com/coverage/idle-org/pdf-presenter/main/test.svg" alt="Tests"></a>
|
||||
<a href="docs/development/ci.md"><img src="https://assets.dandaedre.com/coverage/idle-org/pdf-presenter/main/coverage.svg" alt="Coverage"></a>
|
||||
<a href="docs/changelog.md"><img src="https://assets.dandaedre.com/coverage/idle-org/deckstride/main/version.svg" alt="Version"></a>
|
||||
<a href="docs/development/ci.md"><img src="https://assets.dandaedre.com/coverage/idle-org/deckstride/main/test.svg" alt="Tests"></a>
|
||||
<a href="docs/development/ci.md"><img src="https://assets.dandaedre.com/coverage/idle-org/deckstride/main/coverage.svg" alt="Coverage"></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter/releases"><strong>Download PDF Presenter</strong></a> ·
|
||||
<a href="https://proxy.dandaedre.com/gitea/idle-org/deckstride/releases"><strong>Download Deckstride</strong></a> ·
|
||||
<a href="docs/user-guide.md">User guide</a> ·
|
||||
<a href="https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter/issues">Report an issue</a>
|
||||
<a href="https://proxy.dandaedre.com/gitea/idle-org/deckstride/issues">Report an issue</a>
|
||||
</p>
|
||||
|
||||
PDF Presenter gives each connected screen a job: **Presenter**, **Slides**, or
|
||||
Deckstride gives each connected screen a job: **Presenter**, **Slides**, or
|
||||
**Unused**. Keep the current slide, next slide, notes and timers in front of you
|
||||
while one or more other screens show only the presentation. You can also mirror the
|
||||
Presenter view, rehearse on one monitor, or change the arrangement during a session.
|
||||
|
|
@ -43,7 +43,7 @@ slow document operation does not have to freeze navigation.
|
|||
| **Shared zoom** | Opt in to zoom, pan or fit a page to width from Presenter or Slides. Both views stay on the same part of the page. |
|
||||
| **Safe slide browsing** | Browse resizable thumbnails without changing the live slide. Double-click to preview, or enable **Change on click** when direct switching is useful. |
|
||||
| **Notes that belong to the presentation** | Read notes from a sidecar or the PDF, import TXT/Markdown, and double-click the notes pane to edit the current slide. Notes automatically fit the available space. |
|
||||
| **Presentation-aware desktop behavior** | PDF Presenter asks supported operating systems to keep the display awake and reports whether protection is active. Closing Presenter also closes its Slides windows. |
|
||||
| **Presentation-aware desktop behavior** | Deckstride asks supported operating systems to keep the display awake and reports whether protection is active. Closing Presenter also closes its Slides windows. |
|
||||
| **Portable by design** | The release binaries include the PDF renderer and application dependencies. Keep the extracted folder anywhere convenient; no Rust or separate PDF software is required. |
|
||||
| **Themes and languages** | Choose from 20 built-in palettes and English, French, Spanish, Japanese, Simplified Chinese, German or Brazilian Portuguese. System language detection stays offline. |
|
||||
|
||||
|
|
@ -54,32 +54,28 @@ on the machines that will run the show.
|
|||
|
||||
## Download and run
|
||||
|
||||
Open the [release page](https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter/releases)
|
||||
Open the [release page](https://proxy.dandaedre.com/gitea/idle-org/deckstride/releases)
|
||||
and download the archive for your computer.
|
||||
|
||||
| Platform | Recommended download | Start after extracting |
|
||||
| --- | --- | --- |
|
||||
| Windows x86_64 | `pdf-presenter-portable-x86_64-pc-windows-gnu-v….zip` | `pdf-presenter.exe` |
|
||||
| Linux x86_64 | `pdf-presenter-portable-x86_64-unknown-linux-gnu-v….tgz` | `./pdf-presenter` |
|
||||
| Linux ARM64 | `pdf-presenter-portable-aarch64-unknown-linux-musl-v….tgz` | `./pdf-presenter` |
|
||||
| Apple Silicon macOS 13+ | `pdf-presenter-portable-aarch64-apple-darwin-v….tgz` | Follow the release-page macOS instructions |
|
||||
| Intel macOS 13+ | `pdf-presenter-portable-x86_64-apple-darwin-v….tgz` | Follow the release-page macOS instructions |
|
||||
| Platform | Recommended download |
|
||||
| --- | --- |
|
||||
| Windows x86_64 | Portable Windows ZIP |
|
||||
| Linux x86_64 | Portable Linux x86_64 tarball |
|
||||
| Linux ARM64 | Portable Linux ARM64 tarball |
|
||||
| Apple Silicon macOS 13+ | Portable Apple Silicon tarball |
|
||||
| Intel macOS 13+ | Portable Intel tarball |
|
||||
|
||||
Existing releases remain unchanged and therefore retain the filenames shown on
|
||||
their release pages. Future packages use the Deckstride executable and archive name.
|
||||
|
||||
Windows and macOS builds are currently unsigned. Releases are ready for normal use;
|
||||
test the actual computer, adapters and display arrangement before a live event.
|
||||
macOS artifacts are cross-built on Linux and have not yet had native Mac runtime
|
||||
testing. [Installation and update details →](docs/user-guide.md#install-and-update)
|
||||
|
||||
If you already have [cargo-binstall](https://github.com/cargo-bins/cargo-binstall)
|
||||
installed, you can install a prebuilt release directly:
|
||||
|
||||
```sh
|
||||
cargo binstall pdf-presenter --git https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter --version 0.1.91 --strategies crate-meta-data
|
||||
```
|
||||
|
||||
Replace `0.1.91` with the published version you want from the release page. This
|
||||
uses the repository's release archives and requires an available build for your
|
||||
platform. Then run `pdf-presenter`.
|
||||
New Deckstride releases will also support installation with
|
||||
[cargo-binstall](https://github.com/cargo-bins/cargo-binstall). Until one is
|
||||
published, use the unchanged portable packages from the release page.
|
||||
|
||||
## Set up a show
|
||||
|
||||
|
|
@ -92,7 +88,7 @@ platform. Then run `pdf-presenter`.
|
|||
4. **Present.** Use Left/Right, Page Up/Page Down or Space. Type a slide number and
|
||||
press Enter to jump directly to it. Press B to blank or restore Slides.
|
||||
|
||||
PDF Presenter shows Slides by default after a document opens. Entering or leaving
|
||||
Deckstride shows Slides by default after a document opens. Entering or leaving
|
||||
fullscreen and changing screen assignments preserve that choice. Header and footer
|
||||
controls can auto-hide; move the pointer near their edge or right-click to recover
|
||||
them.
|
||||
|
|
@ -145,7 +141,7 @@ Useful controls:
|
|||
|
||||
## Open source
|
||||
|
||||
PDF Presenter is independent open-source software under the [MIT license](LICENSE).
|
||||
Deckstride is independent open-source software under the [MIT license](LICENSE).
|
||||
Development includes LLM-generated or LLM-assisted work with human review. The
|
||||
project is used in professional settings, while physical acceptance work remains
|
||||
documented rather than hidden.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
PDF Presenter — locked dependency and font notices
|
||||
Deckstride — locked dependency and font notices
|
||||
Generated by scripts/notices.py. Includes target/build-only dependencies;
|
||||
the presence of a package here does not mean it is linked on every OS.
|
||||
Unmodified source packages are available at https://crates.io.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "pdf-presenter"
|
||||
name = "deckstride"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
Before Width: | Height: | Size: 364 KiB After Width: | Height: | Size: 364 KiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
|
|
@ -6,7 +6,7 @@ Canvas Pilot, under the included [SIL Open Font License 1.1](OFL.txt). Upstream:
|
|||
|
||||
SHA-256: `b76b0433203017ca80401b2ee0dd69350349871c4b19d504c34dbdd80541690a`.
|
||||
|
||||
PDF Presenter uses collection index 0 for Japanese and index 2 for Simplified
|
||||
Deckstride uses collection index 0 for Japanese and index 2 for Simplified
|
||||
Chinese. The collection is embedded in the executable; no runtime font lookup or
|
||||
download occurs. Font definitions are installed only when a CJK interface language
|
||||
is active and only when the language selection changes. Other interface languages
|
||||
|
Before Width: | Height: | Size: 54 KiB After Width: | Height: | Size: 54 KiB |
|
|
@ -16,8 +16,8 @@ pub(crate) fn window_attributes() -> WindowAttributes {
|
|||
let attributes = {
|
||||
use winit::platform::{wayland::WindowAttributesExtWayland, x11::WindowAttributesExtX11};
|
||||
let attributes =
|
||||
WindowAttributesExtWayland::with_name(attributes, "pdf-presenter", "pdf-presenter");
|
||||
WindowAttributesExtX11::with_name(attributes, "pdf-presenter", "pdf-presenter")
|
||||
WindowAttributesExtWayland::with_name(attributes, "deckstride", "deckstride");
|
||||
WindowAttributesExtX11::with_name(attributes, "deckstride", "deckstride")
|
||||
};
|
||||
attributes
|
||||
}
|
||||
|
|
@ -210,13 +210,13 @@ impl App {
|
|||
if self.presenter.is_none() {
|
||||
self.presenter = Some(NativeWindow::create(
|
||||
event_loop,
|
||||
"PDF Presenter - presenter controls",
|
||||
"Deckstride - presenter controls",
|
||||
)?);
|
||||
}
|
||||
if self.audience.is_none() {
|
||||
self.audience = Some(NativeWindow::create(
|
||||
event_loop,
|
||||
"PDF Presenter - mock audience output",
|
||||
"Deckstride - mock audience output",
|
||||
)?);
|
||||
}
|
||||
self.place();
|
||||
|
|
@ -65,7 +65,7 @@ enum ResolvedLanguage {
|
|||
}
|
||||
|
||||
fn language_id() -> egui::Id {
|
||||
egui::Id::new("pdf-presenter-language")
|
||||
egui::Id::new("deckstride-language")
|
||||
}
|
||||
|
||||
fn resolve_system_locale(locale: Option<&str>) -> ResolvedLanguage {
|
||||
|
|
@ -347,8 +347,8 @@ fn fr(text: &str) -> &str {
|
|||
"Slides" => "Diapositives",
|
||||
"Single screen" => "Écran unique",
|
||||
"Use single-screen mode?" => "Utiliser le mode écran unique ?",
|
||||
"PDF Presenter is intended for a presenter setup with separate Presenter and Slides screens." => {
|
||||
"PDF Presenter est conçu pour une présentation avec des écrans Présentateur et Diapositives séparés."
|
||||
"Deckstride is intended for a presenter setup with separate Presenter and Slides screens." => {
|
||||
"Deckstride est conçu pour une présentation avec des écrans Présentateur et Diapositives séparés."
|
||||
}
|
||||
"Only one screen was connected at startup. Single-screen mode shows slides with controls revealed at the top and bottom edges." => {
|
||||
"Un seul écran était connecté au démarrage. Le mode écran unique affiche les diapositives avec des commandes apparaissant aux bords supérieur et inférieur."
|
||||
|
|
@ -476,12 +476,12 @@ fn fr(text: &str) -> &str {
|
|||
"Une copie est conservée et ajustée à tous les écrans de diapositives, sur fond noir."
|
||||
}
|
||||
"Default PDF application" => "Application PDF par défaut",
|
||||
"Register PDF Presenter and its icon for PDF files in your Windows account." => {
|
||||
"Enregistre PDF Presenter et son icône pour les fichiers PDF de votre compte Windows."
|
||||
"Register Deckstride and its icon for PDF files in your Windows account." => {
|
||||
"Enregistre Deckstride et son icône pour les fichiers PDF de votre compte Windows."
|
||||
}
|
||||
"Set as default PDF app…" => "Définir comme application PDF par défaut…",
|
||||
"Windows will open Default Apps; select PDF Presenter for .pdf to confirm." => {
|
||||
"Windows ouvrira Applications par défaut : sélectionnez PDF Presenter pour .pdf afin de confirmer."
|
||||
"Windows will open Default Apps; select Deckstride for .pdf to confirm." => {
|
||||
"Windows ouvrira Applications par défaut : sélectionnez Deckstride pour .pdf afin de confirmer."
|
||||
}
|
||||
"Processed slides" => "Diapositives préparées",
|
||||
"Theme" => "Thème",
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
windows_subsystem = "windows"
|
||||
)]
|
||||
|
||||
use pdf_presenter::{native, poc::Options};
|
||||
use deckstride::{native, poc::Options};
|
||||
|
||||
fn main() {
|
||||
if std::env::args().nth(1).as_deref() == Some("--licenses") {
|
||||
|
|
@ -11,7 +11,7 @@ fn main() {
|
|||
return;
|
||||
}
|
||||
if std::env::args().nth(1).as_deref() == Some("--worker") {
|
||||
if let Err(e) = pdf_presenter::worker::run() {
|
||||
if let Err(e) = deckstride::worker::run() {
|
||||
eprintln!("{e}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@ fn main() {
|
|||
return;
|
||||
}
|
||||
if std::env::args().nth(1).as_deref() == Some("--keep-awake") {
|
||||
let _ = pdf_presenter::output::keep_awake();
|
||||
let _ = deckstride::output::keep_awake();
|
||||
return;
|
||||
}
|
||||
let mut args = std::env::args().skip(1).collect::<Vec<_>>();
|
||||
|
|
@ -53,11 +53,11 @@ fn main() {
|
|||
};
|
||||
if options.help {
|
||||
println!(
|
||||
"PDF Presenter {} — native PDF and picture-folder presenter\n\
|
||||
Usage: pdf-presenter [--open PDF_OR_FOLDER] [--windowed]\n\
|
||||
pdf-presenter --list-monitors\n\
|
||||
pdf-presenter --presenter N --audience N\n\
|
||||
pdf-presenter --smoke-test\n\
|
||||
"Deckstride {} — native PDF and picture-folder presenter\n\
|
||||
Usage: deckstride [--open PDF_OR_FOLDER] [--windowed]\n\
|
||||
deckstride --list-monitors\n\
|
||||
deckstride --presenter N --audience N\n\
|
||||
deckstride --smoke-test\n\
|
||||
Both roles start fullscreen. Select/mirror screens from Displays.\n\
|
||||
Keys: arrows/space navigate, number + Enter jumps, B blanks.\n\
|
||||
Escape/Ctrl+Q request quit confirmation; Escape first reverts a display trial.\n\
|
||||
|
|
@ -70,12 +70,12 @@ PDF/image decoding runs in supervised workers; no external PDF backend needed.",
|
|||
return;
|
||||
}
|
||||
let result = if proof {
|
||||
pdf_presenter::desktop::run(options)
|
||||
deckstride::desktop::run(options)
|
||||
} else {
|
||||
native::run(options, path)
|
||||
};
|
||||
if let Err(error) = result {
|
||||
eprintln!("PDF Presenter could not start/continue: {error}");
|
||||
eprintln!("Deckstride could not start/continue: {error}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
|
|
@ -201,9 +201,9 @@ struct NativeWindow {
|
|||
impl NativeWindow {
|
||||
fn create(el: &ActiveEventLoop, role: Role, monitor: String) -> Result<Self, Failure> {
|
||||
let title = match role {
|
||||
Role::Presenter => "PDF Presenter — Presenter",
|
||||
Role::Browser => "PDF Presenter — All slides",
|
||||
Role::Presentation => "PDF Presenter — Slides",
|
||||
Role::Presenter => "Deckstride — Presenter",
|
||||
Role::Browser => "Deckstride — All slides",
|
||||
Role::Presentation => "Deckstride — Slides",
|
||||
};
|
||||
let attributes = crate::artwork::window_attributes()
|
||||
.with_title(title)
|
||||
|
|
@ -2026,7 +2026,7 @@ mod buffer_tests {
|
|||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
fn three_native_windows_render_without_clicks_and_reset_placement_on_topology_change() {
|
||||
if std::env::var_os("PDF_PRESENTER_GUI_TESTS").is_none() {
|
||||
if std::env::var_os("DECKSTRIDE_GUI_TESTS").is_none() {
|
||||
return;
|
||||
}
|
||||
use winit::platform::x11::EventLoopBuilderExtX11;
|
||||
|
|
@ -306,8 +306,8 @@ pub fn keep_awake() -> Result<(), String> {
|
|||
let guard = keepawake::Builder::default()
|
||||
.display(true)
|
||||
.idle(true)
|
||||
.reason("PDF Presenter presentation")
|
||||
.app_name("PDF Presenter")
|
||||
.reason("Deckstride presentation")
|
||||
.app_name("Deckstride")
|
||||
.app_reverse_domain("com.beffroi.pdfpresenter")
|
||||
.create();
|
||||
#[cfg(not(any(target_os = "linux", target_os = "windows", target_os = "macos")))]
|
||||
|
|
@ -2476,7 +2476,7 @@ fn preferences_window(ctx: &egui::Context, s: &mut Studio, open: &mut bool) {
|
|||
|ui| {
|
||||
ui.label(tr(
|
||||
&locale,
|
||||
"Register PDF Presenter and its icon for PDF files in your Windows account.",
|
||||
"Register Deckstride and its icon for PDF files in your Windows account.",
|
||||
));
|
||||
if ui
|
||||
.button(tr(&locale, "Set as default PDF app…"))
|
||||
|
|
@ -2486,7 +2486,7 @@ fn preferences_window(ctx: &egui::Context, s: &mut Studio, open: &mut bool) {
|
|||
}
|
||||
ui.small(tr(
|
||||
&locale,
|
||||
"Windows will open Default Apps; select PDF Presenter for .pdf to confirm.",
|
||||
"Windows will open Default Apps; select Deckstride for .pdf to confirm.",
|
||||
));
|
||||
},
|
||||
);
|
||||
|
|
@ -2863,7 +2863,7 @@ fn startup_single_screen(ctx: &Context, s: &mut Studio) {
|
|||
}
|
||||
egui::Modal::new(egui::Id::new("startup-single-screen")).show(ctx, |ui| {
|
||||
ui.heading(tr(ctx, "Use single-screen mode?"));
|
||||
ui.label(tr(ctx, "PDF Presenter is intended for a presenter setup with separate Presenter and Slides screens."));
|
||||
ui.label(tr(ctx, "Deckstride is intended for a presenter setup with separate Presenter and Slides screens."));
|
||||
ui.label(tr(ctx, "Only one screen was connected at startup. Single-screen mode shows slides with controls revealed at the top and bottom edges."));
|
||||
ui.horizontal_wrapped(|ui| {
|
||||
button(ui, tr(ctx, "Keep Presenter view"), Action::StartupSingleScreen(false), &mut s.actions);
|
||||
|
|
@ -400,19 +400,54 @@ impl Settings {
|
|||
self.projects.get(key).unwrap_or(&self.layout).clone()
|
||||
}
|
||||
}
|
||||
fn select_renamed_paths(
|
||||
settings: PathBuf,
|
||||
cache: PathBuf,
|
||||
legacy_settings: PathBuf,
|
||||
legacy_cache: PathBuf,
|
||||
) -> (PathBuf, PathBuf) {
|
||||
if !settings.exists()
|
||||
&& legacy_settings.is_file()
|
||||
&& let Ok(value) = read(&legacy_settings)
|
||||
{
|
||||
let _ = write(&settings, &value);
|
||||
}
|
||||
let settings = if settings.exists() || !legacy_settings.is_file() {
|
||||
settings
|
||||
} else {
|
||||
legacy_settings
|
||||
};
|
||||
let cache = if cache.exists() || !legacy_cache.exists() {
|
||||
cache
|
||||
} else {
|
||||
legacy_cache
|
||||
};
|
||||
(settings, cache)
|
||||
}
|
||||
|
||||
pub fn paths() -> Result<(PathBuf, PathBuf), String> {
|
||||
let dirs = directories::ProjectDirs::from("com", "Beffroi", "PdfPresenter")
|
||||
let dirs = directories::ProjectDirs::from("com", "Beffroi", "Deckstride")
|
||||
.ok_or("No user configuration directory")?;
|
||||
let legacy_dirs = directories::ProjectDirs::from("com", "Beffroi", "PdfPresenter")
|
||||
.ok_or("No user configuration directory")?;
|
||||
#[cfg(target_os = "linux")]
|
||||
let config = directories::BaseDirs::new()
|
||||
.ok_or("No user configuration directory")?
|
||||
.config_dir()
|
||||
.join("pdf-presenter");
|
||||
let (config, legacy_config) = {
|
||||
let base = directories::BaseDirs::new().ok_or("No user configuration directory")?;
|
||||
(
|
||||
base.config_dir().join("deckstride"),
|
||||
base.config_dir().join("pdf-presenter"),
|
||||
)
|
||||
};
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
let config = dirs.config_dir().to_path_buf();
|
||||
Ok((
|
||||
let (config, legacy_config) = (
|
||||
dirs.config_dir().to_path_buf(),
|
||||
legacy_dirs.config_dir().to_path_buf(),
|
||||
);
|
||||
Ok(select_renamed_paths(
|
||||
config.join("settings.toml"),
|
||||
dirs.cache_dir().join("slides-v1"),
|
||||
legacy_config.join("settings.toml"),
|
||||
legacy_dirs.cache_dir().join("slides-v1"),
|
||||
))
|
||||
}
|
||||
pub fn read(path: &Path) -> Result<Settings, String> {
|
||||
|
|
@ -459,3 +494,31 @@ pub fn atomic_write(path: &Path, bytes: &[u8]) -> Result<(), String> {
|
|||
pub fn project_key(path: &Path) -> String {
|
||||
format!("{:x}", Sha256::digest(path.as_os_str().as_encoded_bytes()))
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod rename_tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn renamed_paths_copy_settings_and_reuse_a_warm_cache() {
|
||||
let temp = tempfile::tempdir().unwrap();
|
||||
let settings = temp.path().join("new/settings.toml");
|
||||
let cache = temp.path().join("new/cache");
|
||||
let legacy_settings = temp.path().join("legacy/settings.toml");
|
||||
let legacy_cache = temp.path().join("legacy/cache");
|
||||
write(&legacy_settings, &Settings::default()).unwrap();
|
||||
std::fs::create_dir_all(&legacy_cache).unwrap();
|
||||
|
||||
let selected = select_renamed_paths(
|
||||
settings.clone(),
|
||||
cache,
|
||||
legacy_settings,
|
||||
legacy_cache.clone(),
|
||||
);
|
||||
|
||||
assert_eq!(selected, (settings.clone(), legacy_cache));
|
||||
let migrated = read(&settings).unwrap();
|
||||
assert_eq!(migrated.version, 1);
|
||||
assert_eq!(migrated.layout, Layout::default());
|
||||
}
|
||||
}
|
||||
|
|
@ -209,7 +209,7 @@ impl Studio {
|
|||
let (mut settings_path, mut cache_path) = settings::paths().unwrap_or_else(|_| {
|
||||
(
|
||||
PathBuf::from("settings.toml"),
|
||||
std::env::temp_dir().join("pdf-presenter-cache"),
|
||||
std::env::temp_dir().join("deckstride-cache"),
|
||||
)
|
||||
});
|
||||
let smoke_dir = if smoke {
|
||||
|
|
@ -610,8 +610,8 @@ impl Studio {
|
|||
#[cfg(target_os = "windows")]
|
||||
Action::RegisterPdfAssociation => {
|
||||
self.status = match crate::windows_integration::register_pdf_association() {
|
||||
Ok(()) => "Choose PDF Presenter for .pdf in Windows Default Apps. PDF files will then use its icon.".into(),
|
||||
Err(error) => format!("Could not register PDF Presenter: {error}"),
|
||||
Ok(()) => "Choose Deckstride for .pdf in Windows Default Apps. PDF files will then use its icon.".into(),
|
||||
Err(error) => format!("Could not register Deckstride: {error}"),
|
||||
};
|
||||
}
|
||||
Action::PickNotes => {
|
||||
|
|
@ -276,7 +276,7 @@ impl Theme {
|
|||
}
|
||||
}
|
||||
pub fn apply(&self, ctx: &egui::Context) {
|
||||
let applied = egui::Id::new("pdf-presenter-theme");
|
||||
let applied = egui::Id::new("deckstride-theme");
|
||||
if ctx.data(|data| data.get_temp::<Self>(applied)) == Some(*self) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -105,39 +105,39 @@ pub fn register_pdf_association() -> Result<(), String> {
|
|||
let command = open_command(&executable);
|
||||
let values = [
|
||||
(
|
||||
r"Software\Classes\PDFPresenter.Document",
|
||||
r"Software\Classes\Deckstride.Document",
|
||||
None,
|
||||
"PDF Presenter document",
|
||||
"Deckstride document",
|
||||
),
|
||||
(
|
||||
r"Software\Classes\PDFPresenter.Document\DefaultIcon",
|
||||
r"Software\Classes\Deckstride.Document\DefaultIcon",
|
||||
None,
|
||||
icon.as_str(),
|
||||
),
|
||||
(
|
||||
r"Software\Classes\PDFPresenter.Document\shell\open\command",
|
||||
r"Software\Classes\Deckstride.Document\shell\open\command",
|
||||
None,
|
||||
command.as_str(),
|
||||
),
|
||||
(
|
||||
r"Software\PDF Presenter\Capabilities",
|
||||
r"Software\Deckstride\Capabilities",
|
||||
Some("ApplicationName"),
|
||||
"PDF Presenter",
|
||||
"Deckstride",
|
||||
),
|
||||
(
|
||||
r"Software\PDF Presenter\Capabilities",
|
||||
r"Software\Deckstride\Capabilities",
|
||||
Some("ApplicationDescription"),
|
||||
"Fast multi-screen PDF presenter",
|
||||
),
|
||||
(
|
||||
r"Software\PDF Presenter\Capabilities\FileAssociations",
|
||||
r"Software\Deckstride\Capabilities\FileAssociations",
|
||||
Some(".pdf"),
|
||||
"PDFPresenter.Document",
|
||||
"Deckstride.Document",
|
||||
),
|
||||
(
|
||||
r"Software\RegisteredApplications",
|
||||
Some("PDF Presenter"),
|
||||
r"Software\PDF Presenter\Capabilities",
|
||||
Some("Deckstride"),
|
||||
r"Software\Deckstride\Capabilities",
|
||||
),
|
||||
];
|
||||
for (subkey, name, value) in values {
|
||||
|
|
@ -174,8 +174,8 @@ mod tests {
|
|||
#[test]
|
||||
fn association_command_quotes_executable_and_document() {
|
||||
assert_eq!(
|
||||
open_command(Path::new(r"C:\Portable Apps\pdf-presenter.exe")),
|
||||
r#"\"C:\Portable Apps\pdf-presenter.exe\" --open \"%1\""#
|
||||
open_command(Path::new(r"C:\Portable Apps\deckstride.exe")),
|
||||
r#"\"C:\Portable Apps\deckstride.exe\" --open \"%1\""#
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
mod common;
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
blank,
|
||||
studio::{Action, Studio},
|
||||
};
|
||||
|
|
@ -50,7 +50,7 @@ fn worker_import_failure_and_clear_preserve_blank_state() {
|
|||
let dir = tempfile::tempdir().unwrap();
|
||||
let source = dir.path().join("picture.png");
|
||||
common::image(&source, [20, 50, 90, 255]);
|
||||
let mut s = Studio::with_program(true, None, env!("CARGO_BIN_EXE_pdf-presenter").into());
|
||||
let mut s = Studio::with_program(true, None, env!("CARGO_BIN_EXE_deckstride").into());
|
||||
until(&mut s, |s| s.initialized);
|
||||
s.blanked = true;
|
||||
s.execute(Action::SetBlankPicture(source.clone()));
|
||||
|
|
@ -63,9 +63,9 @@ fn worker_import_failure_and_clear_preserve_blank_state() {
|
|||
assert_eq!(s.blank_picture.as_ref().unwrap().info.sha256, hash);
|
||||
assert!(s.blanked);
|
||||
let encoded = toml::to_string(&s.settings).unwrap();
|
||||
let decoded: pdf_presenter::settings::Settings = toml::from_str(&encoded).unwrap();
|
||||
let decoded: deckstride::settings::Settings = toml::from_str(&encoded).unwrap();
|
||||
assert!(decoded.blank_picture);
|
||||
s.execute(Action::ClearBlankPicture);
|
||||
assert!(s.blanked && s.blank_picture.is_none() && !s.settings.blank_picture);
|
||||
assert!(!pdf_presenter::settings::Settings::default().blank_picture);
|
||||
assert!(!deckstride::settings::Settings::default().blank_picture);
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#[test]
|
||||
fn executable_identifies_its_actual_status() {
|
||||
let output = std::process::Command::new(env!("CARGO_BIN_EXE_pdf-presenter"))
|
||||
let output = std::process::Command::new(env!("CARGO_BIN_EXE_deckstride"))
|
||||
.arg("--help")
|
||||
.output()
|
||||
.unwrap();
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
mod common;
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
cache::{self, Policy},
|
||||
document::Document,
|
||||
settings,
|
||||
|
|
@ -142,7 +142,7 @@ fn manual_worker_cleanup_preserves_live_document_and_regenerates_after_expunging
|
|||
let root = temp.path().join("cache");
|
||||
let doc = Document::open(&images, root.clone()).unwrap();
|
||||
let frame = doc.render(0, 512).unwrap();
|
||||
let mut studio = Studio::with_program(true, None, env!("CARGO_BIN_EXE_pdf-presenter").into());
|
||||
let mut studio = Studio::with_program(true, None, env!("CARGO_BIN_EXE_deckstride").into());
|
||||
studio.cache_path = root.clone();
|
||||
studio.initialized = true;
|
||||
let clean = |s: &mut Studio| {
|
||||
|
|
@ -175,7 +175,7 @@ fn startup_cleanup_runs_once_and_manual_errors_are_reported() {
|
|||
let root = temp.path().join("cache");
|
||||
let expired = entry(&root, 1, 0, 30, 40);
|
||||
let fresh = entry(&root, 1, 1, 30, 0);
|
||||
let mut s = Studio::with_program(true, None, env!("CARGO_BIN_EXE_pdf-presenter").into());
|
||||
let mut s = Studio::with_program(true, None, env!("CARGO_BIN_EXE_deckstride").into());
|
||||
s.cache_path = root;
|
||||
s.initialized = true;
|
||||
let deadline = Instant::now() + Duration::from_secs(10);
|
||||
|
|
@ -218,11 +218,7 @@ fn startup_cleanup_waits_for_initial_deck_preparation() {
|
|||
}
|
||||
let root = temp.path().join("cache");
|
||||
let expired = entry(&root, 1, 0, 30, 40);
|
||||
let mut s = Studio::with_program(
|
||||
true,
|
||||
Some(images),
|
||||
env!("CARGO_BIN_EXE_pdf-presenter").into(),
|
||||
);
|
||||
let mut s = Studio::with_program(true, Some(images), env!("CARGO_BIN_EXE_deckstride").into());
|
||||
s.cache_path = root;
|
||||
s.poll();
|
||||
assert!(!s.cache_busy, "Initial open must precede cleanup");
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
studio::{Action, Studio},
|
||||
worker::{Completion, Job, Reply, Request, ResultPacket},
|
||||
};
|
||||
use std::sync::mpsc::{self, Receiver, SyncSender};
|
||||
|
||||
fn controlled_chooser() -> (Studio, Receiver<Job>, SyncSender<Completion>) {
|
||||
let mut studio = Studio::with_program(true, None, env!("CARGO_BIN_EXE_pdf-presenter").into());
|
||||
let mut studio = Studio::with_program(true, None, env!("CARGO_BIN_EXE_deckstride").into());
|
||||
let (requests, jobs) = mpsc::sync_channel(4);
|
||||
let (results, replies) = mpsc::sync_channel(4);
|
||||
// Replace only the chooser transport: no native dialog or renderer is opened.
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
mod common;
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
document::{Document, natural_cmp, read_frame, validate_frame},
|
||||
settings,
|
||||
};
|
||||
|
|
@ -5,7 +5,7 @@ use std::{
|
|||
};
|
||||
|
||||
fn run_native(args: &[&str]) -> Output {
|
||||
let mut child = Command::new(env!("CARGO_BIN_EXE_pdf-presenter"))
|
||||
let mut child = Command::new(env!("CARGO_BIN_EXE_deckstride"))
|
||||
.args(args)
|
||||
.stdin(Stdio::null())
|
||||
.stdout(Stdio::piped())
|
||||
|
|
@ -31,10 +31,8 @@ fn run_native(args: &[&str]) -> Output {
|
|||
|
||||
#[test]
|
||||
fn native_windows_smoke_when_requested() {
|
||||
if std::env::var_os("PDF_PRESENTER_GUI_TESTS").is_none() {
|
||||
eprintln!(
|
||||
"Native smoke not requested; set PDF_PRESENTER_GUI_TESTS=1 with a display server."
|
||||
);
|
||||
if std::env::var_os("DECKSTRIDE_GUI_TESTS").is_none() {
|
||||
eprintln!("Native smoke not requested; set DECKSTRIDE_GUI_TESTS=1 with a display server.");
|
||||
return;
|
||||
}
|
||||
let listed = run_native(&["--list-monitors"]);
|
||||
|
|
@ -65,7 +63,7 @@ fn native_windows_smoke_when_requested() {
|
|||
|
||||
#[test]
|
||||
fn invalid_cli_fails_cleanly() {
|
||||
let result = Command::new(env!("CARGO_BIN_EXE_pdf-presenter"))
|
||||
let result = Command::new(env!("CARGO_BIN_EXE_deckstride"))
|
||||
.arg("--bad-option")
|
||||
.output()
|
||||
.unwrap();
|
||||
|
|
@ -75,10 +73,10 @@ fn invalid_cli_fails_cleanly() {
|
|||
|
||||
#[test]
|
||||
fn independent_output_acknowledges_frames_and_blanking() {
|
||||
if std::env::var_os("PDF_PRESENTER_GUI_TESTS").is_none() {
|
||||
if std::env::var_os("DECKSTRIDE_GUI_TESTS").is_none() {
|
||||
return;
|
||||
}
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
document::Document,
|
||||
output::{Ack, HostState},
|
||||
worker::{read_json, write_json},
|
||||
|
|
@ -109,7 +107,7 @@ fn independent_output_acknowledges_frames_and_blanking() {
|
|||
}
|
||||
let doc = Document::open(temp.path(), temp.path().join("cache")).unwrap();
|
||||
let frames: Vec<_> = (0..8).map(|page| doc.render(page, 320).unwrap()).collect();
|
||||
let blank_picture = pdf_presenter::blank::prepare(
|
||||
let blank_picture = deckstride::blank::prepare(
|
||||
Some(&temp.path().join("slide0.png")),
|
||||
&temp.path().join("blank-picture.rgba"),
|
||||
)
|
||||
|
|
@ -122,7 +120,7 @@ fn independent_output_acknowledges_frames_and_blanking() {
|
|||
}
|
||||
}
|
||||
let mut child = ChildGuard(
|
||||
Command::new(env!("CARGO_BIN_EXE_pdf-presenter"))
|
||||
Command::new(env!("CARGO_BIN_EXE_deckstride"))
|
||||
.arg("--presentation-host")
|
||||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::piped())
|
||||
|
|
@ -209,9 +207,9 @@ fn independent_output_acknowledges_frames_and_blanking() {
|
|||
write_json(
|
||||
&mut input,
|
||||
&HostState {
|
||||
zoom: pdf_presenter::zoom::Sync {
|
||||
zoom: deckstride::zoom::Sync {
|
||||
enabled: true,
|
||||
view: pdf_presenter::zoom::View {
|
||||
view: deckstride::zoom::View {
|
||||
scale: 2.,
|
||||
center: [0.5; 2],
|
||||
},
|
||||
|
|
@ -250,9 +248,9 @@ fn independent_output_acknowledges_frames_and_blanking() {
|
|||
zoom_only: true,
|
||||
generation: 99,
|
||||
page,
|
||||
zoom: pdf_presenter::zoom::Sync {
|
||||
zoom: deckstride::zoom::Sync {
|
||||
enabled: true,
|
||||
view: pdf_presenter::zoom::View {
|
||||
view: deckstride::zoom::View {
|
||||
scale: 4.,
|
||||
center: [0.4, 0.6],
|
||||
},
|
||||
|
|
@ -297,10 +295,10 @@ fn independent_output_acknowledges_frames_and_blanking() {
|
|||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
fn orphaned_output_holds_until_closed_then_exits_on_close_or_escape() {
|
||||
if std::env::var_os("PDF_PRESENTER_GUI_TESTS").is_none() {
|
||||
if std::env::var_os("DECKSTRIDE_GUI_TESTS").is_none() {
|
||||
return;
|
||||
}
|
||||
use pdf_presenter::{output::HostState, worker::write_json};
|
||||
use deckstride::{output::HostState, worker::write_json};
|
||||
use x11_dl::xlib;
|
||||
let x = xlib::Xlib::open().unwrap();
|
||||
// A private X11 connection is used only by this test thread.
|
||||
|
|
@ -424,7 +422,7 @@ fn orphaned_output_holds_until_closed_then_exits_on_close_or_escape() {
|
|||
}
|
||||
}
|
||||
let mut child = ChildGuard(
|
||||
Command::new(env!("CARGO_BIN_EXE_pdf-presenter"))
|
||||
Command::new(env!("CARGO_BIN_EXE_deckstride"))
|
||||
.env("WINIT_UNIX_BACKEND", "x11")
|
||||
.arg("--presentation-host")
|
||||
.stdin(Stdio::piped())
|
||||
|
|
@ -535,13 +533,13 @@ fn orphaned_output_holds_until_closed_then_exits_on_close_or_escape() {
|
|||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
fn wayland_browser_parents_to_presenter_before_first_buffer() {
|
||||
if std::env::var_os("PDF_PRESENTER_GUI_TESTS").is_none()
|
||||
if std::env::var_os("DECKSTRIDE_GUI_TESTS").is_none()
|
||||
|| std::env::var_os("WAYLAND_DISPLAY").is_none()
|
||||
{
|
||||
return;
|
||||
}
|
||||
let trace = tempfile::NamedTempFile::new().unwrap();
|
||||
let mut child = Command::new(env!("CARGO_BIN_EXE_pdf-presenter"))
|
||||
let mut child = Command::new(env!("CARGO_BIN_EXE_deckstride"))
|
||||
.arg("--smoke-test")
|
||||
.env("WAYLAND_DEBUG", "client")
|
||||
.stdout(Stdio::null())
|
||||
|
|
@ -577,8 +575,8 @@ fn wayland_browser_parents_to_presenter_before_first_buffer() {
|
|||
.next()
|
||||
.unwrap()
|
||||
};
|
||||
let presenter = top("PDF Presenter — Presenter");
|
||||
let browser = top("PDF Presenter — All slides");
|
||||
let presenter = top("Deckstride — Presenter");
|
||||
let browser = top("Deckstride — All slides");
|
||||
assert_ne!(browser, presenter);
|
||||
let parent_at = log
|
||||
.find(&format!("{browser}.set_parent({presenter})"))
|
||||
|
|
@ -621,7 +619,7 @@ fn wayland_browser_parents_to_presenter_before_first_buffer() {
|
|||
fn unsupported_sleep_backend_reports_unavailable_and_exits_on_parent_eof() {
|
||||
let output = run_native(&["--keep-awake"]);
|
||||
assert!(output.status.success());
|
||||
let status: String = pdf_presenter::worker::read_json(&mut output.stdout.as_slice()).unwrap();
|
||||
let status: String = deckstride::worker::read_json(&mut output.stdout.as_slice()).unwrap();
|
||||
assert!(status.starts_with("Sleep protection unavailable:"));
|
||||
assert!(status.contains(std::env::consts::OS));
|
||||
}
|
||||
|
|
@ -629,8 +627,8 @@ fn unsupported_sleep_backend_reports_unavailable_and_exits_on_parent_eof() {
|
|||
#[test]
|
||||
fn keep_awake_status_uses_private_length_prefixed_json() {
|
||||
let mut framed = Vec::new();
|
||||
pdf_presenter::worker::write_json(&mut framed, &"Sleep protection test").unwrap();
|
||||
deckstride::worker::write_json(&mut framed, &"Sleep protection test").unwrap();
|
||||
assert!(serde_json::from_slice::<String>(&framed).is_err());
|
||||
let decoded: String = pdf_presenter::worker::read_json(&mut framed.as_slice()).unwrap();
|
||||
let decoded: String = deckstride::worker::read_json(&mut framed.as_slice()).unwrap();
|
||||
assert_eq!(decoded, "Sleep protection test");
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
mod common;
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
document::Document,
|
||||
notes,
|
||||
studio::{Action, Studio},
|
||||
|
|
@ -195,7 +195,7 @@ fn editor_worker_saves_captured_page_and_keeps_draft_after_conflict() {
|
|||
common::pdf(&source);
|
||||
let cache = temp.path().join("cache");
|
||||
let info = Document::open(&source, cache.clone()).unwrap().info;
|
||||
let mut s = Studio::with_program(true, None, env!("CARGO_BIN_EXE_pdf-presenter").into());
|
||||
let mut s = Studio::with_program(true, None, env!("CARGO_BIN_EXE_deckstride").into());
|
||||
s.cache_path = cache;
|
||||
s.deck = Some(info);
|
||||
s.initialized = true;
|
||||
|
|
@ -393,7 +393,7 @@ fn worker_import_review_save_and_failure_keep_presentation_running() {
|
|||
let info = Document::open(&source, cache.clone()).unwrap().info;
|
||||
let input = temp.path().join("notes.txt");
|
||||
std::fs::write(&input, "Imported").unwrap();
|
||||
let mut s = Studio::with_program(true, None, env!("CARGO_BIN_EXE_pdf-presenter").into());
|
||||
let mut s = Studio::with_program(true, None, env!("CARGO_BIN_EXE_deckstride").into());
|
||||
s.cache_path = cache;
|
||||
s.initialized = true;
|
||||
s.execute(Action::ImportNotes(input.clone()));
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
paint,
|
||||
poc::{Action, Display, Model, Options, SLIDES, window_rect},
|
||||
};
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
mod common;
|
||||
use pdf_presenter::studio::{Action, Monitor, Studio};
|
||||
use deckstride::studio::{Action, Monitor, Studio};
|
||||
use std::{
|
||||
path::{Path, PathBuf},
|
||||
time::{Duration, Instant},
|
||||
|
|
@ -8,7 +8,7 @@ fn studio(path: &Path, cache: &Path) -> Studio {
|
|||
let mut s = Studio::with_program(
|
||||
true,
|
||||
Some(path.to_owned()),
|
||||
env!("CARGO_BIN_EXE_pdf-presenter").into(),
|
||||
env!("CARGO_BIN_EXE_deckstride").into(),
|
||||
);
|
||||
s.cache_path = cache.to_owned();
|
||||
s.set_monitors(
|
||||
|
|
@ -273,11 +273,10 @@ fn rolling_buffer_finishes_processing_and_reloads_evicted_slides_without_churn()
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[ignore = "manual stress test: set PDF_PRESENTER_STRESS_PDF to an authorized local PDF"]
|
||||
#[ignore = "manual stress test: set DECKSTRIDE_STRESS_PDF to an authorized local PDF"]
|
||||
fn real_pdf_exceeds_budget_and_keeps_navigating() {
|
||||
let path = PathBuf::from(
|
||||
std::env::var_os("PDF_PRESENTER_STRESS_PDF").expect("PDF_PRESENTER_STRESS_PDF"),
|
||||
);
|
||||
let path =
|
||||
PathBuf::from(std::env::var_os("DECKSTRIDE_STRESS_PDF").expect("DECKSTRIDE_STRESS_PDF"));
|
||||
let temp = tempfile::tempdir().unwrap();
|
||||
let mut s = studio(&path, &temp.path().join("cache"));
|
||||
s.monitors[0].size = (1920, 1080);
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
use pdf_presenter::Presentation;
|
||||
use deckstride::Presentation;
|
||||
use std::num::NonZeroUsize;
|
||||
|
||||
#[test]
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
use egui::{Context, Pos2, RawInput, Rect, Vec2};
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
document::{DeckInfo, Frame, FrameInfo},
|
||||
presenter_ui::{self, UiState},
|
||||
studio::{Action, Monitor, Studio},
|
||||
};
|
||||
use egui::{Context, Pos2, RawInput, Rect, Vec2};
|
||||
use std::{collections::HashMap, sync::Arc};
|
||||
fn studio() -> Studio {
|
||||
let mut s = Studio::new(true, None);
|
||||
|
|
@ -173,7 +173,7 @@ fn lost_operator_screen_never_becomes_notes_on_previous_public_output() {
|
|||
|
||||
#[test]
|
||||
fn palettes_and_languages_apply_to_presenter_browser_and_popups() {
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
localization::{Language, apply, tr},
|
||||
theme::Theme,
|
||||
};
|
||||
|
|
@ -321,7 +321,7 @@ fn display_changes_require_confirmation_and_timeout_restores_previous_setup() {
|
|||
|
||||
#[test]
|
||||
fn recovery_commands_are_scoped_to_the_current_trial_and_startup() {
|
||||
use pdf_presenter::output::DisplayAction;
|
||||
use deckstride::output::DisplayAction;
|
||||
let mut s = studio();
|
||||
s.settings.routes = s.routes.clone();
|
||||
let original = s.routes.clone();
|
||||
|
|
@ -434,7 +434,7 @@ fn output_recovery_buttons_dispatch_without_presenter_data() {
|
|||
action = presenter_ui::output_display_recovery(ui, true, trial);
|
||||
});
|
||||
}
|
||||
use pdf_presenter::output::DisplayAction;
|
||||
use deckstride::output::DisplayAction;
|
||||
assert!(matches!(
|
||||
(label, action),
|
||||
("Keep changes", Some(DisplayAction::Keep))
|
||||
|
|
@ -476,7 +476,7 @@ fn quick_settings_and_preferences_window_remain_interactive() {
|
|||
}
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
let mut native = UiState::default();
|
||||
let mut frame = |s: &mut Studio, events| {
|
||||
let mut raw = input(Vec2::new(1920., 1080.));
|
||||
|
|
@ -521,13 +521,13 @@ fn quick_settings_and_preferences_window_remain_interactive() {
|
|||
"Opening a theme selector must keep its parents open"
|
||||
);
|
||||
click(&mut s, "High Contrast");
|
||||
assert_eq!(s.settings.theme, pdf_presenter::theme::Theme::HighContrast);
|
||||
assert_eq!(s.settings.theme, deckstride::theme::Theme::HighContrast);
|
||||
assert!(s.menu_open);
|
||||
click(&mut s, "English");
|
||||
click(&mut s, "System language");
|
||||
assert_eq!(
|
||||
s.settings.language,
|
||||
pdf_presenter::localization::Language::System
|
||||
deckstride::localization::Language::System
|
||||
);
|
||||
assert!(s.menu_open);
|
||||
let zoom_enabled = s.settings.zoom_enabled;
|
||||
|
|
@ -579,7 +579,7 @@ fn quick_settings_and_preferences_window_remain_interactive() {
|
|||
|
||||
#[test]
|
||||
fn timer_presets_reserve_space_and_progress_tracks_navigation() {
|
||||
use pdf_presenter::settings::TimerPosition;
|
||||
use deckstride::settings::TimerPosition;
|
||||
fn text_rect(shapes: &[egui::epaint::ClippedShape], label: &str) -> Option<Rect> {
|
||||
fn find(shape: &egui::Shape, label: &str) -> Option<Rect> {
|
||||
match shape {
|
||||
|
|
@ -703,7 +703,7 @@ fn end_of_slides_is_only_a_presenter_next_preview_not_a_page() {
|
|||
}
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
let mut native = UiState::default();
|
||||
for (total, requested, next_visible, expected) in [
|
||||
(3, 0, true, 0),
|
||||
|
|
@ -1027,7 +1027,7 @@ fn timer_waits_for_activity_reset_rearms_and_pause_stays_paused() {
|
|||
s.execute(Action::ResetTimer);
|
||||
assert!(!s.timer.running(Instant::now(), s.timer_limit()));
|
||||
s.settings.zoom_enabled = true;
|
||||
s.set_zoom_from_action(pdf_presenter::zoom::View {
|
||||
s.set_zoom_from_action(deckstride::zoom::View {
|
||||
scale: 2.,
|
||||
center: [0.5; 2],
|
||||
});
|
||||
|
|
@ -1253,13 +1253,13 @@ fn double_click_notes_opens_editor_and_editor_keeps_unsaved_draft() {
|
|||
}
|
||||
assert!(s.actions.iter().any(|a| matches!(a, Action::EditNotes)));
|
||||
s.actions.clear();
|
||||
s.notes_editor = Some(pdf_presenter::studio::NotesEditor {
|
||||
s.notes_editor = Some(deckstride::studio::NotesEditor {
|
||||
page: 0,
|
||||
text: "Saved".into(),
|
||||
saved_text: "Saved".into(),
|
||||
busy: false,
|
||||
error: None,
|
||||
snapshot: Some(pdf_presenter::notes::Snapshot {
|
||||
snapshot: Some(deckstride::notes::Snapshot {
|
||||
path: "demo.notes.toml".into(),
|
||||
revision: "test".into(),
|
||||
notes: vec!["Saved".into()],
|
||||
|
|
@ -1307,10 +1307,10 @@ fn notes_import_review_requires_explicit_save_and_cancel_discards_preview() {
|
|||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
let original = s.deck.as_ref().unwrap().notes.clone();
|
||||
s.notes_import = Some(pdf_presenter::studio::NotesImport {
|
||||
s.notes_import = Some(deckstride::studio::NotesImport {
|
||||
busy: false,
|
||||
error: None,
|
||||
preview: Some(pdf_presenter::notes::ImportPreview {
|
||||
preview: Some(deckstride::notes::ImportPreview {
|
||||
path: "demo.notes.toml".into(),
|
||||
revision: Some("revision".into()),
|
||||
sections: vec!["New first note".into(), "".into()],
|
||||
|
|
@ -1366,13 +1366,13 @@ fn zoom_is_opt_in_resets_on_slide_change_and_does_not_blank_output() {
|
|||
let mut s = studio();
|
||||
assert!(!s.settings.zoom_enabled);
|
||||
s.blanked = false;
|
||||
s.set_zoom(pdf_presenter::zoom::View {
|
||||
s.set_zoom(deckstride::zoom::View {
|
||||
scale: 4.,
|
||||
center: [0.3, 0.6],
|
||||
});
|
||||
assert_eq!(s.zoom.view.scale, 1.);
|
||||
s.enable_zoom(true);
|
||||
s.set_zoom(pdf_presenter::zoom::View {
|
||||
s.set_zoom(deckstride::zoom::View {
|
||||
scale: 4.,
|
||||
center: [0.3, 0.6],
|
||||
});
|
||||
|
|
@ -1389,7 +1389,7 @@ fn zoom_is_opt_in_resets_on_slide_change_and_does_not_blank_output() {
|
|||
assert_eq!(s.zoom.view.scale, 1.);
|
||||
assert!(s.zoom.epoch > epoch);
|
||||
assert!(!s.blanked);
|
||||
s.set_zoom(pdf_presenter::zoom::View {
|
||||
s.set_zoom(deckstride::zoom::View {
|
||||
scale: 8.,
|
||||
center: [0.5; 2],
|
||||
});
|
||||
|
|
@ -1406,7 +1406,7 @@ fn zoom_is_opt_in_resets_on_slide_change_and_does_not_blank_output() {
|
|||
|
||||
#[test]
|
||||
fn zoom_preview_matches_reference_output_crop_and_tracks_window_shape() {
|
||||
use pdf_presenter::{output::OutputViewport, zoom::View};
|
||||
use deckstride::{output::OutputViewport, zoom::View};
|
||||
let mut s = studio();
|
||||
s.settings.zoom_enabled = true;
|
||||
s.set_zoom(View {
|
||||
|
|
@ -1470,7 +1470,7 @@ fn held_navigation_buttons_accelerate_and_release_without_an_extra_step() {
|
|||
}
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
s.layout.footer = true;
|
||||
s.blanked = false;
|
||||
let mut native = UiState::default();
|
||||
|
|
@ -1506,7 +1506,7 @@ fn held_navigation_buttons_accelerate_and_release_without_an_extra_step() {
|
|||
],
|
||||
);
|
||||
assert_eq!(s.requested, 1);
|
||||
native.navigation_hold = Some(pdf_presenter::navigation::Hold::new(
|
||||
native.navigation_hold = Some(deckstride::navigation::Hold::new(
|
||||
1,
|
||||
std::time::Instant::now() - std::time::Duration::from_secs(6),
|
||||
));
|
||||
|
|
@ -1681,9 +1681,9 @@ fn presenter_layouts_are_display_scoped_and_save_actions_keep_the_origin() {
|
|||
second.layout_open = true;
|
||||
second.layout.notes.show = false;
|
||||
second.layout.current.size = 180.;
|
||||
second.layout.clock_position = pdf_presenter::settings::TimerPosition::LeftOfSlides;
|
||||
second.layout.clock_position = deckstride::settings::TimerPosition::LeftOfSlides;
|
||||
s.presenter_views.insert("two".into(), second);
|
||||
s.layout.timer_mode = pdf_presenter::settings::TimerMode::Countdown;
|
||||
s.layout.timer_mode = deckstride::settings::TimerMode::Countdown;
|
||||
s.layout.countdown_seconds = 99;
|
||||
let contexts = [Context::default(), Context::default()];
|
||||
let mut natives = [UiState::default(), UiState::default()];
|
||||
|
|
@ -1948,7 +1948,7 @@ fn explicit_swap_during_show_preserves_visibility_and_uses_reversible_trial() {
|
|||
|
||||
#[test]
|
||||
fn screen_overrides_survive_global_commands_swap_and_hotplug_and_require_confirmation() {
|
||||
use pdf_presenter::settings::ScreenMode::{AlwaysFullscreen, AlwaysWindowed};
|
||||
use deckstride::settings::ScreenMode::{AlwaysFullscreen, AlwaysWindowed};
|
||||
for blanked in [false, true] {
|
||||
let mut s = studio();
|
||||
s.blanked = blanked;
|
||||
|
|
@ -2010,7 +2010,7 @@ fn displays_dropdown_edits_only_selected_screen_until_applied() {
|
|||
}
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
s.begin_display_edit();
|
||||
let mut native = UiState::default();
|
||||
let mut frame = |s: &mut Studio, events| {
|
||||
|
|
@ -2045,7 +2045,7 @@ fn displays_dropdown_edits_only_selected_screen_until_applied() {
|
|||
}
|
||||
assert_eq!(
|
||||
s.draft_screen_modes.get("one"),
|
||||
Some(&pdf_presenter::settings::ScreenMode::AlwaysWindowed)
|
||||
Some(&deckstride::settings::ScreenMode::AlwaysWindowed)
|
||||
);
|
||||
assert!(!s.draft_screen_modes.contains_key("two"));
|
||||
assert!(s.settings.screen_modes.is_empty());
|
||||
|
|
@ -2059,9 +2059,9 @@ fn output_viewport_accepts_screen_override_instead_of_global_mode() {
|
|||
let mut s = studio();
|
||||
s.settings.screen_modes.insert(
|
||||
"two".into(),
|
||||
pdf_presenter::settings::ScreenMode::AlwaysWindowed,
|
||||
deckstride::settings::ScreenMode::AlwaysWindowed,
|
||||
);
|
||||
s.output_viewport = Some(pdf_presenter::output::OutputViewport {
|
||||
s.output_viewport = Some(deckstride::output::OutputViewport {
|
||||
monitor: "two".into(),
|
||||
fullscreen: false,
|
||||
size: [800, 600],
|
||||
|
|
@ -2081,7 +2081,7 @@ fn quit_confirmation_requires_explicit_confirmation_and_protects_notes() {
|
|||
s.execute(Action::CancelExit);
|
||||
s.execute(Action::ConfirmExit);
|
||||
assert!(!s.quit_confirmation && !s.close_requested);
|
||||
s.notes_editor = Some(pdf_presenter::studio::NotesEditor {
|
||||
s.notes_editor = Some(deckstride::studio::NotesEditor {
|
||||
page: 0,
|
||||
text: "Unsaved".into(),
|
||||
saved_text: "Saved".into(),
|
||||
|
|
@ -2098,7 +2098,7 @@ fn quit_confirmation_requires_explicit_confirmation_and_protects_notes() {
|
|||
s.execute(Action::ConfirmExit);
|
||||
assert!(!s.close_requested);
|
||||
s.notes_editor = None;
|
||||
s.notes_import = Some(pdf_presenter::studio::NotesImport {
|
||||
s.notes_import = Some(deckstride::studio::NotesImport {
|
||||
preview: None,
|
||||
busy: true,
|
||||
error: None,
|
||||
|
|
@ -2123,7 +2123,7 @@ fn quit_modal_buttons_work_in_presenter_and_browser() {
|
|||
for label in ["Cancel", "Quit presentation"] {
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
s.execute(Action::Exit);
|
||||
let mut native = UiState::default();
|
||||
let mut frame = |s: &mut Studio, events| {
|
||||
|
|
@ -2264,7 +2264,7 @@ fn single_screen_renders_only_slide_reuses_texture_and_keeps_geometry_under_menu
|
|||
}
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
s.settings.single_screens = vec!["one".into()];
|
||||
let original = s.settings.for_display("one", &s.project());
|
||||
let mut native = UiState::default();
|
||||
|
|
@ -2353,7 +2353,7 @@ fn displays_can_select_single_screen_without_changing_audience_role() {
|
|||
}
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
s.begin_display_edit();
|
||||
let mut native = UiState::default();
|
||||
let mut frame = |s: &mut Studio, events| {
|
||||
|
|
@ -2402,7 +2402,7 @@ fn displays_can_select_single_screen_without_changing_audience_role() {
|
|||
fn startup_single_prompt_explains_presenter_intent_and_saved_mode_does_not_reoffer() {
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
let one = s.monitors[0].clone();
|
||||
s.observe_startup_displays(1, Some("one"));
|
||||
s.set_monitors(vec![one], 0);
|
||||
|
|
@ -2422,7 +2422,10 @@ fn startup_single_prompt_explains_presenter_intent_and_saved_mode_does_not_reoff
|
|||
presenter_ui::presenter(ui, &mut s, &mut native)
|
||||
});
|
||||
}
|
||||
assert!(result.shapes.iter().any(|shape| has_text(&shape.shape, "PDF Presenter is intended for a presenter setup with separate Presenter and Slides screens.")));
|
||||
assert!(result.shapes.iter().any(|shape| has_text(
|
||||
&shape.shape,
|
||||
"Deckstride is intended for a presenter setup with separate Presenter and Slides screens."
|
||||
)));
|
||||
s.settings.single_screens = vec!["one".into()];
|
||||
assert!(!s.startup_single_offer());
|
||||
s.poll();
|
||||
|
|
@ -2440,7 +2443,7 @@ fn single_screen_bottom_controls_reveal_and_hide_without_pinning_layout() {
|
|||
}
|
||||
let ctx = Context::default();
|
||||
let mut s = studio();
|
||||
s.settings.language = pdf_presenter::localization::Language::En;
|
||||
s.settings.language = deckstride::localization::Language::En;
|
||||
s.settings.single_screens = vec!["one".into()];
|
||||
let mut native = UiState::default();
|
||||
let render = |s: &mut Studio, native: &mut UiState, pos| {
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
use pdf_presenter::settings::{self, Layout, Routes, Settings};
|
||||
use deckstride::settings::{self, Layout, Routes, Settings};
|
||||
|
||||
#[test]
|
||||
fn every_interface_language_round_trips_through_settings_v1() {
|
||||
let temp = tempfile::tempdir().unwrap();
|
||||
for language in pdf_presenter::localization::Language::ALL {
|
||||
for language in deckstride::localization::Language::ALL {
|
||||
let path = temp.path().join(format!("{language:?}.toml"));
|
||||
let settings = Settings {
|
||||
language,
|
||||
|
|
@ -23,8 +23,8 @@ fn settings_roundtrip_preserves_project_overrides_and_hidden_bars() {
|
|||
settings.layout.notes.size = 42.;
|
||||
settings.buffer_mib = 2048;
|
||||
settings.auto_show = false;
|
||||
settings.theme = pdf_presenter::theme::Theme::CorporateLight;
|
||||
settings.language = pdf_presenter::localization::Language::Fr;
|
||||
settings.theme = deckstride::theme::Theme::CorporateLight;
|
||||
settings.language = deckstride::localization::Language::Fr;
|
||||
let mut project = Layout::default();
|
||||
project.previous.show = true; // Explicit opt-in survives saving and loading.
|
||||
project.current.show = false;
|
||||
|
|
@ -159,11 +159,11 @@ fn slide_colors_migrate_roundtrip_and_reject_invalid_channels() {
|
|||
};
|
||||
settings::write(&path, &s).unwrap();
|
||||
assert_eq!(settings::read(&path).unwrap().slide_colors, s.slide_colors);
|
||||
let state = pdf_presenter::output::HostState {
|
||||
let state = deckstride::output::HostState {
|
||||
slide_colors: s.slide_colors,
|
||||
..Default::default()
|
||||
};
|
||||
let restored: pdf_presenter::output::HostState =
|
||||
let restored: deckstride::output::HostState =
|
||||
serde_json::from_slice(&serde_json::to_vec(&state).unwrap()).unwrap();
|
||||
assert_eq!(restored.slide_colors, s.slide_colors);
|
||||
for value in [
|
||||
|
|
@ -382,7 +382,7 @@ fn autoplay_settings_migrate_validate_and_round_trip() {
|
|||
|
||||
#[test]
|
||||
fn output_screen_modes_roundtrip_and_fall_back_to_global() {
|
||||
use pdf_presenter::output::HostState;
|
||||
use deckstride::output::HostState;
|
||||
let state = HostState {
|
||||
fullscreen: true,
|
||||
screen_fullscreen: [("one".into(), false), ("two".into(), true)].into(),
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
mod common;
|
||||
use deckstride::{document::Document, presenter_ui::paint_slide, settings::SlideColors};
|
||||
use egui::{Context, Pos2, RawInput, Rect, TextureOptions, Vec2};
|
||||
use egui_software_backend::{BufferMutRef, ColorFieldOrder, EguiSoftwareRender};
|
||||
use pdf_presenter::{document::Document, presenter_ui::paint_slide, settings::SlideColors};
|
||||
|
||||
#[test]
|
||||
fn transparent_pdf_composites_on_white_or_custom_page_with_independent_padding() {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
use pdf_presenter::timer::Timer;
|
||||
use deckstride::timer::Timer;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
#[test]
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
use egui::{Pos2, Rect, Vec2};
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
output::{HostState, coalesce},
|
||||
tools::{MAX_MARKS, Mark, MarkKind, Overlay, Toolbox, screen_to_page},
|
||||
};
|
||||
use egui::{Pos2, Rect, Vec2};
|
||||
|
||||
#[test]
|
||||
fn overlay_input_is_bounded_and_normalized() {
|
||||
|
|
@ -33,7 +33,7 @@ fn overlay_input_is_bounded_and_normalized() {
|
|||
#[test]
|
||||
fn toolbox_discards_oldest_mark_and_maps_visible_crop() {
|
||||
let mut tools = Toolbox::default();
|
||||
tools.select(pdf_presenter::tools::Tool::Arrow);
|
||||
tools.select(deckstride::tools::Tool::Arrow);
|
||||
for index in 0..MAX_MARKS + 1 {
|
||||
assert!(tools.begin_mark([index as f32 / 100., 0.5]));
|
||||
tools.end_mark();
|
||||
|
|
@ -89,7 +89,7 @@ fn overlay_update_coalesces_without_losing_full_output_state() {
|
|||
generation: 9,
|
||||
page: 3,
|
||||
zoom_only: true,
|
||||
zoom: pdf_presenter::zoom::Sync {
|
||||
zoom: deckstride::zoom::Sync {
|
||||
enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
mod common;
|
||||
use pdf_presenter::worker::{Reply, Request, read_json, write_json};
|
||||
use deckstride::worker::{Reply, Request, read_json, write_json};
|
||||
use std::{
|
||||
io::Read,
|
||||
process::{Command, Stdio},
|
||||
|
|
@ -10,7 +10,7 @@ fn worker_protocol_loads_renders_and_keeps_previous_document_after_failure() {
|
|||
let path = temp.path().join("sample.pdf");
|
||||
common::pdf(&path);
|
||||
let cache = temp.path().join("cache");
|
||||
let mut child = Command::new(env!("CARGO_BIN_EXE_pdf-presenter"))
|
||||
let mut child = Command::new(env!("CARGO_BIN_EXE_deckstride"))
|
||||
.arg("--worker")
|
||||
.stdin(Stdio::piped())
|
||||
.stdout(Stdio::piped())
|
||||
|
|
@ -79,9 +79,9 @@ fn protocol_rejects_oversized_and_malformed_messages() {
|
|||
#[test]
|
||||
fn supervisor_kills_a_stuck_worker_and_recovers() {
|
||||
use std::time::{Duration, Instant};
|
||||
let bridge = pdf_presenter::worker::Bridge::with_program(
|
||||
let bridge = deckstride::worker::Bridge::with_program(
|
||||
Duration::from_millis(300),
|
||||
env!("CARGO_BIN_EXE_pdf-presenter").into(),
|
||||
env!("CARGO_BIN_EXE_deckstride").into(),
|
||||
);
|
||||
let start = Instant::now();
|
||||
assert!(bridge.submit(7, 1, Request::SleepTest(5000)));
|
||||
|
|
@ -97,7 +97,7 @@ fn supervisor_kills_a_stuck_worker_and_recovers() {
|
|||
|
||||
#[test]
|
||||
fn output_diagnostics_are_distinct_from_explicit_blanking() {
|
||||
use pdf_presenter::output::Ack;
|
||||
use deckstride::output::Ack;
|
||||
let old: Ack =
|
||||
serde_json::from_str(r#"{"sequence":0,"page":null,"status":"host restarted","awake":""}"#)
|
||||
.unwrap();
|
||||
|
|
@ -1,10 +1,10 @@
|
|||
use egui::{Context, Pos2, RawInput, Rect, TextureOptions, Vec2};
|
||||
use egui_software_backend::{BufferMutRef, ColorFieldOrder, EguiSoftwareRender};
|
||||
use pdf_presenter::{
|
||||
use deckstride::{
|
||||
output::{HostState, coalesce},
|
||||
settings::Settings,
|
||||
zoom::{PerformanceWatch, Sync, View},
|
||||
};
|
||||
use egui::{Context, Pos2, RawInput, Rect, TextureOptions, Vec2};
|
||||
use egui_software_backend::{BufferMutRef, ColorFieldOrder, EguiSoftwareRender};
|
||||
use std::time::{Duration, Instant};
|
||||
#[test]
|
||||
fn crop_anchor_pan_and_limits() {
|
||||
|
|
@ -153,7 +153,7 @@ fn zoom_paints_existing_texture_crop_with_constant_geometry_and_no_new_uploads()
|
|||
..Default::default()
|
||||
},
|
||||
|ui| {
|
||||
pdf_presenter::presenter_ui::paint_slide_zoomed(
|
||||
deckstride::presenter_ui::paint_slide_zoomed(
|
||||
ui.painter(),
|
||||
rect,
|
||||
texture.id(),
|
||||
|
|
@ -225,7 +225,7 @@ fn buffered_zoom_drawing_measurement() {
|
|||
..Default::default()
|
||||
},
|
||||
|ui| {
|
||||
pdf_presenter::presenter_ui::paint_slide_adapted(
|
||||
deckstride::presenter_ui::paint_slide_adapted(
|
||||
ui.painter(),
|
||||
rect,
|
||||
texture.id(),
|
||||
|
|
@ -276,7 +276,7 @@ fn wheel_drag_and_double_click_operate_in_slide_coordinates() {
|
|||
..Default::default()
|
||||
},
|
||||
|ui| {
|
||||
view = pdf_presenter::presenter_ui::zoom_gestures(ui, target, view).0;
|
||||
view = deckstride::presenter_ui::zoom_gestures(ui, target, view).0;
|
||||
},
|
||||
);
|
||||
view
|
||||
|
|
@ -358,7 +358,7 @@ fn optimized_crop_matches_general_renderer_with_alpha_clipping_and_dpi() {
|
|||
},
|
||||
|ui| {
|
||||
let painter = ui.painter().with_clip_rect(rect.shrink(20.));
|
||||
pdf_presenter::presenter_ui::paint_slide_zoomed(
|
||||
deckstride::presenter_ui::paint_slide_zoomed(
|
||||
&painter,
|
||||
rect,
|
||||
texture.id(),
|
||||
|
|
@ -415,7 +415,7 @@ fn parallel_crop_bands_have_no_seams_at_fractional_boundaries() {
|
|||
..Default::default()
|
||||
},
|
||||
|ui| {
|
||||
pdf_presenter::presenter_ui::paint_slide_zoomed(
|
||||
deckstride::presenter_ui::paint_slide_zoomed(
|
||||
ui.painter(),
|
||||
rect,
|
||||
texture.id(),
|
||||
|
|
@ -450,7 +450,7 @@ fn parallel_crop_bands_have_no_seams_at_fractional_boundaries() {
|
|||
|
||||
#[test]
|
||||
fn portrait_zoom_fills_screen_without_stretching_or_out_of_bounds_pixels() {
|
||||
use pdf_presenter::presenter_ui::zoom_geometry;
|
||||
use deckstride::presenter_ui::zoom_geometry;
|
||||
for size in [
|
||||
Vec2::new(1920., 1080.),
|
||||
Vec2::new(1080., 1920.),
|
||||
|
|
@ -499,7 +499,7 @@ fn adapted_portrait_pixels_fill_padding_without_uploading_another_texture() {
|
|||
..Default::default()
|
||||
},
|
||||
|ui| {
|
||||
pdf_presenter::presenter_ui::paint_slide_adapted(
|
||||
deckstride::presenter_ui::paint_slide_adapted(
|
||||
ui.painter(),
|
||||
rect,
|
||||
texture.id(),
|
||||
|
|
@ -552,14 +552,9 @@ fn portrait_screen_adapting_gestures_pan_visible_area_and_reset() {
|
|||
..Default::default()
|
||||
},
|
||||
|ui| {
|
||||
view = pdf_presenter::presenter_ui::zoom_gestures_in(
|
||||
ui,
|
||||
target,
|
||||
[210, 297],
|
||||
view,
|
||||
false,
|
||||
)
|
||||
.0;
|
||||
view =
|
||||
deckstride::presenter_ui::zoom_gestures_in(ui, target, [210, 297], view, false)
|
||||
.0;
|
||||
},
|
||||
);
|
||||
view
|
||||
|
|
@ -604,11 +599,11 @@ fn portrait_screen_adapting_gestures_pan_visible_area_and_reset() {
|
|||
|
||||
#[test]
|
||||
fn double_click_fits_width_near_target_then_resets_without_stretching() {
|
||||
use pdf_presenter::presenter_ui::{zoom_geometry, zoom_gestures_in};
|
||||
use deckstride::presenter_ui::{zoom_geometry, zoom_gestures_in};
|
||||
for (dimensions, expected) in [([210, 297], 2.8285716), ([400, 100], 1.), ([10, 1000], 8.)] {
|
||||
let ctx = Context::default();
|
||||
let target = Rect::from_min_size(Pos2::new(40., 40.), Vec2::new(400., 200.));
|
||||
let page = pdf_presenter::presenter_ui::fitted_slide(target, dimensions);
|
||||
let page = deckstride::presenter_ui::fitted_slide(target, dimensions);
|
||||
let click_position = Pos2::new(page.center().x, page.top() + page.height() * 0.95);
|
||||
let mut view = View::default();
|
||||
let mut time = 0.;
|
||||
|
|
@ -666,7 +661,7 @@ fn double_click_fits_width_near_target_then_resets_without_stretching() {
|
|||
|
||||
#[test]
|
||||
fn fit_width_uses_output_shape_even_with_a_narrow_presenter_pane() {
|
||||
use pdf_presenter::presenter_ui::{fitted_slide, zoom_geometry};
|
||||
use deckstride::presenter_ui::{fitted_slide, zoom_geometry};
|
||||
let output = Rect::from_min_size(Pos2::ZERO, Vec2::new(1920., 1080.));
|
||||
let pane = Rect::from_min_size(Pos2::ZERO, Vec2::new(300., 600.));
|
||||
let preview = fitted_slide(pane, [1920, 1080]);
|
||||
|
|
@ -2,6 +2,15 @@
|
|||
|
||||
## Unreleased
|
||||
|
||||
### 0.1.96
|
||||
|
||||
- Rename the application, crate, executable, repository links, desktop identity,
|
||||
CI publication paths and future packages to Deckstride. Existing releases remain
|
||||
unchanged; valid settings migrate to the new location and warm rendered-slide
|
||||
caches remain available after the rename.
|
||||
- Retain the current application icon pending review of a separate Deckstride logo
|
||||
proposal.
|
||||
|
||||
### 0.1.95
|
||||
|
||||
- Add an Autoplay menu with persistent Play automatically, per-slide timing and
|
||||
|
|
@ -876,7 +885,7 @@
|
|||
|
||||
### 0.1.0
|
||||
|
||||
- Prepared the standalone PDF Presenter repository with a tested navigation/blanking
|
||||
- Prepared the standalone Deckstride repository with a tested navigation/blanking
|
||||
core, an explicit bootstrap executable, agent guidance and implementation plan.
|
||||
- Added Jenkins validation, whole-workspace coverage and isolated three-badge
|
||||
publication, plus generated application/repository artwork. PDF rendering and
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -11,7 +11,7 @@ dual-screen, startup and responsiveness requirements.
|
|||
- [Persistent interfaces](../interfaces/README.md)
|
||||
- [Changelog](../changelog.md)
|
||||
|
||||
Run `cargo run --locked -p pdf-presenter` for the native mock-window test.
|
||||
Run `cargo run --locked -p deckstride` for the native mock-window test.
|
||||
See the [dual-screen proof guide](dual-screen-poc.md) for controls, limits and the
|
||||
physical acceptance still required. PDF loading and release bundles remain pending.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# CI and Jenkins setup
|
||||
|
||||
Create a Jenkins Multibranch Pipeline for `idle-org/pdf-presenter`, using the root
|
||||
Create a Jenkins Multibranch Pipeline for `idle-org/deckstride`, using the root
|
||||
`Jenkinsfile`, SCM credentials and the existing `rust_no_docker` worker. Repository
|
||||
upload does not create a Jenkins job. Configure branch discovery and a Gitea webhook
|
||||
in Jenkins/Gitea when connecting the job.
|
||||
|
|
@ -19,7 +19,7 @@ worker and other headless tests still run. The pipeline installs cargo-llvm-cov
|
|||
and the rustfmt, Clippy and llvm-tools-preview components.
|
||||
|
||||
The temporary Jenkins coverage floor is **60%**, selected explicitly by
|
||||
`PDF_PRESENTER_HEADLESS_CI=1` and `headless-line-floor` in `coverage.toml`. The normal
|
||||
`DECKSTRIDE_HEADLESS_CI=1` and `headless-line-floor` in `coverage.toml`. The normal
|
||||
local full-GUI floor remains **75%**. Both measure all production code, including
|
||||
GUI code; tool/test failures still fail the build and badges report the actual
|
||||
measurement. Restore full native testing and the 75% Jenkins floor when a display
|
||||
|
|
@ -33,7 +33,7 @@ cargo clippy --locked --workspace --all-targets --all-features -- -D warnings
|
|||
cargo test --locked --workspace --all-features
|
||||
cargo build --locked --workspace --all-features
|
||||
RUSTDOCFLAGS="-D warnings" cargo doc --locked --workspace --all-features --no-deps
|
||||
PDF_PRESENTER_GUI_TESTS=1 uv run --no-project --python ">=3.11" python scripts/ci.py coverage
|
||||
DECKSTRIDE_GUI_TESTS=1 uv run --no-project --python ">=3.11" python scripts/ci.py coverage
|
||||
```
|
||||
|
||||
Coverage measures the entire Rust workspace with the selected floor. Add all future
|
||||
|
|
@ -42,7 +42,7 @@ Canvas Pilot and have tests for invalid/stale reports and isolated publication.
|
|||
|
||||
Cleanup archives exactly `coverage/version.svg`, `coverage/test.svg` and
|
||||
`coverage/coverage.svg`. Only main builds without CHANGE_ID publish badges under
|
||||
`/mnt/assets/coverage/idle-org/pdf-presenter/main/`, including honest failed-test
|
||||
`/mnt/assets/coverage/idle-org/deckstride/main/`, including honest failed-test
|
||||
or unavailable-coverage status. No shared asset root is synchronized or deleted.
|
||||
There is no release job or binary upload in this pipeline.
|
||||
Separate local packaging uses [rust_realease](releases.md).
|
||||
|
|
@ -52,7 +52,7 @@ worker configuration or prove the remote pipeline has run.
|
|||
|
||||
The coverage command above needs a usable desktop session. On a headless POSIX host with Xvfb installed,
|
||||
run `uv run --no-project --python ">=3.11" python scripts/gui_ci.py python scripts/ci.py coverage` instead. To include
|
||||
native smoke in local workspace tests, set `PDF_PRESENTER_GUI_TESTS=1`. Without it,
|
||||
native smoke in local workspace tests, set `DECKSTRIDE_GUI_TESTS=1`. Without it,
|
||||
the ordinary tests remain headless and explicitly skip native-window smoke. CI uses
|
||||
neither the flag nor the virtual-display wrapper. Xvfb tests cannot
|
||||
validate actual monitor routing, compositor policy, macOS Spaces or Windows desktop
|
||||
|
|
|
|||
|
|
@ -7,20 +7,20 @@ explicitly activates mock output; the production document model still starts bla
|
|||
|
||||
## Run and test
|
||||
|
||||
Build with `cargo build --locked --release`, then run `target/release/pdf-presenter`
|
||||
(or `pdf-presenter.exe` on Windows). The executable contains the mock data and bitmap
|
||||
Build with `cargo build --locked --release`, then run `target/release/deckstride`
|
||||
(or `deckstride.exe` on Windows). The executable contains the mock data and bitmap
|
||||
font. It needs only normal OS desktop libraries; no PDF renderer, font download,
|
||||
configuration file or sibling repository is required. Each OS/architecture needs
|
||||
its own build; a Linux executable is not a Windows/macOS executable.
|
||||
|
||||
```sh
|
||||
cargo run --locked -p pdf-presenter
|
||||
cargo run --locked -p deckstride
|
||||
# Inspect display numbering without opening the two windows:
|
||||
cargo run --locked -p pdf-presenter -- --list-monitors
|
||||
cargo run --locked -p deckstride -- --list-monitors
|
||||
# Explicit selection (one-based display numbers from the listing):
|
||||
cargo run --locked -p pdf-presenter -- --presenter 1 --audience 2
|
||||
cargo run --locked -p deckstride -- --presenter 1 --audience 2
|
||||
# Keep both windows decorated for troubleshooting:
|
||||
cargo run --locked -p pdf-presenter -- --windowed
|
||||
cargo run --locked -p deckstride -- --windowed
|
||||
```
|
||||
|
||||
With one detected display, fullscreen views overlap. Use `--windowed` to open
|
||||
|
|
@ -79,7 +79,7 @@ The bitmap UI is test instrumentation, not the final presenter design. There is
|
|||
|
||||
Tests cover monitor assignment/invalid selection, navigation bounds, blanking,
|
||||
topology invalidation, negative-coordinate geometry, scaled pointer hit testing and
|
||||
software frames. `PDF_PRESENTER_GUI_TESTS=1 cargo test --locked --workspace` also opens
|
||||
software frames. `DECKSTRIDE_GUI_TESTS=1 cargo test --locked --workspace` also opens
|
||||
real native windows, exercises mock controls/fullscreen transitions and checks frames
|
||||
were presented to both surfaces. `--smoke-test` exposes that short automatic check.
|
||||
A virtual display proves native rendering/lifecycle only, not physical placement.
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@
|
|||
"tool": "built-in image_gen",
|
||||
"use_case": "logo-brand",
|
||||
"date": "2026-11-19",
|
||||
"asset": "crates/pdf-presenter/assets/app-icon.png",
|
||||
"prompt": "Use case: logo-brand\nAsset type: PDF Presenter desktop app icon and repository avatar, part of the beffroi-tools family.\nInput images: three reference icons showing the exact family style: dark charcoal rounded-square tile, softly beveled silver and bright turquoise objects, gentle 3D depth, subtle teal rim highlight. Use these as style references, not edit targets.\nPrimary request: Create a NEW matching family icon for a multiscreen PDF presenter. Inside the dark rounded-square tile, use a silver folded-corner document in front of a turquoise outlined presentation screen, and a simple bright turquoise play triangle on the document. Crisp bold uncluttered geometry, tactile satin metallic silver, very restrained dimensional shading. Distinct from the existing icons yet obviously in the same set.\nComposition: square, centered tile nearly fills frame, generous clear margins around the inner emblem, readable at 32px. Transparent exterior outside the tile, true alpha. No text, no letters, no watermark, no red, no blue, no photorealistic monitors, no elaborate background.",
|
||||
"asset": "crates/deckstride/assets/app-icon.png",
|
||||
"prompt": "Use case: logo-brand\nAsset type: Deckstride desktop app icon and repository avatar, part of the beffroi-tools family.\nInput images: three reference icons showing the exact family style: dark charcoal rounded-square tile, softly beveled silver and bright turquoise objects, gentle 3D depth, subtle teal rim highlight. Use these as style references, not edit targets.\nPrimary request: Create a NEW matching family icon for a multiscreen PDF presenter. Inside the dark rounded-square tile, use a silver folded-corner document in front of a turquoise outlined presentation screen, and a simple bright turquoise play triangle on the document. Crisp bold uncluttered geometry, tactile satin metallic silver, very restrained dimensional shading. Distinct from the existing icons yet obviously in the same set.\nComposition: square, centered tile nearly fills frame, generous clear margins around the inner emblem, readable at 32px. Transparent exterior outside the tile, true alpha. No text, no letters, no watermark, no red, no blue, no photorealistic monitors, no elaborate background.",
|
||||
"references": [
|
||||
"beffroi-tools/crates/pptx-reporter/assets/app-icon.png",
|
||||
"beffroi-tools/crates/rundown-converter/assets/app-icon.png",
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ memory remains additional. The source SHA-256 was unchanged after the test.
|
|||
Reproduce explicitly with an authorized local deck (never a CI/private fixture upload):
|
||||
|
||||
```sh
|
||||
PDF_PRESENTER_STRESS_PDF=/path/to/Ravenous.pdf cargo test --locked --release \
|
||||
DECKSTRIDE_STRESS_PDF=/path/to/Ravenous.pdf cargo test --locked --release \
|
||||
--test preparation real_pdf_exceeds_budget_and_keeps_navigating -- --ignored --nocapture
|
||||
```
|
||||
|
||||
|
|
@ -337,7 +337,7 @@ only Linux development checks were run for this subject.
|
|||
|
||||
|
||||
The software renderer is bundled with a narrow cropped-quad optimization; see
|
||||
[`vendor/egui_software_backend/PDF-PRESENTER-PATCH.md`](../../vendor/egui_software_backend/PDF-PRESENTER-PATCH.md)
|
||||
[`vendor/egui_software_backend/DECKSTRIDE-PATCH.md`](../../vendor/egui_software_backend/DECKSTRIDE-PATCH.md)
|
||||
for provenance and the precise changes. Fixed-point bilinear scanlines reuse two
|
||||
filtered rows and bounded coordinate tables. Large crops use four disjoint bands
|
||||
on a lazily initialized pool capped at four CPU threads per native process. This
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.17 preview
|
||||
# Deckstride 0.1.17 preview
|
||||
|
||||
Portable PDF and image-folder presenter with fullscreen presenter/presentation
|
||||
views, monitor routing/mirroring, notes, slide browser, themes and English/French.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.24 preview
|
||||
# Deckstride 0.1.24 preview
|
||||
|
||||
Portable PDF and image-folder presenter for Linux and Windows x86_64, with separate
|
||||
fullscreen presenter/presentation views, monitor routing/mirroring, notes, slide
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.33 preview
|
||||
# Deckstride 0.1.33 preview
|
||||
|
||||
Portable PDF and image-folder presenter for Linux and Windows x86_64. This preview
|
||||
includes the changes since 0.1.24:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.68 preview
|
||||
# Deckstride 0.1.68 preview
|
||||
|
||||
This preview adds live presentation tools while preserving the buffered rendering
|
||||
path. Open **Tools** in the presenter header for a low-latency pointer, straight
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.71 preview
|
||||
# Deckstride 0.1.71 preview
|
||||
|
||||
This preview adds disk-cache controls in **Menu → Preferences → Disk cache**.
|
||||
Set a maximum total size (default **10 GiB**) and lifetime (default **30 days since
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.75 preview
|
||||
# Deckstride 0.1.75 preview
|
||||
|
||||
This preview includes the monitor and navigation fixes since 0.1.71:
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ remain included.
|
|||
## Windows testing
|
||||
|
||||
Use the Windows x86_64 standalone executable or extract the portable ZIP and run
|
||||
**pdf-presenter.exe**. No Rust toolchain or separately installed PDF backend is
|
||||
**deckstride.exe**. No Rust toolchain or separately installed PDF backend is
|
||||
required. The executable is unsigned.
|
||||
|
||||
Please exercise three displays with two presenters and one audience output:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.77 preview
|
||||
# Deckstride 0.1.77 preview
|
||||
|
||||
This preview adds two features since 0.1.75:
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ navigation fixes from 0.1.75 remain included.
|
|||
## Windows testing
|
||||
|
||||
Download the Windows x86_64 standalone executable, or extract the portable ZIP
|
||||
and run **pdf-presenter.exe**. No Rust toolchain or separately installed PDF
|
||||
and run **deckstride.exe**. No Rust toolchain or separately installed PDF
|
||||
backend is required. The executable is unsigned.
|
||||
|
||||
With two presenters and an audience display, customize the presenters differently,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.78 preview
|
||||
# Deckstride 0.1.78 preview
|
||||
|
||||
This preview focuses on Windows presentation responsiveness and desktop integration:
|
||||
|
||||
|
|
@ -11,21 +11,21 @@ This preview focuses on Windows presentation responsiveness and desktop integrat
|
|||
so opening it does not create a terminal window. Audience windows are created
|
||||
without activation and the presenter explicitly requests focus when first shown.
|
||||
- **PDF file icon and association.** Use **Menu → Preferences → Windows integration
|
||||
→ Choose as PDF app…**. PDF Presenter registers its executable, open command and
|
||||
→ Choose as PDF app…**. Deckstride registers its executable, open command and
|
||||
embedded icon for the current user, refreshes Explorer and opens Default Apps.
|
||||
Windows requires you to confirm the default PDF application there. Keep the
|
||||
portable folder in a permanent location and repeat this action after moving it.
|
||||
|
||||
## Windows testing
|
||||
|
||||
Extract the Windows x86_64 portable ZIP and run **pdf-presenter.exe**. Confirm that
|
||||
Extract the Windows x86_64 portable ZIP and run **deckstride.exe**. Confirm that
|
||||
no terminal appears and that the presenter accepts keyboard input immediately while
|
||||
the audience window remains on the selected output. On a high-resolution audience
|
||||
display, compare pointer, arrow and highlighter tracking with 0.1.77, including zoom
|
||||
and mirrored audience outputs.
|
||||
|
||||
Register PDF Presenter in Preferences, select it for `.pdf` in Default Apps, then
|
||||
check that Explorer shows the PDF Presenter icon and double-clicking a PDF opens it.
|
||||
Register Deckstride in Preferences, select it for `.pdf` in Default Apps, then
|
||||
check that Explorer shows the Deckstride icon and double-clicking a PDF opens it.
|
||||
The executable is unsigned, and the association is per user without administrator
|
||||
rights.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.81 preview
|
||||
# Deckstride 0.1.81 preview
|
||||
|
||||
This preview makes multi-Presenter layouts clearer and improves Windows desktop
|
||||
integration.
|
||||
|
|
@ -20,13 +20,13 @@ integration.
|
|||
|
||||
## Windows testing
|
||||
|
||||
Extract the Windows x86_64 portable ZIP and run **pdf-presenter.exe**. Confirm that
|
||||
Extract the Windows x86_64 portable ZIP and run **deckstride.exe**. Confirm that
|
||||
the Presenter accepts Left/Right immediately after launch, including with two or
|
||||
more fullscreen displays. Repeat from Explorer, a PDF file association and a pinned
|
||||
shortcut. Open All slides during startup and confirm that it retains focus.
|
||||
|
||||
In Preferences, choose **Set as default PDF app…**, select PDF Presenter for `.pdf`
|
||||
in Windows Default Apps, then verify that Explorer uses the PDF Presenter icon and
|
||||
In Preferences, choose **Set as default PDF app…**, select Deckstride for `.pdf`
|
||||
in Windows Default Apps, then verify that Explorer uses the Deckstride icon and
|
||||
double-clicking a PDF opens it. Registration is per user and requires no
|
||||
administrator rights. Keep the portable folder in a permanent location.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# PDF Presenter 0.1.83 preview
|
||||
# Deckstride 0.1.83 preview
|
||||
|
||||
This preview improves settings organization and makes presentation tools easier to
|
||||
judge across Presenter previews and high-resolution Slides screens.
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# PDF Presenter 0.1.90 preview
|
||||
# Deckstride 0.1.90 preview
|
||||
|
||||
This preview adds display controls and an optional single-screen presentation view.
|
||||
|
||||
- **Single-screen view.** Select Single screen in Displays for full-window slides
|
||||
with controls revealed at the top and bottom edges. The app offers this mode
|
||||
only when it starts with exactly one screen, explaining that PDF Presenter is
|
||||
only when it starts with exactly one screen, explaining that Deckstride is
|
||||
intended for separate Presenter and Slides screens. Later disconnects never
|
||||
trigger the offer. Saved Presenter layouts and the independent audience host
|
||||
remain separate; controls overlay the slide without resizing it.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# PDF Presenter 0.1.91
|
||||
# Deckstride 0.1.91
|
||||
|
||||
PDF Presenter releases are now regular releases rather than previews. The version
|
||||
Deckstride releases are now regular releases rather than previews. The version
|
||||
remains below 1.0 while the project continues to refine platform integration and
|
||||
physical-display acceptance.
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Build local artifacts without a token or contacting Gitea:
|
|||
|
||||
```sh
|
||||
CROSS_CONTAINER_ENGINE=podman ../rust_realease/target/release/rust_realease . \
|
||||
--package pdf-presenter --compile-only
|
||||
--package deckstride --compile-only
|
||||
```
|
||||
|
||||
Use the installed `rust_realease` command instead if preferred. Cross must have
|
||||
|
|
@ -37,7 +37,7 @@ Publication is a separate explicit action: create the version tag at the reviewe
|
|||
commit, push that commit/tag, then run:
|
||||
|
||||
```sh
|
||||
rust_realease . --package pdf-presenter \
|
||||
rust_realease . --package deckstride \
|
||||
--message-file docs/development/release-notes/vVERSION.md \
|
||||
--token-file ../gitea-token.txt
|
||||
```
|
||||
|
|
@ -49,7 +49,7 @@ preparation. Never put credentials in configuration, artifacts or Git.
|
|||
## Local validation for 0.1.33
|
||||
|
||||
Built Linux x86_64 GNU and Windows x86_64 GNU from commit `6bba0c4` with
|
||||
`CROSS_CONTAINER_ENGINE=podman rust_realease . --package pdf-presenter --compile-only`.
|
||||
`CROSS_CONTAINER_ENGINE=podman rust_realease . --package deckstride --compile-only`.
|
||||
Artifacts are in `dist/release-oTFW9Q/`. The installed tool is 0.1.6-rc.2: it builds
|
||||
raw binaries and binstall archives but does not implement the configured portable
|
||||
bundles. Those two bundles were assembled from the same binaries using exactly the
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# HTML concept layout storage — version 1
|
||||
|
||||
Applies only to `docs/design/presenter-menu.html`, not the native application.
|
||||
The page uses browser localStorage key `pdf-presenter.menu-layouts.v1`. Storage is
|
||||
The page uses browser localStorage key `deckstride.menu-layouts.v1`. Storage is
|
||||
scoped by the browser to the page origin; file-URL handling is browser-dependent.
|
||||
It is not the native global configuration or a file saved alongside a PDF.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,12 @@
|
|||
# Native settings, version 1
|
||||
|
||||
`settings.toml` is stored in `$XDG_CONFIG_HOME/pdf-presenter` (otherwise
|
||||
`~/.config/pdf-presenter`) on Linux. `directories::ProjectDirs` with qualifier `com`,
|
||||
organization `Beffroi`, application `PdfPresenter` supplies other platforms' standard
|
||||
per-user config/cache directories. The UI reports the actual configuration path.
|
||||
`settings.toml` is stored in `$XDG_CONFIG_HOME/deckstride` (otherwise
|
||||
`~/.config/deckstride`) on Linux. `directories::ProjectDirs` with qualifier `com`,
|
||||
organization `Beffroi`, application `Deckstride` supplies other platforms' standard
|
||||
per-user config/cache directories. On first start after the rename, Deckstride
|
||||
copies valid settings from the former application directory when the new file does
|
||||
not exist. It keeps using an existing warm slide cache until the new cache has been
|
||||
populated, avoiding a forced rerender. The UI reports the actual configuration path.
|
||||
There is no separate project file or source-side settings write.
|
||||
|
||||
The top-level `version = 1` is mandatory semantically (omitted defaults to 1).
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
PDF Presenter — preview release
|
||||
Deckstride — preview release
|
||||
|
||||
Windows: extract the ZIP and run pdf-presenter.exe. Its icon is embedded.
|
||||
Linux: extract the tarball and run ./pdf-presenter. Optional menu/taskbar
|
||||
Windows: extract the ZIP and run deckstride.exe. Its icon is embedded.
|
||||
Linux: extract the tarball and run ./deckstride. Optional menu/taskbar
|
||||
integration: keep the extracted folder in a permanent location, then run
|
||||
python3 install-linux-launcher.py. No root privileges are needed. Python is
|
||||
only needed for this optional installer, never for running PDF Presenter.
|
||||
To remove integration delete ~/.local/share/applications/pdf-presenter.desktop
|
||||
only needed for this optional installer, never for running Deckstride.
|
||||
To remove integration delete ~/.local/share/applications/deckstride.desktop
|
||||
(or the corresponding file under your XDG_DATA_HOME).
|
||||
Wayland shells use that desktop entry to resolve the application icon.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
# Using PDF Presenter
|
||||
# Using Deckstride
|
||||
|
||||
## Install and update
|
||||
|
||||
Download the latest version from the [releases page](https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter/releases).
|
||||
Download the latest version from the [releases page](https://proxy.dandaedre.com/gitea/idle-org/deckstride/releases).
|
||||
Choose the portable ZIP for Windows x86_64 or the portable `.tgz` matching Linux
|
||||
x86_64, Linux ARM64, Apple Silicon macOS or Intel macOS. Extract the whole archive,
|
||||
then run `pdf-presenter.exe` or `./pdf-presenter` as directed on the release page.
|
||||
then run `deckstride.exe` or `./deckstride` as directed on the release page.
|
||||
No Rust toolchain, Python or separate PDF renderer is needed to run the application.
|
||||
Linux uses the system desktop services and X11/Wayland libraries. Windows binaries
|
||||
are unsigned; macOS packages are unsigned and require the release-page workaround.
|
||||
|
|
@ -19,11 +19,11 @@ are required.
|
|||
|
||||
On Windows, use **Menu → Preferences… → Set as default PDF app…** to register the
|
||||
portable executable for the current user. Windows opens
|
||||
Default Apps for the required confirmation. Once PDF Presenter is selected for
|
||||
`.pdf`, Explorer uses the icon embedded in `pdf-presenter.exe` for PDF files. Keep
|
||||
Default Apps for the required confirmation. Once Deckstride is selected for
|
||||
`.pdf`, Explorer uses the icon embedded in `deckstride.exe` for PDF files. Keep
|
||||
the extracted folder in a permanent location; repeat the action after moving it.
|
||||
|
||||
To update, close PDF Presenter, download and extract the new portable release,
|
||||
To update, close Deckstride, download and extract the new portable release,
|
||||
and run its executable. Settings and saved layouts live in your user configuration
|
||||
directory, outside the extracted folder. If you installed the Linux launcher, rerun
|
||||
its installer from the new location so it points to the updated binary.
|
||||
|
|
@ -55,7 +55,7 @@ zooming or blanking restarts the interval; dialogs and display confirmation paus
|
|||
## Screens and presentation safety
|
||||
|
||||
When the application starts with exactly one connected screen, it offers
|
||||
**Single-screen mode** and explains that PDF Presenter is intended for a presenter
|
||||
**Single-screen mode** and explains that Deckstride is intended for a presenter
|
||||
setup with separate Presenter and Slides screens. Choose **Keep Presenter view**
|
||||
to continue with the usual controls, or **Use single-screen mode**, then **Keep
|
||||
changes** to save it. This prompt is only offered at startup; disconnecting screens
|
||||
|
|
@ -374,7 +374,7 @@ If your Niri rules still tile it, you can add this optional rule to your own con
|
|||
|
||||
```kdl
|
||||
window-rule {
|
||||
match app-id="^pdf-presenter$" title="^PDF Presenter — All slides$"
|
||||
match app-id="^deckstride$" title="^Deckstride — All slides$"
|
||||
open-floating true
|
||||
}
|
||||
```
|
||||
|
|
@ -398,7 +398,7 @@ its embedded notes. For an image folder, the named file sits beside the folder a
|
|||
uses image filenames as keys. See the [notes format](interfaces/presentation-notes.md).
|
||||
|
||||
**Double-click the notes pane** to edit that slide. If the named notes file does not
|
||||
exist, PDF Presenter creates it with all notes found across the presentation before
|
||||
exist, Deckstride creates it with all notes found across the presentation before
|
||||
opening the editable text. Creation and saving happen in the background.
|
||||
|
||||
Choose **Save notes** to update this page and its auto-fit presenter text. Other
|
||||
|
|
|
|||
|
|
@ -34,15 +34,15 @@ archive-name = "{name}-{bundle}-{target}-v{version}"
|
|||
root = "{name}-{bundle}-{target}-v{version}"
|
||||
cargo-binaries = "all"
|
||||
files = [
|
||||
{ source = "assets/window-icon.png", destination = "pdf-presenter.png" },
|
||||
{ source = "assets/window-icon.png", destination = "deckstride.png" },
|
||||
{ source = "scripts/install-linux-launcher.py", destination = "install-linux-launcher.py", workspace-relative = true },
|
||||
{ source = "LICENSE", destination = "LICENSE.txt", workspace-relative = true },
|
||||
{ source = "docs/portable-quickstart.txt", destination = "README.txt", workspace-relative = true },
|
||||
]
|
||||
|
||||
[[repository.fallbacks]]
|
||||
origin = "https://git.dandaedre.com/idle-org/pdf-presenter"
|
||||
fallback-url = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter"
|
||||
origin = "https://git.dandaedre.com/idle-org/deckstride"
|
||||
fallback-url = "https://proxy.dandaedre.com/gitea/idle-org/deckstride"
|
||||
|
||||
[gitea]
|
||||
token-env = "GITEA_TOKEN"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ def config():
|
|||
|
||||
|
||||
def coverage_floor():
|
||||
key = "headless-line-floor" if os.environ.get("PDF_PRESENTER_HEADLESS_CI") == "1" else "line-floor"
|
||||
key = "headless-line-floor" if os.environ.get("DECKSTRIDE_HEADLESS_CI") == "1" else "line-floor"
|
||||
return config()[key]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ def run(command):
|
|||
if not number.isdecimal() or len(number) > 5:
|
||||
log.seek(0)
|
||||
raise RuntimeError("Xvfb startup failed: " + log.read(2048).decode(errors="replace"))
|
||||
env = dict(os.environ, DISPLAY=f":{number}", PDF_PRESENTER_GUI_TESTS="1")
|
||||
env = dict(os.environ, DISPLAY=f":{number}", DECKSTRIDE_GUI_TESTS="1")
|
||||
env.pop("WAYLAND_DISPLAY", None)
|
||||
env.pop("WAYLAND_SOCKET", None)
|
||||
return subprocess.run(command, env=env, timeout=1800).returncode
|
||||
|
|
|
|||
|
|
@ -12,24 +12,24 @@ def desktop_entry(binary, icon):
|
|||
command = str(binary).replace("%", "%%")
|
||||
for char in ("\\", '"', "`", "$"):
|
||||
command = command.replace(char, "\\" + char)
|
||||
return ('[Desktop Entry]\nType=Application\nName=PDF Presenter\n'
|
||||
return ('[Desktop Entry]\nType=Application\nName=Deckstride\n'
|
||||
'Comment=Multiscreen PDF and picture presenter\n'
|
||||
f'Exec="{string(command)}" %f\nIcon={string(icon)}\n'
|
||||
'Terminal=false\nCategories=Office;Presentation;\n'
|
||||
'MimeType=application/pdf;\nStartupWMClass=pdf-presenter\n')
|
||||
'MimeType=application/pdf;\nStartupWMClass=deckstride\n')
|
||||
|
||||
|
||||
def main():
|
||||
if not sys.platform.startswith("linux"):
|
||||
raise SystemExit("This optional launcher is for Linux only.")
|
||||
root = Path(__file__).resolve().parent
|
||||
binary, icon = root / "pdf-presenter", root / "pdf-presenter.png"
|
||||
binary, icon = root / "deckstride", root / "deckstride.png"
|
||||
if not binary.is_file() or not icon.is_file():
|
||||
raise SystemExit("Run this script from the extracted portable Linux bundle.")
|
||||
data = Path(os.environ.get("XDG_DATA_HOME") or Path.home() / ".local/share")
|
||||
if not data.is_absolute():
|
||||
raise SystemExit("XDG_DATA_HOME must be absolute.")
|
||||
target = data / "applications/pdf-presenter.desktop"
|
||||
target = data / "applications/deckstride.desktop"
|
||||
target.parent.mkdir(parents=True, exist_ok=True)
|
||||
target.write_text(desktop_entry(binary, icon), encoding="utf-8")
|
||||
print(f"Installed {target}. Keep the portable folder at {root}.")
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ def main():
|
|||
f"License expression: {package['license']}\n"
|
||||
f"Source: {package.get('repository') or 'https://crates.io/crates/' + package['name']}\n"
|
||||
+ "\n".join(notices))
|
||||
font_license = ROOT / "crates/pdf-presenter/assets/fonts/OFL.txt"
|
||||
font_license = ROOT / "crates/deckstride/assets/fonts/OFL.txt"
|
||||
font_text = font_license.read_text()
|
||||
font_digest = hashlib.sha256(font_text.encode()).hexdigest()[:16]
|
||||
texts[font_digest] = font_text
|
||||
|
|
@ -40,7 +40,7 @@ def main():
|
|||
"License expression: OFL-1.1\n"
|
||||
"Source: https://github.com/notofonts/noto-cjk/releases/tag/Sans2.004\n"
|
||||
f" assets/fonts/OFL.txt: text {font_digest}")
|
||||
header = ("PDF Presenter — locked dependency and font notices\n"
|
||||
header = ("Deckstride — locked dependency and font notices\n"
|
||||
"Generated by scripts/notices.py. Includes target/build-only dependencies;\n"
|
||||
"the presence of a package here does not mean it is linked on every OS.\n"
|
||||
"Unmodified source packages are available at https://crates.io.\n"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ for name do
|
|||
[ -f "$src" ] && [ -s "$src" ] && [ ! -L "$src" ] || { echo "Invalid badge source: $src" >&2; exit 2; }
|
||||
done
|
||||
dest=$root
|
||||
for component in idle-org pdf-presenter; do
|
||||
for component in idle-org deckstride; do
|
||||
dest="$dest/$component"
|
||||
[ ! -L "$dest" ] || { echo "Refusing directory symlink: $dest" >&2; exit 2; }
|
||||
if [ -e "$dest" ]; then
|
||||
|
|
|
|||
|
|
@ -89,15 +89,15 @@ class BadgeTests(unittest.TestCase):
|
|||
public = self.root / "public"
|
||||
public.mkdir(exist_ok=True)
|
||||
self.assertEqual(self.publish(public, "version", "test", "coverage").returncode, 0)
|
||||
self.assertEqual((public / "idle-org/pdf-presenter/main/coverage.svg").read_bytes(), measured)
|
||||
self.assertEqual((public / "idle-org/deckstride/main/coverage.svg").read_bytes(), measured)
|
||||
self.assertFalse(Path("coverage/.coverage-ready-42").exists())
|
||||
self.assertIn("failing", Path("coverage/test.svg").read_text())
|
||||
|
||||
def test_headless_floor_is_explicit_and_still_enforces_threshold_and_tool_errors(self):
|
||||
for enabled, floor in [("", 75), ("0", 75), ("1", 60)]:
|
||||
with patch.dict(os.environ, {"PDF_PRESENTER_HEADLESS_CI": enabled}):
|
||||
with patch.dict(os.environ, {"DECKSTRIDE_HEADLESS_CI": enabled}):
|
||||
self.assertEqual(ci.coverage_floor(), floor)
|
||||
with patch.dict(os.environ, {"PDF_PRESENTER_HEADLESS_CI": "1"}):
|
||||
with patch.dict(os.environ, {"DECKSTRIDE_HEADLESS_CI": "1"}):
|
||||
for covered, status, expected in [(6521, 0, 0), (6000, 0, 0), (5999, 0, 1), (6521, 7, 7)]:
|
||||
with self.subTest(covered=covered, status=status), contextlib.redirect_stdout(io.StringIO()):
|
||||
self.assertEqual(ci.measure(self.report(covered), ci.coverage_floor(), status), expected)
|
||||
|
|
@ -148,7 +148,7 @@ class BadgeTests(unittest.TestCase):
|
|||
public = self.root / "public"
|
||||
public.mkdir()
|
||||
self.assertEqual(self.publish(public, "version", "test", "coverage").returncode, 0)
|
||||
destination = public / "idle-org/pdf-presenter/main"
|
||||
destination = public / "idle-org/deckstride/main"
|
||||
for directory in (public / "idle-org", destination.parent, destination):
|
||||
self.assertEqual(stat.S_IMODE(directory.stat().st_mode), 0o755)
|
||||
for path in destination.iterdir():
|
||||
|
|
@ -174,7 +174,7 @@ class BadgeTests(unittest.TestCase):
|
|||
def test_readme_urls_and_exact_archive_selection(self):
|
||||
text = (ROOT / "README.md").read_text()
|
||||
for kind in ("version", "test", "coverage"):
|
||||
self.assertEqual(text.count(f"https://assets.dandaedre.com/coverage/idle-org/pdf-presenter/main/{kind}.svg"), 1)
|
||||
self.assertEqual(text.count(f"https://assets.dandaedre.com/coverage/idle-org/deckstride/main/{kind}.svg"), 1)
|
||||
self.assertIn("artifacts: 'coverage/version.svg,coverage/test.svg,coverage/coverage.svg'",
|
||||
(ROOT / "Jenkinsfile").read_text())
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class GuiCiTests(unittest.TestCase):
|
|||
server = Path(directory) / "Xvfb"
|
||||
server.write_text(f"#!{sys.executable}\nimport os,sys,signal\nos.write(int(sys.argv[2]),b'47\\n')\nsignal.pause()\n")
|
||||
server.chmod(0o700)
|
||||
command = [sys.executable, "-c", "import os,sys; assert os.environ['DISPLAY']==':47'; assert os.environ['PDF_PRESENTER_GUI_TESTS']=='1'; assert 'WAYLAND_DISPLAY' not in os.environ; sys.exit(7)"]
|
||||
command = [sys.executable, "-c", "import os,sys; assert os.environ['DISPLAY']==':47'; assert os.environ['DECKSTRIDE_GUI_TESTS']=='1'; assert 'WAYLAND_DISPLAY' not in os.environ; sys.exit(7)"]
|
||||
with patch.object(gui.shutil, "which", return_value=str(server)):
|
||||
self.assertEqual(gui.run(command), 7)
|
||||
# Invalid readiness cannot run the requested command.
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@ spec.loader.exec_module(launcher)
|
|||
|
||||
class LauncherTests(unittest.TestCase):
|
||||
def test_exec_escapes_field_codes_and_shell_characters(self):
|
||||
entry = launcher.desktop_entry('/tmp/a b%f/$x`y"/pdf-presenter', '/tmp/icon.png')
|
||||
entry = launcher.desktop_entry('/tmp/a b%f/$x`y"/deckstride', '/tmp/icon.png')
|
||||
self.assertIn('%%f', entry)
|
||||
self.assertIn('\\\\$', entry)
|
||||
self.assertIn('\\\\`', entry)
|
||||
self.assertIn('StartupWMClass=pdf-presenter', entry)
|
||||
self.assertIn('StartupWMClass=deckstride', entry)
|
||||
self.assertIn('" %f\n', entry)
|
||||
|
||||
@unittest.skipUnless(sys.platform.startswith("linux"), "Linux launcher integration")
|
||||
|
|
@ -29,17 +29,17 @@ class LauncherTests(unittest.TestCase):
|
|||
bundle.mkdir()
|
||||
script = bundle / SCRIPT.name
|
||||
script.write_bytes(SCRIPT.read_bytes())
|
||||
(bundle / 'pdf-presenter').touch()
|
||||
(bundle / 'pdf-presenter.png').touch()
|
||||
(bundle / 'deckstride').touch()
|
||||
(bundle / 'deckstride.png').touch()
|
||||
env = dict(os.environ, XDG_DATA_HOME=str(root / 'data'))
|
||||
result = subprocess.run(
|
||||
[sys.executable, str(script)], env=env, capture_output=True, text=True
|
||||
)
|
||||
self.assertEqual(result.returncode, 0, result.stderr)
|
||||
installed = root / 'data/applications/pdf-presenter.desktop'
|
||||
installed = root / 'data/applications/deckstride.desktop'
|
||||
self.assertEqual(installed.read_text(), launcher.desktop_entry(
|
||||
bundle / 'pdf-presenter', bundle / 'pdf-presenter.png'))
|
||||
(bundle / 'pdf-presenter').unlink()
|
||||
bundle / 'deckstride', bundle / 'deckstride.png'))
|
||||
(bundle / 'deckstride').unlink()
|
||||
result = subprocess.run(
|
||||
[sys.executable, str(script)], env=env, capture_output=True, text=True
|
||||
)
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ Local changes:
|
|||
Cached primitives, alpha compositing, canvas buffers and general UI drawing keep
|
||||
their upstream representation. No new coverage exclusions were added.
|
||||
|
||||
Tests: `crates/pdf-presenter/tests/zoom.rs`, `slide_colors.rs`, and native tests.
|
||||
Tests: `crates/deckstride/tests/zoom.rs`, `slide_colors.rs`, and native tests.
|
||||
They compare optimized pixels with the general raster path, exercise clipping/DPI,
|
||||
alpha and crop bounds, and check that panning does not upload another texture.
|
||||
Benchmark: `cargo test --release --test zoom buffered_zoom_drawing_measurement --
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
//! PDF Presenter patch: bounded scanline sampling for cropped, untinted image quads.
|
||||
//! Deckstride patch: bounded scanline sampling for cropped, untinted image quads.
|
||||
//! Keep general meshes, fonts, wrapping, full images and tinting on the upstream path.
|
||||
use crate::{BufferMutRef, EguiTexture};
|
||||
use alloc::vec::Vec;
|
||||
|
|
|
|||
Loading…
Reference in New Issue