Closed Bug 277265 Opened 20 years ago Closed 19 years ago

Use file checkbox instead of radio buttons in print dialog

Categories

(Toolkit :: Printing, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: mozilla, Assigned: mozilla)

Details

Attachments

(2 files, 2 obsolete files)

The current print dialog uses radio buttons to let the user decide between
printing to printer and printing to file. This is confusing as printing to file
still uses the settings from the selected printer. A checkbox positioned below
the printer selection (like the windows native print dialog) instead more
successfully conveys the message "use the above printer driver/settings to print
to file" to the user.

This change was already implemented in XPFE (bug 263312).

Additionally, for Seamonkey it was decided to drop the filename selection field
and button and instead let the user select a filename from a file picker that
comes up after pressing Print. This should be in line with the Aviary philosophy
to remove features that only a very small number of users need like batch
printing using the same filename.

I will shortly attach a patch ported to Toolkit.
Attached patch patch (obsolete) — Splinter Review
I have tested this patch and it works fine on a current Firefox trunk build.
Comment on attachment 170461 [details] [diff] [review]
patch

Mike, can you please review and check this in, if you like it.
Attachment #170461 - Flags: first-review?(mconnor)
Comment on attachment 170461 [details] [diff] [review]
patch

I'm not likely to get to this in a code review sense anytime soon.  If there is
a screenshot, that'd be good for the UI review part, but please find another
toolkit peer (there's a fair number) unless you want to wait a few weeks more.
The requested screenshot...
Comment on attachment 170461 [details] [diff] [review]
patch

Benjamin, you seem to be a toolkit peer with a shorter review queue. Maybe you
can take a look?
Attachment #170461 - Flags: first-review?(mconnor) → first-review?(bsmedberg)
Comment on attachment 170461 [details] [diff] [review]
patch

>Index: toolkit/components/printing/content/printdialog.js

>+    if (gPrintSettings.printToFile)
>+      if (!chooseFile())
>         return false;

if (gPrintSettings.printToFile && !chooseFile())

>   try {
>-    var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);
>+    var fp = Components.classes["@mozilla.org/filepicker;1"]
>+             .createInstance(nsIFilePicker);

nit, align the dots of .classes and .createInstance

This is pretty good, but please go ahead and post a new patch with those two
nits. I'm also going to talk to mconnor before marking r+, because I don't do
UI reviews.
Attachment #170461 - Flags: first-review?(bsmedberg) → first-review-
Attached patch Second patch attending the nits (obsolete) — Splinter Review
OK, your points were of course easily rectified.

Additionally, I noticed that I had accidentally removed the "Print" from the
button on the dialog as can be seen on the screenshot (XPFE didn't need those
two extra lines). This new patch again has "Print" on the button as it should
be.
Attachment #170461 - Attachment is obsolete: true
Attachment #172682 - Flags: first-review?(bsmedberg)
Attachment #172682 - Flags: first-review?(benjamin) → first-review+
That I got a r+ probably means that I can confirm this bug. :-)

Do I need another review for toolkit patches as well, or was it enough that
Benjamin talked to mconnor before plusing it?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment on attachment 172682 [details] [diff] [review]
Second patch attending the nits

Perhaps you can sr this patch, as Benjamin supposedly asked you about it
anyway?
Attachment #172682 - Flags: second-review?(mconnor)
Attachment #172682 - Flags: second-review?(mconnor) → second-review+
Thanks for reviews. I carry them over to this new attachment which is necessary
as icon properties of the buttons in printdialog.xul conflicted with the older
patch.

I would be grateful if someone could check this in, I don't have a CVS account
(yet).
Attachment #172682 - Attachment is obsolete: true
Attachment #176253 - Flags: second-review+
Attachment #176253 - Flags: first-review+
Status: NEW → ASSIGNED
Assignee: nobody → mozilla
Status: ASSIGNED → NEW
Fix checked in - watch for regressions Peter! :)
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Thanks Mike. I didn't see any regressions from this nor did I see anybody else
talk about regressions caused by this. Verified from Andy's static firefox build
Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8b2) Gecko/20050311 Firefox/1.0+.
Status: RESOLVED → VERIFIED
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: