]> ruin.nu Git - moosique.git/blobdiff - MooDialog.java
no message
[moosique.git] / MooDialog.java
index a2adf4754b5f44472d20a9b69b6797ab903e2338..fc9c2c0b19bd39ad7c23a4560e06cac0513dcd0a 100644 (file)
@@ -30,7 +30,8 @@ public class MooDialog extends JDialog {
                                SET_TEMPO = 9,
                                PREFERENCES = 10,
                                TRANSPOSE = 11,
-                               SCALE_VELOCITY = 12;
+                               SCALE_VELOCITY = 12, 
+                               RECORD = 13;
        
        /**
         * Constructor of the dialogs.
@@ -663,7 +664,12 @@ public class MooDialog extends JDialog {
                } catch (Exception ex) {
                        s = "Manual not found";
                }
-               pane.add(new JScrollPane(new JTextArea(s, 30, 95)));
+               JTextArea text = new JTextArea(s, 30, 95);
+               text.setLineWrap(true);
+               text.setWrapStyleWord(true);
+               text.setEnabled(false);
+               text.setDisabledTextColor(Color.black);
+               pane.add(new JScrollPane(text));
                Action close = new AbstractAction("Close") {
                        public void actionPerformed(ActionEvent ae) {
                                setVisible(false);
@@ -696,6 +702,21 @@ public class MooDialog extends JDialog {
                */
        }
 
+       private void makeRecordDialog(Container pane) {
+       /*      Show a dialog with:
+               "Track" combo box,
+               "Channel" field? (disabled?,
+               "Quantize" pane with
+                       "Quantize" checkbox,
+                       "Resolution" combo box,
+                       "Location" checkboxes and
+                       "Duration" checkboxes
+               "Start Recording" button.
+               
+               Moosique.record(track);
+               */
+       }
+
        private MooNote note;
        private JOptionPane optionPane;
        private JTextField pitch;