Normand Briere
2019-07-06 77633b188d01228383ced79c26b41ebb2989624c
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("-");
....@@ -590,14 +591,21 @@
590591 //minButton.setToolTipText("Minimize window");
591592 //minButton.addActionListener(this);
592593
593
- oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
594
- maxButton.setToolTipText("Maximize window");
595
- maxButton.addActionListener(this);
594
+ if (Globals.ADVANCED)
595
+ {
596
+ oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
597
+ maxButton.setToolTipText("Maximize window");
598
+ maxButton.addActionListener(this);
599
+ }
596600
597601 oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
598602 fullButton.setToolTipText("Full-screen window");
599603 fullButton.addActionListener(this);
600604
605
+ oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
606
+ screenfitButton.setToolTipText("Screen fit");
607
+ screenfitButton.addActionListener(this);
608
+
601609 oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
602610 restoreCameraButton.setToolTipText("Restore viewpoint");
603611 restoreCameraButton.addActionListener(this);
....@@ -630,10 +638,6 @@
630638
631639 //oe.toolboxPanel.Return();
632640
633
- copyOptionsPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
634
- screenfitButton.setToolTipText("Screen fit");
635
- screenfitButton.addActionListener(this);
636
-
637641 // copyOptionsPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints);
638642 // trackCB.setToolTipText("Enable tracking");
639643 // trackCB.addItemListener(this);
....@@ -1211,8 +1215,6 @@
12111215 }
12121216 }
12131217
1214
- String string = (String) object;
1215
-
12161218 System.out.println("Transfer = " + object + "; drop : " + target);
12171219 // if( object instanceof java.io.File[])
12181220 // {
....@@ -1220,6 +1222,8 @@
12201222 // objEditor.DropFile((java.io.File[]) object, true);
12211223 // return;
12221224 // }
1225
+
1226
+ String string = (String) object;
12231227
12241228 // File path for Mac and Windows
12251229 if (string.charAt(0) == '/' || string.charAt(1) == ':')
....@@ -1468,6 +1472,9 @@
14681472 menu.add(animationItem = new CheckboxMenuItem("Animation..."));
14691473 animationItem.addItemListener(this);
14701474 animationItem.setState(Globals.ANIMATION);
1475
+
1476
+ menu.add(archiveItem = new MenuItem("Archive3D..."));
1477
+ archiveItem.addActionListener(this);
14711478
14721479 menu.add("-");
14731480 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
....@@ -2213,7 +2220,8 @@
22132220 } else
22142221 if (source == undoButton)
22152222 {
2216
- Undo();
2223
+ if (!Undo())
2224
+ java.awt.Toolkit.getDefaultToolkit().beep();
22172225 } else
22182226 if (source == redoButton)
22192227 {
....@@ -2221,7 +2229,8 @@
22212229 } else
22222230 if (source == saveButton)
22232231 {
2224
- Save();
2232
+ if (!Save(true))
2233
+ java.awt.Toolkit.getDefaultToolkit().beep();
22252234 } else
22262235 if (source == oneStepButton)
22272236 {
....@@ -2230,17 +2239,14 @@
22302239 } else
22312240 if (source == screenfitButton)
22322241 {
2233
- //Reload(lastConverter, lastFilename, true);
22342242 ScreenFit();
22352243 } else
22362244 if (source == screenfitpointButton)
22372245 {
2238
- //Reload(lastConverter, lastFilename, true);
22392246 ScreenFitPoint();
22402247 } else
22412248 if (source == snapobjectButton)
22422249 {
2243
- //Reload(lastConverter, lastFilename, true);
22442250 SnapObject();
22452251 } else
22462252 // if (event.getSource() == recompileButton)
....@@ -4728,7 +4734,7 @@
47284734 void refreshContents(boolean cp)
47294735 {
47304736 if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Info"))
4731
- if (!Globals.MOUSEDRAGGED) // && !Globals.TIMERRUNNING)
4737
+ if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
47324738 {
47334739 objEditor.ClearInfo(); // .GetMaterial());
47344740