Sha256: c6127a6b8f5d471f6504de8acd1115ead4d48dc969440f6bb7137c02fab9111e

Contents?: true

Size: 1002 Bytes

Versions: 25

Compression:

Stored size: 1002 Bytes

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

# This file contains the implementation and VerticalWidget class.   This class implements
# a vertical layout manager

require 'cosmos/tools/tlm_viewer/widgets/widget'
require 'cosmos/tools/tlm_viewer/widgets/layout_widget'

module Cosmos

  class VerticalWidget < Qt::VBoxLayout
    include Widget
    include LayoutWidget

    def initialize(parent_layout = nil, vSpacing = 3, vPack = true)
      super()
      setSpacing(vSpacing.to_i)
      parent_layout.addLayout(self) if parent_layout
      @v_pack = ConfigParser::handle_true_false(vPack)
    end

    def process_settings
      super()
      addStretch(1) if @v_pack
    end
  end

end # module Cosmos

Version data entries

25 entries across 25 versions & 1 rubygems

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