.. | .. |
---|
380 | 380 | shadowYItem.addActionListener(this); |
---|
381 | 381 | shadowZItem = menu.add(new MenuItem("Shadow Blue")); |
---|
382 | 382 | shadowZItem.addActionListener(this); |
---|
| 383 | + |
---|
383 | 384 | if (Globals.ADVANCED) |
---|
384 | 385 | { |
---|
385 | 386 | menu.add("-"); |
---|
.. | .. |
---|
601 | 602 | fullButton.setToolTipText("Full-screen window"); |
---|
602 | 603 | fullButton.addActionListener(this); |
---|
603 | 604 | |
---|
| 605 | + oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 606 | + screenfitButton.setToolTipText("Screen fit"); |
---|
| 607 | + screenfitButton.addActionListener(this); |
---|
| 608 | + |
---|
604 | 609 | oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
605 | 610 | restoreCameraButton.setToolTipText("Restore viewpoint"); |
---|
606 | 611 | restoreCameraButton.addActionListener(this); |
---|
.. | .. |
---|
633 | 638 | |
---|
634 | 639 | //oe.toolboxPanel.Return(); |
---|
635 | 640 | |
---|
636 | | - copyOptionsPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
637 | | - screenfitButton.setToolTipText("Screen fit"); |
---|
638 | | - screenfitButton.addActionListener(this); |
---|
639 | | - |
---|
640 | 641 | // copyOptionsPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints); |
---|
641 | 642 | // trackCB.setToolTipText("Enable tracking"); |
---|
642 | 643 | // trackCB.addItemListener(this); |
---|
.. | .. |
---|
1214 | 1215 | } |
---|
1215 | 1216 | } |
---|
1216 | 1217 | |
---|
1217 | | - String string = (String) object; |
---|
1218 | | - |
---|
1219 | 1218 | System.out.println("Transfer = " + object + "; drop : " + target); |
---|
1220 | 1219 | // if( object instanceof java.io.File[]) |
---|
1221 | 1220 | // { |
---|
.. | .. |
---|
1223 | 1222 | // objEditor.DropFile((java.io.File[]) object, true); |
---|
1224 | 1223 | // return; |
---|
1225 | 1224 | // } |
---|
| 1225 | + |
---|
| 1226 | + String string = (String) object; |
---|
1226 | 1227 | |
---|
1227 | 1228 | // File path for Mac and Windows |
---|
1228 | 1229 | if (string.charAt(0) == '/' || string.charAt(1) == ':') |
---|
.. | .. |
---|
2219 | 2220 | } else |
---|
2220 | 2221 | if (source == undoButton) |
---|
2221 | 2222 | { |
---|
2222 | | - Undo(); |
---|
| 2223 | + if (!Undo()) |
---|
| 2224 | + java.awt.Toolkit.getDefaultToolkit().beep(); |
---|
2223 | 2225 | } else |
---|
2224 | 2226 | if (source == redoButton) |
---|
2225 | 2227 | { |
---|
.. | .. |
---|
2227 | 2229 | } else |
---|
2228 | 2230 | if (source == saveButton) |
---|
2229 | 2231 | { |
---|
2230 | | - Save(); |
---|
| 2232 | + if (!Save(true)) |
---|
| 2233 | + java.awt.Toolkit.getDefaultToolkit().beep(); |
---|
2231 | 2234 | } else |
---|
2232 | 2235 | if (source == oneStepButton) |
---|
2233 | 2236 | { |
---|
.. | .. |
---|
2236 | 2239 | } else |
---|
2237 | 2240 | if (source == screenfitButton) |
---|
2238 | 2241 | { |
---|
2239 | | - //Reload(lastConverter, lastFilename, true); |
---|
2240 | 2242 | ScreenFit(); |
---|
2241 | 2243 | } else |
---|
2242 | 2244 | if (source == screenfitpointButton) |
---|
2243 | 2245 | { |
---|
2244 | | - //Reload(lastConverter, lastFilename, true); |
---|
2245 | 2246 | ScreenFitPoint(); |
---|
2246 | 2247 | } else |
---|
2247 | 2248 | if (source == snapobjectButton) |
---|
2248 | 2249 | { |
---|
2249 | | - //Reload(lastConverter, lastFilename, true); |
---|
2250 | 2250 | SnapObject(); |
---|
2251 | 2251 | } else |
---|
2252 | 2252 | // if (event.getSource() == recompileButton) |
---|