Module: Yast::IplbWizardsInclude
- Defined in:
- ../../src/include/iplb/wizards.rb
Instance Method Summary (collapse)
-
- (Object) AddSequence
Add a configuration of iplb.
- - (Object) initialize_iplb_wizards(include_target)
-
- (Object) IplbAutoSequence
Whole configuration of iplb but without reading and writing.
-
- (Object) IplbSequence
Whole configuration of iplb.
-
- (Object) MainSequence
Main workflow of the iplb configuration.
Instance Method Details
- (Object) AddSequence
Add a configuration of iplb
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File '../../src/include/iplb/wizards.rb', line 46 def AddSequence # FIXME: adapt to your needs aliases = { "config1" => lambda { Configure1Dialog() }, "config2" => lambda( ) do Configure2Dialog() end } # FIXME: adapt to your needs sequence = { "ws_start" => "config1", "config1" => { :abort => :abort, :next => "config2" }, "config2" => { :abort => :abort, :next => :next } } Sequencer.Run(aliases, sequence) end |
- (Object) initialize_iplb_wizards(include_target)
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File '../../src/include/iplb/wizards.rb', line 30 def initialize_iplb_wizards(include_target) Yast.import "UI" textdomain "iplb" Yast.import "Sequencer" Yast.import "Wizard" Yast.include include_target, "iplb/complex.rb" Yast.include include_target, "iplb/dialogs.rb" Yast.include include_target, "iplb/global_conf.rb" Yast.include include_target, "iplb/vserver_conf.rb" end |
- (Object) IplbAutoSequence
Whole configuration of iplb but without reading and writing. For use with autoinstallation.
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File '../../src/include/iplb/wizards.rb', line 138 def IplbAutoSequence # Initialization dialog caption caption = _("IPLB Configuration") # Initialization dialog contents contents = Label(_("Initializing...")) Wizard.CreateDialog Wizard.SetContentsButtons( caption, contents, "", Label.BackButton, Label.NextButton ) ret = MainSequence() UI.CloseDialog deep_copy(ret) end |
- (Object) IplbSequence
Whole configuration of iplb
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 |
# File '../../src/include/iplb/wizards.rb', line 113 def IplbSequence 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 ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |
- (Object) MainSequence
Main workflow of the iplb configuration
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File '../../src/include/iplb/wizards.rb', line 65 def MainSequence # +- global_conf # +- vserver_list_conf # +- vserver_add_conf # +- vserver_edit_conf _Aliases = { "global_conf" => lambda { global_dialog }, "vserver_list_conf" => lambda { vserver_list_dialog }, "vserver_add_conf" => lambda { vserver_add_dialog }, "vserver_edit_conf" => lambda { vserver_edit_dialog } } sequence = { "ws_start" => "global_conf", "global_conf" => { :ok => :next, :cancel => :abort, :global_tab => "global_conf", :vserver_tab => "vserver_list_conf" }, "vserver_list_conf" => { :ok => :next, :cancel => :abort, :global_tab => "global_conf", :vserver_add => "vserver_add_conf", :vserver_edit => "vserver_edit_conf" }, "vserver_add_conf" => { :ok => "vserver_list_conf", :cancel => "vserver_list_conf" }, "vserver_edit_conf" => { :ok => "vserver_list_conf", :cancel => "vserver_list_conf" } } # Buttons redefinition Wizard.SetNextButton(:ok, "OK") Wizard.SetAbortButton(:cancel, "Cancel") Wizard.HideBackButton ret = Sequencer.Run(_Aliases, sequence) deep_copy(ret) end |