X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Feditwindow.cpp;h=f617f3db4ebf70e32eacf226e43ef6d55d3d3959;hb=af29adaa19fd2695bc4e10371e4c819eaf641bae;hp=667f75248e33d8112030a9f5a3796d5cce5368b7;hpb=4cb6658a064af902858ea32e19c868f287d72a3b;p=ttedit diff --git a/src/editwindow.cpp b/src/editwindow.cpp index 667f752..f617f3d 100755 --- a/src/editwindow.cpp +++ b/src/editwindow.cpp @@ -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())