Review Request: Add Odd/Even Page Set and Server Side Page Range to Qt Print Dialog via CUPS

John Layt johnlayt at googlemail.com
Sun Oct 4 19:13:03 BST 2009


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/1785/
-----------------------------------------------------------

Review request for kdelibs.


Summary
-------

With the printing enhancements not making it into Qt 4.6, we need an interim fix to provide Odd/Even page selection and support of server side page range selection.  This is possible by extending the current CUPS support to provide these features under CUPS only.

1) Odd/Even pages.  This is achieved through a hack to add extra widgets to the actual Qt dialog Copies tab by using findWidget() and insertWidget().  This is the only controversial part and the bit I want review on that it is acceptable in kdelibs and I've done it right.  See KCupsOptionsSettingsWidget::initPageSet() for the code that does this.  If not acceptable this can be moved to the Pages tab, but this is a less user friendly solution.

2) Server side page range selection.  Some apps like Kate and Konqi can't/don't do page selection and force the user to print the entire document.  Cups does support selecting the pages for the app and this change allows the app to set a flag to tell it to do so.

Note also that I have now made all the KDE-added CUPS features only be added if the Qt version is < 4.7 as I'm fairly certain the new features will be available in Qt by then.


Diffs
-----

  trunk/KDE/kdelibs/kdeui/CMakeLists.txt 1030948 
  trunk/KDE/kdelibs/kdeui/dialogs/kcupsoptionssettingswidget_p.h PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/dialogs/kcupsoptionssettingswidget_p.cpp PRE-CREATION 
  trunk/KDE/kdelibs/kdeui/dialogs/kdeprintdialog.h 1030948 
  trunk/KDE/kdelibs/kdeui/dialogs/kdeprintdialog.cpp 1030948 

Diff: http://reviewboard.kde.org/r/1785/diff


Testing
-------

My ink cartridge is getting very low :-)


Screenshots
-----------

Qt dilog with Page Set combo added to Copies tab
  http://reviewboard.kde.org/r/1785/s/216/
Qt dilog with Page Set combo added to Copies tab
  http://reviewboard.kde.org/r/1785/s/217/
Hack Page Set combo into QPrintDialog
  http://reviewboard.kde.org/r/1785/s/218/


Thanks,

John





More information about the kde-core-devel mailing list