]> ruin.nu Git - moosique.git/blobdiff - MooMenu.java
nu är även den fina scale velocity dialogen färdig
[moosique.git] / MooMenu.java
index d2acd204a49cc932a30679b9e93eadb7a497570c..9062f2d51902820a9c2aa2ea7792ecdc2162d467 100644 (file)
@@ -167,7 +167,8 @@ public class MooMenu extends JMenuBar implements ActionListener {
                        File file = chooser.getSelectedFile();
                        if(returnVal == JFileChooser.APPROVE_OPTION && isMidiFile(file)) {
                                directory = chooser.getSelectedFile().getParentFile();
-                               Moosique.load(chooser.getSelectedFile().getAbsolutePath());
+                               if (!Moosique.promptOnUnsavedChanges())
+                                       Moosique.load(chooser.getSelectedFile().getAbsolutePath());
                        }
                } else if (command == "Save") {
                        if (!Moosique.save()) showSaveAsDialog();
@@ -223,14 +224,16 @@ public class MooMenu extends JMenuBar implements ActionListener {
                        MooDialog newDialog = new MooDialog(MooDialog.SET_TEMPO);
                
                } else if (command == "Scale velocity...") {
+                       MooDialog newDialog = new MooDialog(MooDialog.SCALE_VELOCITY);
                
                } else if (command == "Transpose...") {
+                       MooDialog newDialog = new MooDialog(MooDialog.TRANSPOSE);
                
                } else if (command == "User manual") {
                        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));