]> ruin.nu Git - moosique.git/blobdiff - MooTrackView.java
*** empty log message ***
[moosique.git] / MooTrackView.java
index b06355430b125be17116ef370a5c26a761f55563..1d46e09d258b227546816e0efd8eaabb1201f8f8 100644 (file)
@@ -14,6 +14,7 @@ import java.util.*;
 public class MooTrackView extends JPanel {
 
        private Track track;
+       private MooTrackTitle;
        private Rectangle box;
 
        private JPopupMenu popup;
@@ -23,9 +24,10 @@ public class MooTrackView extends JPanel {
        protected static int extraHeight = 0;
        public static final int NOTE_HEIGHT = 10, NOTE_WIDTH = 40, VIEW_WIDTH = 200;
 
-       public MooTrackView (Track track) {
+       public MooTrackView (Track track, MooTrackTitle title;) {
                super(true);
                this.track = track;
+               this.title = title;
 
                // Configures panel
                setBackground(Color.white);
@@ -66,7 +68,7 @@ public class MooTrackView extends JPanel {
                addKeyListener(new MooKeyboard());
        }
 
-       public void layoutElementMooNoteElement elem, boolean old){
+       public void layoutElement(MooNoteElement elem, boolean old){
                // If the element is currently in the view, removes its coordinates from the list.
                Rectangle r = new Rectangle();
                if (old){
@@ -101,7 +103,6 @@ public class MooTrackView extends JPanel {
                        viewLength = y + height;
                        if(old)setPreferredSize(new Dimension(VIEW_WIDTH, viewLength + extraHeight));
                }
-
        }
 
        public Track getTrack() {
@@ -169,8 +170,9 @@ public class MooTrackView extends JPanel {
                public void actionPerformed(ActionEvent e) {
                        Object source = e.getSource();
                        if  (source == popupAdd) {
-                               addNote(new MooNote());
+                               //addNote(new MooNote());
                                // int channel, int pitch, int velocity, long timestamp, int duration
+                       }
                }
        }
 }
\ No newline at end of file