Exemplo n.º 1
0
bool
ChartControl::on_mouse_up(PixelScalar x, PixelScalar y)
{
  const TCHAR* gesture = gestures.Finish();
  if (gesture != NULL)
    OnGesture(gesture);

  return true;
}
Exemplo n.º 2
0
bool
CrossSectionControl::OnMouseUp(PixelScalar x, PixelScalar y)
{
  const TCHAR* gesture = gestures.Finish();
  if (gesture != NULL)
    OnGesture(gesture);

  return true;
}
Exemplo n.º 3
0
bool
ChartControl::OnMouseUp(PixelScalar x, PixelScalar y)
{
  const TCHAR* gesture = gestures.Finish();
  if (gesture != NULL)
    analysis_widget.OnGesture(gesture);

  return true;
}
Exemplo n.º 4
0
bool
CrossSectionControl::on_mouse_up(int x, int y)
{
    const TCHAR* gesture = gestures.Finish();
    if (gesture != NULL)
        OnGesture(gesture);

    return true;
}
Exemplo n.º 5
0
bool
FlarmTrafficControl::OnMouseUp(PixelScalar x, PixelScalar y)
{
  const TCHAR *gesture = gestures.Finish();
  if (gesture && on_mouse_gesture(gesture))
    return true;

  if (!WarningMode())
    SelectNearTarget(x, y, Layout::Scale(15));

  return true;
}
Exemplo n.º 6
0
bool
FlarmTrafficControl::on_mouse_up(int x, int y)
{
  if (XCSoarInterface::SettingsComputer().EnableGestures) {
    const char* gesture = gestures.Finish();
    if (gesture && on_mouse_gesture(gesture))
      return true;
  }

  if (!WarningMode())
    SelectNearTarget(x, y, Layout::Scale(15));

  return true;
}
Exemplo n.º 7
0
bool
ChartControl::OnMouseUp(PixelPoint p)
{
  if (dragging) {
    dragging = false;
    ReleaseCapture();

    const TCHAR *gesture = gestures.Finish();
    if (gesture != NULL)
      analysis_widget.OnGesture(gesture);
  }

  return true;
}
Exemplo n.º 8
0
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;
}