Class: Cosmos::HorizontalboxWidget

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

Overview

HorizontalboxWidget class

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, #process_settings, #set_setting, #set_subsetting, #shutdown, #update_widget

Constructor Details

#initialize(parent_layout, title = "", hSpacing = 0) ⇒ HorizontalboxWidget

Returns a new instance of HorizontalboxWidget.



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

def initialize(parent_layout, title = "", hSpacing = 0)
  super()
  box = Qt::GroupBox.new(title.to_s)
  setSpacing(hSpacing.to_i)
  box.setLayout(self)
  parent_layout.addWidget(box) if parent_layout
end