Exemplo n.º 1
0
bool
ChartControl::OnMouseMove(PixelPoint p, unsigned keys)
{
  if (dragging)
    gestures.Update(p);
  return true;
}
Exemplo n.º 2
0
bool
FlarmTrafficControl::OnMouseDown(PixelScalar x, PixelScalar y)
{
  gestures.Start(x, y, Layout::Scale(20));

  return true;
}
Exemplo n.º 3
0
bool
FlarmTrafficControl::OnMouseMove(PixelScalar x, PixelScalar y,
                                   gcc_unused unsigned keys)
{
  gestures.Update(x, y);

  return true;
}
Exemplo n.º 4
0
bool
ChartControl::OnMouseDown(PixelPoint p)
{
  dragging = true;
  SetCapture();
  gestures.Start(p, Layout::Scale(20));
  return true;
}
Exemplo n.º 5
0
bool
FlarmTrafficControl::on_mouse_move(int x, int y, unsigned keys)
{
  if (XCSoarInterface::SettingsComputer().EnableGestures)
    gestures.Update(x, y);

  return true;
}
Exemplo n.º 6
0
bool
FlarmTrafficControl::on_mouse_down(int x, int y)
{
  if (XCSoarInterface::SettingsComputer().EnableGestures)
    gestures.Start(x, y, Layout::Scale(20));

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

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

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

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

  return true;
}
Exemplo n.º 11
0
bool
FlarmTrafficControl::OnMouseDown(PixelScalar x, PixelScalar y)
{
  if (!dragging) {
    dragging = true;
    SetCapture();
    gestures.Start(x, y, Layout::Scale(20));
  }

  return true;
}
Exemplo n.º 12
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.º 13
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.º 14
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.º 15
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;
}
Exemplo n.º 16
0
bool
CrossSectionControl::on_mouse_move(int x, int y, unsigned keys)
{
    gestures.Update(x, y);
    return true;
}
Exemplo n.º 17
0
bool
ChartControl::on_mouse_down(PixelScalar x, PixelScalar y)
{
  gestures.Start(x, y, Layout::Scale(20));
  return true;
}
Exemplo n.º 18
0
bool
ChartControl::on_mouse_move(PixelScalar x, PixelScalar y, unsigned keys)
{
  gestures.Update(x, y);
  return true;
}
Exemplo n.º 19
0
bool
CrossSectionControl::on_mouse_down(int x, int y)
{
    gestures.Start(x, y, Layout::Scale(20));
    return true;
}
Exemplo n.º 20
0
bool
CrossSectionControl::OnMouseMove(PixelScalar x, PixelScalar y, unsigned keys)
{
  gestures.Update(x, y);
  return true;
}
Exemplo n.º 21
0
bool
CrossSectionControl::OnMouseDown(PixelScalar x, PixelScalar y)
{
  gestures.Start(x, y, Layout::Scale(20));
  return true;
}