]> ruin.nu Git - moosique.git/blobdiff - MooMenu.java
no message
[moosique.git] / MooMenu.java
index f51af1a28de19f14c5234bae9dd3f879eb2d7cc0..d25ec0caa9a2cfd0a1fef8f0c74d65bdf44f19d8 100644 (file)
@@ -55,10 +55,10 @@ public class MooMenu extends JMenuBar implements ActionListener {
                addItem(music, "Delete track...", KeyEvent.VK_D, ActionEvent.CTRL_MASK);
                addItem(music, "Copy track...", KeyEvent.VK_Y, ActionEvent.CTRL_MASK);
                addItem(music, "Move track...", KeyEvent.VK_M, ActionEvent.CTRL_MASK);
-               edit.addSeparator();
+               music.addSeparator();
                addItem(music, "Insert measure...");
                addItem(music, "Delete measure...");
-               edit.addSeparator();
+               music.addSeparator();
                addItem(music, "Set time signature...");
                addItem(music, "Set tempo...");
                addItem(music, "Scale velocity...");
@@ -136,7 +136,7 @@ public class MooMenu extends JMenuBar implements ActionListener {
        }
        /**
        * Gets the users command of takes and properiate action
-       * @param e      the action perfomed
+       * @param e      The action perfomed.
        */
        public void actionPerformed(ActionEvent e) {
                String command = e.getActionCommand();
@@ -213,13 +213,9 @@ public class MooMenu extends JMenuBar implements ActionListener {
                        seq.deleteTrack(seq.getTracks()[NUMBER]);
                        */
                } else if (command == "Copy track...") {
-               
                        MooDialog what = new MooDialog(MooDialog.COPY_TRACK);
-                       
                } else if (command == "Move track...") {
-               
                        MooDialog what = new MooDialog(MooDialog.MOVE_TRACK);
-
                } else if (command == "Insert measure...") {
                
                } else if (command == "Delete measure...") {
@@ -233,9 +229,7 @@ public class MooMenu extends JMenuBar implements ActionListener {
                } else if (command == "Transpose...") {
                
                } else if (command == "Contents") {
-       
-                       JOptionPane.showMessageDialog(this, "här kommer contents komma");
-               
+                       MooDialog contents = new MooDialog(MooDialog.CONTENTS);
                } else if (command == "Getting started") {
                        
                        JOptionPane.showMessageDialog(null, "här kommer getting started komma");
@@ -254,7 +248,7 @@ public class MooMenu extends JMenuBar implements ActionListener {
                        return false;
                }
                
-               /*
+               /**
                 * gets the description of the filetype
                 * @return "Midifiles   the only filetyp compatibel with the program
                 */