117 |
} |
} |
118 |
|
|
119 |
public void |
public void |
120 |
actionPerformed(ActionEvent e) { CC.initSamplerModel(); } |
actionPerformed(ActionEvent e) { |
121 |
|
if(!CC.verifyConnection()) { |
122 |
|
CC.changeBackend(); |
123 |
|
return; |
124 |
|
} |
125 |
|
CC.reconnect(); |
126 |
|
} |
127 |
} |
} |
128 |
|
|
129 |
public final Action resetSampler = new Reset(); |
public final Action resetSampler = new Reset(); |
136 |
} |
} |
137 |
|
|
138 |
public void |
public void |
139 |
actionPerformed(ActionEvent e) { CC.getSamplerModel().resetBackend(); } |
actionPerformed(ActionEvent e) { |
140 |
|
if(!CC.verifyConnection()) return; |
141 |
|
|
142 |
|
String s = i18n.getMessage("StdA4n.resetSampler?"); |
143 |
|
if(!HF.showYesNoDialog(CC.getMainFrame(), s)) return; |
144 |
|
CC.getSamplerModel().resetBackend(); |
145 |
|
} |
146 |
} |
} |
147 |
|
|
148 |
public final Action exportSamplerConfig = new ExportSamplerConfig(); |
public final Action exportSamplerConfig = new ExportSamplerConfig(); |
158 |
|
|
159 |
public void |
public void |
160 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
161 |
|
if(!CC.verifyConnection()) return; |
162 |
exportSamplerConfig(); |
exportSamplerConfig(); |
163 |
} |
} |
164 |
} |
} |
175 |
|
|
176 |
public void |
public void |
177 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
178 |
|
if(!CC.verifyConnection()) return; |
179 |
exportMidiInstrumentMaps(); |
exportMidiInstrumentMaps(); |
180 |
} |
} |
181 |
} |
} |
182 |
|
|
183 |
|
public final Action changeBackend = new ChangeBackend(); |
184 |
|
|
185 |
|
private class ChangeBackend extends AbstractAction { |
186 |
|
ChangeBackend() { |
187 |
|
super(i18n.getMenuLabel("actions.changeBackend")); |
188 |
|
|
189 |
|
putValue(SHORT_DESCRIPTION, i18n.getMenuLabel("actions.changeBackend.tt")); |
190 |
|
} |
191 |
|
|
192 |
|
public void |
193 |
|
actionPerformed(ActionEvent e) { CC.changeBackend(); } |
194 |
|
} |
195 |
|
|
196 |
public final Action browseOnlineTutorial = new BrowseOnlineTutorial(); |
public final Action browseOnlineTutorial = new BrowseOnlineTutorial(); |
197 |
|
|
198 |
private class BrowseOnlineTutorial extends AbstractAction { |
private class BrowseOnlineTutorial extends AbstractAction { |