.. | .. |
---|
154 | 154 | oe.menuBar.add(menu = new Menu("Edit")); |
---|
155 | 155 | //editItem = menu.add(new MenuItem("Edit")); |
---|
156 | 156 | //editItem.addActionListener(this); |
---|
| 157 | + |
---|
| 158 | +// undoItem = menu.add(new MenuItem("Undo")); |
---|
| 159 | +// undoItem.addActionListener(this); |
---|
| 160 | +// redoItem = menu.add(new MenuItem("Redo")); |
---|
| 161 | +// redoItem.addActionListener(this); |
---|
| 162 | +// menu.add("-"); |
---|
157 | 163 | duplicateItem = menu.add(new MenuItem("Duplicate")); |
---|
158 | 164 | duplicateItem.addActionListener(this); |
---|
159 | 165 | cloneItem = menu.add(new MenuItem("Clone")); |
---|
.. | .. |
---|
197 | 203 | //zBufferItem.addActionListener(this); |
---|
198 | 204 | //cameraMenu.add(normalLensItem = new MenuItem("Normal Lens")); |
---|
199 | 205 | //normalLensItem.addActionListener(this); |
---|
200 | | - cameraMenu.add(revertCameraItem = new MenuItem("Revert Camera")); |
---|
| 206 | + cameraMenu.add(revertCameraItem = new MenuItem("Restore Viewpoint")); |
---|
201 | 207 | revertCameraItem.addActionListener(this); |
---|
202 | 208 | |
---|
203 | 209 | cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen")); |
---|
.. | .. |
---|
240 | 246 | |
---|
241 | 247 | cameraMenu.add(toggleDebugItem = new CheckboxMenuItem("Debug")); |
---|
242 | 248 | toggleDebugItem.addItemListener(this); |
---|
243 | | - toggleDebugItem.setState(CameraPane.DEBUG); |
---|
| 249 | + toggleDebugItem.setState(Globals.DEBUG); |
---|
244 | 250 | |
---|
245 | 251 | cameraMenu.add(toggleFrustumItem = new CheckboxMenuItem("Frustum")); |
---|
246 | 252 | toggleFrustumItem.addItemListener(this); |
---|
.. | .. |
---|
261 | 267 | // animationItem.addItemListener(this); |
---|
262 | 268 | // animationItem.setState(CameraPane.ANIMATION); |
---|
263 | 269 | cameraMenu.add("-"); |
---|
264 | | - cameraMenu.add(editCameraItem = new MenuItem("Freeze Camera")); |
---|
| 270 | + cameraMenu.add(editCameraItem = new MenuItem("Save Viewpoint")); |
---|
265 | 271 | editCameraItem.addActionListener(this); |
---|
266 | 272 | |
---|
267 | 273 | if (Globals.ADVANCED) |
---|
.. | .. |
---|
464 | 470 | markleavesItem.addActionListener(this); |
---|
465 | 471 | unmarkleavesItem = menu.add(new MenuItem("Unmark Leaves")); |
---|
466 | 472 | unmarkleavesItem.addActionListener(this); |
---|
| 473 | + rewindleavesItem = menu.add(new MenuItem("Rewind Leaves")); |
---|
| 474 | + rewindleavesItem.addActionListener(this); |
---|
| 475 | + unrewindleavesItem = menu.add(new MenuItem("Unrewind Leaves")); |
---|
| 476 | + unrewindleavesItem.addActionListener(this); |
---|
| 477 | + randomleavesItem = menu.add(new MenuItem("Random Leaves")); |
---|
| 478 | + randomleavesItem.addActionListener(this); |
---|
| 479 | + unrandomleavesItem = menu.add(new MenuItem("Unrandom Leaves")); |
---|
| 480 | + unrandomleavesItem.addActionListener(this); |
---|
467 | 481 | menu.add("-"); |
---|
468 | 482 | flipVItem = menu.add(new MenuItem("Flip V")); |
---|
469 | 483 | flipVItem.addActionListener(this); |
---|
.. | .. |
---|
521 | 535 | |
---|
522 | 536 | void SetupUI2(ObjEditor oe) |
---|
523 | 537 | { |
---|
| 538 | + // June 2019 |
---|
| 539 | + if (oe == null) |
---|
| 540 | + { |
---|
| 541 | + //super.SetupUI2(this); |
---|
| 542 | + //return; |
---|
| 543 | + } |
---|
| 544 | + |
---|
| 545 | + if (copy != group) |
---|
| 546 | + { |
---|
| 547 | + //super.SetupUI2(this); |
---|
| 548 | + } |
---|
| 549 | + |
---|
524 | 550 | //new Exception().printStackTrace(); |
---|
525 | 551 | |
---|
526 | 552 | oe.radioPanel = new JPanel(new GridBagLayout()); |
---|
.. | .. |
---|
551 | 577 | */ |
---|
552 | 578 | //this.AddOptions(oe.toolbarPanel, oe.aConstraints); |
---|
553 | 579 | |
---|
| 580 | + //oe.toolbarPanel.add(minButton = new cButton("Min", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 581 | + //minButton.setToolTipText("Minimize window"); |
---|
| 582 | + //minButton.addActionListener(this); |
---|
| 583 | + |
---|
| 584 | + oe.toolbarPanel.add(maxButton = new cButton("\u271A", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 585 | + maxButton.setToolTipText("Maximize window"); |
---|
| 586 | + maxButton.addActionListener(this); |
---|
| 587 | + |
---|
| 588 | + oe.toolbarPanel.add(fullButton = new cButton("\u2b1c", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 589 | + fullButton.setToolTipText("Full-screen window"); |
---|
| 590 | + fullButton.addActionListener(this); |
---|
| 591 | + |
---|
| 592 | + oe.toolbarPanel.add(undoButton = new cButton("\u21a9", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 593 | + undoButton.setToolTipText("Undo changes"); |
---|
| 594 | + undoButton.addActionListener(this); |
---|
| 595 | + |
---|
| 596 | + oe.toolbarPanel.add(redoButton = new cButton("\u21aa", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 597 | + redoButton.setToolTipText("Redo changes"); |
---|
| 598 | + redoButton.addActionListener(this); |
---|
| 599 | + |
---|
| 600 | + oe.toolbarPanel.add(saveButton = new cButton("\u21e3", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 601 | + saveButton.setToolTipText("Save changes"); |
---|
| 602 | + saveButton.addActionListener(this); |
---|
| 603 | + |
---|
554 | 604 | oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints); |
---|
555 | 605 | liveCB.setToolTipText("Enable animation"); |
---|
556 | 606 | liveCB.addItemListener(this); |
---|
557 | 607 | |
---|
558 | | - oe.toolbarPanel.add(oneStepButton = new cButton("Step", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 608 | + oe.toolbarPanel.add(oneStepButton = new cButton("\u29f4", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
559 | 609 | oneStepButton.setToolTipText("Animate one step forward"); |
---|
560 | 610 | oneStepButton.addActionListener(this); |
---|
561 | 611 | |
---|
.. | .. |
---|
563 | 613 | fastCB.setToolTipText("Fast mode"); |
---|
564 | 614 | fastCB.addItemListener(this); |
---|
565 | 615 | |
---|
566 | | - oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints); |
---|
| 616 | + oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK)); //, oe.aConstraints); |
---|
567 | 617 | trackCB.setToolTipText("Enable tracking"); |
---|
568 | 618 | trackCB.addItemListener(this); |
---|
569 | 619 | |
---|
.. | .. |
---|
791 | 841 | |
---|
792 | 842 | void SetupViews(ObjEditor oe) |
---|
793 | 843 | { |
---|
| 844 | + theFrame = this; |
---|
| 845 | + |
---|
794 | 846 | oe.SetupViews(); |
---|
795 | 847 | |
---|
796 | 848 | System.out.println("SetupViews"); |
---|
.. | .. |
---|
853 | 905 | } else if(e.getSource() == liveCB) |
---|
854 | 906 | { |
---|
855 | 907 | cameraView.ToggleLive(); |
---|
| 908 | + refreshContents(false); |
---|
856 | 909 | } |
---|
857 | 910 | else if(e.getSource() == supportCB) |
---|
858 | 911 | { |
---|
.. | .. |
---|
1260 | 1313 | memoryItem.addActionListener(this); |
---|
1261 | 1314 | menu.add(analyzeItem = new MenuItem("Analyze")); |
---|
1262 | 1315 | analyzeItem.addActionListener(this); |
---|
1263 | | - menu.add(dumpItem = new MenuItem("Dump")); |
---|
| 1316 | + menu.add(dumpItem = new MenuItem("Print")); |
---|
1264 | 1317 | dumpItem.addActionListener(this); |
---|
1265 | 1318 | // menu.add(pathItem = new MenuItem("From-to path")); |
---|
1266 | 1319 | // pathItem.addActionListener(this); |
---|
.. | .. |
---|
1951 | 2004 | { |
---|
1952 | 2005 | DumpObject(); |
---|
1953 | 2006 | } else |
---|
| 2007 | + if (source == minButton) |
---|
| 2008 | + { |
---|
| 2009 | + Minimize(); |
---|
| 2010 | + } else |
---|
| 2011 | + if (source == maxButton) |
---|
| 2012 | + { |
---|
| 2013 | + Maximize(); |
---|
| 2014 | + } else |
---|
| 2015 | + if (source == fullButton) |
---|
| 2016 | + { |
---|
| 2017 | + ToggleFullScreen(); |
---|
| 2018 | + } else |
---|
| 2019 | + if (source == undoButton) |
---|
| 2020 | + { |
---|
| 2021 | + Undo(); |
---|
| 2022 | + } else |
---|
| 2023 | + if (source == redoButton) |
---|
| 2024 | + { |
---|
| 2025 | + Redo(); |
---|
| 2026 | + } else |
---|
| 2027 | + if (source == saveButton) |
---|
| 2028 | + { |
---|
| 2029 | + Save(); |
---|
| 2030 | + } else |
---|
1954 | 2031 | if (source == oneStepButton) |
---|
1955 | 2032 | { |
---|
1956 | 2033 | Globals.ONESTEP = true; |
---|
.. | .. |
---|
2004 | 2081 | if (source == cutItem || source == clearButton) |
---|
2005 | 2082 | { |
---|
2006 | 2083 | loadClipboard(true); |
---|
| 2084 | + } else |
---|
| 2085 | + if (source == undoItem) |
---|
| 2086 | + { |
---|
| 2087 | + Undo(); |
---|
| 2088 | + } else |
---|
| 2089 | + if (source == redoItem) |
---|
| 2090 | + { |
---|
| 2091 | + Redo(); |
---|
2007 | 2092 | } else |
---|
2008 | 2093 | if (source == duplicateItem) |
---|
2009 | 2094 | { |
---|
.. | .. |
---|
2504 | 2589 | } else |
---|
2505 | 2590 | if (source == genNormalsMESHItem) |
---|
2506 | 2591 | { |
---|
2507 | | - GenNormals(true); // TODO |
---|
| 2592 | + GenNormalsMESH(); |
---|
2508 | 2593 | } else |
---|
2509 | 2594 | if (source == genNormalsORGANItem) |
---|
2510 | 2595 | { |
---|
.. | .. |
---|
2569 | 2654 | if (source == unmarkleavesItem) |
---|
2570 | 2655 | { |
---|
2571 | 2656 | MarkLeaves(false); |
---|
| 2657 | + } else |
---|
| 2658 | + if (source == rewindleavesItem) |
---|
| 2659 | + { |
---|
| 2660 | + RewindLeaves(true); |
---|
| 2661 | + } else |
---|
| 2662 | + if (source == unrewindleavesItem) |
---|
| 2663 | + { |
---|
| 2664 | + RewindLeaves(false); |
---|
| 2665 | + } else |
---|
| 2666 | + if (source == randomleavesItem) |
---|
| 2667 | + { |
---|
| 2668 | + RandomLeaves(true); |
---|
| 2669 | + } else |
---|
| 2670 | + if (source == unrandomleavesItem) |
---|
| 2671 | + { |
---|
| 2672 | + RandomLeaves(false); |
---|
2572 | 2673 | } else |
---|
2573 | 2674 | if (source == flipVItem) |
---|
2574 | 2675 | { |
---|
.. | .. |
---|
2836 | 2937 | bigThree.ClearUI(); |
---|
2837 | 2938 | bigThree.add(centralPanel); |
---|
2838 | 2939 | bigThree.FlushUI(); |
---|
| 2940 | + |
---|
| 2941 | + cameraView.requestFocusInWindow(); |
---|
| 2942 | + |
---|
| 2943 | +// refreshContents(true); |
---|
| 2944 | +// |
---|
| 2945 | +// try |
---|
| 2946 | +// { |
---|
| 2947 | +// java.awt.Robot bot = new java.awt.Robot(); |
---|
| 2948 | +// int mask = InputEvent.BUTTON1_MASK; |
---|
| 2949 | +// bot.mouseMove(100, 100); |
---|
| 2950 | +// bot.mousePress(mask); |
---|
| 2951 | +// bot.mouseRelease(mask); |
---|
| 2952 | +// } |
---|
| 2953 | +// catch (Exception e) |
---|
| 2954 | +// { |
---|
| 2955 | +// |
---|
| 2956 | +// } |
---|
| 2957 | + |
---|
2839 | 2958 | } else |
---|
2840 | 2959 | if (source == threeButton) |
---|
2841 | 2960 | { |
---|
.. | .. |
---|
2872 | 2991 | bigThree.add(centralPanel); |
---|
2873 | 2992 | bigThree.add(XYZPanel); |
---|
2874 | 2993 | bigThree.FlushUI(); |
---|
| 2994 | + |
---|
| 2995 | + cameraView.requestFocusInWindow(); |
---|
2875 | 2996 | } else |
---|
2876 | 2997 | if (source == fourButton) |
---|
2877 | 2998 | { |
---|
.. | .. |
---|
2907 | 3028 | bigThree.ClearUI(); |
---|
2908 | 3029 | bigThree.add(scenePanel); |
---|
2909 | 3030 | bigThree.FlushUI(); |
---|
| 3031 | + |
---|
| 3032 | + cameraView.requestFocusInWindow(); |
---|
2910 | 3033 | } else |
---|
2911 | 3034 | if (source == sixButton) |
---|
2912 | 3035 | { |
---|
.. | .. |
---|
2943 | 3066 | bigThree.add(scenePanel); |
---|
2944 | 3067 | bigThree.add(centralPanel); |
---|
2945 | 3068 | bigThree.FlushUI(); |
---|
| 3069 | + |
---|
| 3070 | + cameraView.requestFocusInWindow(); |
---|
2946 | 3071 | } else |
---|
2947 | 3072 | if (source == sevenButton) |
---|
2948 | 3073 | { |
---|
.. | .. |
---|
2980 | 3105 | bigThree.add(centralPanel); |
---|
2981 | 3106 | bigThree.add(XYZPanel); |
---|
2982 | 3107 | bigThree.FlushUI(); |
---|
| 3108 | + |
---|
| 3109 | + cameraView.requestFocusInWindow(); |
---|
2983 | 3110 | } else |
---|
2984 | 3111 | if (source == rootButton) |
---|
2985 | 3112 | { |
---|
.. | .. |
---|
2991 | 3118 | EditObject(obj); |
---|
2992 | 3119 | } |
---|
2993 | 3120 | |
---|
| 3121 | + cameraView.requestFocusInWindow(); |
---|
2994 | 3122 | refreshContents(true); |
---|
2995 | 3123 | } else |
---|
2996 | 3124 | if (source == closeButton) |
---|
.. | .. |
---|
3012 | 3140 | break; |
---|
3013 | 3141 | } |
---|
3014 | 3142 | } |
---|
| 3143 | + |
---|
| 3144 | + cameraView.requestFocusInWindow(); |
---|
3015 | 3145 | refreshContents(true); |
---|
3016 | 3146 | } else |
---|
3017 | 3147 | if (source == editItem || source == editButton) |
---|
.. | .. |
---|
3028 | 3158 | child.CloseUI(); |
---|
3029 | 3159 | listUI.remove(child); |
---|
3030 | 3160 | |
---|
3031 | | - child.editWindow = null; // ??????????? |
---|
| 3161 | + //child.editWindow = null; // ??????????? |
---|
3032 | 3162 | } |
---|
3033 | 3163 | objEditor.ctrlPanel.FlushUI(); |
---|
3034 | 3164 | //objEditor.jTree.clearSelection(); |
---|
.. | .. |
---|
3115 | 3245 | sideView.object = group; |
---|
3116 | 3246 | } |
---|
3117 | 3247 | |
---|
3118 | | -// fix "+" issue group.editWindow = this; |
---|
| 3248 | +// fix "+" issue |
---|
| 3249 | + //group.editWindow = this; |
---|
3119 | 3250 | |
---|
3120 | 3251 | /* |
---|
3121 | 3252 | currentLayout = radio.layout; |
---|
.. | .. |
---|
3128 | 3259 | //group.parent = null; // ROOT |
---|
3129 | 3260 | //group.attributes = -1; |
---|
3130 | 3261 | ResetModel(); |
---|
| 3262 | + |
---|
| 3263 | + cameraView.requestFocusInWindow(); |
---|
3131 | 3264 | refreshContents(true); |
---|
3132 | 3265 | } else if (event.getSource() == editCameraItem) |
---|
3133 | 3266 | { |
---|
.. | .. |
---|
3151 | 3284 | } |
---|
3152 | 3285 | |
---|
3153 | 3286 | boolean useclient = false; |
---|
3154 | | - cRadio radio; |
---|
3155 | 3287 | |
---|
3156 | 3288 | void ToggleRoot() |
---|
3157 | 3289 | { |
---|
.. | .. |
---|
3390 | 3522 | |
---|
3391 | 3523 | int size = obj.MemorySize(); |
---|
3392 | 3524 | |
---|
3393 | | - System.err.println((size/1024) + " KB is the size of " + obj); |
---|
| 3525 | + //System.err.println((size/1024) + " KB is the size of " + obj); |
---|
| 3526 | + System.err.println("the size of " + obj + " is " + size + " (" + (size/1024) + "KB)"); |
---|
3394 | 3527 | } |
---|
3395 | 3528 | } |
---|
3396 | 3529 | catch (Exception e) |
---|
.. | .. |
---|
3471 | 3604 | void GenNormals(boolean crease) |
---|
3472 | 3605 | { |
---|
3473 | 3606 | group.GenNormalsS(crease); |
---|
| 3607 | + |
---|
| 3608 | + refreshContents(); |
---|
| 3609 | + } |
---|
| 3610 | + |
---|
| 3611 | + void GenNormalsMESH() |
---|
| 3612 | + { |
---|
| 3613 | + group.GenNormalsMeshS(); |
---|
3474 | 3614 | |
---|
3475 | 3615 | refreshContents(); |
---|
3476 | 3616 | } |
---|
.. | .. |
---|
4098 | 4238 | refreshContents(); |
---|
4099 | 4239 | } |
---|
4100 | 4240 | |
---|
| 4241 | + void RewindLeaves(boolean hide) |
---|
| 4242 | + { |
---|
| 4243 | + group.selection.RewindLeaves(hide); |
---|
| 4244 | + refreshContents(); |
---|
| 4245 | + } |
---|
| 4246 | + |
---|
| 4247 | + void RandomLeaves(boolean hide) |
---|
| 4248 | + { |
---|
| 4249 | + group.selection.RandomLeaves(hide); |
---|
| 4250 | + refreshContents(); |
---|
| 4251 | + } |
---|
| 4252 | + |
---|
4101 | 4253 | void SetTexRes(int tr) |
---|
4102 | 4254 | { |
---|
4103 | 4255 | group.selection.SetTexRes(tr); |
---|
.. | .. |
---|
4273 | 4425 | //case 702: // Event.LIST_DESELECT |
---|
4274 | 4426 | group.deselectAll(); |
---|
4275 | 4427 | TreePath tps[] = objEditor.jTree.getSelectionPaths(); |
---|
4276 | | - objEditor.ClearInfo(); // .GetMaterial()); |
---|
4277 | 4428 | if (tps != null) |
---|
4278 | 4429 | { |
---|
4279 | 4430 | for (int i=0; i < tps.length; i++) |
---|
.. | .. |
---|
4282 | 4433 | |
---|
4283 | 4434 | //if (child.parent != null) |
---|
4284 | 4435 | //child.parent.addSelectee(child); |
---|
| 4436 | + objEditor.SetMaterial(child); |
---|
4285 | 4437 | group.addSelectee(child); |
---|
4286 | | - objEditor.SetMaterial(child); // .GetMaterial()); |
---|
4287 | | - objEditor.AddInfo(child, this, true); // .GetMaterial()); |
---|
4288 | | - System.err.println("info : " + child.GetPath()); |
---|
4289 | 4438 | } |
---|
4290 | 4439 | } |
---|
4291 | 4440 | // else |
---|
.. | .. |
---|
4295 | 4444 | // System.err.println("info : " + group.GetPath()); |
---|
4296 | 4445 | // } |
---|
4297 | 4446 | |
---|
4298 | | - objEditor.SetText(); // jan 2014 |
---|
4299 | | - |
---|
4300 | | - if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera)) |
---|
| 4447 | + if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera)) |
---|
4301 | 4448 | CameraPane.flash = true; |
---|
4302 | 4449 | |
---|
4303 | | - if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera) |
---|
| 4450 | + if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera) |
---|
4304 | 4451 | // a camera |
---|
4305 | 4452 | { |
---|
4306 | | - CameraPane.camerachangeframe = 0; // don't refuse it |
---|
4307 | | - Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
| 4453 | + if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) |
---|
| 4454 | + { |
---|
| 4455 | + CameraPane.camerachangeframe = 0; // don't refuse it |
---|
| 4456 | + Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
| 4457 | + } |
---|
4308 | 4458 | // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera; |
---|
4309 | 4459 | // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera; |
---|
4310 | 4460 | } |
---|
.. | .. |
---|
4317 | 4467 | |
---|
4318 | 4468 | freezemodel = false; |
---|
4319 | 4469 | } |
---|
| 4470 | + |
---|
| 4471 | + void refreshContents(boolean cp) |
---|
| 4472 | + { |
---|
| 4473 | + if (!Globals.MOUSEDRAGGED) |
---|
| 4474 | + { |
---|
| 4475 | + objEditor.ClearInfo(); // .GetMaterial()); |
---|
| 4476 | + |
---|
| 4477 | + for (int i=0; i < group.selection.Size(); i++) |
---|
| 4478 | + { |
---|
| 4479 | + Object3D child = (Object3D) group.selection.get(i); |
---|
| 4480 | + |
---|
| 4481 | + objEditor.AddInfo(child, this, true); |
---|
| 4482 | + System.err.println("info : " + child.GetPath()); |
---|
| 4483 | + } |
---|
| 4484 | + |
---|
| 4485 | + objEditor.SetText(); // jan 2014 |
---|
| 4486 | + } |
---|
| 4487 | + |
---|
| 4488 | + super.refreshContents(cp); |
---|
| 4489 | + } |
---|
4320 | 4490 | |
---|
4321 | 4491 | void linkSomething(Object3D thing) |
---|
4322 | 4492 | { |
---|
.. | .. |
---|
4388 | 4558 | { |
---|
4389 | 4559 | if (group.selection.isEmpty()) |
---|
4390 | 4560 | return; |
---|
| 4561 | + |
---|
4391 | 4562 | Grafreed.clipboardIsTempGroup = false; |
---|
4392 | 4563 | Composite tGroup = null; |
---|
4393 | 4564 | if (group.selection.size() > 0) // 1) |
---|
.. | .. |
---|
4398 | 4569 | |
---|
4399 | 4570 | if (cut) |
---|
4400 | 4571 | { |
---|
| 4572 | + Save(); |
---|
4401 | 4573 | //int indices[] = jList.getSelectedIndices(); |
---|
4402 | 4574 | //for (int i = indices.length - 1; i >= 0; i--) |
---|
4403 | 4575 | //jList.remove(indices[i]); |
---|
.. | .. |
---|
4487 | 4659 | } |
---|
4488 | 4660 | |
---|
4489 | 4661 | } |
---|
| 4662 | + |
---|
4490 | 4663 | if (Grafreed.clipboardIsTempGroup) |
---|
4491 | 4664 | Grafreed.clipboard = tGroup; |
---|
| 4665 | + |
---|
4492 | 4666 | if (cut) |
---|
4493 | 4667 | { |
---|
4494 | 4668 | ResetModel(); |
---|
.. | .. |
---|
5113 | 5287 | cButton clearpanelButton; |
---|
5114 | 5288 | cButton unselectButton; |
---|
5115 | 5289 | |
---|
| 5290 | + cButton minButton; |
---|
| 5291 | + cButton maxButton; |
---|
| 5292 | + cButton fullButton; |
---|
| 5293 | + cButton undoButton; |
---|
| 5294 | + cButton redoButton; |
---|
| 5295 | + cButton saveButton; |
---|
5116 | 5296 | cButton oneStepButton; |
---|
5117 | 5297 | |
---|
5118 | 5298 | cButton screenfitButton; |
---|
.. | .. |
---|
5126 | 5306 | |
---|
5127 | 5307 | cButton setsupportButton; |
---|
5128 | 5308 | |
---|
5129 | | - cButton twoButton; |
---|
5130 | | - cButton sixButton; |
---|
5131 | | - cButton threeButton; |
---|
5132 | | - cButton sevenButton; |
---|
5133 | | - cButton fourButton; // full panel |
---|
5134 | | - cButton oneButton; // full XYZ |
---|
5135 | | - //cButton currentLayout; |
---|
5136 | | - |
---|
5137 | 5309 | // |
---|
5138 | 5310 | //Composite |
---|
5139 | 5311 | Object3D // to do !! |
---|
.. | .. |
---|
5145 | 5317 | private MenuItem lookFromItem; |
---|
5146 | 5318 | private MenuItem switchItem; |
---|
5147 | 5319 | private MenuItem cutItem; |
---|
| 5320 | + private MenuItem undoItem; |
---|
| 5321 | + private MenuItem redoItem; |
---|
5148 | 5322 | private MenuItem duplicateItem; |
---|
5149 | 5323 | private MenuItem cloneItem; |
---|
5150 | 5324 | private MenuItem cloneSupportItem; |
---|
.. | .. |
---|
5208 | 5382 | private MenuItem showleavesItem; |
---|
5209 | 5383 | private MenuItem markleavesItem; |
---|
5210 | 5384 | private MenuItem unmarkleavesItem; |
---|
| 5385 | + private MenuItem rewindleavesItem; |
---|
| 5386 | + private MenuItem unrewindleavesItem; |
---|
| 5387 | + private MenuItem randomleavesItem; |
---|
| 5388 | + private MenuItem unrandomleavesItem; |
---|
5211 | 5389 | |
---|
5212 | 5390 | private MenuItem flipVItem; |
---|
5213 | 5391 | private MenuItem unflipVItem; |
---|