Sha256: 561e5e527321d81a05e60681b2206414eaab5ed054a256dc0361363ef46cc9fa

Contents?: true

Size: 1019 Bytes

Versions: 27

Compression:

Stored size: 1019 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 VerticalboxWidget class.   This class implements
# a vertical layout manager with a frame

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

module Cosmos

  class VerticalboxWidget < Qt::VBoxLayout
    include Widget
    include LayoutWidget

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

    def process_settings
      super()
      addStretch(1)
    end
  end

end # module Cosmos

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
cosmos-3.9.2 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.9.1 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.8.3 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.8.2 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.8.1 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.8.0 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.7.1 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.7.0 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.6.3 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.6.2 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.6.1 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.6.0 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.5.3 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.5.2 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.5.0 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.4.2 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.4.1 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.4.0 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.3.3 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb
cosmos-3.3.2 lib/cosmos/tools/tlm_viewer/widgets/verticalbox_widget.rb