Class: Bootloader::MainDialog
- Inherits:
-
Object
- Object
- Bootloader::MainDialog
- Includes:
- Yast::I18n, Yast::UIShortcuts
- Defined in:
- src/lib/bootloader/main_dialog.rb
Overview
main entry dialog running subdialogs like read, config and write
Instance Method Summary collapse
-
#run ⇒ Object
Whole configuration of dns-server.
-
#run_auto ⇒ Object
Whole configuration of printer but without reading and writing.
Instance Method Details
#run ⇒ Object
Whole configuration of dns-server
46 47 48 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/bootloader/main_dialog.rb', line 46 def run my_aliases = { "read" => [lambda { ReadDialog.new.run }, true], "main" => method(:run_content), "write" => [lambda { WriteDialog.new.run }, true] } sequence = { "ws_start" => "read", "read" => { abort: :abort, next: "main" }, "main" => { abort: :abort, next: "write" }, "write" => { abort: :abort, next: :next } } Yast::Wizard.CreateDialog Yast::Wizard.SetDesktopTitleAndIcon("bootloader") Yast::Wizard.SetContentsButtons( "", VBox(), "", Yast::Label.BackButton, Yast::Label.NextButton ) ret = Yast::Sequencer.Run(my_aliases, sequence) Yast::Wizard.CloseDialog ret end |
#run_auto ⇒ Object
Whole configuration of printer but without reading and writing. For use with autoinstallation.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'src/lib/bootloader/main_dialog.rb', line 26 def run_auto Yast::Wizard.CreateDialog Yast::Wizard.SetContentsButtons( "", VBox(), "", Yast::Label.BackButton, Yast::Label.NextButton ) # desktop file only in running system and in installation there is no # visible window title Yast::Wizard.SetDesktopTitleAndIcon("org.opensuse.yast.Bootloader") if !Yast::Stage.initial ret = run_content Yast::Wizard.CloseDialog ret end |