Sha256: 56d1f484c5756e1422aabe547e33012d20b9e022b214909a443aa4688d776dbd

Contents?: true

Size: 953 Bytes

Versions: 12

Compression:

Stored size: 953 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

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

module Cosmos
  # Layout widget which creates a scrollable window
  class ScrollwindowWidget < Qt::VBoxLayout
    include Widget
    include LayoutWidget

    def initialize(parent_layout)
      super()
      @widget = Qt::Widget.new
      @widget.setLayout(self)
      parent_layout.addWidget(@widget) if parent_layout
      @parent_layout = parent_layout
    end

    def complete
      scroll = Qt::ScrollArea.new
      scroll.setWidget(@widget)
      @parent_layout.addWidget(scroll)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cosmos-4.5.2-java lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.5.2 lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.5.1-java lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.5.1 lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.5.0-java lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.5.0 lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.4.2-java lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.4.2 lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.4.1-java lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.4.1 lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.4.0-java lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb
cosmos-4.4.0 lib/cosmos/tools/tlm_viewer/widgets/scrollwindow_widget.rb