updating_value_widget_ = false;
}
- time_changed();
+ view_.time_item_appearance_changed(true, true);
}
float TimeMarker::get_x() const
void TimeMarker::on_value_changed(double value)
{
- if (!updating_value_widget_) {
- time_ = value;
- time_changed();
- }
+ if (!updating_value_widget_)
+ set_time(value);
}
} // namespace view
connect(&session_, SIGNAL(frame_ended()),
this, SLOT(data_updated()));
- connect(cursors_->first().get(), SIGNAL(time_changed()),
- this, SLOT(marker_time_changed()));
- connect(cursors_->second().get(), SIGNAL(time_changed()),
- this, SLOT(marker_time_changed()));
-
connect(header_, SIGNAL(signals_moved()),
this, SLOT(on_signals_moved()));
viewport_->update();
}
+void View::time_item_appearance_changed(bool label, bool content)
+{
+ if (label)
+ cursorheader_->update();
+ if (content)
+ viewport_->update();
+}
+
void View::extents_changed(bool horz, bool vert)
{
sticky_events_ |=
viewport_->update();
}
-void View::marker_time_changed()
-{
- cursorheader_->update();
- viewport_->update();
-}
-
void View::on_signals_moved()
{
update_scroll();
public:
void row_item_appearance_changed(bool label, bool content);
+ void time_item_appearance_changed(bool label, bool content);
void extents_changed(bool horz, bool vert);
void signals_changed();
void data_updated();
- void marker_time_changed();
-
void on_signals_moved();
void process_sticky_events();