]> sigrok.org Git - pulseview.git/blobdiff - pv/view/flag.hpp
Fix #685 by adding a special T marker when SR_DT_TRIGGER arrives
[pulseview.git] / pv / view / flag.hpp
index c4e4cbb2c211b8b11e7ba96cebcfe274d6651f23..af4c7b9d15012ee89e691dfee9eeea13c1c20c90 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_VIEW_FLAG_H
-#define PULSEVIEW_PV_VIEW_FLAG_H
+#ifndef PULSEVIEW_PV_VIEW_FLAG_HPP
+#define PULSEVIEW_PV_VIEW_FLAG_HPP
 
 #include <memory>
 
 
 #include <memory>
 
@@ -45,7 +45,7 @@ public:
         * @param time The time to set the flag to.
         * @param text The text of the marker.
         */
         * @param time The time to set the flag to.
         * @param text The text of the marker.
         */
-       Flag(View &view, double time, const QString &text);
+       Flag(View &view, const pv::util::Timestamp& time, const QString &text);
 
        /**
         * Copy constructor.
 
        /**
         * Copy constructor.
@@ -68,6 +68,8 @@ public:
 
        void delete_pressed();
 
 
        void delete_pressed();
 
+       void drag_by(const QPoint &delta);
+
 private Q_SLOTS:
        void on_delete();
 
 private Q_SLOTS:
        void on_delete();
 
@@ -80,4 +82,4 @@ private:
 } // namespace view
 } // namespace pv
 
 } // namespace view
 } // namespace pv
 
-#endif // PULSEVIEW_PV_VIEW_FLAG_H
+#endif // PULSEVIEW_PV_VIEW_FLAG_HPP