Class: Y2Network::Widgets::Wireless
- Inherits:
-
CWM::CustomWidget
- Object
- CWM::CustomWidget
- Y2Network::Widgets::Wireless
- Defined in:
- src/lib/y2network/widgets/wireless.rb
Overview
Top level widget for frame with general wireless settings
Instance Attribute Summary collapse
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
- #contents ⇒ Object
-
#initialize(settings) ⇒ Wireless
constructor
A new instance of Wireless.
Constructor Details
#initialize(settings) ⇒ Wireless
Returns a new instance of 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
#settings ⇒ Object (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
#contents ⇒ Object
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 , VSpacing(0.2), # Text entry label , VSpacing(0.2), , VSpacing(0.5) ), HSpacing(2) ) ), VSpacing(0.5) ) end |