Class: Installation::Dialogs::ProductSelection
- Inherits:
-
CWM::Dialog
- Object
- CWM::Dialog
- Installation::Dialogs::ProductSelection
- Defined in:
- src/lib/installation/dialogs/product_selection.rb
Overview
The dialog is used to select from available product that can do system installation. Currently it is mainly used for LeanOS that have on one media more products.
Instance Method Summary collapse
- #contents ⇒ Object
-
#initialize ⇒ ProductSelection
constructor
A new instance of ProductSelection.
- #products ⇒ Object
-
#run ⇒ Object
enhances default run by additional action if next is pressed.
- #selector ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize ⇒ ProductSelection
Returns a new instance of ProductSelection.
15 16 17 18 |
# File 'src/lib/installation/dialogs/product_selection.rb', line 15 def initialize super textdomain "installation" end |
Instance Method Details
#contents ⇒ Object
32 33 34 |
# File 'src/lib/installation/dialogs/product_selection.rb', line 32 def contents VBox(selector) end |
#products ⇒ Object
24 25 26 |
# File 'src/lib/installation/dialogs/product_selection.rb', line 24 def products Y2Packager::Product.available_base_products end |
#run ⇒ Object
enhances default run by additional action if next is pressed
37 38 39 40 41 42 43 44 |
# File 'src/lib/installation/dialogs/product_selection.rb', line 37 def run res = super return res if res != :next Yast::WorkflowManager.merge_product_workflow(product) # run new steps for product Yast::ProductControl.RunFrom(Yast::ProductControl.CurrentStep + 1, true) end |
#selector ⇒ Object
28 29 30 |
# File 'src/lib/installation/dialogs/product_selection.rb', line 28 def selector @selector ||= Widgets::ProductSelector.new(products) end |
#title ⇒ Object
20 21 22 |
# File 'src/lib/installation/dialogs/product_selection.rb', line 20 def title _("Product Selection") end |