Normand Briere
2019-08-22 6a823ffbfcda4c843f46e02e83c869d5bc323e25
GroupEditor.java
....@@ -29,9 +29,9 @@
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));
34
- skyboxButton.setToolTipText(s);
34
+ skyboxButton.setToolTipText(s.equals("") ? "No background" : s);
3535 skyboxButton.addActionListener(new ActionListener()
3636 {
3737 @Override
....@@ -42,12 +42,12 @@
4242 });
4343 }
4444
45
- public void AddTextureButton(String f, final String t, cGridBag row)
45
+ public void AddTextureButton(String f, String c, final String t, int count, cGridBag row)
4646 {
4747 cButton textureButton;
48
- final String path = "textures/" + f + "/"; // + t;
49
- row.add(textureButton = GetButton(path + "icons/" + t, !Grafreed.NIMBUSLAF));
50
- textureButton.setToolTipText(f + "s");
48
+ final String path = "textures/" + f + "/" + c + "/"; // + t;
49
+ row.add(textureButton = GetButton(path + "icons/" + t, !Globals.NIMBUSLAF));
50
+ textureButton.setToolTipText(c + count);
5151 textureButton.addActionListener(new ActionListener()
5252 {
5353 @Override
....@@ -73,7 +73,7 @@
7373 cGridBag row5 = new cGridBag();
7474 cGridBag row6 = new cGridBag();
7575
76
- AddSkyboxButton("default", "rgb", row0);
76
+ AddSkyboxButton("default", "", row0);
7777 //AddSkyboxButton("default", "cornell", row0);
7878 AddSkyboxButton("penguins", "dust", row0);
7979 AddSkyboxButton("penguins", "tropic", row0);
....@@ -330,15 +330,24 @@
330330
331331 public void ChangeSkybox(String skybox)
332332 {
333
- //cameraView.envyoff = false;
334
- group.skyboxname = skybox;
335
- group.skyboxext = "jpg";
336
- cameraView.repaint();
333
+ if (skybox.endsWith("/"))
334
+ {
335
+ group.skyboxname = null;
336
+ group.skyboxext = null;
337
+ cameraView.repaint();
338
+ }
339
+ else
340
+ {
341
+ //cameraView.envyoff = false;
342
+ group.skyboxname = skybox;
343
+ group.skyboxext = "jpg";
344
+ cameraView.repaint();
345
+ }
337346 }
338347
339348 public void CreateSkyboxPanel(cGridBag skyboxPanel)
340349 {
341
- JTabbedPane skyboxpane = new JTabbedPane();
350
+ JTabbedPane skyboxpane = new JTabbedPane(JTabbedPane.LEFT);
342351
343352 AddSkyboxTab0(skyboxpane);
344353 AddSkyboxTab1(skyboxpane);
....@@ -350,7 +359,23 @@
350359
351360 public void ChangeTexture(String texture)
352361 {
353
- cameraView.repaint();
362
+ for (int i=0; i<group.selection.size(); i++)
363
+ {
364
+ Object3D obj = group.selection.get(i);
365
+ obj.SetPigmentTexture("@" + texture);
366
+ }
367
+
368
+ refreshContents();
369
+ }
370
+
371
+ public void Show3DView()
372
+ {
373
+ // bug
374
+ //gridPanel.setDividerLocation(1.0);
375
+ //bigPanel.setDividerLocation(0.0);
376
+ bigThree.ClearUI();
377
+ bigThree.add(centralPanel);
378
+ bigThree.FlushUI();
354379 }
355380
356381 //ObjEditor objEditor;
....@@ -390,10 +415,14 @@
390415 this.copy = this.group = group;
391416 //selectees = this.group.selectees;
392417
418
+ assert(false);
419
+
393420 if (copy.versionlist == null)
394421 {
395422 copy.versionlist = new Object3D[100];
396423 copy.versionindex = -1;
424
+
425
+ //Save(true);
397426 }
398427
399428 if(ui)
....@@ -422,7 +451,7 @@
422451 copy.versionlist = new Object3D[100];
423452 copy.versionindex = -1;
424453
425
- Save(true);
454
+ //Save(true);
426455 }
427456 }
428457
....@@ -513,33 +542,35 @@
513542 // menu.add("-");
514543 duplicateItem = oe.jTree.popup.add(new JMenuItem("Duplicate"));
515544 duplicateItem.addActionListener(this);
516
- cloneItem = menu.add(new MenuItem("Clone"));
545
+
546
+ cloneItem = oe.jTree.popup.add(new JMenuItem("Clone"));
517547 cloneItem.addActionListener(this);
518
- if (Globals.ADVANCED)
548
+ //if (Globals.ADVANCED)
519549 {
520550 cloneSupportItem = menu.add(new MenuItem("Clone (+supports)"));
521551 cloneSupportItem.addActionListener(this);
522552 }
553
+ oe.jTree.popup.addSeparator();
523554 menu.add("-");
524
- cutItem = menu.add(new MenuItem("Cut"));
555
+ cutItem = oe.jTree.popup.add(new JMenuItem("Cut"));
525556 cutItem.addActionListener(this);
526
- copyItem = menu.add(new MenuItem("Copy"));
557
+ copyItem = oe.jTree.popup.add(new JMenuItem("Copy"));
527558 copyItem.addActionListener(this);
528559 pasteItem = menu.add(new MenuItem("Paste"));
529560 pasteItem.addActionListener(this);
530561
531
- menu.add("-");
532
- 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"));
533565 pasteIntoItem.addActionListener(this);
534
- pasteLinkItem = menu.add(new MenuItem("Paste link"));
566
+ pasteLinkItem = oe.jTree.popup.add(new JMenuItem("Paste link"));
535567 pasteLinkItem.addActionListener(this);
536
- pasteCloneItem = menu.add(new MenuItem("Paste clone"));
568
+ pasteCloneItem = oe.jTree.popup.add(new JMenuItem("Paste clone"));
537569 pasteCloneItem.addActionListener(this);
538
-// pasteExpandItem = menu.add(new MenuItem("Paste expand"));
570
+// CRASH pasteExpandItem = oe.jTree.popup.add(new JMenuItem("Paste expand"));
539571 // pasteExpandItem.addActionListener(this);
540
- menu.add("-");
541
- deleteItem = menu.add(new MenuItem("Delete"));
542
- deleteItem.addActionListener(this);
572
+ //menu.add("-");
573
+ oe.jTree.popup.addSeparator();
543574
544575 if (Globals.ADVANCED)
545576 {
....@@ -625,11 +656,9 @@
625656 oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest"));
626657 //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection"));
627658 //cameraMenu.add(switchViewItem = new MenuItem("Reverse View"));
628
- editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf"));
629659 oe.cameraMenu.add("-");
630660 openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy..."));
631661 openWindowItem.addActionListener(this);
632
- editLeafItem.addActionListener(this);
633662 lookAtItem.addActionListener(this);
634663 //lookFromItem.addActinoListener(this);
635664 //switchViewItem.addActionListener(this);
....@@ -676,9 +705,8 @@
676705 setMasterItem.addActionListener(this);
677706 }
678707
679
- oe.menuBar.add(menu = new Menu("Group"));
680
-// grabItem = menu.add(new MenuItem("Grab"));
681
-// grabItem.addActionListener(this);
708
+ oe.menuBar.add(menu = new Menu("Order"));
709
+
682710 backItem = menu.add(new MenuItem("Back"));
683711 backItem.addActionListener(this);
684712 frontItem = menu.add(new MenuItem("Front"));
....@@ -686,13 +714,21 @@
686714 // compositeItem = menu.add(new MenuItem("Composite"));
687715 // compositeItem.addActionListener(this);
688716
717
+ grabItem = oe.jTree.popup.add(new JMenuItem("Group"));
718
+ grabItem.addActionListener(this);
719
+
689720 if (Globals.ADVANCED)
690721 {
691722 hideItem = menu.add(new MenuItem("Hidden Group"));
692723 hideItem.addActionListener(this);
693724 }
694
- ungroupItem = menu.add(new MenuItem("Ungroup"));
725
+ ungroupItem = oe.jTree.popup.add(new JMenuItem("Ungroup"));
695726 ungroupItem.addActionListener(this);
727
+
728
+ oe.jTree.popup.addSeparator();
729
+
730
+ deleteItem = oe.jTree.popup.add(new JMenuItem("Delete"));
731
+ deleteItem.addActionListener(this);
696732
697733 // menu.add("-");
698734 //
....@@ -821,9 +857,9 @@
821857 hideleavesItem.addActionListener(this);
822858 showleavesItem = menu.add(new MenuItem("Show Leaves"));
823859 showleavesItem.addActionListener(this);
824
- markleavesItem = menu.add(new MenuItem("Mark Leaves"));
860
+ markleavesItem = menu.add(new MenuItem("Anim Leaves"));
825861 markleavesItem.addActionListener(this);
826
- unmarkleavesItem = menu.add(new MenuItem("Unmark Leaves"));
862
+ unmarkleavesItem = menu.add(new MenuItem("Unanim Leaves"));
827863 unmarkleavesItem.addActionListener(this);
828864 rewindleavesItem = menu.add(new MenuItem("Rewind Leaves"));
829865 rewindleavesItem.addActionListener(this);
....@@ -877,6 +913,9 @@
877913 shareGeometriesItem.addActionListener(this);
878914 mergeGeometriesItem = menu.add(new MenuItem("Merge Geometries"));
879915 mergeGeometriesItem.addActionListener(this);
916
+ menu.add("-");
917
+ editLeafItem = menu.add(new MenuItem("Edit leaf..."));
918
+ editLeafItem.addActionListener(this);
880919 if (Globals.ADVANCED)
881920 {
882921 // Pretty much the same as duplicate and clone.
....@@ -895,40 +934,50 @@
895934
896935 JTabbedPane resourcecontainer;
897936 cGridBag currenttab;
898
- boolean added; // patch for jar
937
+ //boolean added; // patch for jar
899938
939
+ int totalcount = 0;
940
+
900941 int tabcount = 0;
901942 int colcount = 0;
902943 int rowcount = 0;
944
+ int texturecount = 0;
903945
904946 int columns = 5;
905947 int rows = 7;
906948
907949 public void ResourceCallBack(String[] path)
908950 {
909
- for (int i = 0; i < path.length; i++)
910
- System.out.print(path[i] + "/");
911
- System.out.println();
912
- if (rowcount == 0)
951
+// for (int i = 0; i < path.length; i++)
952
+// System.out.print(path[i] + "/");
953
+// System.out.println();
954
+
955
+ if (//rowcount == 0 ||
956
+ path.length == 1 && !path[0].equals("") && !path[0].equals(".DS_Store"))
913957 {
914958 currenttab = new cGridBag();
915
- added = false;
916
- String tabname = String.valueOf((char)('A'+tabcount));
959
+ String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
917960 currenttab.setName(tabname);
961
+ //added = false;
962
+ resourcecontainer.add(currenttab);
963
+ resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
918964 rowcount = 1;
965
+ colcount = 0;
966
+ texturecount = 0;
919967 }
920968
921
- if (path.length > 1 && path[1].toLowerCase().endsWith(".jpg"))
969
+ if (path.length > 2 && (path[2].toLowerCase().endsWith(".jpg") || path[2].toLowerCase().endsWith(".png")))
922970 {
923
- if (!added)
971
+ //if (!added)
924972 {
925
- added = true;
926
- resourcecontainer.add(currenttab);
927
- String tabname = String.valueOf((char)('A'+tabcount));
928
- resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
973
+ //added = true;
974
+ String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
975
+ currenttab = (cGridBag)resourcecontainer.getComponentAt(resourcecontainer.indexOfTab(tabname));
929976 }
930977
931
- AddTextureButton(path[0], path[1], currenttab);
978
+ AddTextureButton(path[0], path[1], path[2], ++texturecount, currenttab);
979
+ totalcount++;
980
+
932981 if (++colcount >= columns)
933982 {
934983 colcount = 0;
....@@ -949,10 +998,12 @@
949998
950999 void CreateTexturePanel(cGridBag container)
9511000 {
952
- resourcecontainer = new JTabbedPane();
1001
+ resourcecontainer = new JTabbedPane(JTabbedPane.LEFT);
9531002 container.add(resourcecontainer);
9541003
9551004 Grafreed.ParseResources("textures", this);
1005
+
1006
+ // 935. System.out.println("Total = " + totalcount);
9561007 }
9571008
9581009 void SetupUI2(ObjEditor oe)
....@@ -972,11 +1023,6 @@
9721023 //new Exception().printStackTrace();
9731024
9741025 oe.radioPanel = new JPanel(new GridBagLayout());
975
- oe.aConstraints.weightx = 1;
976
- oe.aConstraints.weighty = 0;
977
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
978
- oe.aConstraints.gridwidth = 100;
979
- oe.aConstraints.gridheight = 1;
9801026 // oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
9811027
9821028 oe.buttonGroup = new ButtonGroup();
....@@ -997,9 +1043,9 @@
9971043 oe.radioPanel.add(dummyButton);
9981044 oe.buttonGroup.add(dummyButton);
9991045 */
1000
- cGridBag copyOptionsPanel = new cGridBag();
1046
+ cGridBag versionManagerPanel = new cGridBag();
10011047
1002
- copyOptionsPanel.preferredHeight = 2;
1048
+ versionManagerPanel.preferredHeight = 4;
10031049
10041050 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
10051051
....@@ -1009,62 +1055,102 @@
10091055
10101056 if (Globals.ADVANCED)
10111057 {
1012
- oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1013
- maxButton.setToolTipText("Maximize window");
1014
- maxButton.addActionListener(this);
1058
+// oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1059
+// maxButton.setToolTipText("Maximize window");
1060
+// maxButton.addActionListener(this);
10151061 }
10161062
1017
- oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1063
+ cButton gcButton;
1064
+
1065
+// oe.toolbarPanel.add(gcButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1066
+// gcButton.setToolTipText("Garbage collect");
1067
+// gcButton.addActionListener(new ActionListener()
1068
+// {
1069
+// public void actionPerformed(ActionEvent e)
1070
+// {
1071
+// System.gc();
1072
+// }
1073
+// });
1074
+
1075
+ oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1076
+ collapseButton.setToolTipText("Collapse toolbar");
1077
+ collapseButton.addActionListener(this);
1078
+
1079
+ oe.toolbarPanel.add(maximize3DButton = GetButton("icons/square.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1080
+ maximize3DButton.setToolTipText("Maximize 3D view");
1081
+ maximize3DButton.addActionListener(this);
1082
+
1083
+ oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1084
+ twoButton.setToolTipText("Show 3D view only");
1085
+ twoButton.addActionListener(this);
1086
+ this.fullscreenLayout = twoButton;
1087
+
1088
+ oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1089
+ threeButton.setToolTipText("Show controls and 3D view");
1090
+ threeButton.addActionListener(this);
1091
+ if (Globals.ADVANCED)
1092
+ {
1093
+ oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1094
+ sixButton.setToolTipText("Show 3D view and controls");
1095
+ sixButton.addActionListener(this);
1096
+ }
1097
+// oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1098
+// sevenButton.setToolTipText("3-column layout");
1099
+// sevenButton.addActionListener(this);
1100
+ //
1101
+
1102
+ oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10181103 fullButton.setToolTipText("Full-screen window");
10191104 fullButton.addActionListener(this);
10201105
1021
- oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1106
+ oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10221107 screenfitButton.setToolTipText("Screen fit");
10231108 screenfitButton.addActionListener(this);
10241109
1025
- oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1110
+ oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10261111 restoreCameraButton.setToolTipText("Restore viewpoint");
10271112 restoreCameraButton.addActionListener(this);
10281113
1029
- copyOptionsPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1114
+ versionManagerPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10301115 saveVersionButton.setToolTipText("Duplicate current version");
10311116 saveVersionButton.addActionListener(this);
10321117
1033
- copyOptionsPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1118
+ versionManagerPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10341119 deleteVersionButton.setToolTipText("Delete current version");
10351120 deleteVersionButton.addActionListener(this);
1121
+ deleteVersionButton.setEnabled(false);
10361122
1037
- copyOptionsPanel.add(previousVersionButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1123
+ versionManagerPanel.add(previousVersionButton = GetButton("icons/undo.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10381124 previousVersionButton.setToolTipText("Previous version");
10391125 previousVersionButton.addActionListener(this);
10401126 previousVersionButton.setEnabled(false);
10411127
10421128 cGridBag updown = new cGridBag().setVertical(true);
1043
- updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1129
+ updown.add(restoreButton = GetButton("icons/restore.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10441130 restoreButton.setToolTipText("Undo (restore current version)");
10451131 restoreButton.addActionListener(this);
1046
- //restoreButton.setEnabled(false);
1132
+ restoreButton.setEnabled(false);
10471133
1048
- updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1134
+ updown.add(replaceButton = GetButton("icons/replace.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10491135 replaceButton.setToolTipText("Save (replace current version)");
10501136 replaceButton.addActionListener(this);
1051
- //replaceButton.setEnabled(false);
1137
+ replaceButton.setEnabled(false);
10521138
1053
- copyOptionsPanel.add(updown);
1139
+ versionManagerPanel.add(updown);
10541140
1055
- copyOptionsPanel.add(nextVersionButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1141
+ versionManagerPanel.add(nextVersionButton = GetButton("icons/redo.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10561142 nextVersionButton.setToolTipText("Next version");
10571143 nextVersionButton.addActionListener(this);
10581144 nextVersionButton.setEnabled(false);
1145
+
1146
+ oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1147
+ oneStepButton.setToolTipText("Animate one step forward");
1148
+ oneStepButton.addActionListener(this);
10591149
10601150 oe.toolbarPanel.add(liveCB = GetToggleButton("icons/run.png", Globals.isLIVE())); //, oe.aConstraints);
10611151 liveCB.setToolTipText("Enable animation");
10621152 liveCB.addItemListener(this);
10631153
1064
- oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1065
- oneStepButton.setToolTipText("Animate one step forward");
1066
- oneStepButton.addActionListener(this);
1067
-
10681154 oe.toolbarPanel.add(fastCB = GetToggleButton("icons/runfast.png", CameraPane.FAST)); //, constraints);
10691155 fastCB.setToolTipText("Fast mode");
10701156 fastCB.addItemListener(this);
....@@ -1080,38 +1166,23 @@
10801166
10811167 if (Globals.ADVANCED)
10821168 {
1083
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1169
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10841170 snapobjectButton.addActionListener(this);
10851171 snapobjectButton.setToolTipText("Snap Object");
10861172
1087
- oe.toolbarPanel.add(fourButton = GetButton("icons/controls-horizontal.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1173
+ oe.toolbarPanel.add(fourButton = GetButton("icons/controls-horizontal.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
10881174 fourButton.addActionListener(this);
10891175 fourButton.setToolTipText("Show control panel only");
10901176 }
10911177
10921178 //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
10931179
1094
- oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1095
- twoButton.setToolTipText("Show 3D view only");
1096
- twoButton.addActionListener(this);
1097
- this.fullscreenLayout = twoButton;
1098
-
1099
- oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1100
- threeButton.setToolTipText("Show controls and 3D view");
1101
- threeButton.addActionListener(this);
1102
- oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1103
- sixButton.setToolTipText("Show 3D view and controls");
1104
- sixButton.addActionListener(this);
1105
-// oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1106
-// sevenButton.setToolTipText("3-column layout");
1107
-// sevenButton.addActionListener(this);
1108
- //
11091180
1110
- oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1181
+ oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11111182 rootButton.setToolTipText("Open selection in new tab");
11121183 rootButton.addActionListener(this);
11131184
1114
- oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1185
+ oe.toolbarPanel.add(closeButton = GetButton("icons/close-icon.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11151186 closeButton.setToolTipText("Close tab");
11161187 closeButton.addActionListener(this);
11171188 //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints);
....@@ -1120,38 +1191,38 @@
11201191 cGridBag row1 = new cGridBag();
11211192
11221193 // INSERT
1123
- row1.add(gridButton = GetButton("icons/grid.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1124
- gridButton.setToolTipText("Create grid");
1194
+ row1.add(gridButton = GetButton("icons/grid.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1195
+ gridButton.setToolTipText("Create ground");
11251196 gridButton.addActionListener(this);
11261197
1127
- row1.add(boxButton = GetButton("icons/box.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1198
+ row1.add(boxButton = GetButton("icons/box.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11281199 boxButton.setToolTipText("Create box");
11291200 boxButton.addActionListener(this);
11301201
1131
- row1.add(sphereButton = GetButton("icons/sphere.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1132
- sphereButton.setToolTipText("Create sphere");
1133
- sphereButton.addActionListener(this);
1134
-
1135
- row1.add(coneButton = GetButton("icons/cone.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1136
- coneButton.setToolTipText("Create cone");
1137
- coneButton.addActionListener(this);
1138
-
1139
- row1.add(torusButton = GetButton("icons/torus.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1140
- torusButton.setToolTipText("Create torus");
1141
- torusButton.addActionListener(this);
1142
-
1143
- row1.add(superButton = GetButton("icons/super.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1202
+ row1.add(superButton = GetButton("icons/super.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11441203 superButton.setToolTipText("Create superellipsoid");
11451204 superButton.addActionListener(this);
11461205
1206
+ row1.add(sphereButton = GetButton("icons/sphere.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1207
+ sphereButton.setToolTipText("Create sphere");
1208
+ sphereButton.addActionListener(this);
1209
+
1210
+ row1.add(coneButton = GetButton("icons/cone.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1211
+ coneButton.setToolTipText("Create cone");
1212
+ coneButton.addActionListener(this);
1213
+
1214
+ row1.add(torusButton = GetButton("icons/torus.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
1215
+ torusButton.setToolTipText("Create torus");
1216
+ torusButton.addActionListener(this);
1217
+
11471218 if (Globals.ADVANCED)
11481219 {
1149
- oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1220
+ oe.toolboxPanel.add(kleinButton = GetButton("icons/klein.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11501221 kleinButton.setToolTipText("Create Klein bottle");
11511222 kleinButton.addActionListener(this);
11521223 }
11531224
1154
- row1.add(particlesButton = GetButton("icons/particles.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1225
+ row1.add(particlesButton = GetButton("icons/particles.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11551226 particlesButton.setToolTipText("Create particle system");
11561227 particlesButton.addActionListener(this);
11571228
....@@ -1159,31 +1230,31 @@
11591230
11601231 cGridBag row2 = new cGridBag();
11611232
1162
- row2.add(groupButton = GetButton("icons/group.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1233
+ row2.add(groupButton = GetButton("icons/group.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11631234 groupButton.setToolTipText("Create group");
11641235 groupButton.addActionListener(this);
11651236
1166
- row2.add(compositeButton = GetButton("icons/composite.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1237
+ row2.add(compositeButton = GetButton("icons/composite.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11671238 compositeButton.setToolTipText("Create composite");
11681239 compositeButton.addActionListener(this);
11691240
1170
- row2.add(switchButton = GetButton("icons/switch.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1241
+ row2.add(switchButton = GetButton("icons/switch.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11711242 switchButton.setToolTipText("Create item switcher");
11721243 switchButton.addActionListener(this);
11731244
1174
- row2.add(loopButton = GetButton("icons/loop.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1245
+ row2.add(loopButton = GetButton("icons/loop.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11751246 loopButton.setToolTipText("Create loop");
11761247 loopButton.addActionListener(this);
11771248
1178
- row2.add(textureButton = GetButton("icons/texture.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1249
+ row2.add(textureButton = GetButton("icons/texture.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11791250 textureButton.setToolTipText("Create texture");
11801251 textureButton.addActionListener(this);
11811252
1182
- row2.add(overlayButton = GetButton("icons/overlay.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1253
+ row2.add(overlayButton = GetButton("icons/overlay.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11831254 overlayButton.setToolTipText("Create overlay");
11841255 overlayButton.addActionListener(this);
11851256
1186
- row2.add(lightButton = GetButton("icons/light-bulb.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1257
+ row2.add(lightButton = GetButton("icons/light-bulb.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
11871258 lightButton.setToolTipText("Create light");
11881259 lightButton.addActionListener(this);
11891260
....@@ -1193,6 +1264,11 @@
11931264
11941265 CreateTexturePanel(textures);
11951266
1267
+ int tabCount = resourcecontainer.getTabCount();
1268
+
1269
+ if (tabCount > 0)
1270
+ resourcecontainer.setSelectedIndex((int)(Math.random() * tabCount));
1271
+
11961272 oe.toolboxPanel.add(textures);
11971273
11981274 textures.preferredHeight = 100;
....@@ -1200,11 +1276,11 @@
12001276 CreateSkyboxPanel(oe.skyboxPanel);
12011277
12021278 // EDIT panel
1203
- editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1279
+ editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12041280 editButton.setToolTipText("Pin selection controls");
12051281 editButton.addActionListener(this);
12061282
1207
- editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1283
+ editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12081284 uneditButton.setToolTipText("Unpin and remove selection controls");
12091285 uneditButton.addActionListener(this);
12101286
....@@ -1212,7 +1288,7 @@
12121288 allParamsButton.setToolTipText("Show all controls");
12131289 allParamsButton.addActionListener(this);
12141290
1215
- editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1291
+ editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12161292 clearPanelButton.setToolTipText("Clear all controls");
12171293 clearPanelButton.addActionListener(this);
12181294
....@@ -1220,7 +1296,7 @@
12201296 //unselectButton.setToolTipText("Unselect");
12211297 //unselectButton.addActionListener(this);
12221298
1223
- editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1299
+ editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Globals.NIMBUSLAF)); //, oe.aConstraints);
12241300 flashSelectionButton.setToolTipText("Highlight selection");
12251301 flashSelectionButton.addActionListener(this);
12261302
....@@ -1243,6 +1319,8 @@
12431319
12441320 cGridBag jSPPanel = new cGridBag();
12451321
1322
+ jSPPanel.preferredHeight = 20;
1323
+
12461324 JScrollPane jSP;
12471325 //ctrlPanel.add(new JScrollPane(jTree = new cTree(new cTreeModel(this))), aConstraints);
12481326 jSPPanel.add(jSP = new JScrollPane(oe.jTree)); //, oe.aConstraints);
....@@ -1251,11 +1329,11 @@
12511329 oe.treePanel.add(jSPPanel);
12521330 oe.treePanel.Return();
12531331
1254
- oe.treePanel.add(copyOptionsPanel);
1332
+ oe.treePanel.add(versionManagerPanel);
12551333 oe.treePanel.Return();
1256
- cGridBag sliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
1257
- versionSlider = (cNumberSlider)sliderPane.getComponent(1);
1258
- sliderPane.preferredHeight = 1;
1334
+ versionSliderPane = AddSlider(oe.treePanel, "Version", 0, 0, 0);
1335
+ versionSlider = (cNumberSlider)versionSliderPane.getComponent(1);
1336
+ versionSliderPane.preferredHeight = 3;
12591337
12601338 // mainPanel.setDividerLocation(0.1); //1.0);
12611339 mainPanel.setResizeWeight(0.4);
....@@ -1413,6 +1491,14 @@
14131491
14141492 void EditObject(Object3D obj)
14151493 {
1494
+ assert(obj instanceof Composite);
1495
+
1496
+// if (obj.versionlist == null)
1497
+// {
1498
+// obj.versionlist = new Object3D[100];
1499
+// obj.versionindex = -1;
1500
+// }
1501
+
14161502 cRadio radioButton = new cRadio(obj.name);
14171503
14181504 // June 2019. Patch to avoid bug with transparency.
....@@ -1437,6 +1523,7 @@
14371523
14381524 oe.SetupViews();
14391525
1526
+ if (Globals.DEBUG)
14401527 System.out.println("SetupViews");
14411528 DragSource.getDefaultDragSource().createDefaultDragGestureRecognizer(
14421529 oe.cameraView, DnDConstants.ACTION_COPY_OR_MOVE, this); // ACTION_LINK ??
....@@ -1803,7 +1890,12 @@
18031890 TreePath path;
18041891
18051892 public TransferableTreePath(TreePath tp) {
1806
- path = tp;
1893
+ Object[] objs = new Object[tp.getPathCount()];
1894
+ for (int i=0; i<objs.length; i++)
1895
+ {
1896
+ objs[i] = ((Object3D)tp.getPathComponent(i)).GetUUID();
1897
+ }
1898
+ path = new TreePath(objs);
18071899 }
18081900
18091901 public synchronized DataFlavor[] getTransferDataFlavors() {
....@@ -2093,7 +2185,11 @@
20932185 shadow.material = new cMaterial(obj.material);
20942186 shadow.material.diffuse = 0.0001f;
20952187 shadow.material.specular = 0.0001f;
2096
- //shadow.projectedVertices[1].x = 300;
2188
+ shadow.material.opacity = 0.75f;
2189
+
2190
+ AllocProjectedVertices(shadow);
2191
+
2192
+ shadow.projectedVertices[1].x = 300;
20972193
20982194 makeSomething(shadow);
20992195 }
....@@ -2614,27 +2710,35 @@
26142710 } else
26152711 if (source == loopItem || source == loopButton)
26162712 {
2713
+ if (!group.selection.isEmpty())
2714
+ {
26172715 Composite csg = new GroupLeaf();
26182716 csg.count = 5;
2619
- group(csg);
26202717 Composite child = new cGroup("Branch");
26212718 csg.addChild(child);
26222719 child.addChild(csg);
2720
+ group(csg);
2721
+ }
26232722 } else
26242723 if (source == doubleItem)
26252724 {
2725
+ if (!group.selection.isEmpty())
2726
+ {
26262727 Composite csg = new GroupLeaf("Fork");
26272728 csg.count = 5;
2628
- group(csg);
26292729 Composite child = new cGroup("Branch A");
26302730 csg.addChild(child);
26312731 child.addChild(csg);
26322732 child = new cGroup("Branch B");
26332733 csg.addChild(child);
26342734 child.addChild(csg);
2735
+ group(csg);
2736
+ }
26352737 } else
26362738 if (source == tripleItem)
26372739 {
2740
+ if (!group.selection.isEmpty())
2741
+ {
26382742 Composite csg = new GroupLeaf("Trident");
26392743 csg.count = 4;
26402744 group(csg);
....@@ -2647,6 +2751,7 @@
26472751 child = new cGroup();
26482752 csg.addChild(child);
26492753 child.addChild(csg);
2754
+ }
26502755 } else
26512756 if (source == computeAOItem)
26522757 {
....@@ -2696,6 +2801,18 @@
26962801 if (source == fullButton)
26972802 {
26982803 ToggleFullScreen();
2804
+ } else
2805
+ if (source == collapseButton)
2806
+ {
2807
+ this.expandedLayout = radio.layout;
2808
+ CollapseToolbar();
2809
+ } else
2810
+ if (source == maximize3DButton)
2811
+ {
2812
+ this.expandedLayout = radio.layout;
2813
+ radio.layout = twoButton;
2814
+ Show3DView();
2815
+ CollapseToolbar();
26992816 } else
27002817 if (source == previousVersionButton)
27012818 {
....@@ -3270,22 +3387,34 @@
32703387 } else
32713388 if (source == ungroupItem || source == ungroupButton)
32723389 {
3273
- boolean hasRoot = false;
3390
+ boolean canUngroup = true;
32743391
32753392 for (int i=0; i<group.selection.size(); i++)
32763393 {
3277
- if (group.selection.get(i) == group)
3394
+ Object3D selectedItem = group.selection.get(i);
3395
+
3396
+ if (selectedItem.Size() == 0)
32783397 {
3279
- hasRoot = true;
3398
+ // Cannot ungroup leaves
3399
+ canUngroup = false;
3400
+ break;
3401
+ }
3402
+
3403
+ if (selectedItem == group)
3404
+ {
3405
+ // Cannot ungroup root
3406
+ canUngroup = false;
32803407 break;
32813408 }
32823409 }
32833410
3284
- if (!hasRoot)
3411
+ if (canUngroup)
32853412 {
32863413 for (int i=0; i<group.selection.size(); i++)
32873414 {
3288
- Ungroup(group.selection.get(i));
3415
+ Object3D selectedItem = group.selection.get(i);
3416
+
3417
+ Ungroup(selectedItem);
32893418 }
32903419
32913420 ClearSelection(false);
....@@ -3648,38 +3777,7 @@
36483777 if (CameraPane.FULLSCREEN)
36493778 fullscreenLayout = radio.layout;
36503779
3651
- // bug
3652
- //gridPanel.setDividerLocation(1.0);
3653
- //bigPanel.setDividerLocation(0.0);
3654
-// bigThree.remove(scenePanel);
3655
-// bigThree.remove(centralPanel);
3656
-// bigThree.remove(XYZPanel);
3657
-// aWindowConstraints.gridx = 0;
3658
-// aWindowConstraints.gridy = 0;
3659
-// aWindowConstraints.gridwidth = 1;
3660
-// // aConstraints.gridheight = 3;
3661
-// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
3662
-// aWindowConstraints.weightx = 0;
3663
-// aWindowConstraints.weighty = 1;
3664
-// //bigThree.add(jtp, aWindowConstraints);
3665
-// aWindowConstraints.weightx = 1;
3666
-// aWindowConstraints.gridwidth = 3;
3667
-// // aConstraints.gridheight = 3;
3668
-// aWindowConstraints.gridx = 1;
3669
-// aWindowConstraints.fill = GridBagConstraints.BOTH;
3670
-// bigThree.add(centralPanel, aWindowConstraints);
3671
-// aWindowConstraints.weightx = 0;
3672
-// aWindowConstraints.gridx = 4;
3673
-// aWindowConstraints.gridwidth = 1;
3674
-// // aConstraints.gridheight = 3;
3675
-// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
3676
-// //bigThree.add(XYZPanel, aWindowConstraints);
3677
-// scenePanel.setVisible(false);
3678
-// centralPanel.setVisible(true);
3679
-// XYZPanel.setVisible(false);
3680
- bigThree.ClearUI();
3681
- bigThree.add(centralPanel);
3682
- bigThree.FlushUI();
3780
+ Show3DView();
36833781
36843782 cameraView.requestFocusInWindow();
36853783
....@@ -3865,6 +3963,7 @@
38653963 } else
38663964 if (source == rootButton)
38673965 {
3966
+ Replace();
38683967 Object3D obj;
38693968 for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
38703969 {
....@@ -3879,6 +3978,8 @@
38793978 if (source == closeButton)
38803979 {
38813980 //System.out.println("CLOSE: " + buttonGroup.getSelection());
3981
+ Replace();
3982
+
38823983 cRadio ab;
38833984 for (Enumeration e = buttonGroup.getElements(); e.hasMoreElements();)
38843985 {
....@@ -3977,6 +4078,8 @@
39774078 } else
39784079 if(source instanceof cRadio)
39794080 {
4081
+ Replace();
4082
+
39804083 group.parent = keepparent;
39814084 group.attributes = 0;
39824085 //group.editWindow = null;
....@@ -4001,8 +4104,6 @@
40014104
40024105 copy = group;
40034106
4004
- SetUndoStates();
4005
-
40064107 //Globals.theRenderer.object = group;
40074108 if(!useclient)
40084109 {
....@@ -4030,6 +4131,29 @@
40304131 */
40314132 radio.layout.doClick();
40324133
4134
+ assert(copy instanceof Composite);
4135
+
4136
+ if (copy.versionlist == null)
4137
+ {
4138
+ copy.versionindex = -1;
4139
+
4140
+ // Cannot work with loops
4141
+ // To fix this issue, we first mark all nodes above the root,
4142
+ // and check if any of these nodes are reachable below the root.
4143
+ Grafreed.grafreed.universe.TagObjects(copy, true);
4144
+
4145
+ if (!copy.HasTags())
4146
+ {
4147
+ copy.versionlist = new Object3D[100];
4148
+
4149
+ Save(true);
4150
+ }
4151
+
4152
+ Grafreed.grafreed.universe.TagObjects(copy, false);
4153
+ }
4154
+
4155
+ SetVersionStates();
4156
+
40334157 ClearUnpinned();
40344158
40354159 //Grafreed.Assert(group != null);
....@@ -4173,7 +4297,7 @@
41734297 TouchTransform(obj);
41744298 continue;
41754299 }
4176
- if ((mask&2) != 0) // Scale
4300
+ if ((mask&2) != 0) // Scale/rotation
41774301 {
41784302 obj.toParent[0][0] = obj.toParent[1][1] = obj.toParent[2][2] = 1;
41794303 obj.toParent[0][1] = obj.toParent[1][0] = obj.toParent[2][0] = 0;
....@@ -4181,10 +4305,6 @@
41814305 obj.fromParent[0][0] = obj.fromParent[1][1] = obj.fromParent[2][2] = 1;
41824306 obj.fromParent[0][1] = obj.fromParent[1][0] = obj.fromParent[2][0] = 0;
41834307 obj.fromParent[0][2] = obj.fromParent[1][2] = obj.fromParent[2][1] = 0;
4184
- }
4185
- if ((mask&4) != 0) // Rotation
4186
- {
4187
- // ?
41884308 }
41894309 if ((mask&1) != 0) // Translation
41904310 {
....@@ -5264,10 +5384,26 @@
52645384 flashSelectionButton.setEnabled(enabled);
52655385
52665386 clearPanelButton.setEnabled(!listUI.isEmpty());
5387
+
5388
+ boolean allComposites = true;
5389
+
5390
+ if (group.selection != null)
5391
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
5392
+ {
5393
+ Object next = e.nextElement();
5394
+ if (!(next instanceof Composite)) // || (next instanceof GroupLeaf))
5395
+ {
5396
+ allComposites = false;
5397
+ break;
5398
+ }
5399
+ }
5400
+
5401
+ rootButton.setEnabled(allComposites);
52675402 }
52685403
52695404 void refreshContents(boolean cp)
52705405 {
5406
+ if (Globals.ADVANCED)
52715407 //if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
52725408 if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
52735409 {
....@@ -5278,7 +5414,7 @@
52785414 Object3D child = (Object3D) group.selection.get(i);
52795415
52805416 objEditor.AddInfo(child, this, true);
5281
- System.err.println("info : " + child.GetPath());
5417
+// System.err.println("info : " + child.GetPath());
52825418 }
52835419
52845420 objEditor.SetText(); // jan 2014
....@@ -6161,11 +6297,11 @@
61616297 private MenuItem lookAtItem;
61626298 private MenuItem lookFromItem;
61636299 private MenuItem switchViewItem;
6164
- private MenuItem cutItem;
6300
+ private JMenuItem cutItem;
61656301 private MenuItem undoItem;
61666302 private MenuItem redoItem;
61676303 private JMenuItem duplicateItem;
6168
- private MenuItem cloneItem;
6304
+ private JMenuItem cloneItem;
61696305 private MenuItem cloneSupportItem;
61706306 private MenuItem overwriteGeoItem;
61716307 private MenuItem overwriteMatItem;
....@@ -6186,13 +6322,13 @@
61866322 private MenuItem cloneGeometriesItem;
61876323 private MenuItem shareGeometriesItem;
61886324 private MenuItem mergeGeometriesItem;
6189
- private MenuItem copyItem;
6325
+ private JMenuItem copyItem;
61906326 private MenuItem pasteItem;
6191
- private MenuItem pasteIntoItem;
6192
- private MenuItem pasteLinkItem;
6193
- private MenuItem pasteCloneItem;
6194
- private MenuItem pasteExpandItem;
6195
- private MenuItem deleteItem;
6327
+ private JMenuItem pasteIntoItem;
6328
+ private JMenuItem pasteLinkItem;
6329
+ private JMenuItem pasteCloneItem;
6330
+ private JMenuItem pasteExpandItem;
6331
+ private JMenuItem deleteItem;
61966332 private MenuItem clearAllItem;
61976333 private MenuItem genUVItem;
61986334 private MenuItem genNormalsMESHItem;
....@@ -6247,7 +6383,7 @@
62476383 private MenuItem transformGeometryItem;
62486384 private MenuItem transformChildrenItem;
62496385 private MenuItem hideItem;
6250
- private MenuItem grabItem;
6386
+ private JMenuItem grabItem;
62516387 private MenuItem backItem;
62526388 private MenuItem frontItem;
62536389 private MenuItem cameraItem;
....@@ -6260,7 +6396,7 @@
62606396 private MenuItem switchTransfoItem;
62616397 private MenuItem morphItem;
62626398 private MenuItem linkerItem;
6263
- private MenuItem ungroupItem;
6399
+ private JMenuItem ungroupItem;
62646400 private MenuItem editItem;
62656401 private MenuItem openWindowItem;
62666402 private MenuItem editLeafItem;