Sha256: 4b35f91f0a67331f38234afba34bd215597294cafa66a22aed2f5bc192797885
Contents?: true
Size: 856 Bytes
Versions: 8
Compression:
Stored size: 856 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/gui/qt' require 'cosmos/gui/line_graph/line_graph' module Cosmos class LineGraphDialog < Qt::Dialog attr_accessor :line_graph def initialize (title, width=400, height=300) super(Qt::CoreApplication.instance.activeWindow) self.window_title = title @layout = Qt::VBoxLayout.new self.layout = @layout @line_graph = LineGraph.new(self) layout.addWidget(@line_graph) resize(width, height) end end end # end module Cosmos
Version data entries
8 entries across 8 versions & 1 rubygems