Class: Cosmos::LabelprogressbarWidget
- Inherits:
-
Qt::Widget
- Object
- Qt::Base
- Qt::Widget
- Cosmos::LabelprogressbarWidget
- Includes:
- MultiWidget, Widget
- Defined in:
- lib/cosmos/tools/tlm_viewer/widgets/labelprogressbar_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
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parent_layout, target_name, packet_name, item_name, scale_factor = 1.0, width = 80, value_type = :CONVERTED) ⇒ LabelprogressbarWidget
constructor
A new instance of LabelprogressbarWidget.
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, target_name, packet_name, item_name, scale_factor = 1.0, width = 80, value_type = :CONVERTED) ⇒ LabelprogressbarWidget
Returns a new instance of LabelprogressbarWidget.
23 24 25 26 27 28 29 30 31 |
# File 'lib/cosmos/tools/tlm_viewer/widgets/labelprogressbar_widget.rb', line 23 def initialize(parent_layout, target_name, packet_name, item_name, scale_factor = 1.0, width = 80, value_type = :CONVERTED) super(target_name, packet_name, item_name, value_type) setLayout(Qt::HBoxLayout.new) layout.setSpacing(0) layout.setContentsMargins(0,0,0,0) @widgets << LabelWidget.new(layout, item_name.to_s + ':') @widgets << ProgressbarWidget.new(layout, target_name, packet_name, item_name, scale_factor, width) parent_layout.addWidget(self) if parent_layout end |
Class Method Details
.takes_value? ⇒ Boolean
33 34 35 |
# File 'lib/cosmos/tools/tlm_viewer/widgets/labelprogressbar_widget.rb', line 33 def self.takes_value? return true end |