mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
f087820757
setProjectTitle(title) folioBorder(folio, prop) setFolioBorder(folio, prop, value) The frame is the grid of columns and rows around a folio: columns, column-width, display-columns, rows, row-height, display-rows -- the six fields the folio properties panel offers -- through ChangeBorderCommand, so it undoes like a hand edit. The title block's header sizes, which the panel does not offer, are left alone. Changing the project title is not undoable, because the application sets it directly too. Counts are 1 to 99 and sizes 1 to 1000. The panel's upper limits are the same; its lower limit is 0, which is not offered: a grid with no columns has no use here and 0 was not tested, so it is refused rather than assumed safe. The extremes that are offered (99 x 99 cells, widths from 1 to 1000) were exported to PNG without a hang or crash. Fractions, out of range values, an unknown property and a bad folio are refused with a reason. Verified: ten columns of 40 and four rows of 100, undo of the last change, and the folio and the renamed project read back after a reload. My first reload check read the wrong folio and briefly looked like the border was not persisted; the file itself had the right values. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>