]> ruin.nu Git - moosique.git/blobdiff - Moosique.java
Fixed drag select in track view.
[moosique.git] / Moosique.java
index 42b3637cf21db7d67b6a3659f279741723b987e3..09e8395707b175f41a9ab18e94b4a0858c8ef333 100644 (file)
@@ -21,15 +21,15 @@ public class Moosique {
        private static MidiChannel[] channels;
        private static MidiChannel activeChannel;
        private static MidiEvent[] timeSignatures, tempoChanges;
+
        private static ArrayList emptyTracks;
        private static Map trackMute = new HashMap();
        private static Map trackSolo = new HashMap();
-
+       private static Thread player;
 
        private static String filename;
        private static long editPosition;
-       private static boolean makeGUI = true, initSound = true, isEdited = false, drawEmptyTracks = false;
-       private static Thread player;
+       private static boolean makeGUI = true, initSound = true, edited = false, drawEmptyTracks = false;
        public static final int DEFAULT_RESOLUTION = 96, DEFAULT_TRACKS = 4;
 
        /** 
@@ -236,7 +236,7 @@ public class Moosique {
         * @return the tick position
         */
        public static boolean isEdited() {
-               return isEdited;
+               return edited;
        }
 
        /** 
@@ -302,7 +302,7 @@ public class Moosique {
         * Sets the current sequence as edited, which implies prompts when loading a new sequence.
         */
        public static void setEdited() {
-               isEdited = true;
+               edited = true;
        }
 
        /** 
@@ -485,7 +485,7 @@ public class Moosique {
                } catch (IOException e) {
                        return false;
                }
-               isEdited = false;
+               edited = false;
 
                Track[] tracks = seq.getTracks();
                emptyTracks = new ArrayList();
@@ -572,7 +572,7 @@ public class Moosique {
         * Prompts the user .
         */
        public static boolean promptOnUnsavedChanges() {
-               if (!isEdited) return false;
+               if (!edited) return false;
                int exitOption = JOptionPane.showConfirmDialog(gui,
                        "The current sequence has been edited, but not saved.\nDo you wish to continue anyway?",
                        "File not saved - continue?", 
@@ -601,7 +601,7 @@ public class Moosique {
                try {
                        MidiSystem.write(seq, 1, new File(file));
                        filename = file;
-                       isEdited = false;
+                       edited = false;
                        gui.setStatus("Saved " + file);
                        return true;
                } catch (IOException e) {