- shared_ptr<view::Signal> context_signal = _context_signal;
- if (!context_signal)
- return;
-
- const QColor new_colour = QColorDialog::getColor(
- context_signal->get_colour(), this, tr("Set Colour"));
-
- if (new_colour.isValid())
- context_signal->set_colour(new_colour);
+ const vector< shared_ptr<Trace> > traces(_view.get_traces());
+ BOOST_FOREACH(shared_ptr<Trace> t, traces) {
+ assert(t);
+ connect(t.get(), SIGNAL(visibility_changed()),
+ this, SLOT(on_trace_changed()));
+ connect(t.get(), SIGNAL(text_changed()),
+ this, SLOT(on_trace_changed()));
+ connect(t.get(), SIGNAL(colour_changed()),
+ this, SLOT(update()));
+ }