lib/cosmos/tools/tlm_viewer/widgets/labelprogressbar_widget.rb in cosmos-3.0.1 vs lib/cosmos/tools/tlm_viewer/widgets/labelprogressbar_widget.rb in cosmos-3.1.0
- old
+ new
@@ -1,38 +1,38 @@
-# 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/multi_widget'
-require 'cosmos/tools/tlm_viewer/widgets/horizontal_widget'
-require 'cosmos/tools/tlm_viewer/widgets/label_widget'
-require 'cosmos/tools/tlm_viewer/widgets/progressbar_widget'
-
-module Cosmos
-
- class LabelprogressbarWidget < Qt::Widget
- include Widget
- include MultiWidget
-
- def initialize(parent_layout, target_name, packet_name, item_name, scale_factor = 1.0, width = 80, value_type = :CONVERTED)
- super(target_name, packet_name, item_name, value_type)
- setLayout(Qt::HBoxLayout.new)
- layout.setSpacing(0)
- layout.setContentsMargins(0,0,0,0)
- @widgets << LabelWidget.new(layout, item_name.to_s + ':')
- @widgets << ProgressbarWidget.new(layout, target_name, packet_name, item_name, scale_factor, width)
- parent_layout.addWidget(self) if parent_layout
- end
-
- def self.takes_value?
- return true
- end
- end
-
-end # module Cosmos
+# 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/multi_widget'
+require 'cosmos/tools/tlm_viewer/widgets/horizontal_widget'
+require 'cosmos/tools/tlm_viewer/widgets/label_widget'
+require 'cosmos/tools/tlm_viewer/widgets/progressbar_widget'
+
+module Cosmos
+
+ class LabelprogressbarWidget < Qt::Widget
+ include Widget
+ include MultiWidget
+
+ def initialize(parent_layout, target_name, packet_name, item_name, scale_factor = 1.0, width = 80, value_type = :CONVERTED)
+ super(target_name, packet_name, item_name, value_type)
+ setLayout(Qt::HBoxLayout.new)
+ layout.setSpacing(0)
+ layout.setContentsMargins(0,0,0,0)
+ @widgets << LabelWidget.new(layout, item_name.to_s + ':')
+ @widgets << ProgressbarWidget.new(layout, target_name, packet_name, item_name, scale_factor, width)
+ parent_layout.addWidget(self) if parent_layout
+ end
+
+ def self.takes_value?
+ return true
+ end
+ end
+
+end # module Cosmos