public:
explicit ViewBase(Session &session, bool is_main_view = false, QWidget *parent = nullptr);
+ /**
+ * Resets the view to its default state after construction. It does however
+ * not reset the signal bases or any other connections with the session.
+ */
+ virtual void reset_view_state();
+
Session& session();
const Session& session() const;
virtual void perform_delayed_view_update();
private Q_SLOTS:
- void on_samples_added(QObject* segment, uint64_t start_sample,
+ void on_samples_added(uint64_t segment_id, uint64_t start_sample,
uint64_t end_sample);
void on_data_updated();
const bool is_main_view_;
- util::Timestamp ruler_shift_;
util::TimeUnit time_unit_;
unordered_set< shared_ptr<data::SignalBase> > signalbases_;