projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Setup environment for SRD on Android
[pulseview.git]
/
pv
/
view
/
viewport.h
diff --git
a/pv/view/viewport.h
b/pv/view/viewport.h
index e32ab09cfd10749bc90f2b4d5e7eaf2474bfbb3e..f7c8028754a1f27f1f7d93a2005d458fd9e991e1 100644
(file)
--- a/
pv/view/viewport.h
+++ b/
pv/view/viewport.h
@@
-1,5
+1,5
@@
/*
/*
- * This file is part of the
sigrok
project.
+ * This file is part of the
PulseView
project.
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
*
*
* Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
*
@@
-18,11
+18,12
@@
* 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 PV_VIEW_VIEWPORT_H
-#define PV_VIEW_VIEWPORT_H
+#ifndef P
ULSEVIEW_P
V_VIEW_VIEWPORT_H
+#define P
ULSEVIEW_P
V_VIEW_VIEWPORT_H
#include <QTimer>
#include <QWidget>
#include <QTimer>
#include <QWidget>
+#include <QTouchEvent>
class QPainter;
class QPaintEvent;
class QPainter;
class QPaintEvent;
@@
-46,19
+47,31
@@
protected:
void paintEvent(QPaintEvent *event);
private:
void paintEvent(QPaintEvent *event);
private:
+ bool event(QEvent *event);
void mousePressEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
- void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
+ void mouseMoveEvent(QMouseEvent *event);
+ void mouseDoubleClickEvent(QMouseEvent * event);
void wheelEvent(QWheelEvent *event);
void wheelEvent(QWheelEvent *event);
+ bool touchEvent(QTouchEvent *e);
+
+private slots:
+ void on_signals_changed();
+ void on_signals_moved();
private:
View &_view;
QPoint _mouse_down_point;
double _mouse_down_offset;
private:
View &_view;
QPoint _mouse_down_point;
double _mouse_down_offset;
+ bool _mouse_down_valid;
+
+ double _pinch_offset0;
+ double _pinch_offset1;
+ bool _pinch_zoom_active;
};
} // namespace view
} // namespace pv
};
} // namespace view
} // namespace pv
-#endif // PV_VIEW_VIEWPORT_H
+#endif // P
ULSEVIEW_P
V_VIEW_VIEWPORT_H