commit: Refactor mouse code, fix 7478

From: <msevior_at_physics.unimelb.edu.au>
Date: Mon Sep 27 2004 - 14:45:16 CEST

CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: af/ev/cocoa/ev_CocoaMouse.h af/ev/cocoa/ev_CocoaMouse.mm
CVS: af/ev/qnx/ev_QNXMouse.cpp af/ev/qnx/ev_QNXMouse.h
CVS: af/ev/unix/ev_UnixMouse.cpp af/ev/unix/ev_UnixMouse.h
CVS: af/ev/win/ev_Win32Mouse.cpp af/ev/win/ev_Win32Mouse.h
CVS: af/ev/xp/ev_Mouse.cpp af/ev/xp/ev_Mouse.h
CVS: text/fmt/xp/fv_View.cpp
CVS: ----------------------------------------------------------------------
Refactor mouse code. Fix bug 7478 and enables the fix of other context
based bugs later.

I have only tested on unix but the changes to other platforms were trvial
and there is a good chance I didn't screw up. If so sorry...

each platform had duplicated copies of the member variables

UT_uint32 m_clickState;
EV_EditMouseContext m_contextState;

I moved them up to the base class EV_Mouse and added a new method to
EV_Mouse to clear the these variables that hold the mouse context.

This fixes bug 7478 and will enable the fix of a couple of other weird
context bugs.

Cheers

Martin
Received on Mon Sep 27 14:44:45 2004

This archive was generated by hypermail 2.1.8 : Mon Sep 27 2004 - 14:44:48 CEST