Sha256: e24a37f5f41325cabf20e304a3663626901fa1311d7cb9eb1b264587119931c6

Contents?: true

Size: 1.45 KB

Versions: 33

Compression:

Stored size: 1.45 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/label_widget'
require 'cosmos/tools/tlm_viewer/widgets/value_widget'
require 'cosmos/tools/tlm_viewer/widgets/rangecolumn_widget'

module Cosmos

  class LabelvaluerangecolumnWidget < Qt::Widget
    include Widget
    include MultiWidget

    def initialize(parent_layout, target_name, packet_name, item_name, low_value, high_value, value_type = :WITH_UNITS, characters = 8, width = 30, height = 100)
      super(target_name, packet_name, item_name, value_type)
      setLayout(Qt::VBoxLayout.new())
      layout.setSpacing(1)
      layout.setContentsMargins(0,0,0,0)
      @widgets << LabelWidget.new(layout, item_name)
      @widgets << RangecolumnWidget.new(layout, target_name, packet_name, item_name, low_value, high_value, value_type, width, height)
      @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 # module Cosmos

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
cosmos-4.3.0-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.3.0 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.4-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.4 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.3-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.3 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.2-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.2 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.1-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.1 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.0-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.2.0 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.1.1-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.1.1 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.1.0-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.1.0 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.0.3-java lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.0.3-universal-java-1.8 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.0.3 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb
cosmos-4.0.2-universal-java-1.8 lib/cosmos/tools/tlm_viewer/widgets/labelvaluerangecolumn_widget.rb