22 |
|
|
23 |
package org.jsampler.view.fantasia; |
package org.jsampler.view.fantasia; |
24 |
|
|
|
import java.awt.Cursor; |
|
25 |
import java.awt.Dimension; |
import java.awt.Dimension; |
26 |
import java.awt.Insets; |
import java.awt.Insets; |
27 |
|
|
39 |
|
|
40 |
import org.jdesktop.swingx.JXCollapsiblePane; |
import org.jdesktop.swingx.JXCollapsiblePane; |
41 |
|
|
42 |
|
import org.jsampler.view.fantasia.basic.FantasiaLabel; |
43 |
|
import org.jsampler.view.fantasia.basic.PixmapToggleButton; |
44 |
|
import org.jsampler.view.fantasia.basic.PixmapPane; |
45 |
|
|
46 |
import static org.jsampler.view.fantasia.FantasiaI18n.i18n; |
import static org.jsampler.view.fantasia.FantasiaI18n.i18n; |
47 |
import static org.jsampler.view.fantasia.FantasiaPrefs.*; |
import static org.jsampler.view.fantasia.FantasiaPrefs.*; |
48 |
|
|
223 |
setToolTipText(i18n.getButtonLabel("DevicePane.ttShowOptions")); |
setToolTipText(i18n.getButtonLabel("DevicePane.ttShowOptions")); |
224 |
} |
} |
225 |
|
|
226 |
|
@Override |
227 |
public void |
public void |
228 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
229 |
showOptionsPane(isSelected()); |
showOptionsPane(isSelected()); |
240 |
setToolTipText(s); |
setToolTipText(s); |
241 |
} |
} |
242 |
|
|
243 |
|
@Override |
244 |
public boolean |
public boolean |
245 |
contains(int x, int y) { return super.contains(x, y) & y < 13; } |
contains(int x, int y) { return super.contains(x, y) & y < 13; } |
246 |
} |
} |
258 |
setToolTipText(i18n.getButtonLabel("DevicePane.ttRemoveDevice")); |
setToolTipText(i18n.getButtonLabel("DevicePane.ttRemoveDevice")); |
259 |
} |
} |
260 |
|
|
261 |
|
@Override |
262 |
public void |
public void |
263 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
264 |
if(shouldConfirm()) { |
if(shouldConfirm()) { |
275 |
mainPane.setCollapsed(true); |
mainPane.setCollapsed(true); |
276 |
} |
} |
277 |
|
|
278 |
|
@Override |
279 |
public void |
public void |
280 |
propertyChange(PropertyChangeEvent e) { |
propertyChange(PropertyChangeEvent e) { |
281 |
if(e.getNewValue() == "collapsed") { |
if(e.getNewValue() == "collapsed") { |
367 |
showOptions = false; |
showOptions = false; |
368 |
} |
} |
369 |
|
|
370 |
|
@Override |
371 |
public void |
public void |
372 |
actionPerformed(ActionEvent e) { |
actionPerformed(ActionEvent e) { |
373 |
btnRemove.setEnabled(false); |
btnRemove.setEnabled(false); |