]> sigrok.org Git - pulseview.git/blobdiff - pv/view/viewwidget.hpp
ViewWidget: Define ViewTypes
[pulseview.git] / pv / view / viewwidget.hpp
index 003c0eeda09b57f31d9f26e31b54244045876ac6..e6d2aa60125db71cba6fcb07b79403d4af90d4a7 100644 (file)
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
-#ifndef PULSEVIEW_PV_VIEWWIDGET_H
-#define PULSEVIEW_PV_VIEWWIDGET_H
+#ifndef PULSEVIEW_PV_VIEWWIDGET_HPP
+#define PULSEVIEW_PV_VIEWWIDGET_HPP
 
 #include <memory>
 
@@ -30,6 +30,11 @@ class QTouchEvent;
 namespace pv {
 namespace view {
 
+enum ViewType {
+       TraceView,
+       TabularDecodeView
+};
+
 class View;
 class ViewItem;
 
@@ -121,12 +126,12 @@ protected:
         * Handles touch begin update and end events.
         * @param e the event that triggered this handler.
         */
-       virtual bool touch_event(QTouchEvent *e);
+       virtual bool touch_event(QTouchEvent *event);
 
 protected:
        bool event(QEvent *event);
 
-       void mousePressEvent(QMouseEvent * event);
+       void mousePressEvent(QMouseEvent *event);
        void mouseReleaseEvent(QMouseEvent *event);
        void mouseMoveEvent(QMouseEvent *event);
 
@@ -149,4 +154,4 @@ protected:
 } // namespace view
 } // namespace pv
 
-#endif // PULSEVIEW_PV_VIEWWIDGET_H
+#endif // PULSEVIEW_PV_VIEWWIDGET_HPP