マスターバージョン
Revision | 0406468db317043f3a416ea5103467f406a7d4c5 (tree) |
---|---|
Time | 2023-03-19 10:17:28 |
Author | ![]() |
Commiter | syntarou |
Commit
@@ -32,6 +32,8 @@ import javax.swing.JTabbedPane; | ||
32 | 32 | import jp.synthtarou.midimixer.libs.common.log.MXDebugPrint; |
33 | 33 | import jp.synthtarou.midimixer.libs.common.MXUtil; |
34 | 34 | import jp.synthtarou.midimixer.libs.swing.themes.ThemeManagerDialog; |
35 | +import jp.synthtarou.midimixer.mx10input.MX10View; | |
36 | +import jp.synthtarou.midimixer.mx60output.MX60View; | |
35 | 37 | |
36 | 38 | /** |
37 | 39 | * |
@@ -224,6 +226,14 @@ public class MXMainWindow extends javax.swing.JFrame { | ||
224 | 226 | Component view = jTabbedPane1.getComponentAt(x); |
225 | 227 | if (view != null) { |
226 | 228 | view.requestFocusInWindow(); |
229 | + if (view instanceof MX60View) { | |
230 | + MX60View v60 = (MX60View)view; | |
231 | + v60.refreshList(); | |
232 | + } | |
233 | + if (view instanceof MX10View) { | |
234 | + MX10View v10 = (MX10View)view; | |
235 | + v10.refreshList(); | |
236 | + } | |
227 | 237 | } |
228 | 238 | } |
229 | 239 | } |
@@ -98,21 +98,22 @@ public class MXDriver_VSTi implements MXDriver { | ||
98 | 98 | return _ownList.getVSTInstance(device).getPath(); |
99 | 99 | } |
100 | 100 | |
101 | - boolean[] flagOpen = new boolean[20]; | |
101 | + //boolean[] flagOpen = new boolean[20]; | |
102 | 102 | |
103 | 103 | @Override |
104 | - public boolean OutputDeviceIsOpen(int device) { | |
105 | - return flagOpen[device]; | |
104 | + public boolean OutputDeviceIsOpen(int port) { | |
105 | + //return flagOpen[device]; | |
106 | + return _ownList.getVSTInstance(port).isOpen(); | |
106 | 107 | } |
107 | 108 | |
108 | 109 | @Override |
109 | 110 | public void OutputDeviceQueryOpen(int device, long timeout) { |
110 | - flagOpen[device] = true; | |
111 | + //flagOpen[device] = true; | |
111 | 112 | } |
112 | 113 | |
113 | 114 | @Override |
114 | 115 | public void OutputDeviceClose(int device) { |
115 | - flagOpen[device] = false; | |
116 | + //flagOpen[device] = false; | |
116 | 117 | } |
117 | 118 | |
118 | 119 | @Override |
@@ -316,7 +316,7 @@ public class MXMIDIOut { | ||
316 | 316 | } |
317 | 317 | } |
318 | 318 | } |
319 | - | |
319 | + | |
320 | 320 | public boolean isDriverTypeVSTi() { |
321 | 321 | if (_device.getDriver() instanceof MXDriver_VSTi) { |
322 | 322 | return true; |
@@ -40,7 +40,7 @@ | ||
40 | 40 | <Properties> |
41 | 41 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> |
42 | 42 | <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> |
43 | - <TitledBorder title="1.Assign Input"/> | |
43 | + <TitledBorder title="1.Input Assign"/> | |
44 | 44 | </Border> |
45 | 45 | </Property> |
46 | 46 | </Properties> |
@@ -56,7 +56,7 @@ | ||
56 | 56 | <Properties> |
57 | 57 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> |
58 | 58 | <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> |
59 | - <TitledBorder title="2.Port Forwarding"/> | |
59 | + <TitledBorder title="2 Input Forwarding"/> | |
60 | 60 | </Border> |
61 | 61 | </Property> |
62 | 62 | </Properties> |
@@ -74,7 +74,7 @@ | ||
74 | 74 | <Properties> |
75 | 75 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> |
76 | 76 | <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> |
77 | - <TitledBorder title="3.Skip Which"/> | |
77 | + <TitledBorder title="3.Input Filter"/> | |
78 | 78 | </Border> |
79 | 79 | </Property> |
80 | 80 | </Properties> |
@@ -118,17 +118,17 @@ public class MX10View extends javax.swing.JPanel { | ||
118 | 118 | |
119 | 119 | jSplitPane1.setDividerLocation(400); |
120 | 120 | |
121 | - jPanelInputSelect.setBorder(javax.swing.BorderFactory.createTitledBorder("1.Assign Input")); | |
121 | + jPanelInputSelect.setBorder(javax.swing.BorderFactory.createTitledBorder("1.Input Assign")); | |
122 | 122 | jPanelInputSelect.setLayout(new javax.swing.BoxLayout(jPanelInputSelect, javax.swing.BoxLayout.LINE_AXIS)); |
123 | 123 | jSplitPane1.setLeftComponent(jPanelInputSelect); |
124 | 124 | |
125 | - jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("2.Port Forwarding")); | |
125 | + jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("2 Input Forwarding")); | |
126 | 126 | jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.LINE_AXIS)); |
127 | 127 | jSplitPane1.setBottomComponent(jPanel4); |
128 | 128 | |
129 | 129 | jSplitPane2.setLeftComponent(jSplitPane1); |
130 | 130 | |
131 | - jPanelSkip.setBorder(javax.swing.BorderFactory.createTitledBorder("3.Skip Which")); | |
131 | + jPanelSkip.setBorder(javax.swing.BorderFactory.createTitledBorder("3.Input Filter")); | |
132 | 132 | jPanelSkip.setLayout(new java.awt.GridBagLayout()); |
133 | 133 | |
134 | 134 | jCheckBoxUseMessageFilter.setText("Use This Recipe"); |
@@ -214,4 +214,8 @@ public class MX10View extends javax.swing.JPanel { | ||
214 | 214 | _jTableSkip.setModel(createSkipTableModel(_process._data)); |
215 | 215 | _jTableSkip.getColumnModel().getColumn(0).setMinWidth(150); |
216 | 216 | } |
217 | + | |
218 | + public void refreshList() { | |
219 | + _inPanel.refreshList(); | |
220 | + } | |
217 | 221 | } |
@@ -199,7 +199,7 @@ public class MX60MidiOutListPanel extends javax.swing.JPanel { | ||
199 | 199 | JMenuItem item = (JMenuItem)arg0.getSource(); |
200 | 200 | String itemText = item.getText(); |
201 | 201 | int newAssign; |
202 | - if (itemText.startsWith("(")) { | |
202 | + if (itemText.startsWith("(none")) { | |
203 | 203 | newAssign = -1; |
204 | 204 | }else { |
205 | 205 | newAssign = MXUtilMidi.valueOfPortName(itemText); |
@@ -40,7 +40,7 @@ | ||
40 | 40 | <Properties> |
41 | 41 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> |
42 | 42 | <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> |
43 | - <TitledBorder title="1.Assign Output"/> | |
43 | + <TitledBorder title="3.Output Assign"/> | |
44 | 44 | </Border> |
45 | 45 | </Property> |
46 | 46 | </Properties> |
@@ -56,7 +56,7 @@ | ||
56 | 56 | <Properties> |
57 | 57 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> |
58 | 58 | <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> |
59 | - <TitledBorder title="2. Port Forwarding"/> | |
59 | + <TitledBorder title="1. Output Forwarding"/> | |
60 | 60 | </Border> |
61 | 61 | </Property> |
62 | 62 | </Properties> |
@@ -74,7 +74,7 @@ | ||
74 | 74 | <Properties> |
75 | 75 | <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> |
76 | 76 | <Border info="org.netbeans.modules.form.compat2.border.TitledBorderInfo"> |
77 | - <TitledBorder title="3.Skip Which"/> | |
77 | + <TitledBorder title="2.Output Filter"/> | |
78 | 78 | </Border> |
79 | 79 | </Property> |
80 | 80 | </Properties> |
@@ -39,6 +39,7 @@ public class MX60View extends javax.swing.JPanel { | ||
39 | 39 | JTableWithColumnHeader _jTableSkip; |
40 | 40 | boolean _useSkipCC = true; |
41 | 41 | MXWrapList<Integer> _recPortList; |
42 | + MX60MidiOutListPanel _midiPanel; | |
42 | 43 | |
43 | 44 | /** |
44 | 45 | * Creates new form MX50 |
@@ -47,7 +48,8 @@ public class MX60View extends javax.swing.JPanel { | ||
47 | 48 | _process = process; |
48 | 49 | initComponents(); |
49 | 50 | |
50 | - jPanelOutputSelect.add(new MX60MidiOutListPanel()); | |
51 | + _midiPanel = new MX60MidiOutListPanel(); | |
52 | + jPanelOutputSelect.add(_midiPanel); | |
51 | 53 | |
52 | 54 | //_recPortList = MXUtilMidi.createPort(false); |
53 | 55 | //jComboBoxRecSong.setModel(_recPortList); |
@@ -99,17 +101,17 @@ public class MX60View extends javax.swing.JPanel { | ||
99 | 101 | |
100 | 102 | jSplitPane1.setDividerLocation(300); |
101 | 103 | |
102 | - jPanelOutputSelect.setBorder(javax.swing.BorderFactory.createTitledBorder("1.Assign Output")); | |
104 | + jPanelOutputSelect.setBorder(javax.swing.BorderFactory.createTitledBorder("3.Output Assign")); | |
103 | 105 | jPanelOutputSelect.setLayout(new javax.swing.BoxLayout(jPanelOutputSelect, javax.swing.BoxLayout.LINE_AXIS)); |
104 | 106 | jSplitPane1.setLeftComponent(jPanelOutputSelect); |
105 | 107 | |
106 | - jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("2. Port Forwarding")); | |
108 | + jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("1. Output Forwarding")); | |
107 | 109 | jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS)); |
108 | 110 | jSplitPane1.setBottomComponent(jPanel2); |
109 | 111 | |
110 | 112 | jSplitPane2.setTopComponent(jSplitPane1); |
111 | 113 | |
112 | - jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("3.Skip Which")); | |
114 | + jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("2.Output Filter")); | |
113 | 115 | jPanel3.setLayout(new java.awt.GridBagLayout()); |
114 | 116 | gridBagConstraints = new java.awt.GridBagConstraints(); |
115 | 117 | gridBagConstraints.gridx = 0; |
@@ -207,4 +209,8 @@ public class MX60View extends javax.swing.JPanel { | ||
207 | 209 | _jTableSkip.setModel(createSkipTableModel()); |
208 | 210 | _jTableSkip.getColumnModel().getColumn(0).setMinWidth(150); |
209 | 211 | } |
212 | + | |
213 | + public void refreshList() { | |
214 | + _midiPanel.refreshList(); | |
215 | + } | |
210 | 216 | } |