using namespace std::tr1;
Graph::Graph()
- : _left(0.0), _right(1.0), _top(5.0), _bottom(0.0), _lineWidth(2),
- _autoScaling(true), _autoScrolling(true), _zoomFactor(1.0),
- _playButton(new CairoPlayButton)
+ : _lineWidth(2), _autoScaling(true), _autoScrolling(true),
+ _zoomFactor(1.0), _playButton(new CairoPlayButton),
+ _left(0.0), _right(1.0), _top(5.0), _bottom(0.0)
{
}
if(!window)
return true;
- Gtk::Allocation allocation = get_allocation();
-
- const int graphWidth = allocation.get_width();
- const int graphHeight = allocation.get_height();
- const int width = graphWidth - 20;
- const int height = graphHeight - 20;
-
Cairo::RefPtr<Cairo::Context> cr = window->create_cairo_context();
#if 0
if(event && !_autoScaling)