Class: DisplayConfigHandler
- Defined in:
- lib/roby/log/gui/data_displays.rb
Instance Attribute Summary collapse
-
#config_ui ⇒ Object
readonly
Returns the value of attribute config_ui.
-
#display ⇒ Object
readonly
Returns the value of attribute display.
-
#display_configs ⇒ Object
readonly
Returns the value of attribute display_configs.
Instance Method Summary collapse
Instance Attribute Details
#config_ui ⇒ Object (readonly)
Returns the value of attribute config_ui.
94 95 96 |
# File 'lib/roby/log/gui/data_displays.rb', line 94 def config_ui @config_ui end |
#display ⇒ Object (readonly)
Returns the value of attribute display.
95 96 97 |
# File 'lib/roby/log/gui/data_displays.rb', line 95 def display @display end |
#display_configs ⇒ Object (readonly)
Returns the value of attribute display_configs.
93 94 95 |
# File 'lib/roby/log/gui/data_displays.rb', line 93 def display_configs @display_configs end |
Instance Method Details
#close ⇒ Object
105 106 107 108 109 110 111 112 |
# File 'lib/roby/log/gui/data_displays.rb', line 105 def close idx = display_configs.index_of(self) if display.decoder display.decoder.displays.delete(display) end display.main.close display_configs.remove_item idx end |
#setup(data_displays, config_ui) ⇒ Object
97 98 99 100 101 102 103 |
# File 'lib/roby/log/gui/data_displays.rb', line 97 def setup(data_displays, config_ui) @display_configs = data_displays.display_configs @display = data_displays.displays[config_ui] @config_ui = config_ui connect(config_ui.close, SIGNAL('clicked()'), self, SLOT('close()')) end |