
functions
files
intro
|
|
Printer configurator |
include/printer/dialogs-connection.ycp |
Connection related dialogs. |
|
|
Imports
- Arch
- CUPS
- Label
- Mode
- Package
- Popup
- Printer
- Printerlib
- Report
- Spooler
- Wizard
Includes
- printer/helps-connection.ycp
- printer/misc.ycp
Local Functions
|
|
|
local getDeviceName (string pre_filled) -> string
|
|
Popup wanting device name.
- Parameters:
pre_filled |
TextEntry is pre-set by this value. |
- Return value:
local updateUri (symbol type) -> void
|
|
Updates uri to contain specified URI-type
Modifies Printer::printer variable
- Parameters:
type |
symbol specifying URI type |
local checkConnectionType (symbol selected) -> symbol
|
|
Check whether connection configuration is possible
additionally store last selected config type
- Parameters:
selected |
symbol selected radio button |
- Return value:
|
the same as selected radio button if proceed, nil otherwise |
local checkConnectionLocal (symbol selected) -> symbol
|
|
Check whether connection configuration is possible
additionally store last selected config type
- Parameters:
selected |
symbol selected radio button |
- Return value:
|
the same as selected radio button if proceed, nil otherwise |
local checkConnectionCups (symbol selected) -> symbol
|
|
Check whether connection configuration is possible
additionally store last selected config type
- Parameters:
selected |
symbol selected radio button |
- Return value:
|
the same as selected radio button if proceed, nil otherwise |
local checkConnectionDirect (symbol selected) -> symbol
|
|
Check whether connection configuration is possible
additionally store last selected config type
- Parameters:
selected |
symbol selected radio button |
- Return value:
|
the same as selected radio button if proceed, nil otherwise |
local checkConnectionOther (symbol selected) -> symbol
|
|
Check whether connection configuration is possible
additionally store last selected config type
- Parameters:
selected |
symbol selected radio button |
- Return value:
|
the same as selected radio button if proceed, nil otherwise |
local runGenericConnectionTypeDialog (term items, string caption, string frame, string help, symbol what) -> symbol
|
|
Runs generic dialog with set of radio buttons
- Parameters:
items |
term specifying the VBox of RadioButtonGroup |
caption |
string dialog caption |
frame |
strign caption of the frame with selection |
help |
string help to show to user |
what |
symbol containing `connection_type, `connection_local,
`connection_cups, `connection_direct, `connection_other
to handle dialog-specific situations |
- Return value:
local runConnectionTypeDialog () -> symbol
|
|
Main connection type dialog
- Return value:
local runLocalConnectionDialog () -> symbol
|
|
Dialog asking about connection type for connection to local printers
- Return value:
local runCupsConnectionDialog () -> symbol
|
|
Dialog asking about connection type for connection to remote CUPS server
- Return value:
local runDirectConnectionDialog () -> symbol
|
|
Dialog asking about connection type for small print servers
Possible are direct TCP port, IPP and LPD
- Return value:
local runOtherConnectionDialog () -> symbol
|
|
Run dialog asking about connection type
Possible are CUPS class, Pipe printing and other printing (set URI)
- Return value:
local runDeviceDialog (string type) -> symbol
|
|
Asks user about settings of selected device (port number, other settings
for serial ports). Lets user do test of device. Uses global variable
printer.
- Parameters:
type |
"parallel", "serial", "usb", "irda"
|
- Return value:
local runRemoteDialog (string type) -> symbol
|
|
Asks user about settings of selected type of remote pritner.
E.g. hostname, username+password for samba, ncp, ...
- Parameters:
type |
one of "samba", "novell", "lpd", "ipp", "socket" |
- Return value:
local runPipeDialog () -> symbol
|
|
Program to print to through pipe specification
- Return value:
local runUriDialog () -> symbol
|
|
direct Uri definition
- Return value:
local editParallelPort () -> symbol
|
|
Change parallel port settings. This function must be called when
wizard dialog has been set up. Hence it suppose Wizard library to
be imported.
- Return value:
local editSerialPort () -> symbol
|
|
Change serial port settings. This function must be called when
wizard dialog has been set up. Hence it suppose Wizard library to
be imported.
- Return value:
|