Normand Briere
2019-05-02 a76491b66a2e304d9ae27a162f407b98c70fbafa
Fix flush UI.
3 files modified
44 ■■■■ changed files
GroupEditor.java 12 ●●●● patch | view | raw | blame | history
ObjEditor.java 31 ●●●● patch | view | raw | blame | history
Object3D.java 1 ●●●● patch | view | raw | blame | history
GroupEditor.java
....@@ -505,13 +505,13 @@
505505 uneditButton.setToolTipText("Unedit selection");
506506 uneditButton.addActionListener(this);
507507
508
+ commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
509
+ allParamsButton.setToolTipText("Edit all params");
510
+ allParamsButton.addActionListener(this);
511
+
508512 commandsPanel.add(clearPanelButton = new cButton("C", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
509513 clearPanelButton.setToolTipText("Clear edit panel");
510514 clearPanelButton.addActionListener(this);
511
-
512
- commandsPanel.add(allParamsButton = new cButton("A", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
513
- allParamsButton.setToolTipText("All params??");
514
- allParamsButton.addActionListener(this);
515515
516516 commandsPanel.add(unselectButton = new cButton("U", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
517517 unselectButton.setToolTipText("Unselect");
....@@ -2892,7 +2892,7 @@
28922892
28932893 child.editWindow = null; // ???????????
28942894 }
2895
- objEditor.ctrlPanel.validate();
2895
+ objEditor.ctrlPanel.FlushUI();
28962896 //objEditor.jTree.clearSelection();
28972897 //objEditor.ResetSliders();
28982898 refreshContents(true);
....@@ -4946,8 +4946,8 @@
49464946 cButton flashSelectionButton;
49474947 cButton editButton;
49484948 cButton uneditButton;
4949
+ JCheckBox allParamsButton;
49494950 cButton clearpanelButton;
4950
- cButton allParamsButton;
49514951 cButton unselectButton;
49524952
49534953 cButton screenfitButton;
ObjEditor.java
....@@ -143,6 +143,8 @@
143143 //nameField.removeActionListener(this);
144144 // objEditor.ctrlPanel.remove(nameField);
145145
146
+ objEditor.ctrlPanel.remove(namePanel);
147
+
146148 if (!GroupEditor.allparams)
147149 return;
148150
....@@ -165,7 +167,6 @@
165167 // objEditor.ctrlPanel.remove(fasterButton);
166168 // objEditor.ctrlPanel.remove(remarkButton);
167169
168
- objEditor.ctrlPanel.remove(namePanel);
169170 objEditor.ctrlPanel.remove(setupPanel);
170171 objEditor.ctrlPanel.remove(commandsPanel);
171172 objEditor.ctrlPanel.remove(pushPanel);
....@@ -967,28 +968,45 @@
967968 setupPanel = new cGridBag().setVertical(false);
968969
969970 liveCB = AddCheckBox(setupPanel, "Live", copy.live);
970
- if (Globals.ADVANCED)
971
- link2masterCB = AddCheckBox(setupPanel, "Supp", copy.link2master);
971
+ liveCB.setToolTipText("Animate object");
972972 hideCB = AddCheckBox(setupPanel, "Hide", copy.hide);
973
+ hideCB.setToolTipText("Hide object");
973974 // Return();
974975 markCB = AddCheckBox(setupPanel, "Mark", copy.marked);
975
- rewindCB = AddCheckBox(setupPanel, "Rew", copy.rewind);
976
- randomCB = AddCheckBox(setupPanel, "Rand", copy.random);
976
+ markCB.setToolTipText("Set the animation target transform");
977
+
978
+ rewindCB = AddCheckBox(setupPanel, "Rewind", copy.rewind);
979
+ rewindCB.setToolTipText("Rewind animation");
980
+
981
+ randomCB = AddCheckBox(setupPanel, "Random", copy.random);
982
+ randomCB.setToolTipText("Option for switch node");
977983
984
+ if (Globals.ADVANCED)
985
+ {
986
+ link2masterCB = AddCheckBox(setupPanel, "Support", copy.link2master);
987
+ link2masterCB.setToolTipText("Attach to support");
988
+ speedupCB = AddCheckBox(setupPanel, "Speed", copy.speedup);
989
+ speedupCB.setToolTipText("Option motion capture");
990
+ }
991
+
978992 oe.ctrlPanel.add(setupPanel);
979993 oe.ctrlPanel.Return();
980994
981995 commandsPanel = new cGridBag().setVertical(false);
982996
983997 resetButton = AddButton(commandsPanel, "Reset");
998
+ resetButton.setToolTipText("Jump to frame zero");
984999 stepButton = AddButton(commandsPanel, "Step");
1000
+ stepButton.setToolTipText("Step one frame");
9851001 // resetAllButton = AddButton(oe, "Reset All");
9861002 // stepAllButton = AddButton(oe, "Step All");
987
- speedupCB = AddCheckBox(commandsPanel, "Speed", copy.speedup);
9881003 // Return();
9891004 slowerButton = AddButton(commandsPanel, "Slow");
1005
+ slowerButton.setToolTipText("Decrease animation speed");
9901006 fasterButton = AddButton(commandsPanel, "Fast");
1007
+ fasterButton.setToolTipText("Increase animation speed");
9911008 remarkButton = AddButton(commandsPanel, "Remark");
1009
+ remarkButton.setToolTipText("Set the current transform as the target");
9921010
9931011 oe.ctrlPanel.add(commandsPanel);
9941012 oe.ctrlPanel.Return();
....@@ -2979,6 +2997,7 @@
29792997 if (event.getSource() == randomCB)
29802998 {
29812999 copy.random ^= true;
3000
+ objEditor.refreshContents();
29823001 return;
29833002 }
29843003 if (event.getSource() == speedupCB)
Object3D.java
....@@ -7378,6 +7378,7 @@
73787378 objectUI.closeUI();
73797379 if (editWindow != null)
73807380 {
7381
+ editWindow.ctrlPanel.FlushUI();
73817382 editWindow.refreshContents();
73827383 } // ? new
73837384 objectUI = null;