Normand Briere
2019-08-12 b1d79b74514041a059b454a9f6fc3970773c0cb8
GroupEditor.java
....@@ -16,6 +16,7 @@
1616 //import buoy.widget.BFileChooser;
1717
1818 class GroupEditor extends ObjEditor implements //iParse, //iCallBack,
19
+ Grafreed.iResourceCallBack,
1920 ObjectUI,
2021 Runnable,
2122 ActionListener,
....@@ -41,6 +42,22 @@
4142 });
4243 }
4344
45
+ public void AddTextureButton(String f, String c, final String t, int count, cGridBag row)
46
+ {
47
+ cButton textureButton;
48
+ final String path = "textures/" + f + "/" + c + "/"; // + t;
49
+ row.add(textureButton = GetButton(path + "icons/" + t, !Grafreed.NIMBUSLAF));
50
+ textureButton.setToolTipText(c + count);
51
+ textureButton.addActionListener(new ActionListener()
52
+ {
53
+ @Override
54
+ public void actionPerformed(ActionEvent e)
55
+ {
56
+ ChangeTexture(path + t);
57
+ }
58
+ });
59
+ }
60
+
4461 public void AddSkyboxTab0(JTabbedPane skyboxpanel)
4562 {
4663 cGridBag tab0 = new cGridBag().setVertical(true);
....@@ -311,14 +328,47 @@
311328 }
312329 }
313330
314
- public void ChangeSkybox(String name)
331
+ public void ChangeSkybox(String skybox)
315332 {
316333 //cameraView.envyoff = false;
317
- group.skyboxname = name;
334
+ group.skyboxname = skybox;
318335 group.skyboxext = "jpg";
319336 cameraView.repaint();
320337 }
338
+
339
+ public void CreateSkyboxPanel(cGridBag skyboxPanel)
340
+ {
341
+ JTabbedPane skyboxpane = new JTabbedPane();
342
+
343
+ AddSkyboxTab0(skyboxpane);
344
+ AddSkyboxTab1(skyboxpane);
345
+ AddSkyboxTab2(skyboxpane);
346
+ AddSkyboxTab3(skyboxpane);
347
+
348
+ skyboxPanel.add(skyboxpane);
349
+ }
321350
351
+ public void ChangeTexture(String texture)
352
+ {
353
+ for (int i=0; i<group.selection.size(); i++)
354
+ {
355
+ Object3D obj = group.selection.get(i);
356
+ obj.SetPigmentTexture("@" + texture);
357
+ }
358
+
359
+ refreshContents();
360
+ }
361
+
362
+ public void Show3DView()
363
+ {
364
+ // bug
365
+ //gridPanel.setDividerLocation(1.0);
366
+ //bigPanel.setDividerLocation(0.0);
367
+ bigThree.ClearUI();
368
+ bigThree.add(centralPanel);
369
+ bigThree.FlushUI();
370
+ }
371
+
322372 //ObjEditor objEditor;
323373 public void closeUI2()
324374 {
....@@ -356,9 +406,9 @@
356406 this.copy = this.group = group;
357407 //selectees = this.group.selectees;
358408
359
- if (copy.versions == null)
409
+ if (copy.versionlist == null)
360410 {
361
- copy.versions = new byte[100][];
411
+ copy.versionlist = new Object3D[100];
362412 copy.versionindex = -1;
363413 }
364414
....@@ -383,9 +433,9 @@
383433
384434 ((cRadio)radioPanel.getComponent(0)).SetCamera(cameraView.renderCamera, true);
385435
386
- if (copy.versions == null)
436
+ if (copy.versionlist == null)
387437 {
388
- copy.versions = new byte[100][];
438
+ copy.versionlist = new Object3D[100];
389439 copy.versionindex = -1;
390440
391441 Save(true);
....@@ -859,6 +909,73 @@
859909 buildToolsMenu(menu);
860910 }
861911
912
+ JTabbedPane resourcecontainer;
913
+ cGridBag currenttab;
914
+ boolean added; // patch for jar
915
+
916
+ int tabcount = 0;
917
+ int colcount = 0;
918
+ int rowcount = 0;
919
+ int texturecount = 0;
920
+
921
+ int columns = 5;
922
+ int rows = 7;
923
+
924
+ public void ResourceCallBack(String[] path)
925
+ {
926
+// for (int i = 0; i < path.length; i++)
927
+// System.out.print(path[i] + "/");
928
+// System.out.println();
929
+
930
+ if (//rowcount == 0 ||
931
+ path.length == 1)
932
+ {
933
+ currenttab = new cGridBag();
934
+ added = false;
935
+ String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
936
+ currenttab.setName(tabname);
937
+ rowcount = 1;
938
+ colcount = 0;
939
+ texturecount = 0;
940
+ }
941
+
942
+ if (path.length > 2 && path[2].toLowerCase().endsWith(".jpg"))
943
+ {
944
+ if (!added)
945
+ {
946
+ added = true;
947
+ resourcecontainer.add(currenttab);
948
+ String tabname = path[0]; // String.valueOf((char)('A'+tabcount));
949
+ resourcecontainer.setToolTipTextAt(tabcount++, "Texture Group " + tabname);
950
+ }
951
+
952
+ AddTextureButton(path[0], path[1], path[2], texturecount++, currenttab);
953
+
954
+ if (++colcount >= columns)
955
+ {
956
+ colcount = 0;
957
+ currenttab.Return();
958
+
959
+ if (rowcount++ >= rows)
960
+ {
961
+ rowcount = 0;
962
+ }
963
+ }
964
+ }
965
+ else
966
+ {
967
+// if (!path[path.length-1].equals("icons"))
968
+// resourcecontainer.Return();
969
+ }
970
+ }
971
+
972
+ void CreateTexturePanel(cGridBag container)
973
+ {
974
+ resourcecontainer = new JTabbedPane(JTabbedPane.LEFT);
975
+ container.add(resourcecontainer);
976
+
977
+ Grafreed.ParseResources("textures", this);
978
+ }
862979
863980 void SetupUI2(ObjEditor oe)
864981 {
....@@ -877,11 +994,6 @@
877994 //new Exception().printStackTrace();
878995
879996 oe.radioPanel = new JPanel(new GridBagLayout());
880
- oe.aConstraints.weightx = 1;
881
- oe.aConstraints.weighty = 0;
882
- oe.aConstraints.fill = GridBagConstraints.HORIZONTAL;
883
- oe.aConstraints.gridwidth = 100;
884
- oe.aConstraints.gridheight = 1;
885997 // oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
886998
887999 oe.buttonGroup = new ButtonGroup();
....@@ -919,6 +1031,45 @@
9191031 maxButton.addActionListener(this);
9201032 }
9211033
1034
+ cButton gcButton;
1035
+
1036
+ oe.toolbarPanel.add(gcButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1037
+ gcButton.setToolTipText("Garbage collect");
1038
+ gcButton.addActionListener(new ActionListener()
1039
+ {
1040
+ public void actionPerformed(ActionEvent e)
1041
+ {
1042
+ System.gc();
1043
+ }
1044
+ });
1045
+
1046
+ oe.toolbarPanel.add(collapseButton = GetButton("icons/collapse.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1047
+ collapseButton.setToolTipText("Collapse toolbar");
1048
+ collapseButton.addActionListener(this);
1049
+
1050
+ oe.toolbarPanel.add(maximize3DButton = GetButton("", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1051
+ maximize3DButton.setToolTipText("Maximize 3D view");
1052
+ maximize3DButton.addActionListener(this);
1053
+
1054
+ oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1055
+ twoButton.setToolTipText("Show 3D view only");
1056
+ twoButton.addActionListener(this);
1057
+ this.fullscreenLayout = twoButton;
1058
+
1059
+ oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1060
+ threeButton.setToolTipText("Show controls and 3D view");
1061
+ threeButton.addActionListener(this);
1062
+ if (Globals.ADVANCED)
1063
+ {
1064
+ oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1065
+ sixButton.setToolTipText("Show 3D view and controls");
1066
+ sixButton.addActionListener(this);
1067
+ }
1068
+// oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1069
+// sevenButton.setToolTipText("3-column layout");
1070
+// sevenButton.addActionListener(this);
1071
+ //
1072
+
9221073 oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
9231074 fullButton.setToolTipText("Full-screen window");
9241075 fullButton.addActionListener(this);
....@@ -931,41 +1082,45 @@
9311082 restoreCameraButton.setToolTipText("Restore viewpoint");
9321083 restoreCameraButton.addActionListener(this);
9331084
934
- copyOptionsPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
935
- saveButton.setToolTipText("Duplicate current version");
936
- saveButton.addActionListener(this);
1085
+ copyOptionsPanel.add(saveVersionButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1086
+ saveVersionButton.setToolTipText("Duplicate current version");
1087
+ saveVersionButton.addActionListener(this);
9371088
938
- copyOptionsPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
939
- undoButton.setToolTipText("Previous version");
940
- undoButton.addActionListener(this);
941
- undoButton.setEnabled(false);
1089
+ copyOptionsPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1090
+ deleteVersionButton.setToolTipText("Delete current version");
1091
+ deleteVersionButton.addActionListener(this);
1092
+
1093
+ copyOptionsPanel.add(previousVersionButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1094
+ previousVersionButton.setToolTipText("Previous version");
1095
+ previousVersionButton.addActionListener(this);
1096
+ previousVersionButton.setEnabled(false);
9421097
9431098 cGridBag updown = new cGridBag().setVertical(true);
9441099 updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
945
- restoreButton.setToolTipText("Restore current version (undo latest change)");
1100
+ restoreButton.setToolTipText("Undo (restore current version)");
9461101 restoreButton.addActionListener(this);
947
- restoreButton.setEnabled(false);
1102
+ //restoreButton.setEnabled(false);
9481103
9491104 updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
950
- replaceButton.setToolTipText("Replace current version (save latest change)");
1105
+ replaceButton.setToolTipText("Save (replace current version)");
9511106 replaceButton.addActionListener(this);
952
- replaceButton.setEnabled(false);
1107
+ //replaceButton.setEnabled(false);
9531108
9541109 copyOptionsPanel.add(updown);
9551110
956
- copyOptionsPanel.add(redoButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
957
- redoButton.setToolTipText("Next version");
958
- redoButton.addActionListener(this);
959
- redoButton.setEnabled(false);
1111
+ copyOptionsPanel.add(nextVersionButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1112
+ nextVersionButton.setToolTipText("Next version");
1113
+ nextVersionButton.addActionListener(this);
1114
+ nextVersionButton.setEnabled(false);
1115
+
1116
+ oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1117
+ oneStepButton.setToolTipText("Animate one step forward");
1118
+ oneStepButton.addActionListener(this);
9601119
9611120 oe.toolbarPanel.add(liveCB = GetToggleButton("icons/run.png", Globals.isLIVE())); //, oe.aConstraints);
9621121 liveCB.setToolTipText("Enable animation");
9631122 liveCB.addItemListener(this);
9641123
965
- oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
966
- oneStepButton.setToolTipText("Animate one step forward");
967
- oneStepButton.addActionListener(this);
968
-
9691124 oe.toolbarPanel.add(fastCB = GetToggleButton("icons/runfast.png", CameraPane.FAST)); //, constraints);
9701125 fastCB.setToolTipText("Fast mode");
9711126 fastCB.addItemListener(this);
....@@ -992,21 +1147,6 @@
9921147
9931148 //oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL));
9941149
995
- oe.toolbarPanel.add(twoButton = GetButton("icons/cube.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
996
- twoButton.setToolTipText("Show 3D view only");
997
- twoButton.addActionListener(this);
998
- this.fullscreenLayout = twoButton;
999
-
1000
- oe.toolbarPanel.add(threeButton = GetButton("icons/controlsview.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1001
- threeButton.setToolTipText("Show controls and 3D view");
1002
- threeButton.addActionListener(this);
1003
- oe.toolbarPanel.add(sixButton = GetButton("icons/viewcontrols.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1004
- sixButton.setToolTipText("Show 3D view and controls");
1005
- sixButton.addActionListener(this);
1006
-// oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1007
-// sevenButton.setToolTipText("3-column layout");
1008
-// sevenButton.addActionListener(this);
1009
- //
10101150
10111151 oe.toolbarPanel.add(rootButton = GetButton("icons/openwindow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
10121152 rootButton.setToolTipText("Open selection in new tab");
....@@ -1090,19 +1230,15 @@
10901230
10911231 oe.toolboxPanel.add(row2);
10921232
1093
- // ENVYMAPS
1094
- cGridBag skyboxpane = new cGridBag();
1095
- skyboxpane.preferredHeight = 100;
1233
+ cGridBag textures = new cGridBag();
10961234
1097
- oe.toolboxPanel.add(skyboxpane);
1235
+ CreateTexturePanel(textures);
10981236
1099
- JTabbedPane skyboxpanel = new JTabbedPane();
1100
- skyboxpane.add(skyboxpanel);
1237
+ oe.toolboxPanel.add(textures);
11011238
1102
- AddSkyboxTab0(skyboxpanel);
1103
- AddSkyboxTab1(skyboxpanel);
1104
- AddSkyboxTab2(skyboxpanel);
1105
- AddSkyboxTab3(skyboxpanel);
1239
+ textures.preferredHeight = 100;
1240
+
1241
+ CreateSkyboxPanel(oe.skyboxPanel);
11061242
11071243 // EDIT panel
11081244 editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
....@@ -1110,20 +1246,20 @@
11101246 editButton.addActionListener(this);
11111247
11121248 editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1113
- uneditButton.setToolTipText("Remove selection controls");
1249
+ uneditButton.setToolTipText("Unpin and remove selection controls");
11141250 uneditButton.addActionListener(this);
11151251
11161252 editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
1117
- allParamsButton.setToolTipText("Show all controle");
1253
+ allParamsButton.setToolTipText("Show all controls");
11181254 allParamsButton.addActionListener(this);
11191255
1120
- editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1121
- clearPanelButton.setToolTipText("Clear edit panel");
1256
+ editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1257
+ clearPanelButton.setToolTipText("Clear all controls");
11221258 clearPanelButton.addActionListener(this);
11231259
1124
- editCommandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1125
- unselectButton.setToolTipText("Unselect");
1126
- unselectButton.addActionListener(this);
1260
+ //editCommandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
1261
+ //unselectButton.setToolTipText("Unselect");
1262
+ //unselectButton.addActionListener(this);
11271263
11281264 editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
11291265 flashSelectionButton.setToolTipText("Highlight selection");
....@@ -1708,7 +1844,12 @@
17081844 TreePath path;
17091845
17101846 public TransferableTreePath(TreePath tp) {
1711
- path = tp;
1847
+ Object[] objs = new Object[tp.getPathCount()];
1848
+ for (int i=0; i<objs.length; i++)
1849
+ {
1850
+ objs[i] = ((Object3D)tp.getPathComponent(i)).GetUUID();
1851
+ }
1852
+ path = new TreePath(objs);
17121853 }
17131854
17141855 public synchronized DataFlavor[] getTransferDataFlavors() {
....@@ -2571,7 +2712,7 @@
25712712 if (source == invariantsItem)
25722713 {
25732714 System.out.println("Invariants:");
2574
- Grafreed.grafreeD.universe.invariants();
2715
+ Grafreed.grafreed.universe.invariants();
25752716 } else
25762717 if (source == memoryItem)
25772718 {
....@@ -2602,33 +2743,52 @@
26022743 {
26032744 ToggleFullScreen();
26042745 } else
2605
- if (source == undoButton)
2746
+ if (source == collapseButton)
2747
+ {
2748
+ this.expandedLayout = radio.layout;
2749
+ CollapseToolbar();
2750
+ } else
2751
+ if (source == maximize3DButton)
2752
+ {
2753
+ this.expandedLayout = radio.layout;
2754
+ radio.layout = twoButton;
2755
+ Show3DView();
2756
+ CollapseToolbar();
2757
+ } else
2758
+ if (source == previousVersionButton)
26062759 {
26072760 // Go to previous version
26082761 //if (!Undo())
26092762 //java.awt.Toolkit.getDefaultToolkit().beep();
2610
- Undo();
2763
+ PreviousVersion();
26112764 } else
26122765 if (source == restoreButton)
26132766 {
26142767 // Restore current version
26152768 Restore();
2769
+ //restoreButton.setEnabled(false);
26162770 } else
26172771 if (source == replaceButton)
26182772 {
26192773 // Overwrite current version
26202774 Replace();
2775
+ //replaceButton.setEnabled(false);
26212776 } else
2622
- if (source == redoButton)
2777
+ if (source == nextVersionButton)
26232778 {
26242779 // Go to next version
2625
- Redo();
2780
+ NextVersion();
26262781 } else
2627
- if (source == saveButton)
2782
+ if (source == saveVersionButton)
26282783 {
26292784 // Save a new version
26302785 if (!Save(true))
26312786 java.awt.Toolkit.getDefaultToolkit().beep();
2787
+ } else
2788
+ if (source == deleteVersionButton)
2789
+ {
2790
+ // Delete a new version
2791
+ DeleteVersion();
26322792 } else
26332793 if (source == oneStepButton)
26342794 {
....@@ -2683,11 +2843,11 @@
26832843 } else
26842844 if (source == undoItem)
26852845 {
2686
- Undo();
2846
+ PreviousVersion();
26872847 } else
26882848 if (source == redoItem)
26892849 {
2690
- Redo();
2850
+ NextVersion();
26912851 } else
26922852 if (source == duplicateItem)
26932853 {
....@@ -3546,38 +3706,7 @@
35463706 if (CameraPane.FULLSCREEN)
35473707 fullscreenLayout = radio.layout;
35483708
3549
- // bug
3550
- //gridPanel.setDividerLocation(1.0);
3551
- //bigPanel.setDividerLocation(0.0);
3552
-// bigThree.remove(scenePanel);
3553
-// bigThree.remove(centralPanel);
3554
-// bigThree.remove(XYZPanel);
3555
-// aWindowConstraints.gridx = 0;
3556
-// aWindowConstraints.gridy = 0;
3557
-// aWindowConstraints.gridwidth = 1;
3558
-// // aConstraints.gridheight = 3;
3559
-// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
3560
-// aWindowConstraints.weightx = 0;
3561
-// aWindowConstraints.weighty = 1;
3562
-// //bigThree.add(jtp, aWindowConstraints);
3563
-// aWindowConstraints.weightx = 1;
3564
-// aWindowConstraints.gridwidth = 3;
3565
-// // aConstraints.gridheight = 3;
3566
-// aWindowConstraints.gridx = 1;
3567
-// aWindowConstraints.fill = GridBagConstraints.BOTH;
3568
-// bigThree.add(centralPanel, aWindowConstraints);
3569
-// aWindowConstraints.weightx = 0;
3570
-// aWindowConstraints.gridx = 4;
3571
-// aWindowConstraints.gridwidth = 1;
3572
-// // aConstraints.gridheight = 3;
3573
-// aWindowConstraints.fill = GridBagConstraints.VERTICAL;
3574
-// //bigThree.add(XYZPanel, aWindowConstraints);
3575
-// scenePanel.setVisible(false);
3576
-// centralPanel.setVisible(true);
3577
-// XYZPanel.setVisible(false);
3578
- bigThree.ClearUI();
3579
- bigThree.add(centralPanel);
3580
- bigThree.FlushUI();
3709
+ Show3DView();
35813710
35823711 cameraView.requestFocusInWindow();
35833712
....@@ -3820,10 +3949,10 @@
38203949 {
38213950 Object3D child = (Object3D)e.nextElement();
38223951 if(child.editWindow != null)
3823
- objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
38243952 child.pinned = false;
38253953 child.CloseUI();
38263954 listUI.remove(child);
3955
+// objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
38273956
38283957 //child.editWindow = null; // ???????????
38293958 }
....@@ -3842,6 +3971,7 @@
38423971 obj.CloseUI();
38433972 }
38443973 listUI.clear();
3974
+ SetPinStates(group.selection.size() > 0);
38453975 refreshContents(true);
38463976 } else
38473977 if (source == allParamsButton)
....@@ -3928,6 +4058,7 @@
39284058 radio.layout.doClick();
39294059
39304060 ClearUnpinned();
4061
+
39314062 //Grafreed.Assert(group != null);
39324063 //Grafreed.Assert(group.selection != null);
39334064 SetPinStates(group.selection == null || group.selection.size() > 0);
....@@ -5083,9 +5214,7 @@
50835214
50845215 freezemodel = false;
50855216 }
5086
-
5087
- boolean flashIt = true;
5088
-
5217
+
50895218 public void valueChanged(TreeSelectionEvent e)
50905219 //public boolean handleEvent(Event event)
50915220 {
....@@ -5158,13 +5287,15 @@
51585287 {
51595288 editButton.setEnabled(enabled);
51605289 uneditButton.setEnabled(enabled);
5161
- unselectButton.setEnabled(enabled);
5290
+ //unselectButton.setEnabled(enabled);
51625291 flashSelectionButton.setEnabled(enabled);
5292
+
5293
+ clearPanelButton.setEnabled(!listUI.isEmpty());
51635294 }
51645295
51655296 void refreshContents(boolean cp)
51665297 {
5167
- if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
5298
+ //if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
51685299 if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
51695300 {
51705301 objEditor.ClearInfo(); // .GetMaterial());
....@@ -5174,7 +5305,7 @@
51745305 Object3D child = (Object3D) group.selection.get(i);
51755306
51765307 objEditor.AddInfo(child, this, true);
5177
- System.err.println("info : " + child.GetPath());
5308
+// System.err.println("info : " + child.GetPath());
51785309 }
51795310
51805311 objEditor.SetText(); // jan 2014
....@@ -6000,7 +6131,6 @@
60006131
60016132 cButton restoreCameraButton;
60026133
6003
- cButton saveButton;
60046134 cButton oneStepButton;
60056135
60066136 cButton groupButton;