YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • Arch
  • CWM
  • CWMTab
  • Directory
  • FileUtils
  • Keyboard
  • Kiwi
  • Label
  • Message
  • Package
  • PackageLock
  • PackageSystem
  • Popup
  • ProductCreator
  • SourceDialogs
  • SourceManager
  • String
  • Summary
  • URL
  • Wizard

Includes

  • product-creator/dialogs.ycp
  • product-creator/routines.ycp

Local Functions

Info:

File: include/product-creator/kiwi.ycp Package: Configuration of product-creator Summary: Dialogs for kiwi configuration Authors: Jiri Suchomel

local InitSWIgnore (string id) -> void

Initialize the widget with ignored packages

Parameters:
id
local InitSWDelete (string id) -> void

Initialize the widget with packages intended for deletion

Parameters:
id
local InitSWRichText (string id) -> void

Initialize the contents of richtext with selected software

Parameters:
id
local modifyPackageSelection (map sw_contents) -> map

open package selector with given set of packages, return modified set or nil on cancel

Parameters:
sw_contents
local modifyBootIncludePackages (list packages) -> list

Popup for modifying the list of 'bootinclude' packages

Parameters:
packages
local CheckForDeletedPackages (map packages_before) -> boolean

check the conflicts between packages selected and marked for deletion (fate#305254)

Parameters:
packages_before map of packages already selected before entering package selector
local HandleSWSelection (string key, map event) -> symbol

Handler for software selection

Parameters:
key
event
local InitSWSelectionCombo (string id) -> void

initialize the combo box with package selection groups

Parameters:
id
local HandleSWSelectionCombo (string key, map event) -> symbol

handler for combo box with package sets items

Parameters:
key
event
local InitBootCombo (string id) -> void

initialize the value of combo box with boot items

Parameters:
id
local StoreBootCombo (string key, map event) -> void

store the value of current boot image

Parameters:
key
event
local HandleBootCombo (string key, map event) -> symbol

handler for combo box with boot items

Parameters:
key
event
local InitVersion (string id) -> void

initialize the value of version

Parameters:
id
local StoreVersion (string key, map event) -> void

store the value of current version

Parameters:
key
event
local HandleVersion (string key, map event) -> symbol

handler for version

Parameters:
key
event
local InitSize (string id) -> void

initialize the values of "size", "sizeunit" and "additive" widgets

Parameters:
id
local StoreSize (string key, map event) -> void

store the values of "size", "sizeunit" and "additive" widgets

Parameters:
key
event
local HandleSize (string key, map event) -> symbol

handler for size widget: store value on exit/save

Parameters:
key
event
local InitLabel (string id) -> void

initialize the product label

Parameters:
id
local InitGeneric (string id) -> void

universal widget: initialize the string value of widget @param

Parameters:
id
local StoreGeneric (string key, map event) -> void

store the string value of given widget

Parameters:
key
event
local HandleGeneric (string key, map event) -> symbol

handler for general string-value widgets: store their value on exit/save

Parameters:
key
event
local InitDescription (string id) -> void

initialize the string value of "description" related widget

Parameters:
id
local StoreDescription (string key, map event) -> void

store the string value of "description" related given widget

Parameters:
key
event
local HandleDescription (string key, map event) -> symbol

handler for string-value "description" related widgets: store on exit/save

Parameters:
key
event
local InitLocaleCombo (string id) -> void

initialize the list value of "locale" combo box

Parameters:
id
local InitKeytableCombo (string id) -> void

initialize the list value of "keytable" combo box

Parameters:
id
local InitTimezoneCombo (string id) -> void

initialize the list value of "timezone" combo box

Parameters:
id
local InitPreferences (string id) -> void

initialize the string value of "preferences" related widget

Parameters:
id
local StorePreferences (string key, map event) -> void

store the string value of "preferences" related given widget

Parameters:
key
event
local HandlePreferences (string key, map event) -> symbol

handler for string-value "preferences" related widgets: store on exit/save

Parameters:
key
event
local InitUsersTable (string id) -> void

initialize the table with users

Parameters:
id
local HandleAddEditUser (string key, map event) -> symbol

Handle changes in users table

Parameters:
key
event
local HandleDeleteUser (string key, map event) -> symbol

handle delete user button

Parameters:
key
event
local InitRootDirTable (string id) -> void

initialize the table with root dir contents

Parameters:
id
local InitConfigDirTable (string id) -> void

initialize the table with config dir contents

Parameters:
id
local BrowseDirectoryHandler (string key, string label) -> string

universal handler for directory browsing

Parameters:
key
label
local HandleBrowseRootDirectory (string key, map event) -> symbol

handler for 'root' directory browse

Parameters:
key
event
local HandleBrowseConfigDirectory (string key, map event) -> symbol

handler for 'config' directory browse

Parameters:
key
event
local BrowseFileHandler (string key, string label) -> string

universal handler for file browsing

Parameters:
key
label
local HandleImportConfigFile (string key, map event) -> symbol

Handler for importing config.sh file

Parameters:
key
event
local HandleImportImagesFile (string key, map event) -> symbol

Handler for importing images.sh file TODO same function as HandleImportConfigFile

Parameters:
key
event
local CheckForAvailablePackages (boolean ignore_allowed) -> symbol

Check if selected packages are available (some of them may not after deleting some repository) return true if there was no conflict

Parameters:
ignore_allowed
local CheckPackageDependencies () -> boolean

Check if all selected packages and patterns can be installed If dependency problem was found, open package selector. Return false if package selector was canceled

local CreateImage (string key, map event) -> boolean

handler for main action: create the iso image with kiwi

Parameters:
key
event
local InitImageConfiguration () -> void

Global init function for Kiwi image dialog - read saved settings and fill in defaults

local KiwiDialog () -> symbol

Main dialog for Kiwi image configuration

local PrepareDialog () -> symbol

Prepare dialog: define kiwi data without product-creator