X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooGUI.java;h=78105be707d229b2743fae15323b1bebe879e6a8;hb=049faea5b17c1cd2c7af02bd8b162ae5c7f0eb45;hp=71b14937a1f8f1a0e610a08b085a43727df50ff5;hpb=83ec11f99e143607d057db2a68c262ca9672e524;p=moosique.git diff --git a/MooGUI.java b/MooGUI.java index 71b1493..78105be 100644 --- a/MooGUI.java +++ b/MooGUI.java @@ -18,6 +18,7 @@ public class MooGUI extends JFrame { private MooView view; private JLabel statusBar; private java.util.Timer timer; + private boolean drawEmptyTracks = false; public static final int statusResetDelay = 3000; public static final Font FONT = new Font("Helvetica", Font.PLAIN, 10); public static final Color bgColor = new Color(192, 224, 255); @@ -139,6 +140,22 @@ public class MooGUI extends JFrame { toolbar.updateProgInd(tickPosition); } + /** + * Shows the given message in the status bar. + * @param text the message to show + */ + public boolean drawEmptyTracks() { + return drawEmptyTracks; + } + + /** + * Shows the given message in the status bar. + * @param text the message to show + */ + public void setDrawEmptyTracks(boolean state) { + drawEmptyTracks = state; + } + private Action createOctaveAction(final int octave) { Action octaveAction = new AbstractAction() { public void actionPerformed(ActionEvent ae) {