]> sigrok.org Git - pulseview.git/blobdiff - pv/view/timeitem.hpp
Cursor: Don't draw cursors over each other when they have equal time
[pulseview.git] / pv / view / timeitem.hpp
index e47f1a6bf1564e39425728e35872733d7e592215..f988488409c18426aebab42b720dab2d54731987 100644 (file)
 #ifndef PULSEVIEW_PV_VIEW_TIMEITEM_H
 #define PULSEVIEW_PV_VIEW_TIMEITEM_H
 
-#include "selectableitem.hpp"
+#include "viewitem.hpp"
 
 namespace pv {
 namespace view {
 
 class View;
 
-class TimeItem : public SelectableItem
+class TimeItem : public ViewItem
+
 {
        Q_OBJECT
 
@@ -39,6 +40,14 @@ protected:
         */
        TimeItem(View &view);
 
+public:
+       /**
+        * Sets the time of the marker.
+        */
+       virtual void set_time(double time) = 0;
+
+       virtual float get_x() const = 0;
+
 protected:
        View &view_;
 };