-
- connect(&_view.session(), SIGNAL(signals_changed()),
- this, SLOT(on_signals_changed()));
-
- connect(&_view, SIGNAL(signals_moved()),
- this, SLOT(on_signals_moved()));
-
- // Trigger the initial event manually. The default device has signals
- // which were created before this object came into being
- on_signals_changed();
-}
-
-int Viewport::get_total_height() const
-{
- int h = 0;
- const vector< shared_ptr<RowItem> > row_items(_view.child_items());
- for (const shared_ptr<RowItem> r : row_items) {
- assert(r);
- h = max(r->v_offset() + View::SignalHeight, h);
- }
-
- return h;