Class: Cosmos::SectionheaderWidget
- Inherits:
-
Qt::Widget
- Object
- Qt::Base
- Qt::Widget
- Cosmos::SectionheaderWidget
- Includes:
- MultiWidget, Widget
- Defined in:
- lib/cosmos/tools/tlm_viewer/widgets/sectionheader_widget.rb
Instance Attribute Summary
Attributes included from MultiWidget
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, text) ⇒ SectionheaderWidget
constructor
A new instance of SectionheaderWidget.
Methods included from MultiWidget
#limits_set=, #limits_state=, #polling_period=, #process_settings, #screen=, #set_setting, #set_subsetting, #value=
Methods included from Widget
#context_menu, #get_tooltip_text, included, #process_settings, #set_setting, #set_subsetting, #shutdown, #update_widget
Constructor Details
#initialize(parent_layout, text) ⇒ SectionheaderWidget
Returns a new instance of SectionheaderWidget.
22 23 24 25 26 27 28 29 30 |
# File 'lib/cosmos/tools/tlm_viewer/widgets/sectionheader_widget.rb', line 22 def initialize(parent_layout, text) super() setLayout(Qt::VBoxLayout.new) layout.setSpacing(0) layout.setContentsMargins(0,0,0,0) @widgets << LabelWidget.new(layout, text.to_s) @widgets << HorizontallineWidget.new(layout) parent_layout.addWidget(self) if parent_layout end |