]> Shamusworld >> Repos - ttedit/blobdiff - src/editwindow.cpp
Fix cursors so that the use proper masks, added char window toggle,
[ttedit] / src / editwindow.cpp
index 667f75248e33d8112030a9f5a3796d5cce5368b7..f617f3db4ebf70e32eacf226e43ef6d55d3d3959 100755 (executable)
@@ -8,14 +8,22 @@
 // Who  When        What
 // ---  ----------  -------------------------------------------------------------
 // JLH  08/28/2008  Created this file
+// JLH  09/02/2008  Separated scrolling from dedicated tool to MMB drag
 //
 
 // FIXED:
 //
+// - Fixed scrolling
+//
 // STILL TO BE DONE:
 //
 // - Fix bug in Glyphpoints when dragging on an empty canvas or loading a font
-// - Fix scrolling, zooming, settings (ini)
+// - Fix zooming, settings (ini)
+// - Fix point adding bug 1: should be able to add points to empty canvas
+// - Fix point adding bug 2: should be able to add point successfully to single
+//   point on screen
+// - Add poly multi-select
+// - Add point multi-select
 //
 
 // Uncomment this for debugging...
@@ -301,11 +309,17 @@ WriteLogMsg(" --> [# polys: %u, # points: %u]\n", pts.GetNumPolys(), pts.GetNumP
        }
        else if (e.LeftUp())
        {
-//             mouseDown = false;
-
                if (tool == TOOLScroll || tool == TOOLZoom)
                        ReleaseMouse();
        }
+       else if (e.MiddleDown())
+       {
+               SetCursor(*(app.cur[2]));                               // Scrolling cursor
+       }
+       else if (e.MiddleUp())
+       {
+               SetCursor(*(app.cur[tool]));                    // Restore previous cursor
+       }
        else if (e.Dragging())
        {
                if (e.RightIsDown())