Normand Briere
2019-08-26 6266c8a4b2485b29a7d5bcb217460d7aad3e1c4a
GroupEditor.java
....@@ -29,7 +29,7 @@
2929 {
3030 cButton skyboxButton;
3131 final String path = "cubemaps/" + f + "-skyboxes/" + s;
32
- row.add(skyboxButton = GetButton(path + "/preview.jpg", !Grafreed.NIMBUSLAF));
32
+ row.add(skyboxButton = GetButton(path + "/preview.jpg", !Globals.NIMBUSLAF));
3333 //row.add(skyboxButton = GetButton(path + "/negx.jpg", !Grafreed.NIMBUSLAF));
3434 skyboxButton.setToolTipText(s.equals("") ? "No background" : s);
3535 skyboxButton.addActionListener(new ActionListener()
....@@ -46,7 +46,7 @@
4646 {
4747 cButton textureButton;
4848 final String path = "textures/" + f + "/" + c + "/"; // + t;
49
- row.add(textureButton = GetButton(path + "icons/" + t, !Grafreed.NIMBUSLAF));
49
+ row.add(textureButton = GetButton(path + "icons/" + t, !Globals.NIMBUSLAF));
5050 textureButton.setToolTipText(c + count);
5151 textureButton.addActionListener(new ActionListener()
5252 {
....@@ -347,7 +347,7 @@
347347
348348 public void CreateSkyboxPanel(cGridBag skyboxPanel)
349349 {
350
- JTabbedPane skyboxpane = new JTabbedPane();
350
+ JTabbedPane skyboxpane = new JTabbedPane(JTabbedPane.LEFT);
351351
352352 AddSkyboxTab0(skyboxpane);
353353 AddSkyboxTab1(skyboxpane);
....@@ -415,13 +415,15 @@
415415 this.copy = this.group = group;
416416 //selectees = this.group.selectees;
417417
418
- if (copy.versionlist == null)
419
- {
420
- copy.versionlist = new Object3D[100];
421
- copy.versionindex = -1;
422
-
423
- Save(true);
424
- }
418
+ assert(false);
419
+
420
+// if (copy.versionlist == null)
421
+// {
422
+// copy.versionlist = new Object3D[100];
423
+// copy.versionindex = -1;
424
+//
425
+// //Save(true);
426
+// }
425427
426428 if(ui)
427429 SetupUI(objEditor);
....@@ -444,13 +446,13 @@
444446
445447 ((cRadio)radioPanel.getComponent(0)).SetCamera(cameraView.renderCamera, true);
446448
447
- if (copy.versionlist == null)
448
- {
449
- copy.versionlist = new Object3D[100];
450
- copy.versionindex = -1;
451
-
452
- Save(true);
453
- }
449
+// if (copy.versionlist == null)
450
+// {
451
+// copy.versionlist = new Object3D[100];
452
+// copy.versionindex = -1;
453
+//
454
+// //Save(true);
455
+// }
454456 }
455457
456458 void CloneSelection(boolean supports)
....@@ -540,33 +542,35 @@
540542 // menu.add("-");
541543 duplicateItem = oe.jTree.popup.add(new JMenuItem("Duplicate"));
542544 duplicateItem.addActionListener(this);
543
- cloneItem = menu.add(new MenuItem("Clone"));
545
+
546
+ cloneItem = oe.jTree.popup.add(new JMenuItem("Clone"));
544547 cloneItem.addActionListener(this);
545
- if (Globals.ADVANCED)
548
+ //if (Globals.ADVANCED)
546549 {
547550 cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
548551 cloneSupportItem.addActionListener(this);
549552 }
553
+ oe.jTree.popup.addSeparator();
550554 menu.add("-");
551
- cutItem = menu.add(new MenuItem("Cut"));
555
+ cutItem = oe.jTree.popup.add(new JMenuItem("Cut"));
552556 cutItem.addActionListener(this);
553
- copyItem = menu.add(new MenuItem("Copy"));
557
+ copyItem = oe.jTree.popup.add(new JMenuItem("Copy"));
554558 copyItem.addActionListener(this);
555559 pasteItem = menu.add(new MenuItem("Paste"));
556560 pasteItem.addActionListener(this);
557561
558
- menu.add("-");
559
- pasteIntoItem = menu.add(new MenuItem("Paste into"));
562
+ oe.jTree.popup.addSeparator();
563
+ //menu.add("-");
564
+ pasteIntoItem = oe.jTree.popup.add(new JMenuItem("Paste into"));
560565 pasteIntoItem.addActionListener(this);
561
- pasteLinkItem = menu.add(new MenuItem("Paste link"));
566
+ pasteLinkItem = oe.jTree.popup.add(new JMenuItem("Paste link"));
562567 pasteLinkItem.addActionListener(this);
563
- pasteCloneItem = menu.add(new MenuItem("Paste clone"));
568
+ pasteCloneItem = oe.jTree.popup.add(new JMenuItem("Paste clone"));
564569 pasteCloneItem.addActionListener(this);
565
-// pasteExpandItem = menu.add(new MenuItem("Paste expand"));
570
+// CRASH pasteExpandItem = oe.jTree.popup.add(new JMenuItem("Paste expand"));
566571 // pasteExpandItem.addActionListener(this);
567
- menu.add("-");
568
- deleteItem = menu.add(new MenuItem("Delete"));
569
- deleteItem.addActionListener(this);
572
+ //menu.add("-");
573
+ oe.jTree.popup.addSeparator();
570574
571575 if (Globals.ADVANCED)
572576 {
....@@ -701,9 +705,8 @@
701705 setMasterItem.addActionListener(this);
702706 }
703707
704
- oe.menuBar.add(menu = new Menu("Group"));
705
-// grabItem = menu.add(new MenuItem("Grab"));
706
-// grabItem.addActionListener(this);
708
+ oe.menuBar.add(menu = new Menu("Order"));
709
+
707710 backItem = menu.add(new MenuItem("Back"));
708711 backItem.addActionListener(this);
709712 frontItem = menu.add(new MenuItem("Front"));
....@@ -711,13 +714,21 @@
711714 // compositeItem = menu.add(new MenuItem("Composite"));
712715 // compositeItem.addActionListener(this);
713716
717
+ grabItem = oe.jTree.popup.add(new JMenuItem("Group"));
718
+ grabItem.addActionListener(this);
719
+
714720 if (Globals.ADVANCED)
715721 {
716722 hideItem = menu.add(new MenuItem("Hidden Group"));
717723 hideItem.addActionListener(this);
718724 }
719
- ungroupItem = menu.add(new MenuItem("Ungroup"));
725
+ ungroupItem = oe.jTree.popup.add(new JMenuItem("Ungroup"));
720726 ungroupItem.addActionListener(this);
727
+
728
+ oe.jTree.popup.addSeparator();
729
+
730
+ deleteItem = oe.jTree.popup.add(new JMenuItem("Delete"));
731
+ deleteItem.addActionListener(this);
721732
722733 // menu.add("-");
723734 //
....@@ -754,11 +765,11 @@
754765 shadowYItem.addActionListener(this);
755766 shadowZItem = menu.add(new MenuItem("Shadow Blue"));
756767 shadowZItem.addActionListener(this);
757
- attributeItem = menu.add(new MenuItem("Attribute"));
758
- attributeItem.addActionListener(this);
759768
760769 if (Globals.ADVANCED)
761770 {
771
+ attributeItem = menu.add(new MenuItem("Attribute"));
772
+ attributeItem.addActionListener(this);
762773 menu.add("-");
763774 linkerItem = menu.add(new MenuItem("Linker"));
764775 linkerItem.addActionListener(this);
....@@ -768,11 +779,18 @@
768779 pointflowItem.addActionListener(this);
769780 }
770781 menu.add("-");
782
+ textureRatioRItem = menu.add(new MenuItem("Texture Ratio Red"));
783
+ textureRatioRItem.addActionListener(this);
784
+ textureRatioGItem = menu.add(new MenuItem("Texture Ratio Green"));
785
+ textureRatioGItem.addActionListener(this);
786
+ textureRatioBItem = menu.add(new MenuItem("Texture Ratio Blue"));
787
+ textureRatioBItem.addActionListener(this);
788
+ menu.add("-");
771789 resetTransformItem = menu.add(new MenuItem("Reset Transform"));
772790 resetTransformItem.addActionListener(this);
773791 resetCentroidItem = menu.add(new MenuItem("Reset Centroid"));
774792 resetCentroidItem.addActionListener(this);
775
- resetCentroidXZItem = menu.add(new MenuItem("Reset Centroid XY"));
793
+ resetCentroidXZItem = menu.add(new MenuItem("Reset Centroid XZ"));
776794 resetCentroidXZItem.addActionListener(this);
777795 transformGeometryItem = menu.add(new MenuItem("Transform Geometry"));
778796 transformGeometryItem.addActionListener(this);
....@@ -824,6 +842,8 @@
824842 }
825843
826844 oe.menuBar.add(menu = new Menu("Attributes"));
845
+ clearVersionsItem = menu.add(new MenuItem("Clear Versions"));
846
+ clearVersionsItem.addActionListener(this);
827847 clearMaterialsItem = menu.add(new MenuItem("Clear Materials"));
828848 clearMaterialsItem.addActionListener(this);
829849 resetAllItem = menu.add(new MenuItem("Reset All"));
....@@ -846,9 +866,9 @@
846866 hideleavesItem.addActionListener(this);
847867 showleavesItem = menu.add(new MenuItem("Show Leaves"));
848868 showleavesItem.addActionListener(this);
849
- markleavesItem = menu.add(new MenuItem("Mark Leaves"));
869
+ markleavesItem = menu.add(new MenuItem("Anim Leaves"));
850870 markleavesItem.addActionListener(this);
851
- unmarkleavesItem = menu.add(new MenuItem("Unmark Leaves"));
871
+ unmarkleavesItem = menu.add(new MenuItem("Unanim Leaves"));
852872 unmarkleavesItem.addActionListener(this);
853873 rewindleavesItem = menu.add(new MenuItem("Rewind Leaves"));
854874 rewindleavesItem.addActionListener(this);
....@@ -923,8 +943,10 @@
923943
924944 JTabbedPane resourcecontainer;
925945 cGridBag currenttab;
926
- boolean added; // patch for jar
946
+ //boolean added; // patch for jar
927947
948
+ int totalcount = 0;
949
+
928950 int tabcount = 0;
929951 int colcount = 0;
930952 int rowcount = 0;
....@@ -940,28 +962,30 @@
940962 // System.out.println();
941963
942964 if (//rowcount == 0 ||
943
- path.length == 1)
965
+ path.length == 1 && !path[0].equals("") && !path[0].equals(".DS_Store"))
944966 {
945967 currenttab = new cGridBag();
946
- added = false;
947968 String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
948969 currenttab.setName(tabname);
970
+ //added = false;
971
+ resourcecontainer.add(currenttab);
972
+ resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
949973 rowcount = 1;
950974 colcount = 0;
951975 texturecount = 0;
952976 }
953977
954
- if (path.length > 2 && path[2].toLowerCase().endsWith(".jpg"))
978
+ if (path.length > 2 && (path[2].toLowerCase().endsWith(".jpg") || path[2].toLowerCase().endsWith(".png")))
955979 {
956
- if (!added)
980
+ //if (!added)
957981 {
958
- added = true;
959
- resourcecontainer.add(currenttab);
982
+ //added = true;
960983 String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
961
- resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
984
+ currenttab = (cGridBag)resourcecontainer.getComponentAt(resourcecontainer.indexOfTab(tabname));
962985 }
963986
964
- AddTextureButton(path[0], path[1], path[2], texturecount++, currenttab);
987
+ AddTextureButton(path[0], path[1], path[2], ++texturecount, currenttab);
988
+ totalcount++;
965989
966990 if (++colcount >= columns)
967991 {
....@@ -987,6 +1011,8 @@
9871011 container.add(resourcecontainer);
9881012
9891013 Grafreed.ParseResources("textures", this);
1014
+
1015
+ // 935. System.out.println("Total = " + totalcount);
9901016 }
9911017
9921018 void SetupUI2(ObjEditor oe)
....@@ -1026,9 +1052,9 @@
10261052 oe.radioPanel.add(dummyButton);
10271053 oe.buttonGroup.add(dummyButton);
10281054 */
1029
- cGridBag copyOptionsPanel = new cGridBag();
1055
+ cGridBag versionManagerPanel = new cGridBag();
10301056
1031
- copyOptionsPanel.preferredHeight = 2;
1057
+ versionManagerPanel.preferredHeight = 4;
10321058
10331059 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
10341060
....@@ -1043,8 +1069,8 @@
10431069 // maxButton.addActionListener(this);
10441070 }
10451071
1046
-// cButton gcButton;
1047
-//
1072
+ cButton gcButton;
1073
+
10481074 // oe.toolbarPanel.add(gcButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
10491075 // gcButton.setToolTipText("Garbage collect");
10501076 // gcButton.addActionListener(new ActionListener()
....@@ -1055,25 +1081,25 @@
10551081 // }
10561082 // });
10571083
1058
- oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1084
+ oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10591085 collapseButton.setToolTipText("Collapse toolbar");
10601086 collapseButton.addActionListener(this);
10611087
1062
- oe.toolbarPanel.add(maximize3DButton = GetButton("", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1088
+ oe.toolbarPanel.add(maximize3DButton = GetButton("icons/square.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10631089 maximize3DButton.setToolTipText("Maximize 3D view");
10641090 maximize3DButton.addActionListener(this);
10651091
1066
- oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1092
+ oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10671093 twoButton.setToolTipText("Show 3D view only");
10681094 twoButton.addActionListener(this);
10691095 this.fullscreenLayout = twoButton;
10701096
1071
- oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1097
+ oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10721098 threeButton.setToolTipText("Show controls and 3D view");
10731099 threeButton.addActionListener(this);
10741100 if (Globals.ADVANCED)
10751101 {
1076
- oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1102
+ oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10771103 sixButton.setToolTipText("Show 3D view and controls");
10781104 sixButton.addActionListener(this);
10791105 }
....@@ -1082,50 +1108,51 @@
10821108 // sevenButton.addActionListener(this);
10831109 //
10841110
1085
- oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1111
+ oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10861112 fullButton.setToolTipText("Full-screen window");
10871113 fullButton.addActionListener(this);
10881114
1089
- oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1115
+ oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10901116 screenfitButton.setToolTipText("Screen fit");
10911117 screenfitButton.addActionListener(this);
10921118
1093
- oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1119
+ oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10941120 restoreCameraButton.setToolTipText("Restore viewpoint");
10951121 restoreCameraButton.addActionListener(this);
10961122
1097
- copyOptionsPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1123
+ versionManagerPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10981124 saveVersionButton.setToolTipText("Duplicate current version");
10991125 saveVersionButton.addActionListener(this);
11001126
1101
- copyOptionsPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1127
+ versionManagerPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11021128 deleteVersionButton.setToolTipText("Delete current version");
11031129 deleteVersionButton.addActionListener(this);
1130
+ deleteVersionButton.setEnabled(false);
11041131
1105
- copyOptionsPanel.add(previousVersionButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1132
+ versionManagerPanel.add(previousVersionButton = GetButton("icons/undo.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11061133 previousVersionButton.setToolTipText("Previous version");
11071134 previousVersionButton.addActionListener(this);
11081135 previousVersionButton.setEnabled(false);
11091136
11101137 cGridBag updown = new cGridBag().setVertical(true);
1111
- updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1138
+ updown.add(restoreButton = GetButton("icons/restore.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11121139 restoreButton.setToolTipText("Undo (restore current version)");
11131140 restoreButton.addActionListener(this);
1114
- //restoreButton.setEnabled(false);
1141
+ restoreButton.setEnabled(false);
11151142
1116
- updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1143
+ updown.add(replaceButton = GetButton("icons/replace.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11171144 replaceButton.setToolTipText("Save (replace current version)");
11181145 replaceButton.addActionListener(this);
1119
- //replaceButton.setEnabled(false);
1146
+ replaceButton.setEnabled(false);
11201147
1121
- copyOptionsPanel.add(updown);
1148
+ versionManagerPanel.add(updown);
11221149
1123
- copyOptionsPanel.add(nextVersionButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1150
+ versionManagerPanel.add(nextVersionButton = GetButton("icons/redo.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11241151 nextVersionButton.setToolTipText("Next version");
11251152 nextVersionButton.addActionListener(this);
11261153 nextVersionButton.setEnabled(false);
11271154
1128
- oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1155
+ oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11291156 oneStepButton.setToolTipText("Animate one step forward");
11301157 oneStepButton.addActionListener(this);
11311158
....@@ -1148,11 +1175,11 @@
11481175
11491176 if (Globals.ADVANCED)
11501177 {
1151
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1178
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11521179 snapobjectButton.addActionListener(this);
11531180 snapobjectButton.setToolTipText("Snap Object");
11541181
1155
- oe.toolbarPanel.add(fourButton = GetButton("icons/controls-horizontal.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1182
+ oe.toolbarPanel.add(fourButton = GetButton("icons/controls-horizontal.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11561183 fourButton.addActionListener(this);
11571184 fourButton.setToolTipText("Show control panel only");
11581185 }
....@@ -1160,11 +1187,11 @@
11601187 //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
11611188
11621189
1163
- oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1190
+ oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11641191 rootButton.setToolTipText("Open selection in new tab");
11651192 rootButton.addActionListener(this);
11661193
1167
- oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1194
+ oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11681195 closeButton.setToolTipText("Close tab");
11691196 closeButton.addActionListener(this);
11701197 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -1173,38 +1200,38 @@
11731200 cGridBag row1 = new cGridBag();
11741201
11751202 // INSERT
1176
- row1.add(gridButton = GetButton("icons/grid.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1203
+ row1.add(gridButton = GetButton("icons/grid.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11771204 gridButton.setToolTipText("Create ground");
11781205 gridButton.addActionListener(this);
11791206
1180
- row1.add(boxButton = GetButton("icons/box.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1207
+ row1.add(boxButton = GetButton("icons/box.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11811208 boxButton.setToolTipText("Create box");
11821209 boxButton.addActionListener(this);
11831210
1184
- row1.add(sphereButton = GetButton("icons/sphere.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1185
- sphereButton.setToolTipText("Create sphere");
1186
- sphereButton.addActionListener(this);
1187
-
1188
- row1.add(coneButton = GetButton("icons/cone.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1189
- coneButton.setToolTipText("Create cone");
1190
- coneButton.addActionListener(this);
1191
-
1192
- row1.add(torusButton = GetButton("icons/torus.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1193
- torusButton.setToolTipText("Create torus");
1194
- torusButton.addActionListener(this);
1195
-
1196
- row1.add(superButton = GetButton("icons/super.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1211
+ row1.add(superButton = GetButton("icons/super.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11971212 superButton.setToolTipText("Create superellipsoid");
11981213 superButton.addActionListener(this);
11991214
1200
- if (Globals.ADVANCED)
1215
+ row1.add(sphereButton = GetButton("icons/sphere.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1216
+ sphereButton.setToolTipText("Create sphere");
1217
+ sphereButton.addActionListener(this);
1218
+
1219
+ row1.add(coneButton = GetButton("icons/cone.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1220
+ coneButton.setToolTipText("Create cone");
1221
+ coneButton.addActionListener(this);
1222
+
1223
+ row1.add(torusButton = GetButton("icons/torus.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1224
+ torusButton.setToolTipText("Create torus");
1225
+ torusButton.addActionListener(this);
1226
+
1227
+ if (false) //Globals.ADVANCED)
12011228 {
1202
- oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1229
+ oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12031230 kleinButton.setToolTipText("Create Klein bottle");
12041231 kleinButton.addActionListener(this);
12051232 }
12061233
1207
- row1.add(particlesButton = GetButton("icons/particles.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1234
+ row1.add(particlesButton = GetButton("icons/particles.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12081235 particlesButton.setToolTipText("Create particle system");
12091236 particlesButton.addActionListener(this);
12101237
....@@ -1212,31 +1239,31 @@
12121239
12131240 cGridBag row2 = new cGridBag();
12141241
1215
- row2.add(groupButton = GetButton("icons/group.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1242
+ row2.add(groupButton = GetButton("icons/group.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12161243 groupButton.setToolTipText("Create group");
12171244 groupButton.addActionListener(this);
12181245
1219
- row2.add(compositeButton = GetButton("icons/composite.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1246
+ row2.add(compositeButton = GetButton("icons/composite.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12201247 compositeButton.setToolTipText("Create composite");
12211248 compositeButton.addActionListener(this);
12221249
1223
- row2.add(switchButton = GetButton("icons/switch.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1250
+ row2.add(switchButton = GetButton("icons/switch.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12241251 switchButton.setToolTipText("Create item switcher");
12251252 switchButton.addActionListener(this);
12261253
1227
- row2.add(loopButton = GetButton("icons/loop.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1254
+ row2.add(loopButton = GetButton("icons/loop.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12281255 loopButton.setToolTipText("Create loop");
12291256 loopButton.addActionListener(this);
12301257
1231
- row2.add(textureButton = GetButton("icons/texture.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1258
+ row2.add(textureButton = GetButton("icons/texture.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12321259 textureButton.setToolTipText("Create texture");
12331260 textureButton.addActionListener(this);
12341261
1235
- row2.add(overlayButton = GetButton("icons/overlay.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1262
+ row2.add(overlayButton = GetButton("icons/overlay.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12361263 overlayButton.setToolTipText("Create overlay");
12371264 overlayButton.addActionListener(this);
12381265
1239
- row2.add(lightButton = GetButton("icons/light-bulb.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1266
+ row2.add(lightButton = GetButton("icons/light-bulb.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12401267 lightButton.setToolTipText("Create light");
12411268 lightButton.addActionListener(this);
12421269
....@@ -1246,6 +1273,11 @@
12461273
12471274 CreateTexturePanel(textures);
12481275
1276
+ int tabCount = resourcecontainer.getTabCount();
1277
+
1278
+ if (tabCount > 0)
1279
+ resourcecontainer.setSelectedIndex((int)(Math.random() * tabCount));
1280
+
12491281 oe.toolboxPanel.add(textures);
12501282
12511283 textures.preferredHeight = 100;
....@@ -1253,11 +1285,11 @@
12531285 CreateSkyboxPanel(oe.skyboxPanel);
12541286
12551287 // EDIT panel
1256
- editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1288
+ editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12571289 editButton.setToolTipText("Pin selection controls");
12581290 editButton.addActionListener(this);
12591291
1260
- editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1292
+ editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12611293 uneditButton.setToolTipText("Unpin and remove selection controls");
12621294 uneditButton.addActionListener(this);
12631295
....@@ -1265,7 +1297,7 @@
12651297 allParamsButton.setToolTipText("Show all controls");
12661298 allParamsButton.addActionListener(this);
12671299
1268
- editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1300
+ editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12691301 clearPanelButton.setToolTipText("Clear all controls");
12701302 clearPanelButton.addActionListener(this);
12711303
....@@ -1273,7 +1305,7 @@
12731305 //unselectButton.setToolTipText("Unselect");
12741306 //unselectButton.addActionListener(this);
12751307
1276
- editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1308
+ editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12771309 flashSelectionButton.setToolTipText("Highlight selection");
12781310 flashSelectionButton.addActionListener(this);
12791311
....@@ -1296,6 +1328,8 @@
12961328
12971329 cGridBag jSPPanel = new cGridBag();
12981330
1331
+ jSPPanel.preferredHeight = 20;
1332
+
12991333 JScrollPane jSP;
13001334 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
13011335 jSPPanel.add(jSP = new JScrollPane(oe.jTree)); //, oe.aConstraints);
....@@ -1304,11 +1338,11 @@
13041338 oe.treePanel.add(jSPPanel);
13051339 oe.treePanel.Return();
13061340
1307
- oe.treePanel.add(copyOptionsPanel);
1341
+ oe.treePanel.add(versionManagerPanel);
13081342 oe.treePanel.Return();
1309
- cGridBag sliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
1310
- versionSlider = (cNumberSlider)sliderPane.getComponent(1);
1311
- sliderPane.preferredHeight = 1;
1343
+ versionSliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
1344
+ versionSlider = (cNumberSlider)versionSliderPane.getComponent(1);
1345
+ versionSliderPane.preferredHeight = 3;
13121346
13131347 // mainPanel.setDividerLocation(0.1); //1.0);
13141348 mainPanel.setResizeWeight(0.4);
....@@ -1466,7 +1500,7 @@
14661500
14671501 void EditObject(Object3D obj)
14681502 {
1469
- assert(obj instanceof Composite);
1503
+ //assert(obj instanceof Composite);
14701504
14711505 // if (obj.versionlist == null)
14721506 // {
....@@ -1498,6 +1532,7 @@
14981532
14991533 oe.SetupViews();
15001534
1535
+ if (Globals.DEBUG)
15011536 System.out.println("SetupViews");
15021537 DragSource.getDefaultDragSource().createDefaultDragGestureRecognizer(
15031538 oe.cameraView, DnDConstants.ACTION_COPY_OR_MOVE, this); // ACTION_LINK ??
....@@ -2101,24 +2136,24 @@
21012136 switch(axis)
21022137 {
21032138 case 0 :
2104
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2105
- vert2.x = minima.x; vert2.y = maxima.y; vert2.z = minima.z;
2106
- vert3.x = minima.x; vert3.y = minima.y; vert3.z = maxima.z;
2107
- vert4.x = minima.x; vert4.y = maxima.y; vert4.z = maxima.z;
2139
+ vert1.x = minima.x + 0.001f; vert1.y = minima.y; vert1.z = minima.z;
2140
+ vert2.x = minima.x + 0.001f; vert2.y = maxima.y; vert2.z = minima.z;
2141
+ vert3.x = minima.x + 0.001f; vert3.y = minima.y; vert3.z = maxima.z;
2142
+ vert4.x = minima.x + 0.001f; vert4.y = maxima.y; vert4.z = maxima.z;
21082143 norm = cVector.X;
21092144 break;
21102145 case 1 :
2111
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2112
- vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z;
2113
- vert3.x = minima.x; vert3.y = minima.y; vert3.z = maxima.z;
2114
- vert4.x = maxima.x; vert4.y = minima.y; vert4.z = maxima.z;
2146
+ vert1.x = minima.x; vert1.y = minima.y + 0.001f; vert1.z = minima.z;
2147
+ vert2.x = maxima.x; vert2.y = minima.y + 0.001f; vert2.z = minima.z;
2148
+ vert3.x = minima.x; vert3.y = minima.y + 0.001f; vert3.z = maxima.z;
2149
+ vert4.x = maxima.x; vert4.y = minima.y + 0.001f; vert4.z = maxima.z;
21152150 norm = cVector.Y;
21162151 break;
21172152 case 2 :
2118
- vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z;
2119
- vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z;
2120
- vert3.x = minima.x; vert3.y = maxima.y; vert3.z = minima.z;
2121
- vert4.x = maxima.x; vert4.y = maxima.y; vert4.z = minima.z;
2153
+ vert1.x = minima.x; vert1.y = minima.y; vert1.z = minima.z + 0.001f;
2154
+ vert2.x = maxima.x; vert2.y = minima.y; vert2.z = minima.z + 0.001f;
2155
+ vert3.x = minima.x; vert3.y = maxima.y; vert3.z = minima.z + 0.001f;
2156
+ vert4.x = maxima.x; vert4.y = maxima.y; vert4.z = minima.z + 0.001f;
21222157 norm = cVector.Z;
21232158 break;
21242159 }
....@@ -2159,7 +2194,11 @@
21592194 shadow.material = new cMaterial(obj.material);
21602195 shadow.material.diffuse = 0.0001f;
21612196 shadow.material.specular = 0.0001f;
2162
- //shadow.projectedVertices[1].x = 300;
2197
+ shadow.material.opacity = 0.75f;
2198
+
2199
+ AllocProjectedVertices(shadow);
2200
+
2201
+ shadow.projectedVertices[1].x = 300;
21632202
21642203 makeSomething(shadow);
21652204 }
....@@ -2680,27 +2719,35 @@
26802719 } else
26812720 if (source == loopItem || source == loopButton)
26822721 {
2722
+ if (!group.selection.isEmpty())
2723
+ {
26832724 Composite csg = new GroupLeaf();
26842725 csg.count = 5;
2685
- group(csg);
26862726 Composite child = new cGroup("Branch");
26872727 csg.addChild(child);
26882728 child.addChild(csg);
2729
+ group(csg);
2730
+ }
26892731 } else
26902732 if (source == doubleItem)
26912733 {
2734
+ if (!group.selection.isEmpty())
2735
+ {
26922736 Composite csg = new GroupLeaf("Fork");
26932737 csg.count = 5;
2694
- group(csg);
26952738 Composite child = new cGroup("Branch A");
26962739 csg.addChild(child);
26972740 child.addChild(csg);
26982741 child = new cGroup("Branch B");
26992742 csg.addChild(child);
27002743 child.addChild(csg);
2744
+ group(csg);
2745
+ }
27012746 } else
27022747 if (source == tripleItem)
27032748 {
2749
+ if (!group.selection.isEmpty())
2750
+ {
27042751 Composite csg = new GroupLeaf("Trident");
27052752 csg.count = 4;
27062753 group(csg);
....@@ -2713,6 +2760,7 @@
27132760 child = new cGroup();
27142761 csg.addChild(child);
27152762 child.addChild(csg);
2763
+ }
27162764 } else
27172765 if (source == computeAOItem)
27182766 {
....@@ -3348,22 +3396,34 @@
33483396 } else
33493397 if (source == ungroupItem || source == ungroupButton)
33503398 {
3351
- boolean hasRoot = false;
3399
+ boolean canUngroup = true;
33523400
33533401 for (int i=0; i<group.selection.size(); i++)
33543402 {
3355
- if (group.selection.get(i) == group)
3403
+ Object3D selectedItem = group.selection.get(i);
3404
+
3405
+ if (selectedItem.Size() == 0)
33563406 {
3357
- hasRoot = true;
3407
+ // Cannot ungroup leaves
3408
+ canUngroup = false;
3409
+ break;
3410
+ }
3411
+
3412
+ if (selectedItem == group)
3413
+ {
3414
+ // Cannot ungroup root
3415
+ canUngroup = false;
33583416 break;
33593417 }
33603418 }
33613419
3362
- if (!hasRoot)
3420
+ if (canUngroup)
33633421 {
33643422 for (int i=0; i<group.selection.size(); i++)
33653423 {
3366
- Ungroup(group.selection.get(i));
3424
+ Object3D selectedItem = group.selection.get(i);
3425
+
3426
+ Ungroup(selectedItem);
33673427 }
33683428
33693429 ClearSelection(false);
....@@ -3414,6 +3474,10 @@
34143474 if (source == clearMaterialsItem)
34153475 {
34163476 ClearMaterials();
3477
+ } else
3478
+ if (source == clearVersionsItem)
3479
+ {
3480
+ ClearVersions();
34173481 } else
34183482 if (source == liveleavesItem)
34193483 {
....@@ -3554,6 +3618,18 @@
35543618 if (source == transformChildrenItem)
35553619 {
35563620 TransformChildren();
3621
+ } else
3622
+ if (source == textureRatioRItem)
3623
+ {
3624
+ TextureRatio(0);
3625
+ } else
3626
+ if (source == textureRatioGItem)
3627
+ {
3628
+ TextureRatio(1);
3629
+ } else
3630
+ if (source == textureRatioBItem)
3631
+ {
3632
+ TextureRatio(2);
35573633 } else
35583634 if (source == resetTransformItem)
35593635 {
....@@ -3927,6 +4003,9 @@
39274003 if (source == closeButton)
39284004 {
39294005 //System.out.println("CLOSE: " + buttonGroup.getSelection());
4006
+ if (copy.versionlist != null)
4007
+ Replace();
4008
+
39304009 cRadio ab;
39314010 for (Enumeration e = buttonGroup.getElements(); e.hasMoreElements();)
39324011 {
....@@ -4025,6 +4104,9 @@
40254104 } else
40264105 if(source instanceof cRadio)
40274106 {
4107
+ if (copy.versionlist != null)
4108
+ Replace();
4109
+
40284110 group.parent = keepparent;
40294111 group.attributes = 0;
40304112 //group.editWindow = null;
....@@ -4076,14 +4158,27 @@
40764158 */
40774159 radio.layout.doClick();
40784160
4079
- assert(copy instanceof Composite);
4161
+ //assert(copy instanceof Composite);
40804162
40814163 if (copy.versionlist == null)
40824164 {
4083
- copy.versionlist = new Object3D[100];
40844165 copy.versionindex = -1;
40854166
4086
- Save(true);
4167
+ // Cannot work with loops
4168
+ // To fix this issue, we first mark all nodes above the root,
4169
+ // and check if any of these nodes are reachable below the root.
4170
+ Grafreed.grafreed.universe.TagObjects(copy, true);
4171
+
4172
+ if (copy instanceof Composite && copy.versionlist == null && !copy.HasTags())
4173
+ {
4174
+ copy.versionlist = new Object3D[100];
4175
+
4176
+ //Save(true);
4177
+ }
4178
+ else
4179
+ copy.versionindex = -2;
4180
+
4181
+ Grafreed.grafreed.universe.TagObjects(copy, false);
40874182 }
40884183
40894184 SetVersionStates();
....@@ -4201,6 +4296,18 @@
42014296 refreshContents();
42024297 }
42034298
4299
+ void TextureRatio(int axis)
4300
+ {
4301
+ Object3D obj;
4302
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
4303
+ {
4304
+ obj = (Object3D)e.nextElement();
4305
+ obj.TextureRatio(axis);
4306
+ }
4307
+
4308
+ refreshContents();
4309
+ }
4310
+
42044311 void ResetTransform()
42054312 {
42064313 ResetTransform(-1);
....@@ -4216,42 +4323,8 @@
42164323 if (obj.toParent == null)
42174324 continue;
42184325
4219
- if (mask == -1)
4220
- {
4221
- if (obj instanceof Camera) // jan 2014
4222
- {
4223
- LA.matIdentity(obj.toParent);
4224
- LA.matIdentity(obj.fromParent);
4225
- }
4226
- else
4227
- {
4228
- obj.toParent = null; // jan 2014 LA.matIdentity(obj.toParent);
4229
- obj.fromParent = null; // LA.matIdentity(obj.fromParent);
4230
- }
4231
- TouchTransform(obj);
4232
- continue;
4233
- }
4234
- if ((mask&2) != 0) // Scale
4235
- {
4236
- obj.toParent[0][0] = obj.toParent[1][1] = obj.toParent[2][2] = 1;
4237
- obj.toParent[0][1] = obj.toParent[1][0] = obj.toParent[2][0] = 0;
4238
- obj.toParent[0][2] = obj.toParent[1][2] = obj.toParent[2][1] = 0;
4239
- obj.fromParent[0][0] = obj.fromParent[1][1] = obj.fromParent[2][2] = 1;
4240
- obj.fromParent[0][1] = obj.fromParent[1][0] = obj.fromParent[2][0] = 0;
4241
- obj.fromParent[0][2] = obj.fromParent[1][2] = obj.fromParent[2][1] = 0;
4242
- }
4243
- if ((mask&4) != 0) // Rotation
4244
- {
4245
- // ?
4246
- }
4247
- if ((mask&1) != 0) // Translation
4248
- {
4249
- if (obj.toParent != null)
4250
- {
4251
- obj.toParent[3][0] = obj.toParent[3][1] = obj.toParent[3][2] = 0;
4252
- obj.fromParent[3][0] = obj.fromParent[3][1] = obj.fromParent[3][2] = 0;
4253
- }
4254
- }
4326
+ obj.ResetTransform(mask);
4327
+
42554328 if (obj.parent == null)
42564329 {
42574330 System.out.println("NULL PARENT!");
....@@ -4760,6 +4833,12 @@
47604833 {
47614834 Object3D obj = group.selection.get(i);
47624835
4836
+ if (obj.toParent == null)
4837
+ {
4838
+ obj.toParent = LA.newMatrix();
4839
+ obj.fromParent = LA.newMatrix();
4840
+ }
4841
+
47634842 LA.matTranslate(obj.toParent, i * scale, 0, 0);
47644843 LA.matTranslateInv(obj.fromParent, -i * scale, 0, 0);
47654844 }
....@@ -5051,6 +5130,12 @@
50515130 refreshContents();
50525131 }
50535132
5133
+ void ClearVersions()
5134
+ {
5135
+ group.selection.ClearVersions();
5136
+ refreshContents();
5137
+ }
5138
+
50545139 void FlipV(boolean flip)
50555140 {
50565141 group.selection.FlipV(flip);
....@@ -5325,20 +5410,23 @@
53255410
53265411 boolean allComposites = true;
53275412
5413
+ if (group.selection != null)
53285414 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
53295415 {
5330
- if (!(e.nextElement() instanceof Composite))
5416
+ Object next = e.nextElement();
5417
+ if (!(next instanceof Composite)) // || (next instanceof GroupLeaf))
53315418 {
53325419 allComposites = false;
53335420 break;
53345421 }
53355422 }
53365423
5337
- rootButton.setEnabled(allComposites);
5424
+ rootButton.setEnabled(true); // allComposites);
53385425 }
53395426
53405427 void refreshContents(boolean cp)
53415428 {
5429
+ if (Globals.ADVANCED)
53425430 //if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
53435431 if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
53445432 {
....@@ -6232,11 +6320,11 @@
62326320 private MenuItem lookAtItem;
62336321 private MenuItem lookFromItem;
62346322 private MenuItem switchViewItem;
6235
- private MenuItem cutItem;
6323
+ private JMenuItem cutItem;
62366324 private MenuItem undoItem;
62376325 private MenuItem redoItem;
62386326 private JMenuItem duplicateItem;
6239
- private MenuItem cloneItem;
6327
+ private JMenuItem cloneItem;
62406328 private MenuItem cloneSupportItem;
62416329 private MenuItem overwriteGeoItem;
62426330 private MenuItem overwriteMatItem;
....@@ -6257,13 +6345,13 @@
62576345 private MenuItem cloneGeometriesItem;
62586346 private MenuItem shareGeometriesItem;
62596347 private MenuItem mergeGeometriesItem;
6260
- private MenuItem copyItem;
6348
+ private JMenuItem copyItem;
62616349 private MenuItem pasteItem;
6262
- private MenuItem pasteIntoItem;
6263
- private MenuItem pasteLinkItem;
6264
- private MenuItem pasteCloneItem;
6265
- private MenuItem pasteExpandItem;
6266
- private MenuItem deleteItem;
6350
+ private JMenuItem pasteIntoItem;
6351
+ private JMenuItem pasteLinkItem;
6352
+ private JMenuItem pasteCloneItem;
6353
+ private JMenuItem pasteExpandItem;
6354
+ private JMenuItem deleteItem;
62676355 private MenuItem clearAllItem;
62686356 private MenuItem genUVItem;
62696357 private MenuItem genNormalsMESHItem;
....@@ -6289,6 +6377,7 @@
62896377 private MenuItem clipMeshItem;
62906378 private MenuItem smoothMeshItem;
62916379 private MenuItem clearMaterialsItem;
6380
+ private MenuItem clearVersionsItem;
62926381
62936382 private MenuItem liveleavesItem;
62946383 private MenuItem unliveleavesItem;
....@@ -6312,13 +6401,16 @@
63126401 private MenuItem maxTexturesItem;
63136402 private MenuItem panoTexturesItem;
63146403
6404
+ private MenuItem textureRatioRItem;
6405
+ private MenuItem textureRatioGItem;
6406
+ private MenuItem textureRatioBItem;
63156407 private MenuItem resetCentroidItem;
63166408 private MenuItem resetCentroidXZItem;
63176409 private MenuItem resetTransformItem;
63186410 private MenuItem transformGeometryItem;
63196411 private MenuItem transformChildrenItem;
63206412 private MenuItem hideItem;
6321
- private MenuItem grabItem;
6413
+ private JMenuItem grabItem;
63226414 private MenuItem backItem;
63236415 private MenuItem frontItem;
63246416 private MenuItem cameraItem;
....@@ -6331,7 +6423,7 @@
63316423 private MenuItem switchTransfoItem;
63326424 private MenuItem morphItem;
63336425 private MenuItem linkerItem;
6334
- private MenuItem ungroupItem;
6426
+ private JMenuItem ungroupItem;
63356427 private MenuItem editItem;
63366428 private MenuItem openWindowItem;
63376429 private MenuItem editLeafItem;