Skip to content

fix: P0 issues — Wayland, menus, content box, spread order, deskew/oblique - #133

Closed
pablogventura wants to merge 3 commits into
ScanTailor-Advanced:masterfrom
pablogventura:fix/p0-plan-issues
Closed

fix: P0 issues — Wayland, menus, content box, spread order, deskew/oblique#133
pablogventura wants to merge 3 commits into
ScanTailor-Advanced:masterfrom
pablogventura:fix/p0-plan-issues

Conversation

@pablogventura

Copy link
Copy Markdown

Summary

Single integration branch addressing P0 tracker items in one PR (can be split on request).

#97 Wayland (Qt5)

  • Default QT_QPA_PLATFORM=xcb when XDG_SESSION_TYPE=wayland and platform not set.
  • Opt-out: SCANTAILOR_NO_XCB_FALLBACK=1. README updated.

#75 Multi-monitor context menus

  • QMenu parent set to thumbnail view for correct placement.

#90 Manual content box vs page/offcut changes

  • Translate manual contentRect with page rect center shift, then clip; fallback to content refresh if invalid.

#62 Two-page spread reading order

  • ProjectPages::setLayoutDirection + Tools action Reverse two-page spread order; OutputFileNameGenerator updated with layout direction.

#117 Deskew vs oblique parameter model

  • Separate oblique auto/manual (oblique-mode in XML), UI row Oblique mode, Apply To… checkboxes (deskew / oblique) with per-page merge.
  • CacheDrivenTask: incomplete thumbnail when oblique is auto and deps mismatch.

Testing

  • cmake --build build, core_tests --run_test=DeskewParamsTestSuite

Feedback requested

Please try real workflows (especially #90 offcut round-trip, #62 Japanese-style order, #117 copy/apply combinations) and report on this PR.

@zvezdochiot

Copy link
Copy Markdown

Hi @pablogventura .

The logic is broken in the "Deskew vs oblique parameter model". As a result, the interface is buggy and the result is unclear.

sta-deskew-oblique-am-1 1 4

@pablogventura

Copy link
Copy Markdown
Author

Thanks a lot for taking the time to test and for the screenshot — that is exactly the kind of feedback we need.

To reproduce the same “Deskew vs oblique parameter model” problem on our side, could you please list minimal steps (from a new project or a tiny sample): which page, which mode (Auto deskew / oblique on or off), and what you click before the UI ends up in the state you showed? If you can also name the branch/commit you built (or confirm it is the latest push on this PR), that helps match your build to ours.

Deskew vs oblique semantics and copy behaviour are also tracked in #117. If your report is mostly about parameter coupling / unclear results rather than the Wayland or menu fixes bundled here, we may split a narrow follow-up so this PR does not grow without a clear scope.

Again, thank you — we will follow up once we can reproduce the same state locally.

@zvezdochiot

zvezdochiot commented Apr 20, 2026

Copy link
Copy Markdown

@pablogventura say:

To reproduce the same “Deskew vs oblique parameter model” problem on our side, could you please list minimal steps

Branch: https://github.com/pablogventura/scantailor-advanced/tree/fix/p0-plan-issues

Step "3. Deskew" -> "Oblique mode" = "Manual". All. (See screenshot up).

… deskew/oblique

- ScanTailor-Advanced#97: Default to QT_QPA_PLATFORM=xcb on Wayland (Qt5) unless SCANTAILOR_NO_XCB_FALLBACK; README.
- ScanTailor-Advanced#75: Use QMenu with thumbnail view parent for page context menus.
- ScanTailor-Advanced#90: Translate manual content rect with page rect center when page box updates.
- ScanTailor-Advanced#62: ProjectPages::setLayoutDirection + Tools action to reverse two-page spread order; OutputFileNameGenerator setter.
- ScanTailor-Advanced#117: Separate oblique Auto/Manual (Params + oblique-mode XML), Apply To checkboxes, merge per target page; CacheDrivenTask incomplete thumb when oblique auto.
@pablogventura

Copy link
Copy Markdown
Author

Rebased on current master (including merged #114, #141, #142). Deskew/oblique handling was reconciled: #117-style oblique-mode and independent Apply To… merge paths are kept, with XML compatibility for legacy autoOblique from #114.

Please review when you can — we are not merging yet and would like community feedback on:

Manual test: open a real project, exercise the items above, report works / partial / broken with STA version and OS.

Maintainers have not run full GUI QA on this push; local build succeeded after rebase.

@pablogventura

Copy link
Copy Markdown
Author

pablogventura added a commit to pablogventura/scantailor-advanced that referenced this pull request May 22, 2026
Remove two-page spread order menu action and handler that belong
in the P0 bundle (ScanTailor-Advanced#133 / ScanTailor-Advanced#62). Fixes CI build after rebase on master.
@pablogventura

Copy link
Copy Markdown
Author

Friendly reminder for @zvezdochiot: when you have a moment, could you re-test the deskew vs oblique flow on the current branch after the May 22 rebase?

Minimal steps:

  1. Build from fix/p0-plan-issues (or latest CI artifact on this PR).
  2. Open a project → Step 3. Deskew → toggle Oblique / Auto deskew and Apply to… paths.
  3. Report whether the UI and result match expectations (screenshot welcome if something still looks wrong).

We are holding merge on this bundle until we have that feedback. Thanks again for the earlier report.

pablogventura added a commit to pablogventura/scantailor-advanced that referenced this pull request May 24, 2026
Remove two-page spread order menu action and handler that belong
in the P0 bundle (ScanTailor-Advanced#133 / ScanTailor-Advanced#62). Fixes CI build after rebase on master.
@pablogventura
pablogventura deleted the fix/p0-plan-issues branch May 24, 2026 02:22
@pablogventura

Copy link
Copy Markdown
Author

Update: PR #133 was closed accidentally when the fix/p0-plan-issues branch was deleted during routine branch cleanup (2026-05-24). GitHub auto-closes a PR when its head branch is removed.

Work continues in #152 (restored branch, rebased on current master). Please use #152 for review and CI going forward.

vigri added a commit that referenced this pull request May 24, 2026
fix: P0 bundle — Wayland, menus, content box, spread order, deskew/oblique (reopens #133)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants