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)
-
- (Object) run
Whole configuration of dns-server.
-
- (Object) run_auto
Whole configuration of printer but without reading and writing.
Instance Method Details
- (Object) run
Whole configuration of dns-server
44 45 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 |
# File 'src/lib/bootloader/main_dialog.rb', line 44 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 |
- (Object) run_auto
Whole configuration of printer but without reading and writing. For use with autoinstallation.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'src/lib/bootloader/main_dialog.rb', line 24 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("bootloader") if !Yast::Stage.initial ret = run_content Yast::Wizard.CloseDialog ret end |