Class: Y2Network::Dialogs::RenameInterface

Inherits:
CWM::Popup
  • Object
show all
Defined in:
src/lib/y2network/dialogs/rename_interface.rb

Overview

This dialog allows the user to rename a network interface

It allows the user to enter a new name and to select the attribute to base the rename on. Supported attributes are MAC address and Bus ID.

Instance Method Summary collapse

Constructor Details

#initialize(builder) ⇒ RenameInterface

Constructor

Parameters:



35
36
37
38
39
40
41
# File 'src/lib/y2network/dialogs/rename_interface.rb', line 35

def initialize(builder)
  super()
  textdomain "network"

  @builder = builder
  @old_name = builder.interface.name
end

Instance Method Details

#contentsObject

See Also:

  • CWM::CustomWidget


44
45
46
47
48
49
50
# File 'src/lib/y2network/dialogs/rename_interface.rb', line 44

def contents
  VBox(
    Left(name_widget),
    VSpacing(0.5),
    rename_hwinfo_widget
  )
end