Module: Yast::BootloaderRoutinesWizardsInclude
- Defined in:
- src/include/bootloader/routines/wizards.rb
Instance Method Summary (collapse)
-
- (Object) BootloaderAutoSequence
Whole configuration of printer but without reading and writing.
-
- (Object) BootloaderSequence
Whole configuration of dns-server.
- - (Object) initialize_bootloader_routines_wizards(include_target)
-
- (Object) MainSequence
Run wizard sequencer.
Instance Method Details
- (Object) BootloaderAutoSequence
Whole configuration of printer but without reading and writing. For use with autoinstallation.
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'src/include/bootloader/routines/wizards.rb', line 70 def BootloaderAutoSequence Wizard.CreateDialog Wizard.SetContentsButtons( "", VBox(), "", Label.BackButton, Label.NextButton ) if Stage.initial Wizard.SetTitleIcon("bootloader") # no .desktop file in inst-sys else Wizard.SetDesktopTitleAndIcon("bootloader") end ret = MainSequence() UI.CloseDialog ret end |
- (Object) BootloaderSequence
Whole configuration of dns-server
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'src/include/bootloader/routines/wizards.rb', line 92 def BootloaderSequence my_aliases = { "read" => [lambda { ReadDialog() }, true], "main" => lambda { MainSequence() }, "write" => [lambda { WriteDialog() }, true] } sequence = { "ws_start" => "read", "read" => { :abort => :abort, :next => "main" }, "main" => { :abort => :abort, :next => "write" }, "write" => { :abort => :abort, :next => :next } } Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("bootloader") Wizard.SetContentsButtons( "", VBox(), "", Label.BackButton, Label.NextButton ) ret = Sequencer.Run(my_aliases, sequence) UI.CloseDialog ret end |
- (Object) initialize_bootloader_routines_wizards(include_target)
19 20 21 22 23 24 25 26 27 28 |
# File 'src/include/bootloader/routines/wizards.rb', line 19 def initialize_bootloader_routines_wizards(include_target) Yast.import "UI" textdomain "bootloader" Yast.import "Sequencer" Yast.import "Wizard" Yast.import "Report" Yast.import "Popup" Yast.include include_target, "bootloader/routines/dialogs.rb" end |
- (Object) MainSequence
Run wizard sequencer
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'src/include/bootloader/routines/wizards.rb', line 32 def MainSequence if !BootCommon.BootloaderInstallable # error report Report.Error( _( "Because of the partitioning, the boot loader cannot be installed properly." ) ) end # run generic sequence aliases = { "main" => lambda { MainDialog() }, "installation_details" => lambda { DetailsDialog("installation") }, "loader_details" => lambda { DetailsDialog("loader") }, } @return_tab = Bootloader.getLoaderType != "none" ? "sections" : "installation" sequence = { "ws_start" => "main", "main" => { :next => :next, :abort => :abort, :inst_details => "installation_details", :loader_details => "loader_details", :redraw => "main" }, "installation_details" => { :next => "main", :abort => :abort }, "loader_details" => { :next => "main", :abort => :abort }, } Sequencer.Run(aliases, sequence) end |