feat: Wonder Ink looks like the classroom, and its preview shows the page
The tab strip is drawn from the classroom's own palette, the one the panel, Parent Call and Presentations read: larger titles, an accent under the active tab, worksheets marked with a document icon. Its one corner widget is the lesson's size and Print — not a new-tab button. With one tab the strip stays hidden, as before; a change of size shows a moment's badge instead, and the right-click menu and keys still work. The window is named "Lesson — Wonder Ink" and carries its own icon. The print preview showed "Page 1 could not be shown" in the real session while printing correctly: poppler 25.03 does not write to stdout when asked for "-" — it writes a file called "-.png" into the current directory, which for Wonder Ink is the teacher's home. Pages are now rendered into a directory of their own, and the lab print check fails any preview that does not draw its page. The teacher's manual has lesson size and printing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
48b3097c43
commit
1cb9fd35d2
@@ -388,8 +388,13 @@ check("fullscreen still returns to a maximised window",
|
||||
# One text box exists, and it is the print preview's page range. Anywhere
|
||||
# else a text box in this window is an address bar.
|
||||
preview = wonderink[wonderink.index("class PrintPreview"):wonderink.index("\ndef notify")]
|
||||
# The tab strip has one corner widget, and it is the lesson's size and
|
||||
# Print — not the new-tab button a browser puts there.
|
||||
controls = wonderink[wonderink.index("class LessonControls"):wonderink.index("class ZoomBadge")]
|
||||
check("still no new-tab button or address bar",
|
||||
"setCornerWidget" not in wonderink
|
||||
wonderink.count("setCornerWidget(") == 1
|
||||
and "setCornerWidget(self._controls" in wonderink
|
||||
and "open_tab" not in controls and "QLineEdit" not in controls
|
||||
and wonderink.count("QLineEdit(") == 1 and "QLineEdit(" in preview)
|
||||
|
||||
print()
|
||||
|
||||
Reference in New Issue
Block a user