Normand Briere
2019-07-07 46dbce888e7c3eff8969f1ddbe22e144410b67f4
GroupEditor.java
....@@ -380,6 +380,7 @@
380380 shadowYItem.addActionListener(this);
381381 shadowZItem = menu.add(new MenuItem("Shadow Blue"));
382382 shadowZItem.addActionListener(this);
383
+
383384 if (Globals.ADVANCED)
384385 {
385386 menu.add("-");
....@@ -601,6 +602,10 @@
601602 fullButton.setToolTipText("Full-screen window");
602603 fullButton.addActionListener(this);
603604
605
+ oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
606
+ screenfitButton.setToolTipText("Screen fit");
607
+ screenfitButton.addActionListener(this);
608
+
604609 oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
605610 restoreCameraButton.setToolTipText("Restore viewpoint");
606611 restoreCameraButton.addActionListener(this);
....@@ -633,10 +638,6 @@
633638
634639 //oe.toolboxPanel.Return();
635640
636
- copyOptionsPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
637
- screenfitButton.setToolTipText("Screen fit");
638
- screenfitButton.addActionListener(this);
639
-
640641 // copyOptionsPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints);
641642 // trackCB.setToolTipText("Enable tracking");
642643 // trackCB.addItemListener(this);
....@@ -1214,8 +1215,6 @@
12141215 }
12151216 }
12161217
1217
- String string = (String) object;
1218
-
12191218 System.out.println("Transfer = " + object + "; drop : " + target);
12201219 // if( object instanceof java.io.File[])
12211220 // {
....@@ -1223,6 +1222,8 @@
12231222 // objEditor.DropFile((java.io.File[]) object, true);
12241223 // return;
12251224 // }
1225
+
1226
+ String string = (String) object;
12261227
12271228 // File path for Mac and Windows
12281229 if (string.charAt(0) == '/' || string.charAt(1) == ':')
....@@ -2219,7 +2220,8 @@
22192220 } else
22202221 if (source == undoButton)
22212222 {
2222
- Undo();
2223
+ if (!Undo())
2224
+ java.awt.Toolkit.getDefaultToolkit().beep();
22232225 } else
22242226 if (source == redoButton)
22252227 {
....@@ -2227,7 +2229,8 @@
22272229 } else
22282230 if (source == saveButton)
22292231 {
2230
- Save();
2232
+ if (!Save(true))
2233
+ java.awt.Toolkit.getDefaultToolkit().beep();
22312234 } else
22322235 if (source == oneStepButton)
22332236 {
....@@ -2236,17 +2239,14 @@
22362239 } else
22372240 if (source == screenfitButton)
22382241 {
2239
- //Reload(lastConverter, lastFilename, true);
22402242 ScreenFit();
22412243 } else
22422244 if (source == screenfitpointButton)
22432245 {
2244
- //Reload(lastConverter, lastFilename, true);
22452246 ScreenFitPoint();
22462247 } else
22472248 if (source == snapobjectButton)
22482249 {
2249
- //Reload(lastConverter, lastFilename, true);
22502250 SnapObject();
22512251 } else
22522252 // if (event.getSource() == recompileButton)