[Foomatic] Printer driver UI [proposal]

Till Kamppeter kde-print@mail.kde.org
Thu, 13 Mar 2003 19:28:58 +0100


All your three structures can be displayed without any change on 
Adobe-compliant and Foomatic-3.0-enhanced PPD file:

Michael Goffioul wrote:
> 
> http://www.geocities.com/kdeprint/slide_1.png

Tree view: We have it currently and it works. To make it better check 
whether a group or subgroup has the same name as an option (as 
"PrintoutMode"). If so, let this option be the head for a sub-tree with 
the sub-tree containing the member options of the group:

[-]General
  |----Page Size [A4]
  |----Media Source [Tray 2]
  |-[+]Printout Mode [Normal]
  |----Double-Sided [Long Edge]

Clicking on [+] gives:

[-]General
  |----Page Size [A4]
  |----Media Source [Tray 2]
  |-[-]Printout Mode [Normal]
  |  |----GhostScript Resolution [Controlled by 'Printout Mode']
  |  |----Quality [Controlled by 'Printout Mode']
  |  |----Economy Mode [Controlled by 'Printout Mode']
  |----Double-Sided [Long Edge]

Ungrouped options should be grouped as under CUPS before building the tree.

> http://www.geocities.com/kdeprint/slide_2.png

Tab view: Every group gives a tab (as in XPP), the options of every 
sub-group appear in a frame (as the "Misc" and "Colors" in your 
example). There is no frame for options which are not in a sub-group (as
"Page Size", "Media Type", "Printout Mode"). If a group has the same 
name as an option, it is put (in a frame) under the appropriate option 
(as "Printout Mode" here). Ungrouped options in PPD files get grouped as 
CUPS would group them.

> http://www.geocities.com/kdeprint/slide_3.png
> 

Sub-dialogs: The main dialog shows all options of the "General" group. 
For every other group a button with the group name is shown in the end 
of the main dialog. Clicking the button opens a dialog with all member 
options, frames are used to indicate sub-groups (as on the tabs of the 
tab view example). If a group has the same name as an option, the 
options gets a "..." button which opens a dialog with the member options 
of the appropriate group. Here ungrouped options should also be grouped 
as under CUPS.

So no change needed in the Foomatic PPD files. Foomatic 3.0 is ready for 
all what you have suggested.

    Till