]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/timeitem.hpp
DecoderOutput: Add basic view skeleton
[pulseview.git] / pv / views / trace / timeitem.hpp
index c9b322c7703c1d44287e9f14232e98697f1ca24d..06d850505ce8ebde350ecfbcbaeecbd5b3a79c3a 100644 (file)
@@ -43,12 +43,18 @@ protected:
         */
        TimeItem(View &view);
 
+       bool snapping_disabled_ = false;
+
 public:
        /**
         * Sets the time of the marker.
         */
        virtual void set_time(const pv::util::Timestamp& time) = 0;
 
+       /**
+        * Returns the time this time item is set to.
+        * @return 0 in case there is no valid time (e.g. for a cursor pair)
+        */
        virtual const pv::util::Timestamp time() const = 0;
 
        virtual float get_x() const = 0;
@@ -61,6 +67,8 @@ public:
         */
        void drag_by(const QPoint &delta);
 
+       bool is_snapping_disabled() const;
+
 protected:
        View &view_;
 };