Sha256: f3bbdf9a51bf31913519de2379bbed3a7d99d0de228147096817df13d3e2ad4b

Contents?: true

Size: 983 Bytes

Versions: 52

Compression:

Stored size: 983 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'
require 'cosmos/tools/tlm_viewer/widgets/multi_widget'
require 'cosmos/tools/tlm_viewer/widgets/label_widget'
require 'cosmos/tools/tlm_viewer/widgets/horizontalline_widget'

module Cosmos

  class SectionheaderWidget < Qt::Widget
    include Widget
    include MultiWidget

    def initialize(parent_layout, text)
      super()
      setLayout(Qt::VBoxLayout.new)
      layout.setSpacing(0)
      layout.setContentsMargins(0,0,0,0)
      @widgets << LabelWidget.new(layout, text.to_s)
      @widgets << HorizontallineWidget.new(layout)
      parent_layout.addWidget(self) if parent_layout
    end
  end

end # module Cosmos

Version data entries

52 entries across 52 versions & 1 rubygems

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