Normand Briere
2019-06-27 f78dd18c66d607b693c0bf5937fc59181bf5a26b
GroupEditor.java
....@@ -758,16 +758,16 @@
758758 }
759759
760760 // EDIT panel
761
- editCommandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
762
- editButton.setToolTipText("Edit selection");
761
+ editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
762
+ editButton.setToolTipText("Pin selection controls");
763763 editButton.addActionListener(this);
764764
765
- editCommandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
766
- uneditButton.setToolTipText("Unedit selection");
765
+ editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
766
+ uneditButton.setToolTipText("Remove selection controls");
767767 uneditButton.addActionListener(this);
768768
769769 editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
770
- allParamsButton.setToolTipText("Edit all params");
770
+ allParamsButton.setToolTipText("Show all controle");
771771 allParamsButton.addActionListener(this);
772772
773773 editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
....@@ -784,6 +784,7 @@
784784
785785 editCommandsPanel.preferredHeight = 1;
786786
787
+ SetPinStates(false);
787788 // oe.treePanel.add(commandsPanel);
788789 // oe.treePanel.Return();
789790
....@@ -857,7 +858,7 @@
857858 boxCB.addItemListener(this);
858859
859860 panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
860
- zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
861
+ zoomBoxCB.setToolTipText("Display only for wheel");
861862 zoomBoxCB.addItemListener(this);
862863
863864 if (true) // Globals.ADVANCED)
....@@ -919,7 +920,7 @@
919920 oeilCB.addItemListener(this);
920921
921922 panel.add(shadowCB = new cCheckBox("Shadow", Globals.COMPUTESHADOWWHENLIVE)); //, constraints);
922
- shadowCB.setToolTipText("Compute shadows when live");
923
+ shadowCB.setToolTipText("When live compute shadows");
923924 shadowCB.addItemListener(this);
924925
925926 panel.Return();
....@@ -932,7 +933,7 @@
932933 toggleSwitchCB.addItemListener(this);
933934
934935 panel.add(autosaveCB = new cCheckBox("Auto-save", Globals.SAVEONMAKE)); //, constraints);
935
- autosaveCB.setToolTipText("Auto-save on structure change");
936
+ autosaveCB.setToolTipText("On structure change");
936937 autosaveCB.addItemListener(this);
937938
938939 panel.Return();
....@@ -1628,6 +1629,20 @@
16281629
16291630 makeSomething(shadow);
16301631 }
1632
+
1633
+ private void ClearUnpinned()
1634
+ {
1635
+ //for (Object3D obj : listUI)
1636
+ for (int i=listUI.size(); --i>=0;)
1637
+ {
1638
+ Object3D obj = listUI.elementAt(i);
1639
+ if (!obj.pinned)
1640
+ {
1641
+ obj.CloseUI();
1642
+ listUI.remove(i);
1643
+ }
1644
+ }
1645
+ }
16311646
16321647 /**
16331648 * applyExample
....@@ -3372,7 +3387,7 @@
33723387 //copy.ClearUI();
33733388 for (Object3D obj : listUI)
33743389 {
3375
- obj.pinned = true;
3390
+ obj.pinned = false;
33763391 obj.CloseUI();
33773392 }
33783393 listUI.clear();
....@@ -3457,6 +3472,11 @@
34573472 currentLayout = sevenButton;
34583473 */
34593474 radio.layout.doClick();
3475
+
3476
+ ClearUnpinned();
3477
+ SetPinStates(group.selection.size() > 0);
3478
+ if (group.selection.size() == 1)
3479
+ EditSelection(false);
34603480 keepparent = group.parent;
34613481 // PARENT = NULL or not???
34623482 //group.parent = null; // ROOT
....@@ -4616,17 +4636,7 @@
46164636 //new Exception().printStackTrace();
46174637
46184638 freezemodel = true;
4619
-
4620
- //for (Object3D obj : listUI)
4621
- for (int i=listUI.size(); --i>=0;)
4622
- {
4623
- Object3D obj = listUI.elementAt(i);
4624
- if (!obj.pinned)
4625
- {
4626
- obj.CloseUI();
4627
- listUI.remove(i);
4628
- }
4629
- }
4639
+ ClearUnpinned();
46304640
46314641 /**/
46324642 //switch (event.id)
....@@ -4689,6 +4699,8 @@
46894699 {
46904700 editButton.setEnabled(enabled);
46914701 uneditButton.setEnabled(enabled);
4702
+ unselectButton.setEnabled(enabled);
4703
+ flashSelectionButton.setEnabled(enabled);
46924704 }
46934705
46944706 void refreshContents(boolean cp)