Subversion Repositories svn.mios

Rev

Rev 213 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 213 Rev 628
Line 22... Line 22...
22
22
23
import java.awt.BorderLayout;
23
import java.awt.BorderLayout;
24
import java.awt.GridBagConstraints;
24
import java.awt.GridBagConstraints;
25
import java.awt.GridBagLayout;
25
import java.awt.GridBagLayout;
26
import java.awt.GridLayout;
26
import java.awt.GridLayout;
27
import java.awt.Dimension;
-
 
28
import java.awt.GridLayout;
-
 
29
import java.awt.event.ActionEvent;
-
 
30
import java.awt.event.ActionListener;
-
 
31
import java.util.Vector;
27
import java.util.Vector;
32
28
33
import javax.swing.AbstractButton;
-
 
34
import javax.swing.BorderFactory;
29
import javax.swing.BorderFactory;
35
import javax.swing.BoxLayout;
30
import javax.swing.BoxLayout;
36
import javax.swing.JPanel;
31
import javax.swing.JPanel;
37
import javax.swing.JSlider;
-
 
38
import javax.swing.JToggleButton;
-
 
39
32
40
import org.midibox.sidedit.SIDEditController;
-
 
41
import org.midibox.sidedit.SIDSysexParameterControl;
33
import org.midibox.sidedit.gui.controls.SIDSysexParameterControlGUI;
42
import org.midibox.utils.gui.ImageLoader;
-
 
43
import org.midibox.utils.gui.Knob;
-
 
44
import org.midibox.utils.gui.MyButtonUI;
-
 
45
import  org.midibox.sidedit.gui.controls.*;
-
 
46
34
47
public class ArpGUI extends JPanel{
35
public class ArpGUI extends JPanel {
48
    protected ArpGUI(Vector V1GUIv, Vector V2GUIv) {
36
    protected ArpGUI(Vector V1GUIv, Vector V2GUIv) {
49
        setLayout(new BorderLayout());
37
        setLayout(new BorderLayout());
50
        this.setOpaque(false);
38
        this.setOpaque(false);
Line 82... Line 70...
82
        subPanel1.setOpaque(false);
70
        subPanel1.setOpaque(false);
83
        GridBagConstraints c = new GridBagConstraints();       
71
        GridBagConstraints c = new GridBagConstraints();
84
        c.fill = GridBagConstraints.HORIZONTAL;
72
        c.fill = GridBagConstraints.HORIZONTAL;
85
        c.ipadx = 10;
73
        c.ipadx = 10;
86
        // First row
74
        // First row
-
 
75
        c.gridx = 0;
-
 
76
        c.gridy = 0;
87
        c.gridx = 0;c.gridy = 0;c.gridwidth=1;
77
        c.gridwidth = 1;
88
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(14), c);
78
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(14), c);
-
 
79
        c.gridx = 1;
-
 
80
        c.gridy = 0;
89
        c.gridx = 1;c.gridy = 0;c.gridwidth=2;
81
        c.gridwidth = 2;
90
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(15), c);
82
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(15), c);
91
           
83
92
        // Second row
84
        // Second row
-
 
85
        c.gridx = 0;
-
 
86
        c.gridy = 1;
93
        c.gridx = 0;c.gridy = 1;c.gridwidth=1;
87
        c.gridwidth = 1;
94
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(20), c);
88
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(20), c);
-
 
89
        c.gridx = 1;
-
 
90
        c.gridy = 1;
95
        c.gridx = 1;c.gridy = 1;c.gridwidth=1;
91
        c.gridwidth = 1;
96
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(23), c);
92
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(23), c);
-
 
93
        c.gridx = 2;
-
 
94
        c.gridy = 1;
97
        c.gridx = 2;c.gridy = 1;c.gridwidth=1;
95
        c.gridwidth = 1;
98
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(22), c);
96
        subPanel1.add((SIDSysexParameterControlGUI) vGUI.elementAt(22), c);
99
       
97
100
        JPanel subPanel2 = new JPanel();
98
        JPanel subPanel2 = new JPanel();
101
        subPanel2.setLayout(new GridLayout(2,3));
99
        subPanel2.setLayout(new GridLayout(2, 3));
102
        subPanel2.setOpaque(false);
100
        subPanel2.setOpaque(false);