Class: Cosmos::LineGraphDialog

Inherits:
Qt::Dialog show all
Defined in:
lib/cosmos/gui/line_graph/line_graph_dialog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Qt::Dialog

#exec

Constructor Details

#initialize(title, width = 400, height = 300) ⇒ LineGraphDialog

Returns a new instance of LineGraphDialog.



21
22
23
24
25
26
27
28
29
30
31
# File 'lib/cosmos/gui/line_graph/line_graph_dialog.rb', line 21

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

Instance Attribute Details

#line_graphObject

Returns the value of attribute line_graph.



19
20
21
# File 'lib/cosmos/gui/line_graph/line_graph_dialog.rb', line 19

def line_graph
  @line_graph
end