36 #include <QApplication>
57 : is_moving_(false), shift_pressing_(false),
rviz::Tool()
64 if (event->type() == QEvent::KeyPress && event->key() == Qt::Key_Shift) {
67 else if (event->type() == QEvent::KeyRelease && event->key() == Qt::Key_Shift) {
92 if (isPropertyType<rviz::DisplayGroup>(property)) {
101 if (startMovement<OverlayTextDisplay>(property, event,
"overlay_text_display")) {
104 else if (startMovement<Plotter2DDisplay>(property, event,
"plotter_2d_display")) {
107 else if (startMovement<PieChartDisplay>(property, event,
"pie_chart_display")) {
110 else if (startMovement<OverlayImageDisplay>(property, event,
"overlay_image_display")) {
113 else if (startMovement<OverlayDiagnosticDisplay>(property, event,
"overlay_diagnostic_display")) {
116 else if (startMovement<OverlayMenuDisplay>(property, event,
"overlay_menu_display")) {
142 movePosition<OverlayTextDisplay>(event);
145 movePosition<Plotter2DDisplay>(event);
148 movePosition<PieChartDisplay>(event);
151 movePosition<OverlayImageDisplay>(event);
154 movePosition<OverlayDiagnosticDisplay>(event);
157 movePosition<OverlayMenuDisplay>(event);
169 setPosition<OverlayTextDisplay>(event);
172 setPosition<Plotter2DDisplay>(event);
175 setPosition<PieChartDisplay>(event);
178 setPosition<OverlayImageDisplay>(event);
181 setPosition<OverlayDiagnosticDisplay>(event);
184 setPosition<OverlayMenuDisplay>(event);