YaST2 Developers Documentation: Printer configurator

Printer configurator

dialogs.ycp
Main dialogs.

This module has an unstable interface.

Main dialogs.

Imports

  • CUPS
  • CWM
  • CWMTab
  • DialogTree
  • IP
  • Label
  • Mode
  • Popup
  • Printer
  • PrinterTest
  • Printerdb
  • Printerlib
  • Report
  • Spooler
  • Stage
  • Wizard

Includes

  • printer/helps.ycp
  • printer/misc.ycp

Local Variables

Local Functions

local ReadDialog () -> symbol

Read settings dialog

Return value:
`abort if aborted and `next otherwise
local WriteDialog () -> symbol

Write settings dialog

Return value:
`abort if aborted and `next otherwise
local ManufModelPopup () -> symbol

Ask about the manufacuturer and the model of the printer. Uses global printer

Return value:
`back, `next, `abort
local runDownloadPpdFile () -> symbol

Run dialog

Return value:
`back, `next, `abort
local runInstalledPrinterDialog () -> symbol

Run dialog

Return value:
`back, `next, `abort
local runPpdSelectDialog (boolean all_ppds) -> symbol

Dialog for choosing configuration.

Parameters:
all_ppds boolean if true all PPD files for all models are shown
Return value:
for wizard sequencer
local runNameDialog (boolean allow_auto) -> symbol

Configuration of printer names.

Parameters:
allow_auto boolean true if should be allowed to omit printer name
Return value:
for wizard seq.
local choosePrinterOrClass () -> string

Choose one printer from list of printers

Return value:
selected printer
local runMembersDialog () -> symbol

Members of class

Return value:
`next or `back
local runOptionsDialog () -> symbol

Configuration of the filter. It is quite complicated because there can be depended options so change of value (lower list) can change content of options (upper list).

Return value:
for ws
local createEditDialog () -> void

Create contents for edit dialog. Calls Setwizardcontents at the end.

local runEditDialog () -> symbol

Complex edit dialog for printer...

Return value:
for wizard seq.
local detectConfigType () -> symbol

Decide how to configure autodetected printer

Return value:
for ws
local runQueuesProposalDialog () -> symbol

Show printer details in one window

Return value:
`back `next `abort
local getAutoprobedSelectionBox (integer current_sel) -> list

Create contents of table of autodetected printers.

Parameters:
current_sel currently selected item
Return value:
list of items, `ids are indexes to autoprobed_printers list
local runProbeDialog () -> symbol

Restart detection of printers.

Return value:
always `next
local o_items -> list<map<string,any> >

Function to set the data to the hardware dialog get inspired by summary and getAutoprobedSelectionBox when writing it

local handleOverview (string key, map event) -> symbol

Common detected hardware dialog.

Parameters:
key
event
Return value:
for ws
local getInstType () -> symbol

Detect installation type

Return value:
`server or `client
local storePrinter () -> symbol

We need this wrapper because of wizard sequencer.

Return value:
`next for wizard sequencer