YaST2 Developers Documentation: TV cards configuration

TV cards configuration

include/tv/ui.ycp
User interface functions.

This module has an unstable interface.

All user interface functions.

Imports

  • Label
  • Package
  • Popup
  • Progress
  • Sequencer
  • Summary
  • Tv
  • Wizard
  • WizardHW
  • Wizard_hw

Includes

  • tv/helps.ycp
  • tv/irc_ui.ycp
  • tv/misc.ycp

Local Functions

local ReadDialog () -> any

Read settings dialog

Return value:
Symbol for next or abort dialog.
local WriteDialog () -> any

Write settings dialog

Return value:
Symbol for next or abort dialog.
local CardAddCurrentWrapper () -> any

Just a wrapper for Tv::CardAddCurrent() to be used in the wizard sequencer.

Return value:
Symbol for next dialog.
local CardReplaceWithCurrentWrapper () -> any

Just a wrapper for Tv::CardReplaceWithCurrent() to be used in the wizard sequencer.

Return value:
Symbol for next dialog.
local HardwareDialog () -> any

A dialog showing the detected cards and allowing to configure them.

Return value:
The value of the resulting UserInput.
local CardsSelectionBox (list vendor_cards_db, map parameters, list<string> modules) -> term

Constructs the cards selection box for the selected vendor.

Parameters:
vendor_cards_db List of cards provided by the selected vendor.
parameters The current parameters to preselect the right model.
modules
Return value:
The selection box.
local ChooseTuner (string kernel_module, map selected_tuner) -> map

A popup allowing to choose the tuner type.

Parameters:
kernel_module Name of the kernel module for the selected TV card.
selected_tuner The previously selected tuner (to be preselected again).
Return value:
The selected tuner or nil if cancelled.
local ManualDialog (boolean warn) -> any

A dialog allowing the manual selection of the card.

Parameters:
warn Display warning, that the card was not fully detected.
Return value:
The value of the resulting UserInput.
local ManualDetailsDialog (boolean allow_changeoftype, integer index) -> any

A dialog allowing the manual selection of the card. radio card modules is shown

Parameters:
allow_changeoftype
index
Return value:
The value of the resulting UserInput.
local AudioDialog () -> any

A dialog asking if the card is connected to the sound card.

Return value:
The value of the resulting UserInput.
local GetStationsAsItems (map xawtvrc) -> list

Returns a list of TV stations as table items

Parameters:
xawtvrc map with contents of xawtvrc config file
Return value:
item list
local ChannelsScanPopup (string norm, string freq) -> list

Popup with TV stations scan

Parameters:
norm TV norm (PAL/NTSC/...)
freq frequency table (eourope-west/us-cable/...)
Return value:
[ new xawtv conf, new items for stations table ]
local StationPopup (string channel, string station, list items) -> term

Popup for adding/editing TV station

Parameters:
channel current channel (empty when adding)
station current station name (empty when adding)
items list of current stations (to check duplicates)
local ChannelsDialog () -> any

Dialogs for TV stations management

local MainSequence () -> any

Main workflow of the tv configuration

Return value:
Sequence result of WizardSequencer().
local TvSequence () -> any

Whole configuration of tv

Return value:
Sequence result of WizardSequencer().
local TvSequenceNoIO () -> any

Whole configuration of TV without reading and writing. It is needed for the proposal stuff.

Return value:
Sequence result of MainSequence().