Module: Yast::FcoeClientDialogsInclude
- Defined in:
- ../../src/include/fcoe-client/dialogs.rb
Instance Method Summary (collapse)
-
- (Yast::Term) ConfigurationDialogContent
Configuration dialog.
- - (Object) EditDialogContents
- - (Object) initialize_fcoe_client_dialogs(include_target)
-
- (Yast::Term) InterfacesDialogContent
Interfaces dialog.
-
- (Yast::Term) ServicesDialogContent
Services dialog.
Instance Method Details
- (Yast::Term) ConfigurationDialogContent
Configuration dialog
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
# File '../../src/include/fcoe-client/dialogs.rb', line 210 def ConfigurationDialogContent MarginBox( @mbox_x, @mbox_y, VBox( VStretch(), HBox( HStretch(), HSpacing(1), VBox( Frame( # frame label - configuration settings of FCoE _("Configuration Settings"), VBox( HBox( HSpacing(2), MinWidth( 6, ComboBox( Id("debug"), # combo box label (debug setting yes/no) _("&Debug"), [Item(Id("yes"), _("Yes")), Item(Id("no"), _("No"), true)] )), HSpacing(2) ), VSpacing(2.0), HBox( HSpacing(2), MinWidth( 6, ComboBox( Id("syslog"), # combo box label (use syslog yes/no) _("&Use syslog"), [Item(Id("yes"), _("Yes"), true), Item(Id("no"), _("No"))] )), HSpacing(2) ) ) ) ), HSpacing(1), HStretch() ), VStretch() ) ) end |
- (Object) EditDialogContents
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 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File '../../src/include/fcoe-client/dialogs.rb', line 84 def EditDialogContents VBox( VStretch(), VSpacing(1), # heading is replaced later (InitEditDialog) HBox( HStretch(), Label( Id(:heading), Opt(:hstretch), "Configuration of Interface ......................." ), HStretch() ), VSpacing(1), HBox( HStretch(), Frame( "", MarginBox( 10, 2, VBox( ComboBox( Id(:fcoe), # combo box label: enable FCoE (yes/no) _("&FCoE Enable"), [Item(Id("yes"), _("Yes")), Item(Id("no"), _("No"), true)] ), VSpacing(1), ComboBox( Id(:dcb), Opt(:notify), # combo box label: require DCB (yes/no) _("&DCB Required"), [Item(Id("yes"), _("Yes")), Item(Id("no"), _("No"), true)] ), VSpacing(1), ComboBox( Id(:auto), # combo box label: AUTO_VLAN setting (yes/no) _("&AUTO_VLAN"), [Item(Id("yes"), _("Yes")), Item(Id("no"), _("No"), true)] ) ) ) ), HStretch() ), VStretch() ) end |
- (Object) initialize_fcoe_client_dialogs(include_target)
29 30 31 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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File '../../src/include/fcoe-client/dialogs.rb', line 29 def initialize_fcoe_client_dialogs(include_target) textdomain "fcoe-client" Yast.import "Label" Yast.import "Wizard" Yast.import "FcoeClient" Yast.include include_target, "fcoe-client/helps.rb" @mbox_x = 1 @mbox_y = Convert.convert(0.5, :from => "float", :to => "integer") @items_fcoe = VBox( VSpacing(0.4), Left( RadioButton( Id("fcoe_startup_auto"), Opt(:notify), # radio button: start service on boot _("When Booting") ) ), Left( RadioButton( Id("fcoe_startup_manual"), Opt(:notify), # radio button: start service manually _("Manually") ) ), VSpacing(0.4) ) @items_lldpad = VBox( VSpacing(0.4), Left( RadioButton( Id("lldpad_startup_auto"), Opt(:notify), # radio button: start service on boot _("When Booting") ) ), Left( RadioButton( Id("lldpad_startup_manual"), Opt(:notify), # radio button: start service manually _("Manually") ) ), VSpacing(0.4) ) end |
- (Yast::Term) InterfacesDialogContent
Interfaces dialog
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File '../../src/include/fcoe-client/dialogs.rb', line 169 def InterfacesDialogContent MarginBox( @mbox_x, @mbox_y, VBox( Table( Id(:interfaces), Opt(:notify, :immediate, :keepSorting), Header( # column headers of table of network interfaces (keep them short) _("Device"), _("MAC Address"), _("Model"), _("VLAN"), _("FCoE VLAN Interface"), _("FCoE Enable"), _("DCB Required"), _("AUTO VLAN"), _("DCB capable"), _("Driver"), _("Flag FCoE"), _("Flag iSCSI"), _("Storage Only") ), [] ), Left( HBox( # button labels PushButton(Id(:retry), _("Retry &Detection")), PushButton(Id(:edit), _("Change &Settings")), PushButton(Id(:create), _("Create &FCoE Interface")), PushButton(Id(:remove), _("&Remove Interface")) ) ) ) ) end |
- (Yast::Term) ServicesDialogContent
Services dialog
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
# File '../../src/include/fcoe-client/dialogs.rb', line 139 def ServicesDialogContent MarginBox( @mbox_x, @mbox_y, VBox( VStretch(), HBox( HStretch(), HSpacing(1), VBox( # frame containing radio buttons for fcoe service start Frame( _("FCoE Service Start"), VBox(RadioButtonGroup(Id("fcoe_service_startup"), @items_fcoe)) ), VSpacing(2), # frame containing radio buttons for lldpad service start Frame( _("Lldpad Service Start"), VBox(RadioButtonGroup(Id("lldpad_service_startup"), @items_lldpad)) ) ), HSpacing(1), HStretch() ), VStretch() ) ) end |