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
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
# File '../../src/include/fcoe-client/dialogs.rb', line 197 def ConfigurationDialogContent MarginBox( @mbox_x, @mbox_y, VBox( VSpacing(2.0), Frame( # frame label - configuration settings of FCoE _("Configuration Settings"), VBox( # combo box label Left( ComboBox( Id("debug"), _("&Debug"), [Item(Id("yes"), "yes"), Item(Id("no"), "no", true)] ) ), # combo box label Left( ComboBox( Id("syslog"), _("&Use syslog"), [Item(Id("yes"), "yes", true), Item(Id("no"), "no")] ) ) ) ), 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 |
# File '../../src/include/fcoe-client/dialogs.rb', line 84 def EditDialogContents VBox( VStretch(), VSpacing(1), # heading is replaced later (InitEditDialog) Label( Id(:heading), "Configuration of Interface ......................." ), VSpacing(1), HBox( HStretch(), Frame( "", MarginBox( 10, 2, VBox( # combo box label: enable FCoE (yes/no) ComboBox( Id(:fcoe), _("&FCoE Enable"), [Item(Id("yes"), "yes"), Item(Id("no"), "no", true)] ), VSpacing(1), # combo box label: require DCB (yes/no) ComboBox( Id(:dcb), Opt(:notify), _("&DCB Required"), [Item(Id("yes"), "yes"), Item(Id("no"), "no", true)] ), VSpacing(1), # combo box label: AUTO_VLAN setting (yes/no) ComboBox( Id(:auto), _("&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
159 160 161 162 163 164 165 166 167 168 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 |
# File '../../src/include/fcoe-client/dialogs.rb', line 159 def InterfacesDialogContent MarginBox( @mbox_x, @mbox_y, VBox( Table( Id(:interfaces), Opt(:notify, :immediate, :keepSorting), # column headers of a table with network interfaces (keep them short) Header( _("Device"), _("MAC Address"), _("Model"), _("VLAN"), _("FCoE VLAN Interface"), # continue column headers _("FCoE Enable"), _("DCB Required"), _("AUTO VLAN"), _("DCB capable") ), [] ), # button labels Left( HBox( 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
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File '../../src/include/fcoe-client/dialogs.rb', line 135 def ServicesDialogContent MarginBox( @mbox_x, @mbox_y, VBox( VSpacing(2.0), # frame containing radio buttons for fcoe service start Frame( _("FCoE Service Start"), VBox(RadioButtonGroup(Id("fcoe_service_startup"), @items_fcoe)) ), VStretch(), # frame containing radio buttons for lldpad service start Frame( _("Lldpad Service Start"), VBox(RadioButtonGroup(Id("lldpad_service_startup"), @items_lldpad)) ), VStretch() ) ) end |