]> ruin.nu Git - moosique.git/blobdiff - To Do.txt
Added MooInstrumentList - a subcomponent to MooToolbar -
[moosique.git] / To Do.txt
index ba19b3be8f46f146e8b303fa2ef3dbdb955d4006..907d0a3b8c7910abeeee2dd06359ee4c523e4a9c 100644 (file)
--- a/To Do.txt
+++ b/To Do.txt
@@ -1,9 +1,6 @@
 * Inställningar
        - MIDI-enhet     Öppna en dialogruta med innehållet i getMidiDeviceInfo() och låt användaren välja.
 
-* Keyjazz      
-       MidiChannel: noteOn, programChange etc.
-
 * Referenser eller objekt?!?
        tracks.get(tracks.indexOf(noteOffEvent) ???
 
 * Kanalinställning
        Hur sparas i spår?
 
-* Rolle är dum // Einar
\ No newline at end of file
+* Global KeyListener
+       Görs uppenbarligen så här:
+
+               JFrame someFrame = new JFrame();
+               
+               JComponent rootPane = someFrame.getRootPane();
+               ActionMap am = rootPane.getActionMap();
+               
+               Action helpAction = new AbstractAction() {
+                    public void actionPerformed(ActionEvent ae) {
+                        showHelpWindow();
+                    }};
+               am.put("help", helpAction);
+               
+               InputMap im = rootPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
+               KeyStroke helpKey = KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0);
+               im.put(helpKey, "help");
\ No newline at end of file