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



769
770
771
772
773
# File 'src/lib/bootloader/grub2_widgets.rb', line 769

def handle
  DeviceMapDialog.run(grub2.device_map)

  nil
end

- (Object) help



757
758
759
760
761
762
763
764
765
766
767
# File 'src/lib/bootloader/grub2_widgets.rb', line 757

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



751
752
753
754
755
# File 'src/lib/bootloader/grub2_widgets.rb', line 751

def label
  textdomain "bootloader"

  _("&Edit Disk Boot Order")
end