YaST2 Developers Documentation: Printer configurator

Printer configurator

dialogs.ycp
Main dialogs.

This module has an unstable interface.

Main dialogs.

Imports

  • CUPS
  • Label
  • Mode
  • Popup
  • Printer
  • PrinterTest
  • Printerdb
  • Printerlib
  • Report
  • Spooler
  • Stage
  • Wizard
  • WizardHW
  • 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 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 (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 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 SetHWDialogData () -> void

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

local runProbeDialog () -> symbol

Restart detection of printers.

Return value:
always `next
local runCupsExpertDialog () -> symbol

Run dialog for expert settings

Return value:
ret (`change_ipp_listen, `cupsd, `cupsusb)
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 storePrinter () -> symbol

We need this wrapper because of wizard sequencer.

Return value:
`next for wizard sequencer