Summary: | JJ: Use kdpf to show the document printed to a PDF file | ||
---|---|---|---|
Product: | [Unmaintained] kdeprint | Reporter: | Allen Winter <winter> |
Component: | general | Assignee: | KDEPrint Devel Mailinglist <kde-print-devel> |
Status: | CLOSED UNMAINTAINED | ||
Severity: | wishlist | CC: | jlayt |
Priority: | NOR | ||
Version: | 4.0 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
kprinter.cpp patch for 3.5.5
kprintdialog.cpp patch for 3.5.5 current print dialog design with "open afterwards" checkbox open file when printing is finished in kdeprintd module - compile tested only - revised patch, extract filename from kprintprocess command |
Description
Allen Winter
2006-03-26 19:39:10 UTC
Setting wishlist item to version 4.0 now... Hi! I am currently working on this. I have put a checkbox (asking to open the file afterwards) under the existing preview checkbox. The current position looks good. But maybe a usability engineer knows a even better placement. (The checkbox is disabled/enabled as needed and the status is saved of course.) A beta patch is ready but i am still having problems with opening the .pdf afterwards. When finishPrinting in KPrinter is called the output .pdf still does not exist. So we have to sleep before we open the .pdf (with KRun for example). I am currently using KRun::runCommand("sleep 1 && kfmclient exec " + outputFileName()). But there really has to be a better way. (I also removed a superfluous call to finishPrinting, so that finishPrinting is called only once.) The patch is currently against KDE 3.5.5. I am working on a version 4 one. Created attachment 21037 [details]
kprinter.cpp patch for 3.5.5
Created attachment 21038 [details]
kprintdialog.cpp patch for 3.5.5
to be used with the kprinter.cpp patch
Created attachment 21039 [details]
current print dialog design with "open afterwards" checkbox
Created attachment 21040 [details]
open file when printing is finished in kdeprintd module - compile tested only -
combined patch. use printTerminated signal from KPrintProcess in
KDEPrintd::print to open output file. compile tested only (maybe
KPrintProcess::output is the wrong file). will test thoroughly later today.
Created attachment 21045 [details]
revised patch, extract filename from kprintprocess command
add checkbox (asking to open the file afterwards if printing to file) to the
printer dialog (same as before). Two strings (still) need to be localised.
open file in kdeprintd module (as in the previous patch) when printTerminated
is signaled. the filename is extracted from the corresponding kprintprocess
command.
KDEPrint in KDE3 is unmaintained and will have no more new features implemented. This request will never be implemented in KDEPrint as a result. In KDE4 the print dialog is provided by Qt and any issues will need to be raised directly with them. Lion, sorry that your hard work was unable to be used. Closing. |