#include <boost/foreach.hpp>
-using namespace boost;
-using namespace std;
+using boost::shared_ptr;
+using std::max;
+using std::min;
+using std::vector;
namespace pv {
namespace view {
}
}
+void Viewport::mouseDoubleClickEvent(QMouseEvent *event)
+{
+ assert(event);
+
+ if (event->buttons() & Qt::LeftButton)
+ _view.zoom(2.0, event->x());
+ else if (event->buttons() & Qt::RightButton)
+ _view.zoom(-2.0, event->x());
+}
+
void Viewport::wheelEvent(QWheelEvent *event)
{
assert(event);