
functions
files
intro
|
|
Sound
|
volume.ycp
|
Module where an attemp of inserting module is provided,
if everything goes well adjusting volume is done here
otherwise error message is displayed
|
|
|
Steps:
1. try to insert kernel module
2. on succes unmute and volume dialog
3. on fail display error message
Imports
- Label
- Mode
- Popup
- Report
- Sound
- Wizard
Includes
- sound/joy_dialog.ycp
- sound/routines.ycp
- sound/volume_routines.ycp
Local Functions
|
|
|
local VolumeCon (map save_entry, integer vol) -> term
|
|
UI controls for volume setting dialog
- Parameters:
save_entry |
map with card info |
vol |
initial volume (0-100) |
- Return value:
local VolumeDialog (map save_entry, boolean finish, integer card_id) -> symbol
|
|
This dialog simply reads user input and calls apropriate set funtion
- Parameters:
save_entry |
|
finish |
show 'finish' button instead of 'next' |
card_id |
|
- Return value:
local ErrorDialog (map save_entry, string err, boolean finish) -> symbol
|
|
shows error message in wizard
- Parameters:
save_entry |
card config |
err |
error string to be shown |
finish |
show 'finish' button instead of 'next' |
- Return value:
local sound_volume (map save_entry, integer card_id, boolean finish, boolean quick, list save_info) -> map
|
|
shows volume dialog for normal setup or success dialog for quick setup
in case of failure show error dialog with 'next' button disabled
- Parameters:
save_entry |
card config |
card_id |
id of currently donfigured card |
finish |
show 'finish' button instead of 'next' |
quick |
quick/normal config |
save_info |
config of previuosly configured cards |
- Return value:
|