From: Mathias L. <lun...@us...> - 2008-01-20 21:05:50
|
Update of /cvsroot/lmuse/muse/muse/widgets In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv30913/muse/widgets Modified Files: Tag: REL07 canvas.cpp Log Message: Added function for deleting note overlaps in piano roll (usually makes fluidsynth grumpy - silencing the following not). Also some work on opening the editor at current position and selecting the leftmost item Index: canvas.cpp =================================================================== RCS file: /cvsroot/lmuse/muse/muse/widgets/Attic/canvas.cpp,v retrieving revision 1.10.2.11 retrieving revision 1.10.2.12 diff -C2 -d -r1.10.2.11 -r1.10.2.12 *** canvas.cpp 20 Jan 2008 10:52:38 -0000 1.10.2.11 --- canvas.cpp 20 Jan 2008 21:05:41 -0000 1.10.2.12 *************** *** 57,63 **** void Canvas::setPos(int idx, unsigned val, bool adjustScrollbar) { ! if (pos[idx] == val) ! return; ! int opos = mapx(pos[idx]); int npos = mapx(val); --- 57,63 ---- void Canvas::setPos(int idx, unsigned val, bool adjustScrollbar) { ! //if (pos[idx] == val) // Seems to be some refresh problems here, pos[idx] might be val but the gui not updated. ! // return; // skipping this return forces update even if values match. Matching values only seem ! // to occur when initializing int opos = mapx(pos[idx]); int npos = mapx(val); *************** *** 524,527 **** --- 524,528 ---- else if (ctrl) { //Select all on the same pitch (e.g. same y-value) deselectAll(); + printf("Yes, ctrl and press\n"); for (iCItem i = items.begin(); i != items.end(); ++i) { if (i->second->y() == curItem->y() ) |