Normand Briere
2019-06-25 ecff440ceef3ad352aa64cedbb913107ec4863a5
GroupEditor.java
....@@ -150,6 +150,8 @@
150150
151151 void SetupMenu2(GroupEditor oe)
152152 {
153
+ oe.jTree = new cTree();
154
+
153155 Menu menu;
154156 oe.menuBar.add(menu = new Menu("Edit"));
155157 //editItem = menu.add(new MenuItem("Edit"));
....@@ -160,7 +162,7 @@
160162 // redoItem = menu.add(new MenuItem("Redo"));
161163 // redoItem.addActionListener(this);
162164 // menu.add("-");
163
- duplicateItem = menu.add(new MenuItem("Duplicate"));
165
+ duplicateItem = oe.jTree.popup.add(new JMenuItem("Duplicate"));
164166 duplicateItem.addActionListener(this);
165167 cloneItem = menu.add(new MenuItem("Clone"));
166168 cloneItem.addActionListener(this);
....@@ -176,7 +178,6 @@
176178 copyItem.addActionListener(this);
177179 pasteItem = menu.add(new MenuItem("Paste"));
178180 pasteItem.addActionListener(this);
179
- menu.add("-");
180181
181182 menu.add("-");
182183 pasteIntoItem = menu.add(new MenuItem("Paste into"));
....@@ -203,21 +204,21 @@
203204 //zBufferItem.addActionListener(this);
204205 //cameraMenu.add(normalLensItem = new MenuItem("Normal Lens"));
205206 //normalLensItem.addActionListener(this);
206
- cameraMenu.add(revertCameraItem = new MenuItem("Restore Viewpoint"));
207
- revertCameraItem.addActionListener(this);
207
+ cameraMenu.add(restoreCameraItem = new MenuItem("Restore Viewpoint"));
208
+ restoreCameraItem.addActionListener(this);
208209
209
- cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen"));
210
- toggleFullScreenItem.addItemListener(this);
211
- toggleFullScreenItem.setState(CameraPane.FULLSCREEN);
212
- cameraMenu.add("-");
213
-
214
- cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture"));
215
- toggleTextureItem.addItemListener(this);
216
- toggleTextureItem.setState(CameraPane.textureon);
217
-
218
- cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch"));
219
- toggleSwitchItem.addItemListener(this);
220
- toggleSwitchItem.setState(CameraPane.SWITCH);
210
+// cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen"));
211
+// toggleFullScreenItem.addItemListener(this);
212
+// toggleFullScreenItem.setState(CameraPane.FULLSCREEN);
213
+// cameraMenu.add("-");
214
+//
215
+// cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture"));
216
+// toggleTextureItem.addItemListener(this);
217
+// toggleTextureItem.setState(CameraPane.textureon);
218
+//
219
+// cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch"));
220
+// toggleSwitchItem.addItemListener(this);
221
+// toggleSwitchItem.setState(CameraPane.SWITCH);
221222
222223 cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles"));
223224 toggleHandleItem.addItemListener(this);
....@@ -274,7 +275,7 @@
274275 {
275276 oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
276277 //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
277
- //cameraMenu.add(switchItem = new MenuItem("Reverse View"));
278
+ //cameraMenu.add(switchViewItem = new MenuItem("Reverse View"));
278279 editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf"));
279280 oe.cameraMenu.add("-");
280281 openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy..."));
....@@ -282,7 +283,7 @@
282283 editLeafItem.addActionListener(this);
283284 lookAtItem.addActionListener(this);
284285 //lookFromItem.addActinoListener(this);
285
- //switchItem.addActionListener(this);
286
+ //switchViewItem.addActionListener(this);
286287 }
287288
288289 oe.menuBar.add(menu = new Menu("Setting"));
....@@ -327,21 +328,29 @@
327328 }
328329
329330 oe.menuBar.add(menu = new Menu("Group"));
330
- grabItem = menu.add(new MenuItem("Grab"));
331
- grabItem.addActionListener(this);
331
+// grabItem = menu.add(new MenuItem("Grab"));
332
+// grabItem.addActionListener(this);
332333 backItem = menu.add(new MenuItem("Back"));
333334 backItem.addActionListener(this);
334335 frontItem = menu.add(new MenuItem("Front"));
335336 frontItem.addActionListener(this);
336
- compositeItem = menu.add(new MenuItem("Composite"));
337
- compositeItem.addActionListener(this);
337
+// compositeItem = menu.add(new MenuItem("Composite"));
338
+// compositeItem.addActionListener(this);
339
+
340
+ if (Globals.ADVANCED)
341
+ {
338342 hideItem = menu.add(new MenuItem("Hidden Group"));
339343 hideItem.addActionListener(this);
344
+ }
340345 ungroupItem = menu.add(new MenuItem("Ungroup"));
341346 ungroupItem.addActionListener(this);
342
- menu.add("-");
343
- randomItem = menu.add(new MenuItem("Switch node"));
344
- randomItem.addActionListener(this);
347
+
348
+// menu.add("-");
349
+//
350
+// switchItem = menu.add(new MenuItem("Switch node"));
351
+// switchItem.addActionListener(this);
352
+ if (Globals.ADVANCED)
353
+ {
345354 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
346355 switchGeoItem.addActionListener(this);
347356 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
....@@ -349,8 +358,6 @@
349358 morphItem = menu.add(new MenuItem("Morph Group"));
350359 morphItem.addActionListener(this);
351360
352
- if (Globals.ADVANCED)
353
- {
354361 menu.add("-");
355362 physicsItem = menu.add(new MenuItem("Physics"));
356363 physicsItem.addActionListener(this);
....@@ -358,22 +365,20 @@
358365 frameselectorItem.addActionListener(this);
359366 scriptNodeItem = menu.add(new MenuItem("Script Node"));
360367 scriptNodeItem.addActionListener(this);
361
- cameraItem = menu.add(new MenuItem("Camera"));
362
- cameraItem.addActionListener(this);
363368 }
364369
365370 oe.menuBar.add(menu = new Menu("Object"));
366
- textureItem = menu.add(new MenuItem("Texture"));
367
- textureItem.addActionListener(this);
371
+// textureItem = menu.add(new MenuItem("Texture"));
372
+// textureItem.addActionListener(this);
368373 billboardItem = menu.add(new MenuItem("Billboard"));
369374 billboardItem.addActionListener(this);
370375 csgItem = menu.add(new MenuItem("CSG"));
371376 csgItem.addActionListener(this);
372
- shadowXItem = menu.add(new MenuItem("Shadow X"));
377
+ shadowXItem = menu.add(new MenuItem("Shadow Red"));
373378 shadowXItem.addActionListener(this);
374
- shadowYItem = menu.add(new MenuItem("Shadow Y"));
379
+ shadowYItem = menu.add(new MenuItem("Shadow Green"));
375380 shadowYItem.addActionListener(this);
376
- shadowZItem = menu.add(new MenuItem("Shadow Z"));
381
+ shadowZItem = menu.add(new MenuItem("Shadow Blue"));
377382 shadowZItem.addActionListener(this);
378383 if (Globals.ADVANCED)
379384 {
....@@ -575,51 +580,61 @@
575580 oe.radioPanel.add(dummyButton);
576581 oe.buttonGroup.add(dummyButton);
577582 */
583
+ cGridBag copyOptionsPanel = new cGridBag();
584
+
585
+ copyOptionsPanel.preferredHeight = 2;
586
+
578587 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
579588
580589 //oe.toolbarPanel.add(minButton = new cButton("Min", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
581590 //minButton.setToolTipText("Minimize window");
582591 //minButton.addActionListener(this);
583592
584
- oe.toolbarPanel.add(maxButton = new cButton("\u271A", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
593
+ oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
585594 maxButton.setToolTipText("Maximize window");
586595 maxButton.addActionListener(this);
587596
588
- oe.toolbarPanel.add(fullButton = new cButton("\u2b1c", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
597
+ oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
589598 fullButton.setToolTipText("Full-screen window");
590599 fullButton.addActionListener(this);
591600
592
- oe.toolbarPanel.add(undoButton = new cButton("\u21a9", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
601
+ oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
602
+ restoreCameraButton.setToolTipText("Restore viewpoint");
603
+ restoreCameraButton.addActionListener(this);
604
+
605
+ copyOptionsPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
593606 undoButton.setToolTipText("Undo changes");
594607 undoButton.addActionListener(this);
595608
596
- oe.toolbarPanel.add(redoButton = new cButton("\u21aa", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
609
+ copyOptionsPanel.add(redoButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
597610 redoButton.setToolTipText("Redo changes");
598611 redoButton.addActionListener(this);
599612
600
- oe.toolbarPanel.add(saveButton = new cButton("\u21e3", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
613
+ copyOptionsPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
601614 saveButton.setToolTipText("Save changes");
602615 saveButton.addActionListener(this);
603616
604
- oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints);
617
+ copyOptionsPanel.add(liveCB = GetToggleButton("icons/run.png", Globals.isLIVE())); //, oe.aConstraints);
605618 liveCB.setToolTipText("Enable animation");
606619 liveCB.addItemListener(this);
607620
608
- oe.toolbarPanel.add(oneStepButton = new cButton("\u29f4", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
621
+ copyOptionsPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
609622 oneStepButton.setToolTipText("Animate one step forward");
610623 oneStepButton.addActionListener(this);
611624
612
- oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints);
625
+ copyOptionsPanel.add(fastCB = GetToggleButton("icons/runfast.png", CameraPane.FAST)); //, constraints);
613626 fastCB.setToolTipText("Fast mode");
614627 fastCB.addItemListener(this);
615628
616
- oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK)); //, oe.aConstraints);
617
- trackCB.setToolTipText("Enable tracking");
618
- trackCB.addItemListener(this);
619
-
620
- oe.toolbarPanel.add(screenfitButton = new cButton("@", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
629
+ //oe.toolboxPanel.Return();
630
+
631
+ copyOptionsPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
621632 screenfitButton.setToolTipText("Screen fit");
622633 screenfitButton.addActionListener(this);
634
+
635
+// copyOptionsPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints);
636
+// trackCB.setToolTipText("Enable tracking");
637
+// trackCB.addItemListener(this);
623638
624639 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
625640 // screenfitpointButton.addActionListener(this);
....@@ -631,65 +646,132 @@
631646 snapobjectButton.setToolTipText("Snap Object");
632647 }
633648
634
- oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
635
- flashSelectionButton.setToolTipText("Show selection");
636
- flashSelectionButton.addActionListener(this);
649
+ //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
637650
638
- oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
639
-
640
- oe.toolbarPanel.add(twoButton = new cButton("|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
651
+ oe.toolbarPanel.add(twoButton = new cButton("|-|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
641652 twoButton.setToolTipText("Show center view only");
642653 twoButton.addActionListener(this);
643
- oe.toolbarPanel.add(fourButton = new cButton("+||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
654
+ this.fullscreenLayout = twoButton;
655
+
656
+ oe.toolbarPanel.add(fourButton = new cButton("-||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
644657 fourButton.addActionListener(this);
645658 fourButton.setToolTipText("Show left panel only");
646
- oe.toolbarPanel.add(sixButton = new cButton("+|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
659
+ oe.toolbarPanel.add(sixButton = new cButton("-|-|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
647660 sixButton.setToolTipText("2-column layout left");
648661 sixButton.addActionListener(this);
649
- oe.toolbarPanel.add(threeButton = new cButton("|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
662
+ oe.toolbarPanel.add(threeButton = new cButton("|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
650663 threeButton.setToolTipText("2-column layout right");
651664 threeButton.addActionListener(this);
652
- oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
665
+ oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
653666 sevenButton.setToolTipText("3-column layout");
654667 sevenButton.addActionListener(this);
655668 //
656669
657
- oe.toolbarPanel.add(rootButton = new cButton("o o o", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
670
+ oe.toolbarPanel.add(rootButton = GetButton("icons/write.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
658671 rootButton.setToolTipText("Edit selection in new tab");
659672 rootButton.addActionListener(this);
660673
661
- oe.toolbarPanel.add(closeButton = new cButton("X", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
674
+ oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
662675 closeButton.setToolTipText("Close tab");
663676 closeButton.addActionListener(this);
664677 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
665678 //clearButton.addActionListener(this);
666
-
667
- cGridBag commandsPanel = new cGridBag();
679
+
680
+ // INSERT
681
+ oe.toolboxPanel.add(gridButton = GetButton("icons/grid.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
682
+ gridButton.setToolTipText("Create grid");
683
+ gridButton.addActionListener(this);
684
+
685
+ oe.toolboxPanel.add(boxButton = GetButton("icons/box.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
686
+ boxButton.setToolTipText("Create box");
687
+ boxButton.addActionListener(this);
688
+
689
+ oe.toolboxPanel.add(sphereButton = GetButton("icons/sphere.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
690
+ sphereButton.setToolTipText("Create sphere");
691
+ sphereButton.addActionListener(this);
692
+
693
+ oe.toolboxPanel.add(coneButton = GetButton("icons/cone.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
694
+ coneButton.setToolTipText("Create cone");
695
+ coneButton.addActionListener(this);
696
+
697
+ oe.toolboxPanel.add(torusButton = GetButton("icons/torus.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
698
+ torusButton.setToolTipText("Create torus");
699
+ torusButton.addActionListener(this);
700
+
701
+ oe.toolboxPanel.add(superButton = GetButton("icons/super.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
702
+ superButton.setToolTipText("Create superellipsoid");
703
+ superButton.addActionListener(this);
704
+
705
+ if (Globals.ADVANCED)
706
+ {
707
+ oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
708
+ kleinButton.setToolTipText("Create Klein bottle");
709
+ kleinButton.addActionListener(this);
710
+ }
668711
669
- commandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
712
+ oe.toolboxPanel.add(particlesButton = GetButton("icons/particles.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
713
+ particlesButton.setToolTipText("Create particle system");
714
+ particlesButton.addActionListener(this);
715
+
716
+ oe.toolboxPanel.Return();
717
+
718
+ oe.toolboxPanel.add(groupButton = GetButton("icons/group.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
719
+ groupButton.setToolTipText("Create group");
720
+ groupButton.addActionListener(this);
721
+
722
+ oe.toolboxPanel.add(compositeButton = GetButton("icons/composite.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
723
+ compositeButton.setToolTipText("Create composite");
724
+ compositeButton.addActionListener(this);
725
+
726
+ oe.toolboxPanel.add(switchButton = GetButton("icons/switch.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
727
+ switchButton.setToolTipText("Create switch");
728
+ switchButton.addActionListener(this);
729
+
730
+ oe.toolboxPanel.add(loopButton = GetButton("icons/loop.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
731
+ loopButton.setToolTipText("Create loop");
732
+ loopButton.addActionListener(this);
733
+
734
+ oe.toolboxPanel.add(textureButton = GetButton("icons/texture.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
735
+ textureButton.setToolTipText("Create texture");
736
+ textureButton.addActionListener(this);
737
+
738
+ oe.toolboxPanel.add(overlayButton = GetButton("icons/overlay.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
739
+ overlayButton.setToolTipText("Create overlay");
740
+ overlayButton.addActionListener(this);
741
+
742
+ oe.toolboxPanel.add(lightButton = GetButton("icons/light-bulb.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
743
+ lightButton.setToolTipText("Create light");
744
+ lightButton.addActionListener(this);
745
+
746
+ // EDIT panel
747
+ editCommandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
670748 editButton.setToolTipText("Edit selection");
671749 editButton.addActionListener(this);
672750
673
- commandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
751
+ editCommandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
674752 uneditButton.setToolTipText("Unedit selection");
675753 uneditButton.addActionListener(this);
676754
677
- commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
755
+ editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
678756 allParamsButton.setToolTipText("Edit all params");
679757 allParamsButton.addActionListener(this);
680758
681
- commandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
759
+ editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
682760 clearPanelButton.setToolTipText("Clear edit panel");
683761 clearPanelButton.addActionListener(this);
684762
685
- commandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
763
+ editCommandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
686764 unselectButton.setToolTipText("Unselect");
687765 unselectButton.addActionListener(this);
688766
689
- commandsPanel.preferredHeight = 1;
767
+ editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
768
+ flashSelectionButton.setToolTipText("Highlight selection");
769
+ flashSelectionButton.addActionListener(this);
690770
691
- oe.treePanel.add(commandsPanel);
692
- oe.treePanel.Return();
771
+ editCommandsPanel.preferredHeight = 1;
772
+
773
+// oe.treePanel.add(commandsPanel);
774
+// oe.treePanel.Return();
693775
694776 // oe.aConstraints.gridx += 1;
695777 // oe.aConstraints.weighty = 0;
....@@ -706,27 +788,12 @@
706788
707789 JScrollPane jSP;
708790 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
709
- jSPPanel.add(jSP = new JScrollPane(oe.jTree = new cTree(null))); //, oe.aConstraints);
791
+ jSPPanel.add(jSP = new JScrollPane(oe.jTree)); //, oe.aConstraints);
710792 ResetModel();
711793
712794 oe.treePanel.add(jSPPanel);
713795 oe.treePanel.Return();
714796
715
- cGridBag copyOptionsPanel = new cGridBag();
716
-
717
- copyOptionsPanel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0)); //, oe.aConstraints);
718
- colorCB.setToolTipText("Copy color when dropped");
719
- colorCB.addItemListener(this);
720
-
721
- copyOptionsPanel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0)); //, oe.aConstraints);
722
- materialCB.setToolTipText("Copy material when dropped");
723
- materialCB.addItemListener(this);
724
-
725
- copyOptionsPanel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0)); //, oe.aConstraints);
726
- textureCB.setToolTipText("Copy texture when dropped");
727
- textureCB.addItemListener(this);
728
-
729
- copyOptionsPanel.preferredHeight = 1;
730797 oe.treePanel.add(copyOptionsPanel);
731798 oe.treePanel.Return();
732799
....@@ -757,6 +824,20 @@
757824
758825 void AddOptions(cGridBag panel) //, GridBagConstraints constraints)
759826 {
827
+ panel.add(colorCB = new cCheckBox("Color", (dropAttributes&Object3D.COLOR)!=0)); //, oe.aConstraints);
828
+ colorCB.setToolTipText("Copy color when dropped");
829
+ colorCB.addItemListener(this);
830
+
831
+ panel.add(materialCB = new cCheckBox("Material", (dropAttributes&Object3D.MATERIAL)!=0)); //, oe.aConstraints);
832
+ materialCB.setToolTipText("Copy material when dropped");
833
+ materialCB.addItemListener(this);
834
+
835
+ panel.add(textureCB = new cCheckBox("Texture", (dropAttributes&Object3D.TEXTURE)!=0)); //, oe.aConstraints);
836
+ textureCB.setToolTipText("Copy texture when dropped");
837
+ textureCB.addItemListener(this);
838
+
839
+ panel.Return();
840
+
760841 panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints);
761842 boxCB.setToolTipText("Display bounding boxes");
762843 boxCB.addItemListener(this);
....@@ -774,6 +855,8 @@
774855 // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
775856 // localCB.addItemListener(this);
776857
858
+ panel.Return();
859
+
777860 panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints);
778861 crowdCB.setToolTipText("Used for crowds");
779862 crowdCB.addItemListener(this);
....@@ -790,6 +873,8 @@
790873 // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
791874 // speakerMocapCB.addItemListener(this);
792875
876
+ panel.Return();
877
+
793878 if (false)
794879 {
795880 // handled in scripts
....@@ -804,32 +889,72 @@
804889 //constraints.gridy += 1;
805890 panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints);
806891 smoothfocusCB.addItemListener(this);
892
+ panel.Return();
807893 }
808894
809895 //constraints.gridx += 1;
810896 //panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints);
811897 // debugCB.addItemListener(this);
812898
899
+ panel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints);
900
+ trackCB.setToolTipText("Enable tracking target");
901
+ trackCB.addItemListener(this);
902
+
813903 panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints);
904
+ oeilCB.setToolTipText("Move camera when tracking");
814905 oeilCB.addItemListener(this);
815906
907
+ panel.add(shadowCB = new cCheckBox("Shadow", Globals.COMPUTESHADOWWHENLIVE)); //, constraints);
908
+ shadowCB.setToolTipText("Compute shadows when live");
909
+ shadowCB.addItemListener(this);
910
+
911
+ panel.Return();
912
+ panel.add(toggleTextureCB = new cCheckBox("Textures", CameraPane.textureon)); //, constraints);
913
+ toggleTextureCB.setToolTipText("Load textures");
914
+ toggleTextureCB.addItemListener(this);
915
+
916
+ panel.add(toggleSwitchCB = new cCheckBox("Switch", CameraPane.SWITCH)); //, constraints);
917
+ toggleSwitchCB.setToolTipText("Use switch");
918
+ toggleSwitchCB.addItemListener(this);
919
+
920
+ panel.add(autosaveCB = new cCheckBox("Auto-save", Globals.SAVEONMAKE)); //, constraints);
921
+ autosaveCB.setToolTipText("Auto-save on structure change");
922
+ autosaveCB.addItemListener(this);
923
+
924
+ panel.Return();
925
+ if (Globals.ADVANCED)
926
+ {
816927 panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints);
817928 lookAtCB.setToolTipText("Look-at target");
818929 lookAtCB.addItemListener(this);
930
+ }
819931
820932 }
821933
822934 cGridBag fill = new cGridBag();
823
-
824935 fill.preferredHeight = 200;
936
+ cGridBag fill2 = new cGridBag();
937
+ fill2.preferredHeight = 200;
938
+ cGridBag fill3 = new cGridBag();
939
+ fill3.preferredHeight = 200;
825940
826941 panel.add(fill);
942
+ panel.add(fill2);
943
+ panel.add(fill3);
827944
828945 }
829946
830947 void EditObject(Object3D obj)
831948 {
832949 cRadio radioButton = new cRadio(obj.name);
950
+
951
+ // Patch to avoid bug with transparency.
952
+ radioButton.hadMaterial = obj.material != null;
953
+ if (!radioButton.hadMaterial)
954
+ {
955
+ obj.material = new cMaterial();
956
+ }
957
+
833958 radioButton.SetObject(obj);
834959 radioButton.layout = sevenButton;
835960 radioButton.SetCamera(cameraView.renderCamera, false);
....@@ -851,23 +976,27 @@
851976 /*DropTarget dropTarget =*/ new DropTarget(oe.cameraView, this);
852977 }
853978
854
- JCheckBox liveCB;
855
- JCheckBox supportCB;
856
- JCheckBox localCB;
857
- JCheckBox crowdCB;
858
- JCheckBox smoothCB;
859
- JCheckBox fastCB;
860
- JCheckBox slowCB;
861
- JCheckBox boxCB;
862
- JCheckBox zoomBoxCB;
863
- JCheckBox trackCB;
864
- JCheckBox smoothfocusCB;
979
+ cToggleButton liveCB;
980
+ cCheckBox supportCB;
981
+ cCheckBox localCB;
982
+ cCheckBox crowdCB;
983
+ cCheckBox smoothCB;
984
+ cToggleButton fastCB;
985
+ cCheckBox slowCB;
986
+ cCheckBox boxCB;
987
+ cCheckBox zoomBoxCB;
988
+ //cToggleButton trackCB;
989
+ cCheckBox trackCB;
990
+ cCheckBox smoothfocusCB;
865991 // JCheckBox speakerMocapCB;
866
- JCheckBox speakerCameraCB;
867
- JCheckBox speakerFocusCB;
868
- JCheckBox debugCB;
869
- JCheckBox oeilCB;
870
- JCheckBox lookAtCB;
992
+ cCheckBox speakerCameraCB;
993
+ cCheckBox speakerFocusCB;
994
+ cCheckBox debugCB;
995
+
996
+ cCheckBox oeilCB;
997
+ cCheckBox shadowCB;
998
+ cCheckBox autosaveCB;
999
+ cCheckBox lookAtCB;
8711000
8721001 // static int COLOR = 1;
8731002 // static int MATERIAL = 2;
....@@ -875,9 +1004,9 @@
8751004
8761005 int dropAttributes = Object3D.COLOR | Object3D.MATERIAL;
8771006
878
- JCheckBox colorCB;
879
- JCheckBox materialCB;
880
- JCheckBox textureCB;
1007
+ cCheckBox colorCB;
1008
+ cCheckBox materialCB;
1009
+ cCheckBox textureCB;
8811010
8821011 public void itemStateChanged(ItemEvent e)
8831012 {
....@@ -970,6 +1099,14 @@
9701099 {
9711100 cameraView.ToggleOeil();
9721101 }
1102
+ else if(e.getSource() == shadowCB)
1103
+ {
1104
+ Globals.COMPUTESHADOWWHENLIVE ^= true;
1105
+ }
1106
+ else if(e.getSource() == autosaveCB)
1107
+ {
1108
+ Globals.SAVEONMAKE ^= true;
1109
+ }
9731110 else if(e.getSource() == lookAtCB)
9741111 {
9751112 cameraView.ToggleLookAt();
....@@ -986,7 +1123,8 @@
9861123
9871124 /**/
9881125 //DragSource.getDefaultDragSource().startDrag(dge, DragSource.DefaultMoveNoDrop, new StringSelection("Allo"), this);
989
- TreePath path = new TreePath(objEditor.jTree.getSelectionPath().getLastPathComponent());
1126
+ //TreePath path = new TreePath(objEditor.jTree.getSelectionPath().getLastPathComponent());
1127
+ TreePath path = objEditor.jTree.getSelectionPath();
9901128 if ((path == null) || (path.getPathCount() <= 1)) {
9911129 // We can't move the root node or an empty selection
9921130 return;
....@@ -1103,23 +1241,33 @@
11031241
11041242 assert target == objEditor.jTree;
11051243 TreePath destinationPath = objEditor.jTree.getPathForLocation(objEditor.location.x, objEditor.location.y);
1244
+ Object3D destinationLeaf;
11061245 try {
1107
- Object3D dummy = (Composite) destinationPath.getLastPathComponent();
1246
+ destinationLeaf = (Composite) destinationPath.getLastPathComponent();
11081247 } catch (Exception e) {
11091248 System.out.println("destinationPath : " + destinationPath);
11101249 return;
11111250 }
11121251
1113
- if (dtde.getDropAction() == DnDConstants.ACTION_MOVE) // ?? LINK)
1252
+ for (int i=group.selection.size(); --i>=0;)
11141253 {
1254
+ Object3D child = (Object3D)group.selection.elementAt(i);
1255
+
1256
+ // Cannot move into itself
1257
+ if (child == destinationLeaf)
1258
+ return;
1259
+ }
1260
+
1261
+// june 2019 if (dtde.getDropAction() == DnDConstants.ACTION_MOVE) // ?? LINK)
1262
+// {
11151263 loadClipboard(true);
11161264 objEditor.jTree.setSelectionPath(destinationPath);
11171265 pasteInto(false, false);
1118
- } else {
1119
- loadClipboard(false);
1120
- objEditor.jTree.setSelectionPath(destinationPath);
1121
- pasteInto(false, false); // true); // ???
1122
- }
1266
+// } else {
1267
+// loadClipboard(false);
1268
+// objEditor.jTree.setSelectionPath(destinationPath);
1269
+// pasteInto(false, false); // true); // ???
1270
+// }
11231271 }
11241272 public void dropActionChanged(DropTargetDragEvent dtde)
11251273 // Called if the user has modified the current drop gesture
....@@ -1224,22 +1372,30 @@
12241372 {
12251373 //heightFieldItem = menu.add(new MenuItem("Height Field"));
12261374 //heightFieldItem.addActionListener(this);
1227
- gridItem = menu.add(new MenuItem("Grid"));
1228
- gridItem.addActionListener(this);
1229
- rectoidItem = menu.add(new MenuItem("Box"));
1230
- rectoidItem.addActionListener(this);
1231
- ellipsoidItem = menu.add(new MenuItem("Sphere"));
1232
- ellipsoidItem.addActionListener(this);
1233
- coneItem = menu.add(new MenuItem("Cone"));
1234
- coneItem.addActionListener(this);
1235
- torusItem = menu.add(new MenuItem("Torus"));
1236
- torusItem.addActionListener(this);
1237
- superItem = menu.add(new MenuItem("Superellipsoid"));
1238
- superItem.addActionListener(this);
1375
+// gridItem = menu.add(new MenuItem("Grid"));
1376
+// gridItem.addActionListener(this);
1377
+// rectoidItem = menu.add(new MenuItem("Box"));
1378
+// rectoidItem.addActionListener(this);
1379
+// ellipsoidItem = menu.add(new MenuItem("Sphere"));
1380
+// ellipsoidItem.addActionListener(this);
1381
+// coneItem = menu.add(new MenuItem("Cone"));
1382
+// coneItem.addActionListener(this);
1383
+// torusItem = menu.add(new MenuItem("Torus"));
1384
+// torusItem.addActionListener(this);
1385
+// superItem = menu.add(new MenuItem("Superellipsoid"));
1386
+// superItem.addActionListener(this);
1387
+
1388
+ cameraItem = menu.add(new MenuItem("Camera"));
1389
+ cameraItem.addActionListener(this);
1390
+
1391
+ if (!Globals.ADVANCED)
1392
+ {
12391393 kleinItem = menu.add(new MenuItem("Klein Bottle"));
12401394 kleinItem.addActionListener(this);
1241
- particleItem = menu.add(new MenuItem("Particle system"));
1242
- particleItem.addActionListener(this);
1395
+ }
1396
+
1397
+// particleItem = menu.add(new MenuItem("Particle system"));
1398
+// particleItem.addActionListener(this);
12431399 if (Globals.ADVANCED)
12441400 {
12451401 ragdollItem = menu.add(new MenuItem("Rag Walk"));
....@@ -1265,15 +1421,15 @@
12651421 }
12661422 bezierItem = menu.add(new MenuItem("Bezier Patch"));
12671423 bezierItem.addActionListener(this);
1268
- overlayItem = menu.add(new MenuItem("Overlay"));
1269
- overlayItem.addActionListener(this);
1270
- lightItem = menu.add(new MenuItem("Light"));
1271
- lightItem.addActionListener(this);
1424
+// overlayItem = menu.add(new MenuItem("Overlay"));
1425
+// overlayItem.addActionListener(this);
1426
+// lightItem = menu.add(new MenuItem("Light"));
1427
+// lightItem.addActionListener(this);
12721428 menu.add("-");
12731429 //superLoopItem = menu.add(new MenuItem("Super Loop"));
12741430 //superLoopItem.addActionListener(this);
1275
- loopItem = menu.add(new MenuItem("Loop"));
1276
- loopItem.addActionListener(this);
1431
+// loopItem = menu.add(new MenuItem("Loop"));
1432
+// loopItem.addActionListener(this);
12771433 doubleItem = menu.add(new MenuItem("Fork"));
12781434 doubleItem.addActionListener(this);
12791435 if (Globals.ADVANCED)
....@@ -1454,6 +1610,7 @@
14541610 shadow.material = new cMaterial(obj.material);
14551611 shadow.material.diffuse = 0.0001f;
14561612 shadow.material.specular = 0.0001f;
1613
+ //shadow.projectedVertices[1].x = 300;
14571614
14581615 makeSomething(shadow);
14591616 }
....@@ -1701,7 +1858,7 @@
17011858 {
17021859 ScreenFit();
17031860 } else
1704
- if (source == switchItem)
1861
+ if (source == switchViewItem)
17051862 {
17061863 cVector v1 = new cVector();
17071864 cVector v2 = new cVector();
....@@ -1710,11 +1867,11 @@
17101867 objEditor.cameraView.renderCamera.setAim(v2, v1);
17111868 objEditor.cameraView.repaint();
17121869 } else
1713
- if (source == rectoidItem)
1870
+ if (source == rectoidItem || source == boxButton)
17141871 {
17151872 makeSomething(new Box());
17161873 } else
1717
- if (source == particleItem)
1874
+ if (source == particleItem || source == particlesButton)
17181875 {
17191876 ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType);
17201877 ParticleController particleController = new ParticleController(particleGeom);
....@@ -1793,27 +1950,27 @@
17931950
17941951 makeSomething(obj);
17951952 } else
1796
- if (source == gridItem)
1953
+ if (source == gridItem || source == gridButton)
17971954 {
17981955 makeSomething(new Grid());
17991956 } else
1800
- if (source == ellipsoidItem)
1957
+ if (source == ellipsoidItem || source == sphereButton)
18011958 {
18021959 makeSomething(new Sphere());
18031960 } else
1804
- if (source == coneItem)
1961
+ if (source == coneItem || source == coneButton)
18051962 {
18061963 makeSomething(new Cone());
18071964 } else
1808
- if (source == torusItem)
1965
+ if (source == torusItem || source == torusButton)
18091966 {
18101967 makeSomething(new Torus());
18111968 } else
1812
- if (source == superItem)
1969
+ if (source == superItem || source == superButton)
18131970 {
18141971 makeSomething(new Superellipsoid());
18151972 } else
1816
- if (source == kleinItem)
1973
+ if (source == kleinItem || source == kleinButton)
18171974 {
18181975 makeSomething(new Klein());
18191976 } else
....@@ -1833,7 +1990,7 @@
18331990 {
18341991 makeSomething(new BezierSurface());
18351992 } else
1836
- if (source == overlayItem)
1993
+ if (source == overlayItem || source == overlayButton)
18371994 {
18381995 /*
18391996 Object3D obj = new BezierSurface(5,8);
....@@ -1881,7 +2038,7 @@
18812038 s.setup();
18822039 makeSomething(s);
18832040 } else
1884
- if (source == lightItem)
2041
+ if (source == lightItem || source == lightButton)
18852042 {
18862043 makeSomething(new Light());
18872044 } else
....@@ -1931,7 +2088,7 @@
19312088
19322089 group(g);
19332090 } else
1934
- if (source == loopItem)
2091
+ if (source == loopItem || source == loopButton)
19352092 {
19362093 Composite csg = new GroupLeaf();
19372094 csg.count = 5;
....@@ -2421,9 +2578,9 @@
24212578 {
24222579 ClearSelection(true);
24232580 } else
2424
- if (source == grabItem)
2581
+ if (source == grabItem || source == groupButton)
24252582 {
2426
- group(new cGroup(), true);
2583
+ group(new cGroup(), false); // true);
24272584 } else
24282585 if (source == hideItem)
24292586 {
....@@ -2441,11 +2598,11 @@
24412598 {
24422599 makeSomething(new Camera());
24432600 } else
2444
- if (source == compositeItem)
2601
+ if (source == compositeItem || source == compositeButton)
24452602 {
24462603 group(new Composite());
24472604 } else
2448
- if (source == randomItem)
2605
+ if (source == switchItem || source == switchButton)
24492606 {
24502607 RandomNode random = new RandomNode();
24512608 group(random);
....@@ -2547,7 +2704,7 @@
25472704 {
25482705 group(new cLinker());
25492706 } else
2550
- if (source == textureItem)
2707
+ if (source == textureItem || source == textureButton)
25512708 {
25522709 group(new TextureNode());
25532710 } else
....@@ -2567,7 +2724,7 @@
25672724 {
25682725 CastShadow(2);
25692726 } else
2570
- if (source == ungroupItem)
2727
+ if (source == ungroupItem || source == ungroupButton)
25712728 {
25722729 //ungroup();
25732730 for (int i=0; i<group.selection.size(); i++)
....@@ -2905,6 +3062,10 @@
29053062 if (source == twoButton)
29063063 {
29073064 radio.layout = twoButton;
3065
+
3066
+ if (CameraPane.FULLSCREEN)
3067
+ fullscreenLayout = radio.layout;
3068
+
29083069 // bug
29093070 //gridPanel.setDividerLocation(1.0);
29103071 //bigPanel.setDividerLocation(0.0);
....@@ -2960,6 +3121,9 @@
29603121 {
29613122 radio.layout = threeButton;
29623123
3124
+ if (CameraPane.FULLSCREEN)
3125
+ fullscreenLayout = radio.layout;
3126
+
29633127 // bigThree.remove(scenePanel);
29643128 // bigThree.remove(centralPanel);
29653129 // bigThree.remove(XYZPanel);
....@@ -2998,6 +3162,9 @@
29983162 {
29993163 radio.layout = fourButton;
30003164
3165
+ if (CameraPane.FULLSCREEN)
3166
+ fullscreenLayout = radio.layout;
3167
+
30013168 // bigThree.remove(scenePanel);
30023169 // bigThree.remove(centralPanel);
30033170 // bigThree.remove(XYZPanel);
....@@ -3034,6 +3201,9 @@
30343201 if (source == sixButton)
30353202 {
30363203 radio.layout = sixButton;
3204
+
3205
+ if (CameraPane.FULLSCREEN)
3206
+ fullscreenLayout = radio.layout;
30373207
30383208 // bigThree.remove(scenePanel);
30393209 // bigThree.remove(centralPanel);
....@@ -3072,6 +3242,9 @@
30723242 if (source == sevenButton)
30733243 {
30743244 radio.layout = sevenButton;
3245
+
3246
+ if (CameraPane.FULLSCREEN)
3247
+ fullscreenLayout = radio.layout;
30753248
30763249 // bigThree.remove(scenePanel);
30773250 // bigThree.remove(centralPanel);
....@@ -3128,12 +3301,19 @@
31283301 for (Enumeration e = buttonGroup.getElements(); e.hasMoreElements();)
31293302 {
31303303 ab = (cRadio)e.nextElement();
3131
- if(ab.getModel().isSelected() && ab.GetObject() != client)
3304
+ if (ab.getModel().isSelected() && ab.GetObject() != client)
31323305 {
3306
+ // Patch to avoid bug with transparency.
3307
+ if (!ab.hadMaterial)
3308
+ {
3309
+ ab.object.material = null;
3310
+ }
3311
+
31333312 buttonGroup.remove(ab);
31343313 radioPanel.remove(ab);
31353314
3136
- ab.GetObject().editWindow = null;
3315
+ //ab.GetObject().editWindow = null;
3316
+ ab.GetObject().manipWindow = null;
31373317 // ab.GetObject().objectUI = null; // ?????????
31383318
31393319 ((cRadio)radioPanel.getComponent(radioPanel.getComponentCount() - 1)).doClick();
....@@ -3247,6 +3427,7 @@
32473427
32483428 // fix "+" issue
32493429 //group.editWindow = this;
3430
+ group.manipWindow = this;
32503431
32513432 /*
32523433 currentLayout = radio.layout;
....@@ -3267,7 +3448,7 @@
32673448 cameraView.ProtectCamera();
32683449 cameraView.repaint();
32693450 return;
3270
- } else if (event.getSource() == revertCameraItem)
3451
+ } else if (event.getSource() == restoreCameraItem || event.getSource() == restoreCameraButton)
32713452 {
32723453 cameraView.RevertCamera();
32733454 cameraView.repaint();
....@@ -4332,7 +4513,7 @@
43324513 {
43334514 //System.out.println("edit : " + objectPanel.indexOfTab("Material"));
43344515 //objectPanel.setEnabledAt(objectPanel.indexOfTab("Material"), false);
4335
- objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
4516
+ //objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
43364517
43374518 Object3D elem = (Object3D)group.selection.elementAt(i);
43384519 if(elem != group || !newWindow)
....@@ -4470,7 +4651,8 @@
44704651
44714652 void refreshContents(boolean cp)
44724653 {
4473
- if (!Globals.MOUSEDRAGGED)
4654
+ if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Info"))
4655
+ if (!Globals.MOUSEDRAGGED) // && !Globals.TIMERRUNNING)
44744656 {
44754657 objEditor.ClearInfo(); // .GetMaterial());
44764658
....@@ -4569,6 +4751,7 @@
45694751
45704752 if (cut)
45714753 {
4754
+ if (Globals.SAVEONMAKE)
45724755 Save();
45734756 //int indices[] = jList.getSelectedIndices();
45744757 //for (int i = indices.length - 1; i >= 0; i--)
....@@ -5287,6 +5470,8 @@
52875470 cButton clearpanelButton;
52885471 cButton unselectButton;
52895472
5473
+ cButton restoreCameraButton;
5474
+
52905475 cButton minButton;
52915476 cButton maxButton;
52925477 cButton fullButton;
....@@ -5294,6 +5479,24 @@
52945479 cButton redoButton;
52955480 cButton saveButton;
52965481 cButton oneStepButton;
5482
+
5483
+ cButton groupButton;
5484
+ cButton ungroupButton;
5485
+ cButton compositeButton;
5486
+ cButton switchButton;
5487
+ cButton loopButton;
5488
+ cButton textureButton;
5489
+
5490
+ cButton gridButton;
5491
+ cButton boxButton;
5492
+ cButton sphereButton;
5493
+ cButton coneButton;
5494
+ cButton torusButton;
5495
+ cButton superButton;
5496
+ cButton kleinButton;
5497
+ cButton particlesButton;
5498
+ cButton overlayButton;
5499
+ cButton lightButton;
52975500
52985501 cButton screenfitButton;
52995502 cButton screenfitpointButton;
....@@ -5315,11 +5518,11 @@
53155518 //JTree jTree;
53165519 private MenuItem lookAtItem;
53175520 private MenuItem lookFromItem;
5318
- private MenuItem switchItem;
5521
+ private MenuItem switchViewItem;
53195522 private MenuItem cutItem;
53205523 private MenuItem undoItem;
53215524 private MenuItem redoItem;
5322
- private MenuItem duplicateItem;
5525
+ private JMenuItem duplicateItem;
53235526 private MenuItem cloneItem;
53245527 private MenuItem cloneSupportItem;
53255528 private MenuItem overwriteGeoItem;
....@@ -5407,7 +5610,7 @@
54075610 private MenuItem frontItem;
54085611 private MenuItem cameraItem;
54095612 private MenuItem compositeItem;
5410
- private MenuItem randomItem;
5613
+ private MenuItem switchItem;
54115614 private MenuItem physicsItem;
54125615 private MenuItem frameselectorItem;
54135616 private MenuItem scriptNodeItem;
....@@ -5481,5 +5684,5 @@
54815684
54825685 Menu cameraMenu;
54835686 MenuItem editCameraItem;
5484
- MenuItem revertCameraItem;
5687
+ MenuItem restoreCameraItem;
54855688 }