Normand Briere
2019-05-02 a76491b66a2e304d9ae27a162f407b98c70fbafa
GroupEditor.java
....@@ -239,16 +239,16 @@
239239 ungroupItem = menu.add(new MenuItem("Ungroup"));
240240 ungroupItem.addActionListener(this);
241241 menu.add("-");
242
- randomItem = menu.add(new MenuItem("Random"));
242
+ randomItem = menu.add(new MenuItem("Switch node"));
243243 randomItem.addActionListener(this);
244
- physicsItem = menu.add(new MenuItem("Physics"));
245
- physicsItem.addActionListener(this);
246
- frameselectorItem = menu.add(new MenuItem("Frame Selector"));
247
- frameselectorItem.addActionListener(this);
248244 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
249245 switchGeoItem.addActionListener(this);
250246 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
251247 switchTransfoItem.addActionListener(this);
248
+ physicsItem = menu.add(new MenuItem("Physics"));
249
+ physicsItem.addActionListener(this);
250
+ frameselectorItem = menu.add(new MenuItem("Frame Selector"));
251
+ frameselectorItem.addActionListener(this);
252252 morphItem = menu.add(new MenuItem("Morph"));
253253 morphItem.addActionListener(this);
254254 scriptNodeItem = menu.add(new MenuItem("Script Node"));
....@@ -454,17 +454,14 @@
454454
455455 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
456456 // screenfitpointButton.addActionListener(this);
457
-// oe.aConstraints.gridx += 1;
458
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
459
- snapobjectButton.addActionListener(this);
460
- snapobjectButton.setToolTipText("Snap Object");
461
- oe.aConstraints.gridx += 1;
462457
463
- //aConstraints.gridx = 0;
464
- //aConstraints.gridy += 1;
465
- oe.aConstraints.weighty = 0;
466
- oe.aConstraints.gridwidth = 1;
467
-
458
+ if (Globals.ADVANCED)
459
+ {
460
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
461
+ snapobjectButton.addActionListener(this);
462
+ snapobjectButton.setToolTipText("Snap Object");
463
+ }
464
+
468465 oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
469466 flashSelectionButton.setToolTipText("Show selection");
470467 flashSelectionButton.addActionListener(this);
....@@ -508,13 +505,13 @@
508505 uneditButton.setToolTipText("Unedit selection");
509506 uneditButton.addActionListener(this);
510507
508
+ commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
509
+ allParamsButton.setToolTipText("Edit all params");
510
+ allParamsButton.addActionListener(this);
511
+
511512 commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
512513 clearPanelButton.setToolTipText("Clear edit panel");
513514 clearPanelButton.addActionListener(this);
514
-
515
- commandsPanel.add(allParamsButton = new cButton("A", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
516
- allParamsButton.setToolTipText("All params??");
517
- allParamsButton.addActionListener(this);
518515
519516 commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
520517 unselectButton.setToolTipText("Unselect");
....@@ -2238,7 +2235,7 @@
22382235 RandomNode random = new RandomNode();
22392236 group(random);
22402237 if (random.size() > 0)
2241
- random.name = random.get(0).name + "Rnd";
2238
+ random.name = random.get(0).name + "Switch";
22422239 } else
22432240 if (source == physicsItem)
22442241 {
....@@ -2895,7 +2892,7 @@
28952892
28962893 child.editWindow = null; // ???????????
28972894 }
2898
- objEditor.ctrlPanel.validate();
2895
+ objEditor.ctrlPanel.FlushUI();
28992896 //objEditor.jTree.clearSelection();
29002897 //objEditor.ResetSliders();
29012898 refreshContents(true);
....@@ -4949,8 +4946,8 @@
49494946 cButton flashSelectionButton;
49504947 cButton editButton;
49514948 cButton uneditButton;
4949
+ JCheckBox allParamsButton;
49524950 cButton clearpanelButton;
4953
- cButton allParamsButton;
49544951 cButton unselectButton;
49554952
49564953 cButton screenfitButton;