Module: Yast::ClusterCommonInclude
- Defined in:
- ../../src/include/cluster/common.rb
Instance Method Summary (collapse)
- - (Object) initialize_cluster_common(include_target)
- - (Object) my_SetContents(conf, contents)
- - (Object) myHelp(help)
Instance Method Details
- (Object) initialize_cluster_common(include_target)
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File '../../src/include/cluster/common.rb', line 30 def initialize_cluster_common(include_target) textdomain "cluster" Yast.import "Label" Yast.import "Wizard" Yast.import "Cluster" Yast.import "Popup" Yast.import "CWM" Yast.import "CWMFirewallInterfaces" Yast.import "SuSEFirewall" Yast.import "SuSEFirewallServices" @DIALOG = ["communication", "security", "csync2", "conntrack", "service"] @PARENT = {} @NAME = { "communication" => _("Communication Channels"), "security" => _("Security"), "service" => _("Service"), "csync2" => _("Configure Csync2"), "conntrack" => _("Configure conntrackd") } end |
- (Object) my_SetContents(conf, contents)
77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
# File '../../src/include/cluster/common.rb', line 77 def my_SetContents(conf, contents) contents = deep_copy(contents) Wizard.SetContents( Ops.add("Cluster - ", Ops.get_string(@NAME, conf, "")), contents, Ops.get_string(@HELPS, conf, ""), true, true ) UI.SetFocus(Id(:wizardTree)) if UI.WidgetExists(Id(:wizardTree)) nil end |
- (Object) myHelp(help)
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
# File '../../src/include/cluster/common.rb', line 55 def myHelp(help) UI.OpenDialog( Opt(:decorated), HBox( VSpacing(16), VBox( HSpacing(60), VSpacing(0.5), RichText(Ops.get_string(@HELPS, help, "")), VSpacing(1.5), PushButton(Id(:ok), Opt(:default, :key_F10), Label.OKButton) ) ) ) UI.SetFocus(Id(:ok)) UI.UserInput UI.CloseDialog nil end |