Class: Bootloader::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

- (Object) contents



807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
# File 'src/lib/bootloader/grub2_widgets.rb', line 807

def contents
  hiden_menu_widget = HiddenMenuWidget.new
  VBox(
    VSpacing(2),
    HBox(
      HSpacing(1),
      TimeoutWidget.new(hiden_menu_widget),
      HSpacing(1),
      VBox(
        Left(Yast::Arch.s390 ? CWM::Empty.new("os_prober") : OSProberWidget.new),
        VSpacing(1),
        Left(hiden_menu_widget)
      ),
      HSpacing(1)
    ),
    VSpacing(1),
    MarginBox(1, 1, DefaultSectionWidget.new),
    MarginBox(1, 1, GrubPasswordWidget.new),
    VStretch()
  )
end

- (Object) label



801
802
803
804
805
# File 'src/lib/bootloader/grub2_widgets.rb', line 801

def label
  textdomain "bootloader"

  _("Bootloader Options")
end