Author: remi
Date: 2008-07-29 15:01:17 +0200 (Tue, 29 Jul 2008)
New Revision: 1413
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java
Log:
* updated the block dragging behavior.
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java
===================================================================
---
software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java
2008-07-29 09:37:33 UTC (rev 1412)
+++
software_suite_v2/software/tools/attitunesStudio/trunk/src/com/tuxisalive/attitunes/visual/ATTBlockViewer.java
2008-07-29 13:01:17 UTC (rev 1413)
@@ -383,6 +383,18 @@
setFocusedRow(newRow,
true);
}
}
+
+ /* Block dragging activation */
+ if ((focusedBlock == clickedBlock) &&
(focusedBlock != null))
+ {
+ draggingBlock = true;
+
events.emit(ATTConfig.EVENT_BLOCK_DRAG_STARTED, (ATTBlock)focusedBlock);
+ }
+ else
+ {
+ /* Update the time position */
+ coordToTimePosition(x, y);
+ }
}
/* Right click */
else if (event.getButton() ==
MouseEvent.BUTTON3)
@@ -407,18 +419,6 @@
}
}
- /* New block is clicked */
- if ((focusedBlock == clickedBlock) && (focusedBlock !=
null))
- {
- draggingBlock = true;
- events.emit(ATTConfig.EVENT_BLOCK_DRAG_STARTED,
(ATTBlock)focusedBlock);
- }
- else
- {
- /* Update the time position */
- coordToTimePosition(x, y);
- }
-
/* Refresh the viewer */
this.repaint();
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn