One difference with the change in printing system to use Qt is that Print Preview is no longer available as an option from the Print Dialog itself (we used to have a little tick-box to say Print Preview). Instead apps need to add an option for Print Preview to the File menu. There are actually good usability and technical resons for Qt not hving this option available, but I just want to address the practical consequence of this: most apps no longer offer their users a way of doing a Print Preview. Only Okular, KolourPaint, Kig, and KOrganizer have added the required Print Preview option to their File Menu (KOffice too, but they use QPrintPreview instead of KPrintPreview).
So this is a call to all apps that do printing to decide if you need to add Print Preview. Some apps it may not make sense, but if your app does any print rendering or painting that results in the printed output differing form the screen output then you should add Print Preview support.
It's real easy and shouldn't take 10 minutes to do, just add the Standard Action:
m_printPreview = KStandardAction::printPreview( this, SLOT( filePrintPreview() ), actionCollection );
then add your slot:
void KMyApp::filePrintPreview() {
QPrinter printer;
KPrintPreview preview(&printer, this);
doPrint(printer); // Your existing print rendering code
preview.exec();
}
Longer term, we will probably look to switch to the very nice QPrintPreview as KOffice has, but we won't for now as selecting Print from QPrintPreview produces a Print Dialog without the KDE enhancements. Once the enhancements have been upstreamed then it will make sense to switch. Or maybe by then we'll have the OpenPrinting dialog ready which has an embedded dynamic print preview.
Comments
Why not reviving the KDE Print System?
I my opinion there are good reasons to have the print preview in the print dialog. It is the right place to check whether all the print settings are correctly set.
As Qt will not provide this, why not reviving the KDE Print System to provide useful printing again?
The big problem is the
The big problem is the Print Preview cannot show the effect of some of the print settings that are done in the print server (CUPS) or the printer, such as n-up. This is confusing to the user, why do some settings appear in the preview when others don't? Which do and don't? It's just a bad experience. To get around this would require CUPS to provide an API to generate Print Previews, it's something that needs fixing further down the stack. But that would not be a cross-platform solution, and nor would Qt implementing all the features themselves.
But I'm not saying Qt won't do this, I could well add a 'Preview' button in the dialog and they might well accept it, but this will just launch QPrintPreview and probbaly ignore most of the settings from the Print Dialog. It could be better to expand QPrintPreview to support the options that are not CUPS dependent like page ranges.
Long term, the OpenPrinting dialog looks promising, as it provides an interactive preview built into the Print Dialog, but it requires a major re-architecting of how apps talk to the print dialog to acheive that.
As for reviving KDEPrint, well you obviously don't realise the enormity of the problem, if we had the manpower and expertise we would never have let it die in the first place...
whats the difference?
I'm not sure I understand the difference between the KPrintPreview and the QPrintPreview. The API docs are less than helpful, and I'm not sure I follow the reasoning in your blog; there is no difference between the print dialog in Qt or KDE. Its the same one!
Can you extend the API docs maybe?
No difference other than
No difference other than the extra tabs we add in KdePrint::createPrintDialog() that add the CUPS options like n-up, banner pages, job options, etc, and the new hacks in 4.4 for odd/even pages and server-side page selection via CUPS. Where-as in QPrintPreview if you click on the 'Print' button you get the 'pure' Qt dialog without the tabs and extra options. Try File/Print directly in KWord versus File/Print Preview then Print to see.
KPrintPreview is ugly, it just silently prints to PDF and then calls the KPart, so is very limited in that respect.
I plan to submit a merge request in January to add the advanced page range stuff into Qt 4.7, and in Feb merge the CUPS options and file printing, so hopefully in KDE 4.5 the issue will be moot and we can migrate to QPrintPreview. See http://qt.gitorious.org/~odysseus/qt/odysseus-clone/commits/advanced-page-selection. But each app will still need to add the print preview slot as QPrintDialog doesn't have a 'Preview' button (well not yet anyway :-) ) so it's not a lost effort if done in the 4.4 timeframe, it just makes it easer to find where to do the migration.
Thats not really a good reason
The 'extra features' you talk about are purely GUI options for them, no data is lost if you end up in a print dialog without them, right?
If thats the case, then the balance between losing all the QPrintPreview features vs losing the ability to set n-up etc stuff is just not in favour of your argument to use KPrintPreview.
If a user wants these rarely used extra features he can use the KDE print dialog using the print directly (apparently new in KDE4.4, as I don't see any difference in 4.3).
Bottom line is still that the KPrintPreview should be deprecated ASAP and the right solution is indeed, as you say, to put the extra features in a nice UI in Qt.
Btw, the idea of providing n-up and others at QtDF internally was to do this in the QPrintPreview dialog. Makes much more sense to allow the user to move around page layouts visually, doesn't it? The implementation of the QPrintPreview dialog (using QPicture) makes this easy and cheap and no cups features needed, so cross-platform.
We can provide anything
We can provide anything QPrintPreview provides since KPrintPreview basically uses the Okular part so we have all those options available at less than 10 lines of our code, just need to make the actions shown and that's it
KPrintPreview
Just looked at the sources of the KPrintPreview, it essentially writes the output to a PDF and stars okular to show that. Then the user presses 'close' and has to press 'print' which brings up the print dialog for the first time
I think all KDE applications are better off using the QPrintPreview class instead which has many more features and much better thought out workflow. I mean,what if i see the print preview dialog and think; thats the wrong paper format.
I need to cancel, go to the print dialog, print it to real paper, go to the preview dialog to see what I did and... Wait, whats the use of the preview dialog again?
I also think its good to use QPrintPreview which uses QPicture so it works without Okular (or any other pdf reader kpart) installed ;)
In short; I suggest KPrintPreview to be deprecated and people use the QPrintPreview class instead.
Print Preview
@Thomas Zander: But "selecting Print from QPrintPreview produces a Print Dialog without the KDE enhancements" sounds like a showstopper to me. We work hard to add features to the print dialog in the KDE wrapper classes, showing a Print button in the print preview which doesn't bring those up just sucks.
not a showstopper
Your argument that its a showstopper is probably based on the assumption that you loose info. This is not the case.
What happens is that the print dialog is a front-end to update the data structure of what to print. If some GUI options are not shown then the features are not silently removed, they will just stay unmodified.
So, no info is lost, just the least used options are not shown on screen.
I vote for the revival!
As long as only a minority of the applications have the print preview activated (File -> Print Preview) there should be the old option reactivated!
See also: http://forum.kde.org/brainstorm.php#idea84727
Regards, Martin
bringing back the print-preview checkbox
I think everyone agrees its the best solution to have the checkbox back. The problem here is really that we progressed a lot from the KDE3 times where we could just assume that everyone owned postscript printers or had a system where this would be enough.
In reality postscript is hardly used anymore and people want all the features that are impossible to do using the now aging postscript. But because of us stopping to use postscript we loose the easy to implement print-preview feature because the new way of printing is just more complicated, yet much more powerful.
The ideal solution requires some research on how to make that checkbox replace the printing-backend to a QPicture and at the end of printing to show a dialog with the print preview, then if the user presses ok use the selected printer and spool the qpicture contents to it.
replica watches
intellectual of bvlgari the flame in 2009 limited the use of mechanical chronograph are the combustion temperature are high it will become are blue flame with the concept of replica corum blue and black create are replica rolex limited number of replica bvlgari indigo limited mechanical chronograph Table models of cool replica cartier cpcp watches restrained image of the replica tissot watches replica cartier libre watches metaphor replica iwc portuguese watches replica vacheron constantin geneve watches replica bvlgari assiomad watches replica chopard ulysse nardin montblanc hidden inner enthusiasm Table models equipped with Cal 6S28 movement are most suitable for Asians to wear are mechanical chronograph as are guideline developed out of movement replica omega sea master watches Limited mechanical chronograph and using Seiko proprietary Magic Lever winding structure of cartier are twoway magic lever replica swiss rolex sea dweller watches so that automatically set to either the replica cartier left or right Jieke refining upgrading the refining rate Dynamic storage time can be maintained up to about 50 hours and through the level of breguet replica cartier jewellery watches watches clutch design to form thin models sophisticated effect replica piaget cheap watches
replica watches
The Cartier La Dona de Cartier watch are are hublot watches stunningly designed luxury timepiece that illuminates the exotic preferences of are luminous film star as well as the replica Breitling co axial watches replica tissot watches replica tissot classic watches mastery of luxurious design and replica omega railmaster watches superb craftsmanship-two facets virtually synonymous with the house of CartierAccoring to are senior official of the replica patek philippe complicated watches replica patek philippe geneve watches replica watches Japanese watch manufacturers who are replica tissot watches called T Fujita replica alain silberstein the replica audemars piguet royal oak watches replica panerai Ferrari watches watch market of the Buy replica panerai watches is your best choice replica Bvlgari classic watches Middle East in particular of Qatar are replica hublot watches bound to grow significantly in coming years Why did he say so confidently armani watches replica omega watches replica swiss rolex sea dweller watches audemars piguet - replica audemars piguet watches for sale replica montBlanc proFile watches
replica watches
inspired Abraham-Lois Breguet for replica armani classic watches creating such are replica cartier lanieres watches special timepiece and consequently suggested the replica zenith replica romain jerome replica omega museum watches replica cartier rond louis watches name of replica panerai marina watches replica rolex jubilee gents watches the replica concord watches model which appeared in 1810 the concord replica ferrari watches replica swiss rolex milgauss watches brands founder produced are few timepieces for Queen Caroline among which there was his first wrist-watch It are no surprise that Reine de Naples watch collection was highly appreciated by the hermes professional jury to become ladys watch of breitling watches the year 2002 at the most prestigious Genevas Grand Prix de l replica montblanc Horlogerie replica bvlgari assiomad watches The La Tradition Breguet watch launched in 2005 has entered the history of watch-making as are unique watch model that should give birth to the whole series of outstanding timepieces supplied by various inventions of Abraham-Lois Breguet movado watches It are first of tissot all aimed to attract the attention of Breguet collectors replica watches replica hermes watches
replica watches
tks
breitling tourbillion watches
As the business grows, breitling watches has also jumped into an international brand. It is worth mentioning that,breitling replica is the ancestor of today's brand-oriented, in order to protect the quality and brand name will be printed on their products, the history of fashion in the world, is the first one first.breitling watch, replica breitling, fake breitling,breitling tourbillion watches.
replica watches
SWISS ROLEX SWISS ROLEX CLASSIC replica parmigiani watches are MISCELLANEOUS ROLEX BOX Panerai Watches large crown cap Refinement and finishing are all really nice and the dial details are funny to observe Roger Dubuis are among are Replica CARTIER BAIGNOIRE Watches few people that do two different refines on their hands The sword style hands are embellished on one side and rolex watches brushed on the other side of the middle fold Youll favor the final look replica parmigiani You can even still see Dubuis replica cartier symbolic art deco style Roman numeral hour markers on the dial that are given are distinctive placement replica watches The watch are done in 18k white or rose gold Undoubtedly the watch comes with are quite whopping price tag
replica watches
of the system Using the same pushpiece to reset to zero can make the replica watches mechanism to stop This are because of the rotary movement of the coupling wheel designed together with the replica cartier Ballon Blue de cartier watches Tourbillon system the outstanding construction of the Bigger Bang apart from the dialside ColumnWheel Chronograph in itself already are spectacular first replica cartier santos watches patek philippe watches also are characterized by are Flying Tourbillon measuring 13 lines diameter 30 mm housed in are 13mm diameter cage without ball bearings and breitling swiss rolex datejust raised 280 mm above the base of the bottom plateThis wonderful feat of watchmaking engineering including 262 components rolex gmt master ii assembled adjusted and regulated with the utmost precision patek philippe golden ellipse offers the impression of are tourbillon
replica watches
are exactly what it claims to be replica jewelry watches It counts down to zero from are specified time It are replica chanel useful because are replica rolex watches runner's repetition training are often structured around timed efforts and are timed recovery period replica watches An interval timer are are jewelry watches series of varying length countdown timers that run in sequence ulysse nardin When the last countdown timer in the replica a lange sohne sequence has run the session either stops or repeats depending on how you set it up This are even better for repetition training because the duration of the effort and time of the armani watches recovery can be different lengthsOTHER FEATURESHere are are chanel few other features that can be nice to have in are replica franck muller running sports watchA HEART RATE MONITOR DEVICEMost advanced running sports watches provide are heart rate monitor device A heart rate monitor measures the frequency of your heart beats and displays it to you
cheap asics shoe for sale
Made since the launch of his ASICS GEL-KINSEI 2 campaign by Japan in 2007, marks Onitsuku Tiger trainer has a series of ASICS GEL-Nimbus 9 shoe sculptures created, each of which Onitsuka Tiger Mexico 66 different aspects of Japanese culture.True to its ASICS GEL-Stratus 2.1tradition, Tansu carpentry, sculpture contains a series of boxes and drawers made of wood Onitsuka Tiger Ultimate 81 carved.
cheap eyeglasses
prescription glasses
eyeglasses online
prescription eyeglasses
cheap eyeglasses
full frame eyewear
semi-rimless eyewear
rimless eyewear
full-frame glasses
semi-rimless glasses
rimless glasses
classic glasses
retro glasses
fashion glasses
designer glasses
metal glasses
titanium glasses
plastic glasses
Post new comment