Class: Y2Network::Widgets::Wireless

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

Overview

Top level widget for frame with general wireless settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ Wireless


31
32
33
34
# File 'src/lib/y2network/widgets/wireless.rb', line 31

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

Instance Attribute Details

#settingsObject (readonly)

Returns the value of attribute settings


28
29
30
# File 'src/lib/y2network/widgets/wireless.rb', line 28

def settings
  @settings
end

Instance Method Details

#contentsObject


36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'src/lib/y2network/widgets/wireless.rb', line 36

def contents
  VBox(
    VSpacing(0.5),
    # Frame label
    Frame(
      _("Wireless Device Settings"),
      HBox(
        HSpacing(2),
        VBox(
          VSpacing(0.5),
          # ComboBox label
          mode_widget,
          VSpacing(0.2),
          # Text entry label
          essid_widget,
          VSpacing(0.2),
          expert_settings_widget,
          VSpacing(0.5)
        ),
        HSpacing(2)
      )
    ),
    VSpacing(0.5)
  )
end