]> ruin.nu Git - moosique.git/commitdiff
*** empty log message ***
authorEinar Pehrson <einarp@itstud.chalmers.se>
Mon, 19 May 2003 15:14:59 +0000 (15:14 +0000)
committerEinar Pehrson <einarp@itstud.chalmers.se>
Mon, 19 May 2003 15:14:59 +0000 (15:14 +0000)
Manual.txt
MooMenu.java
MooTrackView.java

index 9e6f30f66ae60f037db5ef42a6b384c97cec175d..18fb5f918ceff67d58b77ca47034e75844aaf4f6 100644 (file)
@@ -1,4 +1,10 @@
-Annex B: User Manual
+=============================================
+               M o o s i q u e
+                 version 1.0
+                 User Manual
+      © Roland Andersson, Mikael Andreen,
+       Björn Lanneskog & Einar Pehrson
+=============================================
 
 INTRODUCTION
 Moosique is a MIDI composer's tool for Java. The main purpose of the application is to play and compose music. While being intended for novices, some expert functions are provided.
index 8c9b648dc7018b2658aceb301614ac84835d5891..a61c4038f899a13039fe12470b69af8a289762c5 100644 (file)
@@ -231,7 +231,7 @@ public class MooMenu extends JMenuBar implements ActionListener {
                        MooDialog manual = new MooDialog(MooDialog.MANUAL);
                } else if (command == "About") {
                        JOptionPane.showMessageDialog(null,
-                               "Moosique\nversion 1.0\n\nby\n\nRoland Andersson\nMichael Andreen\nBjörn Lanneskog\nEinar Pehrson",
+                               "Moosique\nversion 1.0\n\n© 2003\nRoland Andersson\nMichael Andreen\nBjörn Lanneskog\nEinar Pehrson",
                                "About Moosique",
                                JOptionPane.INFORMATION_MESSAGE,
                                new ImageIcon(Moosique.getGUI().logo));
index 8133cda05f372feff297b0718db8b6e0853abef2..c1d8b5878cdb66b4f4b0d1ceef38a3f62c499f83 100644 (file)
@@ -324,11 +324,23 @@ public class MooTrackView extends JPanel {
         * @param ticks         the number of ticks to move the selection.
         */
        public void moveSelectedNotes(int ticks) {
-               Iterator it = selection.iterator();
-               while(it.hasNext()) {
-                       MooNoteElement elem = (MooNoteElement)it.next();
-                       elem.getNote().setTick(elem.getNote().getTick() + ticks);
-                       layoutElement(elem, true);
+               if (ticks > 0) {
+                       // If the selection should be moved downwards, traverses the list in the natural order.
+                       Iterator it = selection.iterator();
+                       while(it.hasNext()) {
+                               MooNoteElement elem = (MooNoteElement)it.next();
+                               elem.getNote().setTick(elem.getNote().getTick() + ticks);
+                               layoutElement(elem, true);
+                       }
+               } else {
+                       // If the selection should be moved upwards, traverses the list in the opposite order.
+                       ArrayList selectedList = new ArrayList(selection);
+                       ListIterator it = selectedList.listIterator(selectedList.size());
+                       while(it.hasPrevious()) {
+                               MooNoteElement elem = (MooNoteElement)it.previous();
+                               elem.getNote().setTick(elem.getNote().getTick() + ticks);
+                               layoutElement(elem, true);
+                       }
                }
        }