32 |
import org.jsampler.view.InstrumentsDbTableView; |
import org.jsampler.view.InstrumentsDbTableView; |
33 |
import org.jsampler.view.InstrumentsDbTreeView; |
import org.jsampler.view.InstrumentsDbTreeView; |
34 |
import org.jsampler.view.BasicIconSet; |
import org.jsampler.view.BasicIconSet; |
35 |
|
import org.jsampler.view.JSMainFrame; |
36 |
import org.jsampler.view.JSViewConfig; |
import org.jsampler.view.JSViewConfig; |
37 |
|
|
38 |
import org.jvnet.substance.api.SubstanceConstants; |
import org.jvnet.substance.api.SubstanceConstants; |
82 |
StringBuffer sb = new StringBuffer(); |
StringBuffer sb = new StringBuffer(); |
83 |
MainFrame frame = (MainFrame)CC.getMainFrame(); |
MainFrame frame = (MainFrame)CC.getMainFrame(); |
84 |
|
|
85 |
for(int i = 0; i < frame.getChannelsPane(0).getChannelCount(); i++) { |
for(int i = 0; i < frame.getChannelsPaneCount(); i++) { |
86 |
Channel c = (Channel)frame.getChannelsPane(0).getChannel(i); |
exportSamplerChannels(sb, i); |
87 |
|
} |
88 |
|
|
89 |
|
MidiDevicesPane midi = frame.getRightSidePane().getDevicesPane().getMidiDevicesPane(); |
90 |
|
|
91 |
|
for(int i = 0; i < midi.getDevicePaneCount(); i++) { |
92 |
|
sb.append("#jsampler.fantasia: [MIDI device]\r\n"); |
93 |
|
|
94 |
|
boolean b = midi.getDevicePaneAt(i).isOptionsPaneExpanded(); |
95 |
|
sb.append("#jsampler.fantasia: expanded = ").append(b).append("\r\n"); |
96 |
|
|
97 |
|
sb.append("#\r\n"); |
98 |
|
} |
99 |
|
|
100 |
|
AudioDevicesPane au = frame.getRightSidePane().getDevicesPane().getAudioDevicesPane(); |
101 |
|
|
102 |
|
for(int i = 0; i < au.getDevicePaneCount(); i++) { |
103 |
|
sb.append("#jsampler.fantasia: [audio device]\r\n"); |
104 |
|
|
105 |
|
boolean b = au.getDevicePaneAt(i).isOptionsPaneExpanded(); |
106 |
|
sb.append("#jsampler.fantasia: expanded = ").append(b).append("\r\n"); |
107 |
|
|
108 |
|
sb.append("#\r\n"); |
109 |
|
} |
110 |
|
|
111 |
|
return sb.toString(); |
112 |
|
} |
113 |
|
|
114 |
|
private void |
115 |
|
exportSamplerChannels(StringBuffer sb, int channelsPane) { |
116 |
|
JSMainFrame frame = CC.getMainFrame(); |
117 |
|
|
118 |
|
for(int i = 0; i < frame.getChannelsPane(channelsPane).getChannelCount(); i++) { |
119 |
|
Channel c = (Channel)frame.getChannelsPane(channelsPane).getChannel(i); |
120 |
|
|
121 |
sb.append("#jsampler.fantasia: [channel]\r\n"); |
sb.append("#jsampler.fantasia: [channel]\r\n"); |
122 |
|
|
123 |
|
sb.append("#jsampler.fantasia: channelsPanel = "); |
124 |
|
sb.append(channelsPane + 1).append("\r\n"); |
125 |
|
|
126 |
switch(c.getViewTracker().getOriginalView().getType()) { |
switch(c.getViewTracker().getOriginalView().getType()) { |
127 |
case SMALL: |
case SMALL: |
128 |
sb.append("#jsampler.fantasia: viewType = SMALL\r\n"); |
sb.append("#jsampler.fantasia: viewType = SMALL\r\n"); |
133 |
break; |
break; |
134 |
} |
} |
135 |
|
|
136 |
sb.append("#jsampler.fantasia: \r\n"); |
boolean b = c.getViewTracker().getOriginalView().isOptionsButtonSelected(); |
137 |
} |
sb.append("#jsampler.fantasia: expanded = ").append(b).append("\r\n"); |
|
|
|
|
MidiDevicesPane midi = frame.getRightSidePane().getDevicesPane().getMidiDevicesPane(); |
|
|
|
|
|
for(int i = 0; i < midi.getDevicePaneCount(); i++) { |
|
|
sb.append("#jsampler.fantasia: [MIDI device]\r\n"); |
|
138 |
|
|
139 |
if(midi.getDevicePaneAt(i).isOptionsPaneExpanded()) { |
sb.append("#\r\n"); |
|
sb.append("#jsampler.fantasia: expanded = true\r\n"); |
|
|
} else { |
|
|
sb.append("#jsampler.fantasia: expanded = false\r\n"); |
|
|
} |
|
|
|
|
|
sb.append("#jsampler.fantasia: \r\n"); |
|
140 |
} |
} |
|
|
|
|
return sb.toString(); |
|
141 |
} |
} |
142 |
|
|
143 |
@Override |
@Override |