]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/viewitem.hpp
Session: Fix issue #67 by improving error handling
[pulseview.git] / pv / views / trace / viewitem.hpp
index c445f609063df6386579d6fa6cebf74fd4a11c19..77c8665e17522a3d08c3e07f631b866078f21ed6 100644 (file)
  * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
-#ifndef PULSEVIEW_PV_VIEWITEM_HPP
-#define PULSEVIEW_PV_VIEWITEM_HPP
+#ifndef PULSEVIEW_PV_VIEWS_TRACE_VIEWITEM_HPP
+#define PULSEVIEW_PV_VIEWS_TRACE_VIEWITEM_HPP
 
 #include <list>
 
+#include <QMouseEvent>
 #include <QPen>
 #include <QPoint>
 
@@ -169,6 +170,12 @@ public:
 
        virtual void hover_point_changed(const QPoint &hp);
 
+       /**
+        * Handles left mouse button press events.
+        * @param event the mouse event that triggered this handler.
+        */
+       virtual void mouse_left_press_event(const QMouseEvent* event);
+
 protected:
        static QPen highlight_pen();
 
@@ -184,4 +191,4 @@ private:
 } // namespace views
 } // namespace pv
 
-#endif // PULSEVIEW_PV_VIEWITEM_HPP
+#endif // PULSEVIEW_PV_VIEWS_TRACE_VIEWITEM_HPP