
functions
files
intro
|
|
Configuration of sysconfig |
include/sysconfig/complex.ycp |
Dialogs definitions |
|
|
Imports
- Label
- Mode
- Package
- Popup
- String
- Sysconfig
- Wizard
Includes
- sysconfig/dialogs.ycp
- sysconfig/helps.ycp
- sysconfig/routines.ycp
Local Variables
Local Functions
|
|
|
local selected_variable -> string
|
|
current selected variable in the tree widget
local Modified () -> boolean
|
|
Return a modification status
- Return value:
|
true if data was modified |
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 possible_values (map description, boolean richtext) -> string
|
|
Get string representation of type definition. Used at richtext description.
- Parameters:
description |
Variable description |
richtext |
result is rich/plain text |
- Return value:
|
Textual description of the type |
local create_description (map<string, any> description, boolean richtext) -> string
|
|
Create rich text description string from description values
- Parameters:
description |
Description |
richtext |
if true result is rich text, if false result is plain text |
- Return value:
local combo_editable (map description) -> boolean
|
|
Get combo box editable status - depends on Type value
- Parameters:
description |
Description of variable |
- Return value:
|
True if combo box should be editable |
local add_if_missing (list l, string v) -> list
|
|
Generic list function - add value to the list if it isn't already there
- Parameters:
l |
Input list |
v |
Input value |
- Return value:
local backslash_add (string input) -> string
|
|
Escape double quotes and back slash characters by back slash
- Parameters:
- Return value:
local backslash_remove (string input) -> string
|
|
Remove backslashes from string - opposite funtion to the backslash_add function.
- Parameters:
- Return value:
|
String without escape chars |
local combo_list (map<string, any> description, boolean set_default) -> list
|
|
Create list of values for combo box widget
- Parameters:
description |
Variable description |
set_default |
If true add default value to the list |
- Return value:
|
List of values for combo box widget |
local update_combo (map<string, any> description, boolean set_default) -> void
|
|
Update combo box in dialog
- Parameters:
description |
Variable description |
set_default |
Set to true ifdefault value should be in the combo box |
local update_button_state (map<string, any> description) -> void
|
|
Update "Default" button state (enable/disable) in the dialog
- Parameters:
description |
Variable description |
local update_location (map description) -> void
|
|
Update location text in the dialog
- Parameters:
description |
Variable description |
local is_node (string id) -> boolean
|
|
Is selected item in the tree widget leaf node?
- Parameters:
id |
Value from tree widget |
- Return value:
|
True if node is not leaf-node |
local check_set_current_value (boolean force_change) -> void
|
|
Set new value for variable, warn user if new value does not match type definition.
- Parameters:
force_change |
force value as changed even if it is equal to the old one |
local create_table_content (list<string> varids) -> list
|
|
Create table content list for selected variables
- Parameters:
varids |
Variables which will be contained in the table |
- Return value:
local MainDialog () -> symbol
|
|
Display main configuration dialog
- Return value:
|