Class: Y2Network::Dialogs::WirelessWepKeys

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

Overview

Dialog to manage WEP keys

Defined Under Namespace

Classes: WEPKeyLength, WEPKeys

Instance Method Summary collapse

Constructor Details

#initialize(builder) ⇒ WirelessWepKeys

Returns a new instance of WirelessWepKeys.

Parameters:



33
34
35
36
37
# File 'src/lib/y2network/dialogs/wireless_wep_keys.rb', line 33

def initialize(builder)
  super()
  textdomain "network"
  @builder = builder
end

Instance Method Details

#abort_buttonObject

Omits abort



86
87
88
# File 'src/lib/y2network/dialogs/wireless_wep_keys.rb', line 86

def abort_button
  ""
end

#back_buttonObject

Omits back button, only let OK be. So it do directly modification



91
92
93
# File 'src/lib/y2network/dialogs/wireless_wep_keys.rb', line 91

def back_button
  ""
end

#contentsObject



53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'src/lib/y2network/dialogs/wireless_wep_keys.rb', line 53

def contents
  HBox(
    HSpacing(5),
    VBox(
      VSpacing(1),
      # Frame label
      Frame(
        _("WEP Keys"),
        HBox(
          HSpacing(3),
          VBox(
            VSpacing(1),
            # ComboBox label
            Left(WEPKeyLength.new(@builder)),
            VSpacing(1),
            WEPKeys.new(@builder),
            VSpacing(1)
          ),
          HSpacing(3)
        )
      ),
      VSpacing(1)
    ),
    HSpacing(5)
  )
end

#helpObject



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

def help
  _(
    "<p>In this dialog, define your WEP keys used\n" \
    "to encrypt your data before it is transmitted. You can have up to four keys,\n" \
    "although only one key is used to encrypt the data. This is the default key.\n" \
    "The other keys can be used to decrypt data. Usually you have only\n" \
    "one key.</p>"
  )
end

#next_buttonObject



95
96
97
# File 'src/lib/y2network/dialogs/wireless_wep_keys.rb', line 95

def next_button
  Yast::Label.OKButton
end

#should_open_dialog?Boolean

Always open new dialog to work properly in sequence

Returns:

  • (Boolean)


81
82
83
# File 'src/lib/y2network/dialogs/wireless_wep_keys.rb', line 81

def should_open_dialog?
  true
end

#titleObject



39
40
41
# File 'src/lib/y2network/dialogs/wireless_wep_keys.rb', line 39

def title
  _("Wireless Keys")
end