Class: Bootloader::Grub2Widget::DeviceMapWidget

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

Overview

Represents button that open Device Map edit dialog

Instance Method Summary collapse

Methods included from Grub2Helper

#grub2, #grub_default, #password, #stage1

Instance Method Details

#handleObject



790
791
792
793
794
# File 'src/lib/bootloader/grub2_widgets.rb', line 790

def handle
  DeviceMapDialog.run(grub2.device_map)

  nil
end

#helpObject



778
779
780
781
782
783
784
785
786
787
788
# File 'src/lib/bootloader/grub2_widgets.rb', line 778

def help
  textdomain "bootloader"

  _(
    "<p><b>Edit Disk Boot Order</b>\n" \
    "allows 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

#labelObject



772
773
774
775
776
# File 'src/lib/bootloader/grub2_widgets.rb', line 772

def label
  textdomain "bootloader"

  _("&Edit Disk Boot Order")
end