Class: Cosmos::VerticalWidget

Inherits:
Qt::VBoxLayout show all
Includes:
LayoutWidget, Widget
Defined in:
lib/cosmos/tools/tlm_viewer/widgets/vertical_widget.rb

Instance Attribute Summary

Attributes included from Widget

#item, #item_name, #limits_set, #limits_state, #packet, #packet_name, #polling_period, #screen, #settings, #target_name, #value, #value_type

Instance Method Summary collapse

Methods included from LayoutWidget

#complete, included

Methods included from Widget

#context_menu, #get_tooltip_text, included, #set_setting, #set_subsetting, #shutdown, #update_widget

Constructor Details

#initialize(parent_layout = nil, vSpacing = 3) ⇒ VerticalWidget

Returns a new instance of VerticalWidget.



23
24
25
26
27
# File 'lib/cosmos/tools/tlm_viewer/widgets/vertical_widget.rb', line 23

def initialize(parent_layout = nil, vSpacing = 3)
  super()
  setSpacing(vSpacing.to_i)
  parent_layout.addLayout(self) if parent_layout
end

Instance Method Details

#process_settingsObject



29
30
31
32
# File 'lib/cosmos/tools/tlm_viewer/widgets/vertical_widget.rb', line 29

def process_settings
  super()
  addStretch(1)
end