Class: Installation::Widgets::SystemRolesRadioButtons
- Inherits:
-
CWM::RadioButtons
- Object
- CWM::RadioButtons
- Installation::Widgets::SystemRolesRadioButtons
show all
- Includes:
- SystemRoleReader
- Defined in:
- src/lib/installation/widgets/system_roles_radio_buttons.rb
Instance Method Summary
collapse
#default, #help, #init, #items, #label
Constructor Details
Returns a new instance of SystemRolesRadioButtons.
40
41
42
43
44
45
46
47
|
# File 'src/lib/installation/widgets/system_roles_radio_buttons.rb', line 40
def initialize
super
self.handle_all_events = true
textdomain "installation"
end
|
Instance Method Details
#handle ⇒ Object
75
76
77
78
79
|
# File 'src/lib/installation/widgets/system_roles_radio_buttons.rb', line 75
def handle
::Installation::SystemRole.select(value)
nil
end
|
#store ⇒ Object
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'src/lib/installation/widgets/system_roles_radio_buttons.rb', line 49
def store
CustomPatterns.show = value == "custom"
store_orig
Yast::Packages.Reset([:product])
if value == "custom"
Yast::DefaultDesktop.SetDesktop(nil)
Yast::Packages.SelectSystemPatterns(false)
Yast::Pkg.PkgSolve(false)
else
Yast::DefaultDesktop.ForceReinit
end
end
|
#store_orig ⇒ Object
38
|
# File 'src/lib/installation/widgets/system_roles_radio_buttons.rb', line 38
alias_method :store_orig, :store
|
#validate ⇒ Object
81
82
83
84
85
86
87
88
|
# File 'src/lib/installation/widgets/system_roles_radio_buttons.rb', line 81
def validate
return true if value
Yast::Popup.Error(_("You must choose some option before you continue."))
false
end
|
#vspacing ⇒ Object
90
91
92
|
# File 'src/lib/installation/widgets/system_roles_radio_buttons.rb', line 90
def vspacing
1
end
|