Class: Bootloader::Grub2Widget::BootloaderTab

Inherits:
CWM::Tab
  • Object
show all
Includes:
Grub2Helper
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

Methods included from Grub2Helper

#grub2, #grub_default, #password, #stage1

Instance Method Details

#contentsObject



930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
# File 'src/lib/bootloader/grub2_widgets.rb', line 930

def contents
  timeout_widget = if Systeminfo.bls_timeout_supported?(grub2.name)
    ::Bootloader::BlsWidget::TimeoutWidget.new
  else
    TimeoutWidget.new(hidden_menu_widget)
  end
  VBox(
    VSpacing(2),
    HBox(
      HSpacing(1),
      timeout_widget,
      HSpacing(1),
      VBox(
        os_prober_widget,
        VSpacing(1),
        Left(hidden_menu_widget)
      ),
      HSpacing(1)
    ),
    VSpacing(1),
    MarginBox(1, 1, MinWidth(1, DefaultSectionWidget.new)),
    MarginBox(1, 1, grub_password_widget),
    VStretch()
  )
end

#labelObject



924
925
926
927
928
# File 'src/lib/bootloader/grub2_widgets.rb', line 924

def label
  textdomain "bootloader"

  _("Boot&loader Options")
end