[PULL REQUEST] GSoC Printing: part 3
Lubomir I. Ivanov
neolit123 at gmail.com
Sun Jul 5 11:26:46 PDT 2015
These are the third series from Gehad. Not much is happening visually except
fixes for the "print selected" issue and the addition of the template editor
dialog. The template edit itself is WIP.
There is also the addition of the "Preview" window which we had in the previous
Qt implementation.
This patch:
"Printing: choose printing color mode 'color/greyscale'"
does something (QPrinter->setColorMode()) which isn't portable for the "Preview"
window and an alternative needs to be used, as already discussed on the ML.
-----
The following changes since commit 74e295698629f27178abac7fee0ac61fc80fc63d:
INSTALL file: a few more changes (2015-07-04 09:20:36 -0700)
are available in the git repository at:
git at github.com:neolit123/subsurface.git custom-print
for you to fetch changes up to cc53dc7acf801f022612678f697e6d76c2443153:
Printing: implement QPlainTextEdit in TemplateEdit (2015-07-05 21:03:12 +0300)
----------------------------------------------------------------
Gehad elrobey (19):
Printing: add QPrintPreviewDialog to main dialog
Printing: print all dives if 'print selected' is unchecked
Printing: make dive profile scale dependant on the page size and DPI
Printing: choose printing color mode 'color/greyscale'
Printing: fix two dives per page borders and text font
Printing: show warning message for WIP features
Printing: add TemplateEdit form to source tree
Printing: call TemplateEdit when edit is triggered
Printing: add template_options struct that contains template
Printing: add QSettings for TemplateEdit class
Printing: pass the template_options struct to TemplateLayout
Printing: export template_options struct to Grantlee engine
Printing: edit templates to show template options dynamically
Printing: retrieve number of dives per page from the template file
Printing: add custom options to the PrintDialog
Printing: add functions that read/write a template
Printing: refactor the print options class
Printing: move template_options to print_options.h
Printing: implement QPlainTextEdit in TemplateEdit
CMakeLists.txt | 1 +
printer.cpp | 36 +++---
printer.h | 4 +-
printing_templates/custom.html | 50 ++++++++
printing_templates/one_dive.html | 12 +-
printing_templates/two_dives.html | 37 ++++--
qt-ui/printdialog.cpp | 45 ++++++-
qt-ui/printdialog.h | 2 +
qt-ui/printoptions.cpp | 25 +++-
qt-ui/printoptions.h | 16 ++-
qt-ui/printoptions.ui | 5 +
qt-ui/templateedit.cpp | 61 +++++++++
qt-ui/templateedit.h | 36 ++++++
qt-ui/templateedit.ui | 262 ++++++++++++++++++++++++++++++++++++++
templatelayout.cpp | 46 ++++++-
templatelayout.h | 29 ++++-
16 files changed, 615 insertions(+), 52 deletions(-)
create mode 100644 printing_templates/custom.html
create mode 100644 qt-ui/templateedit.cpp
create mode 100644 qt-ui/templateedit.h
create mode 100644 qt-ui/templateedit.ui
More information about the subsurface
mailing list