Class: Cosmos::LineGraphDialog
- Inherits:
-
Qt::Dialog
- Object
- Qt::Dialog
- Cosmos::LineGraphDialog
- Defined in:
- lib/cosmos/gui/line_graph/line_graph_dialog.rb
Instance Attribute Summary collapse
-
#line_graph ⇒ Object
Returns the value of attribute line_graph.
Instance Method Summary collapse
-
#initialize(title, width = 400, height = 300) ⇒ LineGraphDialog
constructor
A new instance of LineGraphDialog.
Methods inherited from Qt::Dialog
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_graph ⇒ Object
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 |