Normand Briere
2019-07-14 bc829f47837b5a001f911542140b0b8e63c2bb0c
GroupEditor.java
....@@ -84,6 +84,10 @@
8484
8585 void CloneSelection(boolean supports)
8686 {
87
+ if (Globals.SAVEONMAKE)
88
+ Save();
89
+ boolean keep = Globals.SAVEONMAKE;
90
+ Globals.SAVEONMAKE = false;
8791 // Object3D keep = GrafreeD.clipboard;
8892 //Object3D obj;
8993 for (int i=0; i<group.selection.size(); i++)// Enumeration e = group.selection.elements(); e.hasMoreElements();)
....@@ -94,6 +98,7 @@
9498
9599 makeSomething(clone, i==group.selection.size()-1);
96100 }
101
+ Globals.SAVEONMAKE = keep;
97102 }
98103
99104 void CloneClipboard(boolean supports)
....@@ -220,7 +225,7 @@
220225 // toggleSwitchItem.addItemListener(this);
221226 // toggleSwitchItem.setState(CameraPane.SWITCH);
222227
223
- cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles"));
228
+ cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Show Handles"));
224229 toggleHandleItem.addItemListener(this);
225230 toggleHandleItem.setState(CameraPane.HANDLES);
226231
....@@ -380,13 +385,14 @@
380385 shadowYItem.addActionListener(this);
381386 shadowZItem = menu.add(new MenuItem("Shadow Blue"));
382387 shadowZItem.addActionListener(this);
388
+ attributeItem = menu.add(new MenuItem("Attribute"));
389
+ attributeItem.addActionListener(this);
390
+
383391 if (Globals.ADVANCED)
384392 {
385393 menu.add("-");
386394 linkerItem = menu.add(new MenuItem("Linker"));
387395 linkerItem.addActionListener(this);
388
- attributeItem = menu.add(new MenuItem("Attribute"));
389
- attributeItem.addActionListener(this);
390396 templateItem = menu.add(new MenuItem("Template"));
391397 templateItem.addActionListener(this);
392398 pointflowItem = menu.add(new MenuItem("Point Flow"));
....@@ -582,7 +588,7 @@
582588 */
583589 cGridBag copyOptionsPanel = new cGridBag();
584590
585
- copyOptionsPanel.preferredHeight = 2;
591
+ copyOptionsPanel.preferredHeight = 1;
586592
587593 //this.AddOptions(oe.toolbarPanel, oe.aConstraints);
588594
....@@ -590,14 +596,21 @@
590596 //minButton.setToolTipText("Minimize window");
591597 //minButton.addActionListener(this);
592598
593
- oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
594
- maxButton.setToolTipText("Maximize window");
595
- maxButton.addActionListener(this);
599
+ if (Globals.ADVANCED)
600
+ {
601
+ oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
602
+ maxButton.setToolTipText("Maximize window");
603
+ maxButton.addActionListener(this);
604
+ }
596605
597606 oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
598607 fullButton.setToolTipText("Full-screen window");
599608 fullButton.addActionListener(this);
600609
610
+ oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
611
+ screenfitButton.setToolTipText("Screen fit");
612
+ screenfitButton.addActionListener(this);
613
+
601614 oe.toolbarPanel.add(restoreCameraButton = GetButton("icons/eye.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
602615 restoreCameraButton.setToolTipText("Restore viewpoint");
603616 restoreCameraButton.addActionListener(this);
....@@ -605,10 +618,12 @@
605618 copyOptionsPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
606619 undoButton.setToolTipText("Undo changes");
607620 undoButton.addActionListener(this);
621
+ undoButton.setEnabled(false);
608622
609623 copyOptionsPanel.add(redoButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
610624 redoButton.setToolTipText("Redo changes");
611625 redoButton.addActionListener(this);
626
+ redoButton.setEnabled(false);
612627
613628 copyOptionsPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
614629 saveButton.setToolTipText("Save changes");
....@@ -628,10 +643,6 @@
628643
629644 //oe.toolboxPanel.Return();
630645
631
- copyOptionsPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
632
- screenfitButton.setToolTipText("Screen fit");
633
- screenfitButton.addActionListener(this);
634
-
635646 // copyOptionsPanel.add(trackCB = GetToggleButton("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints);
636647 // trackCB.setToolTipText("Enable tracking");
637648 // trackCB.addItemListener(this);
....@@ -724,7 +735,7 @@
724735 compositeButton.addActionListener(this);
725736
726737 oe.toolboxPanel.add(switchButton = GetButton("icons/switch.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
727
- switchButton.setToolTipText("Create switch");
738
+ switchButton.setToolTipText("Create item switcher");
728739 switchButton.addActionListener(this);
729740
730741 oe.toolboxPanel.add(loopButton = GetButton("icons/loop.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
....@@ -743,17 +754,29 @@
743754 lightButton.setToolTipText("Create light");
744755 lightButton.addActionListener(this);
745756
757
+ for (int i=6; --i>=0;)
758
+ {
759
+ oe.toolboxPanel.Return();
760
+ oe.toolboxPanel.add(new cGridBag());
761
+ oe.toolboxPanel.add(new cGridBag());
762
+ oe.toolboxPanel.add(new cGridBag());
763
+ oe.toolboxPanel.add(new cGridBag());
764
+ oe.toolboxPanel.add(new cGridBag());
765
+ oe.toolboxPanel.add(new cGridBag());
766
+ oe.toolboxPanel.add(new cGridBag());
767
+ }
768
+
746769 // EDIT panel
747
- editCommandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
748
- editButton.setToolTipText("Edit selection");
770
+ editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
771
+ editButton.setToolTipText("Pin selection controls");
749772 editButton.addActionListener(this);
750773
751
- editCommandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
752
- uneditButton.setToolTipText("Unedit selection");
774
+ editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
775
+ uneditButton.setToolTipText("Remove selection controls");
753776 uneditButton.addActionListener(this);
754777
755778 editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints);
756
- allParamsButton.setToolTipText("Edit all params");
779
+ allParamsButton.setToolTipText("Show all controle");
757780 allParamsButton.addActionListener(this);
758781
759782 editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
....@@ -770,6 +793,7 @@
770793
771794 editCommandsPanel.preferredHeight = 1;
772795
796
+ SetPinStates(false);
773797 // oe.treePanel.add(commandsPanel);
774798 // oe.treePanel.Return();
775799
....@@ -843,14 +867,18 @@
843867 boxCB.addItemListener(this);
844868
845869 panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints);
846
- zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");
870
+ zoomBoxCB.setToolTipText("Display only for wheel");
847871 zoomBoxCB.addItemListener(this);
848872
849873 if (true) // Globals.ADVANCED)
850874 {
851
- panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
852
- supportCB.setToolTipText("Enable rigging");
853
- supportCB.addItemListener(this);
875
+// panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints);
876
+// supportCB.setToolTipText("Enable rigging");
877
+// supportCB.addItemListener(this);
878
+
879
+ panel.add(freezeCB = new cCheckBox("Freeze", Globals.FREEZEONMOVE)); //, constraints);
880
+ freezeCB.setToolTipText("Fast moving camera");
881
+ freezeCB.addItemListener(this);
854882
855883 // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints);
856884 // localCB.addItemListener(this);
....@@ -905,7 +933,7 @@
905933 oeilCB.addItemListener(this);
906934
907935 panel.add(shadowCB = new cCheckBox("Shadow", Globals.COMPUTESHADOWWHENLIVE)); //, constraints);
908
- shadowCB.setToolTipText("Compute shadows when live");
936
+ shadowCB.setToolTipText("When live compute shadows");
909937 shadowCB.addItemListener(this);
910938
911939 panel.Return();
....@@ -914,11 +942,11 @@
914942 toggleTextureCB.addItemListener(this);
915943
916944 panel.add(toggleSwitchCB = new cCheckBox("Switch", CameraPane.SWITCH)); //, constraints);
917
- toggleSwitchCB.setToolTipText("Use switch");
945
+ toggleSwitchCB.setToolTipText("Choose a single item");
918946 toggleSwitchCB.addItemListener(this);
919947
920948 panel.add(autosaveCB = new cCheckBox("Auto-save", Globals.SAVEONMAKE)); //, constraints);
921
- autosaveCB.setToolTipText("Auto-save on structure change");
949
+ autosaveCB.setToolTipText("On structure change");
922950 autosaveCB.addItemListener(this);
923951
924952 panel.Return();
....@@ -948,7 +976,7 @@
948976 {
949977 cRadio radioButton = new cRadio(obj.name);
950978
951
- // Patch to avoid bug with transparency.
979
+ // June 2019. Patch to avoid bug with transparency.
952980 radioButton.hadMaterial = obj.material != null;
953981 if (!radioButton.hadMaterial)
954982 {
....@@ -985,6 +1013,7 @@
9851013 cCheckBox slowCB;
9861014 cCheckBox boxCB;
9871015 cCheckBox zoomBoxCB;
1016
+ cCheckBox freezeCB;
9881017 //cToggleButton trackCB;
9891018 cCheckBox trackCB;
9901019 cCheckBox smoothfocusCB;
....@@ -1103,6 +1132,10 @@
11031132 {
11041133 Globals.COMPUTESHADOWWHENLIVE ^= true;
11051134 }
1135
+ else if(e.getSource() == freezeCB)
1136
+ {
1137
+ Globals.FREEZEONMOVE ^= true;
1138
+ }
11061139 else if(e.getSource() == autosaveCB)
11071140 {
11081141 Globals.SAVEONMAKE ^= true;
....@@ -1187,8 +1220,6 @@
11871220 }
11881221 }
11891222
1190
- String string = (String) object;
1191
-
11921223 System.out.println("Transfer = " + object + "; drop : " + target);
11931224 // if( object instanceof java.io.File[])
11941225 // {
....@@ -1196,6 +1227,8 @@
11961227 // objEditor.DropFile((java.io.File[]) object, true);
11971228 // return;
11981229 // }
1230
+
1231
+ String string = object.toString();
11991232
12001233 // File path for Mac and Windows
12011234 if (string.charAt(0) == '/' || string.charAt(1) == ':')
....@@ -1445,6 +1478,9 @@
14451478 animationItem.addItemListener(this);
14461479 animationItem.setState(Globals.ANIMATION);
14471480
1481
+ menu.add(archiveItem = new MenuItem("Archive3D..."));
1482
+ archiveItem.addActionListener(this);
1483
+
14481484 menu.add("-");
14491485 parseverticesItem = menu.add(new MenuItem("Multiplicity"));
14501486 parseverticesItem.addActionListener(this);
....@@ -1457,6 +1493,8 @@
14571493 reduce34MorphItem = menu.add(new MenuItem("Reduce Morphs (34)"));
14581494 reduce34MorphItem.addActionListener(this);
14591495 menu.add("-");
1496
+ menu.add(memoryItem = new MenuItem("Memory Usage"));
1497
+ memoryItem.addActionListener(this);
14601498 menu.add(computeAOItem = new MenuItem("Compute AO"));
14611499 computeAOItem.addActionListener(this);
14621500
....@@ -1465,8 +1503,6 @@
14651503 mirrorItem = menu.add(new MenuItem("Mirror Poses"));
14661504 mirrorItem.addActionListener(this);
14671505 menu.add("-");
1468
- menu.add(memoryItem = new MenuItem("Memory Usage"));
1469
- memoryItem.addActionListener(this);
14701506 menu.add(analyzeItem = new MenuItem("Analyze"));
14711507 analyzeItem.addActionListener(this);
14721508 menu.add(dumpItem = new MenuItem("Print"));
....@@ -1614,6 +1650,20 @@
16141650
16151651 makeSomething(shadow);
16161652 }
1653
+
1654
+ private void ClearUnpinned()
1655
+ {
1656
+ //for (Object3D obj : listUI)
1657
+ for (int i=listUI.size(); --i>=0;)
1658
+ {
1659
+ Object3D obj = listUI.elementAt(i);
1660
+ if (!obj.pinned)
1661
+ {
1662
+ obj.CloseUI();
1663
+ listUI.remove(i);
1664
+ }
1665
+ }
1666
+ }
16171667
16181668 /**
16191669 * applyExample
....@@ -2093,25 +2143,25 @@
20932143 Composite csg = new GroupLeaf();
20942144 csg.count = 5;
20952145 group(csg);
2096
- Composite child = new cGroup();
2146
+ Composite child = new cGroup("Branch");
20972147 csg.addChild(child);
20982148 child.addChild(csg);
20992149 } else
21002150 if (source == doubleItem)
21012151 {
2102
- Composite csg = new GroupLeaf();
2152
+ Composite csg = new GroupLeaf("Fork");
21032153 csg.count = 5;
21042154 group(csg);
2105
- Composite child = new cGroup();
2155
+ Composite child = new cGroup("Branch A");
21062156 csg.addChild(child);
21072157 child.addChild(csg);
2108
- child = new cGroup();
2158
+ child = new cGroup("Branch B");
21092159 csg.addChild(child);
21102160 child.addChild(csg);
21112161 } else
21122162 if (source == tripleItem)
21132163 {
2114
- Composite csg = new GroupLeaf();
2164
+ Composite csg = new GroupLeaf("Trident");
21152165 csg.count = 4;
21162166 group(csg);
21172167 Composite child = new cGroup();
....@@ -2175,7 +2225,8 @@
21752225 } else
21762226 if (source == undoButton)
21772227 {
2178
- Undo();
2228
+ if (!Undo())
2229
+ java.awt.Toolkit.getDefaultToolkit().beep();
21792230 } else
21802231 if (source == redoButton)
21812232 {
....@@ -2183,7 +2234,8 @@
21832234 } else
21842235 if (source == saveButton)
21852236 {
2186
- Save();
2237
+ if (!Save(true))
2238
+ java.awt.Toolkit.getDefaultToolkit().beep();
21872239 } else
21882240 if (source == oneStepButton)
21892241 {
....@@ -2192,17 +2244,14 @@
21922244 } else
21932245 if (source == screenfitButton)
21942246 {
2195
- //Reload(lastConverter, lastFilename, true);
21962247 ScreenFit();
21972248 } else
21982249 if (source == screenfitpointButton)
21992250 {
2200
- //Reload(lastConverter, lastFilename, true);
22012251 ScreenFitPoint();
22022252 } else
22032253 if (source == snapobjectButton)
22042254 {
2205
- //Reload(lastConverter, lastFilename, true);
22062255 SnapObject();
22072256 } else
22082257 // if (event.getSource() == recompileButton)
....@@ -2726,15 +2775,28 @@
27262775 } else
27272776 if (source == ungroupItem || source == ungroupButton)
27282777 {
2729
- //ungroup();
2778
+ boolean hasRoot = false;
2779
+
27302780 for (int i=0; i<group.selection.size(); i++)
27312781 {
2732
- Ungroup(group.selection.get(i));
2782
+ if (group.selection.get(i) == group)
2783
+ {
2784
+ hasRoot = true;
2785
+ break;
2786
+ }
27332787 }
27342788
2735
- ClearSelection(false);
2736
-
2737
- refreshContents();
2789
+ if (!hasRoot)
2790
+ {
2791
+ for (int i=0; i<group.selection.size(); i++)
2792
+ {
2793
+ Ungroup(group.selection.get(i));
2794
+ }
2795
+
2796
+ ClearSelection(false);
2797
+
2798
+ refreshContents();
2799
+ }
27382800 } else
27392801 if (source == genUVItem)
27402802 {
....@@ -3326,6 +3388,12 @@
33263388 } else
33273389 if (source == editItem || source == editButton)
33283390 {
3391
+ for (Enumeration e = group.selection.elements(); e.hasMoreElements();)
3392
+ {
3393
+ Object3D child = (Object3D)e.nextElement();
3394
+ child.pinned = true;
3395
+ }
3396
+
33293397 EditSelection(false);
33303398 } else
33313399 if (source == uneditButton)
....@@ -3335,6 +3403,7 @@
33353403 Object3D child = (Object3D)e.nextElement();
33363404 if(child.editWindow != null)
33373405 objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
3406
+ child.pinned = false;
33383407 child.CloseUI();
33393408 listUI.remove(child);
33403409
....@@ -3351,6 +3420,7 @@
33513420 //copy.ClearUI();
33523421 for (Object3D obj : listUI)
33533422 {
3423
+ obj.pinned = false;
33543424 obj.CloseUI();
33553425 }
33563426 listUI.clear();
....@@ -3360,7 +3430,7 @@
33603430 {
33613431 assert(copy == group);
33623432
3363
- objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
3433
+ //objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit"));
33643434
33653435 for (Object3D obj : listUI)
33663436 {
....@@ -3435,6 +3505,11 @@
34353505 currentLayout = sevenButton;
34363506 */
34373507 radio.layout.doClick();
3508
+
3509
+ ClearUnpinned();
3510
+ SetPinStates(group.selection.size() > 0);
3511
+ if (group.selection.size() == 1)
3512
+ EditSelection(false);
34383513 keepparent = group.parent;
34393514 // PARENT = NULL or not???
34403515 //group.parent = null; // ROOT
....@@ -4502,10 +4577,6 @@
45024577 // }
45034578 // }
45044579
4505
- static boolean allparams = true;
4506
-
4507
- static Vector<Object3D> listUI = new Vector<Object3D>();
4508
-
45094580 void EditSelection(boolean newWindow)
45104581 {
45114582 // aConstraints.gridy = 0;
....@@ -4598,7 +4669,8 @@
45984669 //new Exception().printStackTrace();
45994670
46004671 freezemodel = true;
4601
-
4672
+ ClearUnpinned();
4673
+
46024674 /**/
46034675 //switch (event.id)
46044676 {
....@@ -4631,7 +4703,7 @@
46314703 if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera)
46324704 // a camera
46334705 {
4634
- if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera())
4706
+ if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) // Crash the camera because of invalid lightspace
46354707 {
46364708 CameraPane.camerachangeframe = 0; // don't refuse it
46374709 Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent());
....@@ -4640,6 +4712,13 @@
46404712 // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera;
46414713 }
46424714
4715
+ if (tps != null && tps.length == 1)
4716
+ {
4717
+ EditSelection(false);
4718
+ }
4719
+
4720
+ SetPinStates(tps != null && tps.length > 0);
4721
+
46434722 refreshContents();
46444723 //return true;
46454724 }
....@@ -4649,10 +4728,18 @@
46494728 freezemodel = false;
46504729 }
46514730
4731
+ void SetPinStates(boolean enabled)
4732
+ {
4733
+ editButton.setEnabled(enabled);
4734
+ uneditButton.setEnabled(enabled);
4735
+ unselectButton.setEnabled(enabled);
4736
+ flashSelectionButton.setEnabled(enabled);
4737
+ }
4738
+
46524739 void refreshContents(boolean cp)
46534740 {
46544741 if (objectPanel.getSelectedIndex() == objectPanel.indexOfTab("Info"))
4655
- if (!Globals.MOUSEDRAGGED) // && !Globals.TIMERRUNNING)
4742
+ if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
46564743 {
46574744 objEditor.ClearInfo(); // .GetMaterial());
46584745
....@@ -4751,8 +4838,8 @@
47514838
47524839 if (cut)
47534840 {
4754
- if (Globals.SAVEONMAKE)
4755
- Save();
4841
+// if (Globals.SAVEONMAKE) // Moved to the clipboard, no need to save.
4842
+// Save();
47564843 //int indices[] = jList.getSelectedIndices();
47574844 //for (int i = indices.length - 1; i >= 0; i--)
47584845 //jList.remove(indices[i]);
....@@ -4855,6 +4942,10 @@
48554942
48564943 void paste(boolean expand)
48574944 {
4945
+ if (Globals.SAVEONMAKE)
4946
+ Save();
4947
+ boolean keep = Globals.SAVEONMAKE;
4948
+ Globals.SAVEONMAKE = false;
48584949 // if (GrafreeD.clipboard == null)
48594950 // return;
48604951 boolean first = true;
....@@ -4914,6 +5005,7 @@
49145005 Grafreed.clipboard.get(0).parent = keepparent;
49155006 }
49165007
5008
+ Globals.SAVEONMAKE = keep;
49175009 ResetModel();
49185010 refreshContents();
49195011 }
....@@ -5049,6 +5141,10 @@
50495141
50505142 void group(Object3D csg, boolean grab)
50515143 {
5144
+ if (Globals.SAVEONMAKE)
5145
+ Save();
5146
+ boolean keep = Globals.SAVEONMAKE;
5147
+ Globals.SAVEONMAKE = false;
50525148 if (//false) // why??
50535149 !group.selection.isEmpty())
50545150 {
....@@ -5162,10 +5258,15 @@
51625258 //node.add(csg);
51635259 //makeSomething(node);
51645260 makeSomething(csg);
5261
+ Globals.SAVEONMAKE = keep;
51655262 }
51665263
51675264 void Ungroup(Object3D g)
51685265 {
5266
+ if (Globals.SAVEONMAKE)
5267
+ Save();
5268
+ boolean keep = Globals.SAVEONMAKE;
5269
+ Globals.SAVEONMAKE = false;
51695270 if (g instanceof HiddenObject)
51705271 {
51715272 HiddenObject h = (HiddenObject) g;
....@@ -5182,6 +5283,7 @@
51825283 objEditor.makeSomething(g.get(i), false);
51835284 }
51845285 }
5286
+ Globals.SAVEONMAKE = keep;
51855287 }
51865288
51875289 void ungroup()
....@@ -5472,11 +5574,6 @@
54725574
54735575 cButton restoreCameraButton;
54745576
5475
- cButton minButton;
5476
- cButton maxButton;
5477
- cButton fullButton;
5478
- cButton undoButton;
5479
- cButton redoButton;
54805577 cButton saveButton;
54815578 cButton oneStepButton;
54825579