Class: Cosmos::VerticalboxWidget
- Inherits:
-
Qt::VBoxLayout
- Object
- Qt::VBoxLayout
- Cosmos::VerticalboxWidget
- Includes:
- LayoutWidget, Widget
- Defined in:
- lib/cosmos/tools/tlm_viewer/widgets/verticalbox_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
-
#initialize(parent_layout = nil, title = "", vSpacing = 3) ⇒ VerticalboxWidget
constructor
A new instance of VerticalboxWidget.
- #process_settings ⇒ Object
Methods included from LayoutWidget
Methods included from Widget
#context_menu, #get_tooltip_text, included, #set_setting, #set_subsetting, #shutdown, #update_widget
Constructor Details
#initialize(parent_layout = nil, title = "", vSpacing = 3) ⇒ VerticalboxWidget
Returns a new instance of VerticalboxWidget.
23 24 25 26 27 28 29 |
# File 'lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb', line 23 def initialize(parent_layout = nil, title = "", vSpacing = 3) super() box = Qt::GroupBox.new(title.to_s) setSpacing(vSpacing.to_i) box.setLayout(self) parent_layout.addWidget(box) if parent_layout end |
Instance Method Details
#process_settings ⇒ Object
31 32 33 34 |
# File 'lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb', line 31 def process_settings super() addStretch(1) end |