[PULL REQUEST] Initial print dialog options widget

Lubomir I. Ivanov neolit123 at gmail.com
Wed Jul 10 01:46:23 PDT 2013

i followed the advise of Tomaz and did a separate widget in printoptions.h/cpp
(PrintOptions) which holds all the same-as-GTK print tab controls.

currently there is also a printdialog.h/cpp which will be using when
testing the actual print layout logic. later it can be replaced with the
forked QPrintDialog and have the PrintOptions widget in a tab, as discussed.

this is pretty much the dialog part only which modifies values in a
'struct options' (display.h) on each user interaction. i'm thinking of
creating another class (e.g. PrintLayout), which will handle the page
layouts based on the options struct and printer settings.

if you have any comments please go ahead.

The following changes since commit 35356e364d2f0765c04c6d8838ff403743d20ae3:

  Calculate deco stops, TTS and NDL (2013-07-05 22:29:36 -0700)

are available in the git repository at:

  git at github.com:neolit123/subsurface.git print

for you to fetch changes up to 74f989bc46a06c124283fa851a06dd093f817c96:

  Print: connect all the options widgets to slots (2013-07-10 11:06:01 +0300)

Lubomir I. Ivanov (6):
      Print: add UI for a print dialog
      Print: add all controls to the print options widget
      Print: further adjust the print options widget UI
      Print: label update on height slider move
      Print: correct tab order in the options widget
      Print: connect all the options widgets to slots

 Makefile               |   4 +
 qt-ui/mainwindow.cpp   |   3 +-
 qt-ui/printdialog.cpp  |  43 ++++++
 qt-ui/printdialog.h    |  25 +++
 qt-ui/printoptions.cpp | 132 ++++++++++++++++
 qt-ui/printoptions.h   |  42 +++++
 qt-ui/printoptions.ui  | 411 +++++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 659 insertions(+), 1 deletion(-)
 create mode 100644 qt-ui/printdialog.cpp
 create mode 100644 qt-ui/printdialog.h
 create mode 100644 qt-ui/printoptions.cpp
 create mode 100644 qt-ui/printoptions.h
 create mode 100644 qt-ui/printoptions.ui

More information about the subsurface mailing list