Class: Bootloader::DeviceMapWidget

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

Overview

Represents button that open Device Map edit dialog

Instance Method Summary (collapse)

Methods included from Grub2Widget

#grub2, #grub_default, #password, #sections, #stage1

Instance Method Details

- (Object) handle



708
709
710
711
712
# File 'src/lib/bootloader/grub2_widgets.rb', line 708

def handle
  DeviceMapDialog.run(grub2.device_map)

  nil
end

- (Object) help



696
697
698
699
700
701
702
703
704
705
706
# File 'src/lib/bootloader/grub2_widgets.rb', line 696

def help
  textdomain "bootloader"

  _(
    "<p><big><b>Disks Order</b></big><br>\n" \
      "To specify the order of the disks according to the order in BIOS, use\n" \
      "the <b>Up</b> and <b>Down</b> buttons to reorder the disks.\n" \
      "To add a disk, push <b>Add</b>.\n" \
      "To remove a disk, push <b>Remove</b>.</p>"
  )
end

- (Object) label



690
691
692
693
694
# File 'src/lib/bootloader/grub2_widgets.rb', line 690

def label
  textdomain "bootloader"

  _("&Edit Disk Boot Order")
end