Class: Bootloader::Grub2Widget::BootloaderTab

Inherits:
CWM::Tab
  • Object
show all
Defined in:
src/lib/bootloader/grub2_widgets.rb

Overview

Represents bootloader specific options like its timeout, default section or password protection

Instance Method Summary collapse

Instance Method Details

#contentsObject



1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
# File 'src/lib/bootloader/grub2_widgets.rb', line 1175

def contents
  hiden_menu_widget = HiddenMenuWidget.new
  VBox(
    VSpacing(2),
    HBox(
      HSpacing(1),
      TimeoutWidget.new(hiden_menu_widget),
      HSpacing(1),
      VBox(
        os_prober_widget,
        VSpacing(1),
        Left(hiden_menu_widget)
      ),
      HSpacing(1)
    ),
    VSpacing(1),
    MarginBox(1, 1, DefaultSectionWidget.new),
    MarginBox(1, 1, GrubPasswordWidget.new),
    VStretch()
  )
end

#labelObject



1169
1170
1171
1172
1173
# File 'src/lib/bootloader/grub2_widgets.rb', line 1169

def label
  textdomain "bootloader"

  _("Boot&loader Options")
end