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


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

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

Instance Method Details

#abort_buttonObject

Omits abort


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

def abort_button
  ""
end

#back_buttonObject

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


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

def back_button
  ""
end

#contentsObject


52
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
# File 'src/lib/y2network/dialogs/wireless_wep_keys.rb', line 52

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


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

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


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

def next_button
  Yast::Label.OKButton
end

#should_open_dialog?Boolean

Always open new dialog to work properly in sequence


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

def should_open_dialog?
  true
end

#titleObject


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

def title
  _("Wireless Keys")
end