Module: Yast::ScannerWizardsInclude
- Defined in:
- ../../src/include/scanner/wizards.rb
Instance Method Summary (collapse)
-
- (Object) AddSequence
Add a configuration of scanner.
- - (Object) initialize_scanner_wizards(include_target)
-
- (Object) MainSequence
Main workflow of the scanner configuration.
-
- (Object) ScannerAutoSequence
Whole configuration of scanner but without reading and writing.
-
- (Object) ScannerSequence
Whole configuration of scanner.
Instance Method Details
- (Object) AddSequence
Add a configuration of scanner
43 44 45 46 47 48 49 50 51 52 53 54 |
# File '../../src/include/scanner/wizards.rb', line 43 def AddSequence aliases = { "config1" => lambda { SelectModelDialog() }, "config2" => lambda( ) do ConfigureBackendDialog() end } sequence = { "ws_start" => "config1", "config1" => { :abort => :abort, :next => "config2" }, "config2" => { :abort => :abort, :next => :next } } Sequencer.Run(aliases, sequence) end |
- (Object) initialize_scanner_wizards(include_target)
29 30 31 32 33 34 35 36 37 38 39 |
# File '../../src/include/scanner/wizards.rb', line 29 def initialize_scanner_wizards(include_target) Yast.import "UI" textdomain "scanner" Yast.import "Sequencer" Yast.import "Wizard" Yast.import "Label" Yast.include include_target, "scanner/dialogs.rb" end |
- (Object) MainSequence
Main workflow of the scanner configuration
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File '../../src/include/scanner/wizards.rb', line 58 def MainSequence aliases = { "overview" => lambda { OverviewDialog() }, "network" => lambda { ConfigureNetworkScanningDialog() }, "configure" => [lambda { AddSequence() }, true], "add" => [lambda { AddSequence() }, true], "edit" => [lambda { AddSequence() }, true] } sequence = { "ws_start" => "overview", "overview" => { :abort => :abort, :next => :next, :add => "add", :configure => "configure", :edit => "edit", :delete => "overview", :test => "overview", :restart_detection => "overview", :network_scanning => "network", :run_hpsetup => "overview" }, "configure" => { :abort => :abort, :next => "overview" }, "network" => { :abort => :abort, :next => "overview" }, "add" => { :abort => :abort, :next => "overview" }, "edit" => { :abort => :abort, :next => "overview" } } ret = Sequencer.Run(aliases, sequence) deep_copy(ret) end |
- (Object) ScannerAutoSequence
Whole configuration of scanner but without reading and writing. For use with autoinstallation.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File '../../src/include/scanner/wizards.rb', line 113 def ScannerAutoSequence caption = _("Scanner Configuration") # Label of the dialog for ScannerAutoSequence: contents = Label(_("Initializing...")) Wizard.CreateDialog Wizard.SetContentsButtons( caption, contents, "", Label.BackButton, Label.NextButton ) Wizard.SetDesktopIcon("scanner") ret = MainSequence() UI.CloseDialog deep_copy(ret) end |
- (Object) ScannerSequence
Whole configuration of scanner
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File '../../src/include/scanner/wizards.rb', line 91 def ScannerSequence 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.SetDesktopIcon("scanner") ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |