Sha256: 42709cb36c469013586fc2250e18d2aa683c0c7d88e68ddb1fc4ec32f580c136
Contents?: true
Size: 1.3 KB
Versions: 12
Compression:
Stored size: 1.3 KB
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt require 'cosmos/tools/tlm_viewer/widgets/widget' require 'cosmos/tools/tlm_viewer/widgets/multi_widget' require 'cosmos/tools/tlm_viewer/widgets/value_widget' require 'cosmos/tools/tlm_viewer/widgets/limitscolumn_widget' module Cosmos # Vertically stacks a LimitscolumnWidget on a ValueWidget class ValuelimitscolumnWidget < Qt::Widget include Widget include MultiWidget def initialize (parent_layout, target_name, packet_name, item_name, value_type = :WITH_UNITS, characters = 8) super(target_name, packet_name, item_name, value_type) setLayout(Qt::VBoxLayout.new()) layout.setSpacing(1) layout.setContentsMargins(0,0,0,0) @widgets << LimitscolumnWidget.new(layout, target_name, packet_name, item_name, value_type) @widgets << ValueWidget.new(layout, target_name, packet_name, item_name, value_type, characters) parent_layout.addWidget(self) if parent_layout end def self.takes_value? return true end end end
Version data entries
12 entries across 12 versions & 1 rubygems