]> ruin.nu Git - moosique.git/blobdiff - MooToolbar.java
font settings..
[moosique.git] / MooToolbar.java
index 9852c6a4fe72cba4667aeaa5e9c6c2cb38d43357..43027c5a7ddbb75cd4f2191c0f6d8484b261332a 100644 (file)
@@ -100,7 +100,7 @@ public class MooToolbar extends JToolBar {
                        ticksPerBeat = Moosique.getSequence().getResolution();
        }
 
-       /*
+       /**
         * Creates a button with the specified image and tooltip.
         */
        private JButton createButton(String imagelocation, String tooltip) {
@@ -110,7 +110,7 @@ public class MooToolbar extends JToolBar {
                return button;
        }
        
-       /*
+       /**
         * Creates labels with the specified text and font size. 
         */
        private JLabel createLabel(String title, int fontSize){
@@ -119,7 +119,7 @@ public class MooToolbar extends JToolBar {
                return label;
        }
 
-       /*
+       /**
         * Formats the given label for the progress indicator.
         */
        private JLabel formatProgInd(JLabel label){
@@ -149,7 +149,7 @@ public class MooToolbar extends JToolBar {
                                        Moosique.stop();
                                }
                        } else if (e.getSource() instanceof JLabel) {
-                               long position = Moosique.getPosition();
+                               long position = Moosique.getEditPosition();
                                if (e.getSource().equals(measuresValue)) {
                                        if (SwingUtilities.isRightMouseButton(e)) {
                                                position += beatsPerMeasure * ticksPerBeat;
@@ -169,7 +169,7 @@ public class MooToolbar extends JToolBar {
                                                position -= 1;
                                        }
                                }
-                               Moosique.setPosition(position);
+                               Moosique.setEditPosition(position);
                                Moosique.getGUI().update(position);
                        }
                }