+
+void SigView::resizeGL(int width, int height)
+{
+ glViewport(0, 0, (GLint)width, (GLint)height);
+ glMatrixMode(GL_PROJECTION);
+ glLoadIdentity();
+ glOrtho(0, width, height, 0, -1, 1);
+ glMatrixMode(GL_MODELVIEW);
+}
+
+void SigView::paintGL()
+{
+ glClear(GL_COLOR_BUFFER_BIT);
+
+ QRect rect(0, 0, width(), SignalHeight);
+ const vector< shared_ptr<Signal> > &sigs =
+ _session.get_signals();
+ BOOST_FOREACH(const shared_ptr<Signal> s, sigs)
+ {
+ assert(s);
+ s->paint(*this, rect);
+ rect.translate(0, SignalHeight);
+ }
+}
+
+void SigView::dataUpdated()
+{
+ update();
+}
+