Sha256: 6a11f8f07dd4442868118cb5ee30ea9dca21ca22c7a0c3569091f86e01546310
Contents?: true
Size: 1.35 KB
Versions: 52
Compression:
Stored size: 1.35 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/horizontal_widget' require 'cosmos/tools/tlm_viewer/widgets/label_widget' require 'cosmos/tools/tlm_viewer/widgets/formatvalue_widget' module Cosmos class LabelformatvalueWidget < Qt::Widget include Widget include MultiWidget def initialize(parent_layout, target_name, packet_name, item_name, format_string, value_type = :CONVERTED, characters = 12) 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 + ':') layout.addStretch(1) @widgets << FormatvalueWidget.new(layout, target_name, packet_name, item_name, format_string, value_type, characters.to_i) parent_layout.addWidget(self) if parent_layout end def self.takes_value? return true end end end # module Cosmos
Version data entries
52 entries across 52 versions & 1 rubygems