X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.h;h=dd0ad6ca9a2c0c9e2b3b66fb4867e9f55c028d30;hb=5eb0fa13029207c45748ff572568542782e6d2a8;hp=f196cfe07d9c3bea5d97e7bf972d6aef9008baa0;hpb=ca4ec3eab886e62c0f9d0cc91636383a74ad5d7b;p=pulseview.git diff --git a/pv/view/view.h b/pv/view/view.h index f196cfe0..dd0ad6ca 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -26,6 +26,7 @@ #include #include +#include #include "cursor.h" @@ -53,9 +54,13 @@ private: public: static const int SignalHeight; + static const int SignalMargin; + static const int SignalSnapGridSize; static const QColor CursorAreaColour; + static const QSizeF LabelPadding; + public: explicit View(SigSession &session, QWidget *parent = 0); @@ -100,14 +105,20 @@ public: const QPoint& hover_point() const; + void normalize_layout(); + signals: void hover_point_changed(); + void signals_moved(); + private: void get_scroll_layout(double &length, double &offset) const; void update_scroll(); + void reset_signal_layout(); + private: bool eventFilter(QObject *object, QEvent *event); @@ -117,13 +128,16 @@ private: private slots: - void h_scroll_value_changed(int value); + void h_scroll_moved(int value); void v_scroll_value_changed(int value); + void signals_changed(); void data_updated(); void marker_time_changed(); + void on_signals_moved(); + private: SigSession &_session;