Currently, print preview is done by exporting document to PDF and launching external PDF viewer. Implement real print preview dialog either by:
exporting document to svg (by the typesetter) and render it by native Qt engine,
or use libpoppler to render the generated pdf file.
In the print preview dialog, allow user to set the staff size, paper size, margins etc. I assume those would be document-wide settings.
It might be feasible not to add a separate print preview dialog, but embed the print preview widget inside the document properties dialog (on the left?), because all those settings would probably be settable in this dialog anyway.
I think it would be even better not to export at all but instead use our main typesetter (lilypond) as external library. As we use fix command line options the input/output handling could be done directly in memory.
Currently, print preview is done by exporting document to PDF and launching external PDF viewer. Implement real print preview dialog either by:
In the print preview dialog, allow user to set the staff size, paper size, margins etc. I assume those would be document-wide settings.
It might be feasible not to add a separate print preview dialog, but embed the print preview widget inside the document properties dialog (on the left?), because all those settings would probably be settable in this dialog anyway.