YaST2 Developers Documentation: Printer configurator



functions
files
intro

Printer configurator

dialogs.ycp
Main dialogs.
Main dialogs.

Imports

  • CUPS
  • Label
  • Mode
  • Popup
  • Printer
  • PrinterTest
  • Printerdb
  • Printerlib
  • Report
  • Spooler
  • Wizard
  • Wizard_hw

Includes

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

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 AnyToInteger (any a) -> integer

Casts value type to integer if you know what I am talking about. // FIXME drop for new interpreter

Parameters:
a value
Return value:
representation of a

local DisplayPrinterPopup (map info, string vdb, string mdb) -> void

Display printer information popup

Parameters:
info map containing info about printer from SuSE database
vdb string database key of printer vendor
mdb string database key of printer model

local runManufModelDialog () -> 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 () -> symbol

Dialog for choosing configuration.

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 runAdvancedDialog () -> symbol

Start dialog with advanced spooler settings

Return value:
for wizzard seq

local runCupsUsbDeviceTypeDialog () -> symbol

Dialog for choosing what kind of devices to use

Return value:
wizard sequencer symbol

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 runDetectedDialog () -> symbol

Common detected hardware dialog.

Return value:
for ws

local runComplexDialog () -> symbol

Complex dialog.

Return value:
for ws

local getInstType () -> symbol

Detect installation type

Return value:
`server or `client

local markQueueYaST () -> symbol

Mark the queue as the queue maintained by YaST

Return value:
`next

local storePrinter () -> symbol

We need this wrapper because of wizard sequencer.

Return value:
`next for wizard sequencer

YaST2 Developers Documentation