1 #include "MosaicPanTool.h"
9 #include "MosaicGraphicsView.h"
10 #include "MosaicSceneWidget.h"
33 action->setIcon(
getIcon(
"move.png"));
35 action->setToolTip(
"Pan (p)");
36 action->setShortcut(Qt::Key_P);
38 "<b>Function:</b> Pan around the current mosaic.<br><br>"
39 "This tool gives you a <b>click and drag</b> to pan around the mosaic "
41 "<p><b>Shortcut:</b> p</p> ";
42 action->setWhatsThis(text);
65 void MosaicPanTool::updateTool() {
67 getWidget()->setCubesSelectable(
false);
68 getWidget()->getView()->setDragMode(QGraphicsView::ScrollHandDrag);
71 getWidget()->setCubesSelectable(
true);
72 getWidget()->getView()->setDragMode(QGraphicsView::RubberBandDrag);