Class: Y2Network::Widgets::AddInterface

Inherits:
CWM::PushButton
  • Object
show all
Defined in:
src/lib/y2network/widgets/add_interface.rb

Instance Method Summary collapse

Constructor Details

#initializeAddInterface

Returns a new instance of AddInterface.



29
30
31
32
# File 'src/lib/y2network/widgets/add_interface.rb', line 29

def initialize
  super
  textdomain "network"
end

Instance Method Details

#handleObject



38
39
40
41
# File 'src/lib/y2network/widgets/add_interface.rb', line 38

def handle
  Y2Network::Sequences::Interface.new.add
  :redraw
end

#helpObject



43
44
45
46
47
48
49
# File 'src/lib/y2network/widgets/add_interface.rb', line 43

def help
  # TRANSLATORS: Help for 'Add' interface configuration button
  _(
    "<p><b><big>Adding a Network Card:</big></b><br>\nPress " \
    "<b>Add</b> to configure a new network card manually.</p>\n"
  )
end

#labelObject



34
35
36
# File 'src/lib/y2network/widgets/add_interface.rb', line 34

def label
  Yast::Label.AddButton
end