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



875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
# File 'src/lib/bootloader/grub2_widgets.rb', line 875

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



869
870
871
872
873
# File 'src/lib/bootloader/grub2_widgets.rb', line 869

def label
  textdomain "bootloader"

  _("Boot&loader Options")
end