28 |
import javax.swing.Action; |
import javax.swing.Action; |
29 |
|
|
30 |
import org.jsampler.CC; |
import org.jsampler.CC; |
|
import org.jsampler.HF; |
|
31 |
import org.jsampler.view.JSChannel; |
import org.jsampler.view.JSChannel; |
32 |
import org.jsampler.view.std.JSNewAudioDeviceDlg; |
import org.jsampler.view.std.JSNewAudioDeviceDlg; |
33 |
import org.jsampler.view.std.JSNewMidiDeviceDlg; |
import org.jsampler.view.std.JSNewMidiDeviceDlg; |
34 |
import org.jsampler.view.std.StdA4n; |
import org.jsampler.view.std.StdA4n; |
35 |
|
import org.jsampler.view.swing.SHF; |
36 |
|
|
37 |
|
import static org.jsampler.JSPrefs.*; |
38 |
import static org.jsampler.view.fantasia.FantasiaI18n.i18n; |
import static org.jsampler.view.fantasia.FantasiaI18n.i18n; |
|
import static org.jsampler.view.std.StdPrefs.*; |
|
39 |
|
|
40 |
/** |
/** |
41 |
* |
* |
69 |
@Override |
@Override |
70 |
public void |
public void |
71 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
72 |
new SamplerInfoDlg(CC.getMainFrame()).setVisible(true); |
new SamplerInfoDlg(SHF.getMainFrame()).setVisible(true); |
73 |
} |
} |
74 |
} |
} |
75 |
|
|
86 |
@Override |
@Override |
87 |
public void |
public void |
88 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
89 |
if(!((MainFrame)CC.getMainFrame()).runScript()) return; |
if(!((MainFrame)SHF.getMainFrame()).runScript()) return; |
90 |
|
|
91 |
if(preferences().getBoolProperty(SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT)) { |
if(preferences().getBoolProperty(SHOW_LS_CONSOLE_WHEN_RUN_SCRIPT)) { |
92 |
windowLSConsole.actionPerformed(null); |
windowLSConsole.actionPerformed(null); |
109 |
public void |
public void |
110 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
111 |
if(!CC.verifyConnection()) return; |
if(!CC.verifyConnection()) return; |
112 |
new JSNewMidiDeviceDlg(CC.getMainFrame()).setVisible(true); |
new JSNewMidiDeviceDlg(SHF.getMainFrame()).setVisible(true); |
113 |
} |
} |
114 |
} |
} |
115 |
|
|
128 |
public void |
public void |
129 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
130 |
if(!CC.verifyConnection()) return; |
if(!CC.verifyConnection()) return; |
131 |
new JSNewAudioDeviceDlg(CC.getMainFrame()).setVisible(true); |
new JSNewAudioDeviceDlg(SHF.getMainFrame()).setVisible(true); |
132 |
} |
} |
133 |
} |
} |
134 |
|
|
146 |
|
|
147 |
@Override |
@Override |
148 |
public void |
public void |
149 |
actionPerformed(ActionEvent e) { new PrefsDlg(CC.getMainFrame()).setVisible(true); } |
actionPerformed(ActionEvent e) { new PrefsDlg(SHF.getMainFrame()).setVisible(true); } |
150 |
} |
} |
151 |
|
|
152 |
|
|
230 |
@Override |
@Override |
231 |
public void |
public void |
232 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
233 |
LSConsoleFrame console = ((MainFrame)CC.getMainFrame()).getLSConsoleFrame(); |
LSConsoleFrame console = ((MainFrame)SHF.getMainFrame()).getLSConsoleFrame(); |
234 |
|
|
235 |
if(console.isVisible()) console.setVisible(false); |
if(console.isVisible()) console.setVisible(false); |
236 |
|
|
254 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
255 |
if(!CC.verifyConnection()) return; |
if(!CC.verifyConnection()) return; |
256 |
|
|
257 |
if(CC.getInstrumentsDbTreeModel() == null) { |
if(SHF.getInstrumentsDbTreeModel() == null) { |
258 |
String s = i18n.getMessage("A4n.noInstrumentsDbSupport!"); |
String s = i18n.getMessage("A4n.noInstrumentsDbSupport!"); |
259 |
HF.showErrorMessage(s, CC.getMainFrame()); |
SHF.showErrorMessage(s, SHF.getMainFrame()); |
260 |
return; |
return; |
261 |
} |
} |
262 |
|
|
294 |
public void |
public void |
295 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
296 |
SamplerBrowserFrame browser = |
SamplerBrowserFrame browser = |
297 |
((MainFrame)CC.getMainFrame()).getSamplerBrowserFrame(); |
((MainFrame)SHF.getMainFrame()).getSamplerBrowserFrame(); |
298 |
|
|
299 |
if(browser.isVisible()) browser.setVisible(false); |
if(browser.isVisible()) browser.setVisible(false); |
300 |
|
|
313 |
@Override |
@Override |
314 |
public void |
public void |
315 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
316 |
new HelpAboutDlg(CC.getMainFrame()).setVisible(true); |
new HelpAboutDlg(SHF.getMainFrame()).setVisible(true); |
317 |
} |
} |
318 |
} |
} |
319 |
} |
} |