Sha256: 78ab963d32eac5fefbb22349bbec67a12e14d7cdf47072519f572261baf39107
Contents?: true
Size: 1.03 KB
Versions: 37
Compression:
Stored size: 1.03 KB
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 # Creates a dialog with a {LineGraph} in it class LineGraphDialog < Qt::Dialog # @return [LineGraph] The dialog line graph attr_accessor :line_graph # @param title [String] Dialog title # @param width [Integer] Dialog width # @param height [Integer] Dialog height 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
Version data entries
37 entries across 37 versions & 1 rubygems