Sha256: c1d84ad8868014516bc9456978f5c40e5d2ae67e9ce7d6ccb401bd9edae84459

Contents?: true

Size: 725 Bytes

Versions: 24

Compression:

Stored size: 725 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/widget'

module Cosmos

  class CheckbuttonWidget < Qt::CheckBox
    include Widget

    def initialize(parent_layout, checkbutton_text)
      super()
      setText(checkbutton_text.to_s)
      parent_layout.addWidget(self) if parent_layout
    end

    def checked?
      self.isChecked()
    end

  end

end # module Cosmos

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cosmos-3.8.2 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.8.1 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.8.0 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.7.1 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.7.0 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.6.3 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.6.2 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.6.1 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.6.0 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.5.3 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.5.2 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.5.0 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.4.2 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.4.1 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.4.0 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.3.3 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.3.2 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.3.1 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.3.0 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb
cosmos-3.2.1 lib/cosmos/tools/tlm_viewer/widgets/checkbutton_widget.rb