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



1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
# File 'src/lib/bootloader/grub2_widgets.rb', line 1092

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



1086
1087
1088
1089
1090
# File 'src/lib/bootloader/grub2_widgets.rb', line 1086

def label
  textdomain "bootloader"

  _("Boot&loader Options")
end