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) == ':')
....@@ -1471,6 +1472,9 @@
14711472 menu.add(animationItem = new CheckboxMenuItem("Animation..."));
14721473 animationItem.addItemListener(this);
14731474 animationItem.setState(Globals.ANIMATION);
1475
+
1476
+ menu.add(archiveItem = new MenuItem("Archive3D..."));
1477
+ archiveItem.addActionListener(this);
14741478
14751479 menu.add("-");
14761480 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
....@@ -2216,7 +2220,8 @@
22162220 } else
22172221 if (source == undoButton)
22182222 {
2219
- Undo();
2223
+ if (!Undo())
2224
+ java.awt.Toolkit.getDefaultToolkit().beep();
22202225 } else
22212226 if (source == redoButton)
22222227 {
....@@ -2224,7 +2229,8 @@
22242229 } else
22252230 if (source == saveButton)
22262231 {
2227
- Save();
2232
+ if (!Save(true))
2233
+ java.awt.Toolkit.getDefaultToolkit().beep();
22282234 } else
22292235 if (source == oneStepButton)
22302236 {
....@@ -2233,17 +2239,14 @@
22332239 } else
22342240 if (source == screenfitButton)
22352241 {
2236
- //Reload(lastConverter, lastFilename, true);
22372242 ScreenFit();
22382243 } else
22392244 if (source == screenfitpointButton)
22402245 {
2241
- //Reload(lastConverter, lastFilename, true);
22422246 ScreenFitPoint();
22432247 } else
22442248 if (source == snapobjectButton)
22452249 {
2246
- //Reload(lastConverter, lastFilename, true);
22472250 SnapObject();
22482251 } else
22492252 // if (event.getSource() == recompileButton)
....@@ -4731,7 +4734,7 @@
47314734 void refreshContents(boolean cp)
47324735 {
47334736 if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Info"))
4734
- if (!Globals.MOUSEDRAGGED) // && !Globals.TIMERRUNNING)
4737
+ if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
47354738 {
47364739 objEditor.ClearInfo(); // .GetMaterial());
47374740