bool BigThermalAssistantWindow::OnMouseDouble(PixelScalar x, PixelScalar y) { StopDragging(); InputEvents::ShowMenu(); return true; }
bool FlarmTrafficControl::OnMouseDouble(PixelScalar x, PixelScalar y) { StopDragging(); InputEvents::ShowMenu(); return true; }
void CMDIChild::OnLButtonUp(UINT nFlags, CPoint point) { if (m_bDragging) StopDragging(); CWnd::OnLButtonUp(nFlags, point); }
bool FlarmTrafficControl::OnMouseDouble(PixelScalar x, PixelScalar y) { StopDragging(); if (mouse_double_function == nullptr) return false; return mouse_double_function(x, y); }
void SpeedDialThumbnail::OnMouseLeave() { if (IsDragging()) { StopDragging(); return; } GenericThumbnail::OnMouseLeave(); }
bool MainWindow::OnMouseDouble(PixelScalar x, PixelScalar y) { if (SingleWindow::OnMouseDouble(x, y)) return true; StopDragging(); if (!HasDialog()) InputEvents::ShowMenu(); return false; }
bool MainWindow::OnMouseDouble(PixelPoint p) { if (SingleWindow::OnMouseDouble(p)) return true; StopDragging(); if (!HasDialog()) InputEvents::ShowMenu(); return false; }
bool BigThermalAssistantWindow::OnMouseUp(PixelScalar x, PixelScalar y) { if (dragging) { StopDragging(); const TCHAR *gesture = gestures.Finish(); if (gesture && InputEvents::processGesture(gesture)) return true; } return false; }
void CMDIChild::OnLButtonDown(UINT nFlags, CPoint point) { if (m_bDragging) StopDragging(); if (!m_bNavHidden && m_rcSplitter.PtInRect(point)) { m_bDragging = true; m_ptDragStart = point; m_nOrigSplitterPos = m_nSplitterPos; SetCapture(); } CWnd::OnLButtonDown(nFlags, point); }
void SpeedDialThumbnail::OnMouseUp(const OpPoint& point, MouseButton button, UINT8 nclicks) { m_mouse_down_active = false; if (IsDragging()) { StopDragging(); return; } if (!GetAnimation() || !GetAnimation()->IsAnimating()) SetFloating(false); GenericThumbnail::OnMouseUp(point, button, nclicks); }
bool MainWindow::OnMouseUp(PixelScalar x, PixelScalar y) { if (SingleWindow::OnMouseUp(x, y)) return true; if (dragging) { StopDragging(); const TCHAR *gesture = gestures.Finish(); if (gesture && InputEvents::processGesture(gesture)) return true; } return false; }
void DrawWidget::mouseDoubleClickEvent(QMouseEvent * e) { QGLWidget::mouseDoubleClickEvent(e); KillPressTask(); m_isCleanSingleClick = false; if (e->button() == Qt::LeftButton) { StopDragging(e); m_framework->ScaleToPoint(ScaleToPointEvent(L2D(e->x()), L2D(e->y()), 1.5)); UpdateScaleControl(); } }
bool FlarmTrafficControl::OnMouseUp(PixelScalar x, PixelScalar y) { if (dragging) { StopDragging(); const TCHAR *gesture = gestures.Finish(); if (gesture && OnMouseGesture(gesture)) return true; } if (!WarningMode()) SelectNearTarget(x, y, Layout::Scale(15)); return true; }
void DrawWidget::mouseReleaseEvent(QMouseEvent * e) { QGLWidget::mouseReleaseEvent(e); m2::PointD const pt = GetDevicePoint(e); if (m_framework->GetGuiController()->OnTapEnded(pt)) return; if (!m_wasLongClick && m_isCleanSingleClick) { m_framework->GetBalloonManager().RemovePin(); StartPressTask(pt, SHORT_TOUCH_MS); } else m_wasLongClick = false; StopDragging(e); StopRotating(e); }
void FlarmTrafficControl::OnCancelMode() { FlarmTrafficWindow::OnCancelMode(); StopDragging(); }
void SpeedDialThumbnail::OnMouseMove(const OpPoint& point) { if (g_widget_globals->captured_widget != this || !m_mouse_down_active || m_entry->IsEmpty() || GetLocked()) return GenericThumbnail::OnMouseMove(point); if (!IsDragging()) { const int drag_treshold = 5; const bool treshold_reached = ((labs(point.x - m_mousedown_point.x) > drag_treshold) || (labs(point.y - m_mousedown_point.y) > drag_treshold)); if (treshold_reached) { if (StartDragging(point.x, point.y)) { SetZ(Z_TOP); } } } if (IsDragging()) { OpPoint parent_point = point; parent_point.x += rect.x; parent_point.y += rect.y; if (!GetParent()->GetBounds().Contains(parent_point) && !g_drag_manager->IsDragging()) { if(g_input_manager->GetTouchInputState() & TOUCH_INPUT_ACTIVE) { // if this is caused by inertia, we don't want it flying off the viewport, nor // do we want to start an drag and drop outside Opera with touch StopDragging(); return; } // Stop dragging and start drag'n'drop when we move it out from the viewport. StopDragging(); if (StartDragging(parent_point.x, parent_point.y) && m_drag_object) { // Yes, that's on purpose: reset member first, then call StartDrag(). DesktopDragObject* object = m_drag_object; m_drag_object = NULL; // This transfers drag object ownership to OpDragManager: g_drag_manager->StartDrag(object, NULL, FALSE); } return; } // Drag the floating thumbnail widget. int x = rect.x + point.x - m_mousedown_point.x; int y = rect.y + point.y - m_mousedown_point.y; SetRect(OpRect(x, y, rect.width, rect.height)); // See if we are hovering over another thumbnail, and if so, // move the thumbnails to the new positions. SpeedDialThumbnail *other_sdt = GetDropThumbnail(); if (other_sdt && other_sdt->GetContent()->AcceptsDragDrop(*m_drag_object)) { other_sdt->GetContent()->HandleDragDrop(*m_drag_object); int target_pos = g_speeddial_manager->FindSpeedDial(m_entry); m_drag_object->SetID(target_pos); GetParent()->Relayout(true, false); } } }
void BigThermalAssistantWindow::OnCancelMode() { ThermalAssistantWindow::OnCancelMode(); StopDragging(); }
void SpeedDialThumbnail::OnCaptureLost() { StopDragging(); GenericThumbnail::OnCaptureLost(); }
void MainWindow::OnCancelMode() { SingleWindow::OnCancelMode(); StopDragging(); }