.. | .. |
---|
74 | 74 | this.copy = this.group = copy; |
---|
75 | 75 | //selectees = this.group.selectees; |
---|
76 | 76 | |
---|
77 | | - SetupMenu2(objEditor); |
---|
| 77 | + SetupMenu2(this); //objEditor); |
---|
78 | 78 | SetupUI2(objEditor); |
---|
79 | 79 | objEditor.SetupUI(true); |
---|
80 | 80 | SetupViews(objEditor); |
---|
.. | .. |
---|
148 | 148 | |
---|
149 | 149 | //JTextField nameField; |
---|
150 | 150 | |
---|
151 | | - void SetupMenu2(ObjEditor oe) |
---|
| 151 | + void SetupMenu2(GroupEditor oe) |
---|
152 | 152 | { |
---|
153 | | - if (Globals.ADVANCED) |
---|
154 | | - { |
---|
155 | | - oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest")); |
---|
156 | | - //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection")); |
---|
157 | | - //cameraMenu.add(switchItem = new MenuItem("Reverse View")); |
---|
158 | | - editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf")); |
---|
159 | | - oe.cameraMenu.add("-"); |
---|
160 | | - openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy...")); |
---|
161 | | - openWindowItem.addActionListener(this); |
---|
162 | | - editLeafItem.addActionListener(this); |
---|
163 | | - lookAtItem.addActionListener(this); |
---|
164 | | - //lookFromItem.addActinoListener(this); |
---|
165 | | - //switchItem.addActionListener(this); |
---|
166 | | - } |
---|
167 | | - |
---|
168 | 153 | Menu menu; |
---|
169 | 154 | oe.menuBar.add(menu = new Menu("Edit")); |
---|
170 | 155 | //editItem = menu.add(new MenuItem("Edit")); |
---|
171 | 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("-"); |
---|
172 | 163 | duplicateItem = menu.add(new MenuItem("Duplicate")); |
---|
173 | 164 | duplicateItem.addActionListener(this); |
---|
174 | 165 | cloneItem = menu.add(new MenuItem("Clone")); |
---|
.. | .. |
---|
185 | 176 | copyItem.addActionListener(this); |
---|
186 | 177 | pasteItem = menu.add(new MenuItem("Paste")); |
---|
187 | 178 | pasteItem.addActionListener(this); |
---|
188 | | - menu.add("-"); |
---|
189 | 179 | |
---|
190 | 180 | menu.add("-"); |
---|
191 | 181 | pasteIntoItem = menu.add(new MenuItem("Paste into")); |
---|
.. | .. |
---|
206 | 196 | clearAllItem = menu.add(new MenuItem("Clear All")); |
---|
207 | 197 | clearAllItem.addActionListener(this); |
---|
208 | 198 | } |
---|
| 199 | + |
---|
| 200 | + menuBar.add(cameraMenu = new Menu("View")); |
---|
| 201 | + //cameraMenu.add(zBufferItem = new CheckboxMenuItem("Z Buffer")); |
---|
| 202 | + //zBufferItem.addActionListener(this); |
---|
| 203 | + //cameraMenu.add(normalLensItem = new MenuItem("Normal Lens")); |
---|
| 204 | + //normalLensItem.addActionListener(this); |
---|
| 205 | + cameraMenu.add(revertCameraItem = new MenuItem("Restore Viewpoint")); |
---|
| 206 | + revertCameraItem.addActionListener(this); |
---|
| 207 | + |
---|
| 208 | + cameraMenu.add(toggleFullScreenItem = new CheckboxMenuItem("Full Screen")); |
---|
| 209 | + toggleFullScreenItem.addItemListener(this); |
---|
| 210 | + toggleFullScreenItem.setState(CameraPane.FULLSCREEN); |
---|
| 211 | + cameraMenu.add("-"); |
---|
| 212 | + |
---|
| 213 | + cameraMenu.add(toggleTextureItem = new CheckboxMenuItem("Texture")); |
---|
| 214 | + toggleTextureItem.addItemListener(this); |
---|
| 215 | + toggleTextureItem.setState(CameraPane.textureon); |
---|
| 216 | + |
---|
| 217 | + cameraMenu.add(toggleSwitchItem = new CheckboxMenuItem("Switch")); |
---|
| 218 | + toggleSwitchItem.addItemListener(this); |
---|
| 219 | + toggleSwitchItem.setState(CameraPane.SWITCH); |
---|
| 220 | + |
---|
| 221 | + cameraMenu.add(toggleHandleItem = new CheckboxMenuItem("Handles")); |
---|
| 222 | + toggleHandleItem.addItemListener(this); |
---|
| 223 | + toggleHandleItem.setState(CameraPane.HANDLES); |
---|
| 224 | + |
---|
| 225 | + cameraMenu.add(togglePaintItem = new CheckboxMenuItem("Paint mode")); |
---|
| 226 | + togglePaintItem.addItemListener(this); |
---|
| 227 | + togglePaintItem.setState(CameraPane.PAINTMODE); |
---|
| 228 | + |
---|
| 229 | + if (Globals.ADVANCED) |
---|
| 230 | + { |
---|
| 231 | + cameraMenu.add("-"); |
---|
| 232 | + cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live")); |
---|
| 233 | + toggleLiveItem.addItemListener(this); |
---|
| 234 | + toggleLiveItem.setState(Globals.isLIVE()); |
---|
209 | 235 | |
---|
| 236 | + cameraMenu.add(stepItem = new MenuItem("Step")); |
---|
| 237 | + stepItem.addActionListener(this); |
---|
| 238 | + // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List")); |
---|
| 239 | + // toggleDLItem.addItemListener(this); |
---|
| 240 | + // toggleDLItem.setState(false); |
---|
| 241 | + |
---|
| 242 | + cameraMenu.add(toggleRenderItem = new CheckboxMenuItem("Render")); |
---|
| 243 | + toggleRenderItem.addItemListener(this); |
---|
| 244 | + toggleRenderItem.setState(!CameraPane.frozen); |
---|
| 245 | + |
---|
| 246 | + cameraMenu.add(toggleDebugItem = new CheckboxMenuItem("Debug")); |
---|
| 247 | + toggleDebugItem.addItemListener(this); |
---|
| 248 | + toggleDebugItem.setState(Globals.DEBUG); |
---|
| 249 | + |
---|
| 250 | + cameraMenu.add(toggleFrustumItem = new CheckboxMenuItem("Frustum")); |
---|
| 251 | + toggleFrustumItem.addItemListener(this); |
---|
| 252 | + toggleFrustumItem.setState(CameraPane.FRUSTUM); |
---|
| 253 | + |
---|
| 254 | + cameraMenu.add(toggleFootContactItem = new CheckboxMenuItem("Foot contact")); |
---|
| 255 | + toggleFootContactItem.addItemListener(this); |
---|
| 256 | + toggleFootContactItem.setState(CameraPane.FOOTCONTACT); |
---|
| 257 | + |
---|
| 258 | + cameraMenu.add(toggleTimelineItem = new CheckboxMenuItem("Timeline")); |
---|
| 259 | + toggleTimelineItem.addItemListener(this); |
---|
| 260 | + } |
---|
| 261 | + |
---|
| 262 | +// cameraMenu.add(toggleRootItem = new CheckboxMenuItem("Alternate Root")); |
---|
| 263 | +// toggleRootItem.addItemListener(this); |
---|
| 264 | +// toggleRootItem.setState(false); |
---|
| 265 | +// cameraMenu.add(animationItem = new CheckboxMenuItem("Animation")); |
---|
| 266 | +// animationItem.addItemListener(this); |
---|
| 267 | +// animationItem.setState(CameraPane.ANIMATION); |
---|
| 268 | + cameraMenu.add("-"); |
---|
| 269 | + cameraMenu.add(editCameraItem = new MenuItem("Save Viewpoint")); |
---|
| 270 | + editCameraItem.addActionListener(this); |
---|
| 271 | + |
---|
| 272 | + if (Globals.ADVANCED) |
---|
| 273 | + { |
---|
| 274 | + oe.cameraMenu.add(lookAtItem = new MenuItem("Set Interest")); |
---|
| 275 | + //cameraMenu.add(lookFromItem = new MenuItem("Look From Selection")); |
---|
| 276 | + //cameraMenu.add(switchItem = new MenuItem("Reverse View")); |
---|
| 277 | + editLeafItem = oe.cameraMenu.add(new MenuItem("Edit Leaf")); |
---|
| 278 | + oe.cameraMenu.add("-"); |
---|
| 279 | + openWindowItem = oe.cameraMenu.add(new MenuItem("Edit copy...")); |
---|
| 280 | + openWindowItem.addActionListener(this); |
---|
| 281 | + editLeafItem.addActionListener(this); |
---|
| 282 | + lookAtItem.addActionListener(this); |
---|
| 283 | + //lookFromItem.addActinoListener(this); |
---|
| 284 | + //switchItem.addActionListener(this); |
---|
| 285 | + } |
---|
| 286 | + |
---|
210 | 287 | oe.menuBar.add(menu = new Menu("Setting")); |
---|
211 | 288 | if (Globals.ADVANCED) |
---|
212 | 289 | { |
---|
.. | .. |
---|
291 | 368 | billboardItem.addActionListener(this); |
---|
292 | 369 | csgItem = menu.add(new MenuItem("CSG")); |
---|
293 | 370 | csgItem.addActionListener(this); |
---|
294 | | - shadowXItem = menu.add(new MenuItem("Shadow X")); |
---|
| 371 | + shadowXItem = menu.add(new MenuItem("Shadow Red")); |
---|
295 | 372 | shadowXItem.addActionListener(this); |
---|
296 | | - shadowYItem = menu.add(new MenuItem("Shadow Y")); |
---|
| 373 | + shadowYItem = menu.add(new MenuItem("Shadow Green")); |
---|
297 | 374 | shadowYItem.addActionListener(this); |
---|
298 | | - shadowZItem = menu.add(new MenuItem("Shadow Z")); |
---|
| 375 | + shadowZItem = menu.add(new MenuItem("Shadow Blue")); |
---|
299 | 376 | shadowZItem.addActionListener(this); |
---|
300 | 377 | if (Globals.ADVANCED) |
---|
301 | 378 | { |
---|
.. | .. |
---|
392 | 469 | markleavesItem.addActionListener(this); |
---|
393 | 470 | unmarkleavesItem = menu.add(new MenuItem("Unmark Leaves")); |
---|
394 | 471 | unmarkleavesItem.addActionListener(this); |
---|
| 472 | + rewindleavesItem = menu.add(new MenuItem("Rewind Leaves")); |
---|
| 473 | + rewindleavesItem.addActionListener(this); |
---|
| 474 | + unrewindleavesItem = menu.add(new MenuItem("Unrewind Leaves")); |
---|
| 475 | + unrewindleavesItem.addActionListener(this); |
---|
| 476 | + randomleavesItem = menu.add(new MenuItem("Random Leaves")); |
---|
| 477 | + randomleavesItem.addActionListener(this); |
---|
| 478 | + unrandomleavesItem = menu.add(new MenuItem("Unrandom Leaves")); |
---|
| 479 | + unrandomleavesItem.addActionListener(this); |
---|
395 | 480 | menu.add("-"); |
---|
396 | 481 | flipVItem = menu.add(new MenuItem("Flip V")); |
---|
397 | 482 | flipVItem.addActionListener(this); |
---|
.. | .. |
---|
443 | 528 | oe.menuBar.add(menu = new Menu("Insert")); |
---|
444 | 529 | buildCreateMenu(menu); |
---|
445 | 530 | |
---|
446 | | - oe.menuBar.add(menu = new Menu("Include")); |
---|
447 | | - importOBJItem = menu.add(new MenuItem("OBJ file...")); |
---|
448 | | - importOBJItem.addActionListener(this); |
---|
449 | | - menu.add("-"); |
---|
450 | | - import3DSItem = menu.add(new MenuItem("3DS file...")); |
---|
451 | | - import3DSItem.addActionListener(this); |
---|
452 | | - menu.add("-"); |
---|
453 | | - importVRMLX3DItem = menu.add(new MenuItem("VRML/X3D file...")); |
---|
454 | | - importVRMLX3DItem.addActionListener(this); |
---|
455 | | - menu.add("-"); |
---|
456 | | - importGFDItem = menu.add(new MenuItem("GrafreeD file...")); |
---|
457 | | - importGFDItem.addActionListener(this); |
---|
458 | | - |
---|
459 | 531 | oe.menuBar.add(menu = new Menu("Tools")); |
---|
460 | 532 | buildToolsMenu(menu); |
---|
461 | 533 | } |
---|
462 | 534 | |
---|
463 | 535 | void SetupUI2(ObjEditor oe) |
---|
464 | 536 | { |
---|
| 537 | + // June 2019 |
---|
| 538 | + if (oe == null) |
---|
| 539 | + { |
---|
| 540 | + //super.SetupUI2(this); |
---|
| 541 | + //return; |
---|
| 542 | + } |
---|
| 543 | + |
---|
| 544 | + if (copy != group) |
---|
| 545 | + { |
---|
| 546 | + //super.SetupUI2(this); |
---|
| 547 | + } |
---|
| 548 | + |
---|
465 | 549 | //new Exception().printStackTrace(); |
---|
466 | 550 | |
---|
467 | 551 | oe.radioPanel = new JPanel(new GridBagLayout()); |
---|
.. | .. |
---|
492 | 576 | */ |
---|
493 | 577 | //this.AddOptions(oe.toolbarPanel, oe.aConstraints); |
---|
494 | 578 | |
---|
| 579 | + //oe.toolbarPanel.add(minButton = new cButton("Min", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 580 | + //minButton.setToolTipText("Minimize window"); |
---|
| 581 | + //minButton.addActionListener(this); |
---|
| 582 | + |
---|
| 583 | + oe.toolbarPanel.add(maxButton = new cButton("\u271A", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 584 | + maxButton.setToolTipText("Maximize window"); |
---|
| 585 | + maxButton.addActionListener(this); |
---|
| 586 | + |
---|
| 587 | + oe.toolbarPanel.add(fullButton = new cButton("\u2b1c", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 588 | + fullButton.setToolTipText("Full-screen window"); |
---|
| 589 | + fullButton.addActionListener(this); |
---|
| 590 | + |
---|
| 591 | + oe.toolbarPanel.add(undoButton = new cButton("\u21a9", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 592 | + undoButton.setToolTipText("Undo changes"); |
---|
| 593 | + undoButton.addActionListener(this); |
---|
| 594 | + |
---|
| 595 | + oe.toolbarPanel.add(redoButton = new cButton("\u21aa", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 596 | + redoButton.setToolTipText("Redo changes"); |
---|
| 597 | + redoButton.addActionListener(this); |
---|
| 598 | + |
---|
| 599 | + oe.toolbarPanel.add(saveButton = new cButton("\u21e3", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 600 | + saveButton.setToolTipText("Save changes"); |
---|
| 601 | + saveButton.addActionListener(this); |
---|
| 602 | + |
---|
495 | 603 | oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints); |
---|
496 | 604 | liveCB.setToolTipText("Enable animation"); |
---|
497 | 605 | liveCB.addItemListener(this); |
---|
498 | 606 | |
---|
499 | | - oe.toolbarPanel.add(oneStepButton = new cButton("Step", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 607 | + oe.toolbarPanel.add(oneStepButton = new cButton("\u29f4", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
500 | 608 | oneStepButton.setToolTipText("Animate one step forward"); |
---|
501 | 609 | oneStepButton.addActionListener(this); |
---|
502 | 610 | |
---|
.. | .. |
---|
504 | 612 | fastCB.setToolTipText("Fast mode"); |
---|
505 | 613 | fastCB.addItemListener(this); |
---|
506 | 614 | |
---|
507 | | - oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK)); //, oe.aConstraints); |
---|
| 615 | + oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK)); //, oe.aConstraints); |
---|
508 | 616 | trackCB.setToolTipText("Enable tracking"); |
---|
509 | 617 | trackCB.addItemListener(this); |
---|
510 | 618 | |
---|
.. | .. |
---|
528 | 636 | |
---|
529 | 637 | oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL)); |
---|
530 | 638 | |
---|
531 | | - oe.toolbarPanel.add(twoButton = new cButton("|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 639 | + oe.toolbarPanel.add(twoButton = new cButton("|-|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
532 | 640 | twoButton.setToolTipText("Show center view only"); |
---|
533 | 641 | twoButton.addActionListener(this); |
---|
534 | | - oe.toolbarPanel.add(fourButton = new cButton("+||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 642 | + oe.toolbarPanel.add(fourButton = new cButton("-||", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
535 | 643 | fourButton.addActionListener(this); |
---|
536 | 644 | fourButton.setToolTipText("Show left panel only"); |
---|
537 | | - oe.toolbarPanel.add(sixButton = new cButton("+|+|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 645 | + oe.toolbarPanel.add(sixButton = new cButton("-|-|", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
538 | 646 | sixButton.setToolTipText("2-column layout left"); |
---|
539 | 647 | sixButton.addActionListener(this); |
---|
540 | | - oe.toolbarPanel.add(threeButton = new cButton("|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 648 | + oe.toolbarPanel.add(threeButton = new cButton("|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
541 | 649 | threeButton.setToolTipText("2-column layout right"); |
---|
542 | 650 | threeButton.addActionListener(this); |
---|
543 | | - oe.toolbarPanel.add(sevenButton = new cButton("+|+|+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 651 | + oe.toolbarPanel.add(sevenButton = new cButton("-|-|-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
544 | 652 | sevenButton.setToolTipText("3-column layout"); |
---|
545 | 653 | sevenButton.addActionListener(this); |
---|
546 | 654 | // |
---|
.. | .. |
---|
555 | 663 | //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints); |
---|
556 | 664 | //clearButton.addActionListener(this); |
---|
557 | 665 | |
---|
558 | | - cGridBag commandsPanel = new cGridBag(); |
---|
559 | | - |
---|
560 | | - commandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 666 | + editCommandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
561 | 667 | editButton.setToolTipText("Edit selection"); |
---|
562 | 668 | editButton.addActionListener(this); |
---|
563 | 669 | |
---|
564 | | - commandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 670 | + editCommandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
565 | 671 | uneditButton.setToolTipText("Unedit selection"); |
---|
566 | 672 | uneditButton.addActionListener(this); |
---|
567 | 673 | |
---|
568 | | - commandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints); |
---|
| 674 | + editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints); |
---|
569 | 675 | allParamsButton.setToolTipText("Edit all params"); |
---|
570 | 676 | allParamsButton.addActionListener(this); |
---|
571 | 677 | |
---|
572 | | - commandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 678 | + editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
573 | 679 | clearPanelButton.setToolTipText("Clear edit panel"); |
---|
574 | 680 | clearPanelButton.addActionListener(this); |
---|
575 | 681 | |
---|
576 | | - commandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 682 | + editCommandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
577 | 683 | unselectButton.setToolTipText("Unselect"); |
---|
578 | 684 | unselectButton.addActionListener(this); |
---|
579 | 685 | |
---|
580 | | - commandsPanel.preferredHeight = 1; |
---|
| 686 | + editCommandsPanel.preferredHeight = 1; |
---|
581 | 687 | |
---|
582 | | - oe.treePanel.add(commandsPanel); |
---|
583 | | - oe.treePanel.Return(); |
---|
| 688 | +// oe.treePanel.add(commandsPanel); |
---|
| 689 | +// oe.treePanel.Return(); |
---|
584 | 690 | |
---|
585 | 691 | // oe.aConstraints.gridx += 1; |
---|
586 | 692 | // oe.aConstraints.weighty = 0; |
---|
.. | .. |
---|
732 | 838 | |
---|
733 | 839 | void SetupViews(ObjEditor oe) |
---|
734 | 840 | { |
---|
| 841 | + theFrame = this; |
---|
| 842 | + |
---|
735 | 843 | oe.SetupViews(); |
---|
736 | 844 | |
---|
737 | 845 | System.out.println("SetupViews"); |
---|
.. | .. |
---|
794 | 902 | } else if(e.getSource() == liveCB) |
---|
795 | 903 | { |
---|
796 | 904 | cameraView.ToggleLive(); |
---|
| 905 | + refreshContents(false); |
---|
797 | 906 | } |
---|
798 | 907 | else if(e.getSource() == supportCB) |
---|
799 | 908 | { |
---|
.. | .. |
---|
1201 | 1310 | memoryItem.addActionListener(this); |
---|
1202 | 1311 | menu.add(analyzeItem = new MenuItem("Analyze")); |
---|
1203 | 1312 | analyzeItem.addActionListener(this); |
---|
1204 | | - menu.add(dumpItem = new MenuItem("Dump")); |
---|
| 1313 | + menu.add(dumpItem = new MenuItem("Print")); |
---|
1205 | 1314 | dumpItem.addActionListener(this); |
---|
1206 | 1315 | // menu.add(pathItem = new MenuItem("From-to path")); |
---|
1207 | 1316 | // pathItem.addActionListener(this); |
---|
.. | .. |
---|
1342 | 1451 | shadow.material = new cMaterial(obj.material); |
---|
1343 | 1452 | shadow.material.diffuse = 0.0001f; |
---|
1344 | 1453 | shadow.material.specular = 0.0001f; |
---|
| 1454 | + //shadow.projectedVertices[1].x = 300; |
---|
1345 | 1455 | |
---|
1346 | 1456 | makeSomething(shadow); |
---|
1347 | 1457 | } |
---|
.. | .. |
---|
1855 | 1965 | csg.addChild(child); |
---|
1856 | 1966 | child.addChild(csg); |
---|
1857 | 1967 | } else |
---|
1858 | | - |
---|
1859 | | - if (source == importGFDItem) |
---|
1860 | | - { |
---|
1861 | | - ImportGFD(); |
---|
1862 | | - } else |
---|
1863 | | - if (source == importVRMLX3DItem) |
---|
1864 | | - { |
---|
1865 | | - ImportVRMLX3D(); |
---|
1866 | | - } else |
---|
1867 | | - if (source == import3DSItem) |
---|
1868 | | - { |
---|
1869 | | - objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS"); |
---|
1870 | | - } else |
---|
1871 | | - if (source == importOBJItem) |
---|
1872 | | - { |
---|
1873 | | - //objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ"); |
---|
1874 | | - FileDialog browser = new FileDialog(frame, "Import OBJ", FileDialog.LOAD); |
---|
1875 | | - browser.setVisible(true); |
---|
1876 | | - String filename = browser.getFile(); |
---|
1877 | | - if (filename != null && filename.length() > 0) |
---|
1878 | | - { |
---|
1879 | | - String fullname = browser.getDirectory() + filename; |
---|
1880 | | - makeSomething(ReadOBJ(fullname), true); |
---|
1881 | | - } |
---|
1882 | | - } else |
---|
1883 | 1968 | if (source == computeAOItem) |
---|
1884 | 1969 | { |
---|
1885 | 1970 | Globals.drawMode = CameraPane.OCCLUSION; |
---|
.. | .. |
---|
1916 | 2001 | if (source == dumpItem) |
---|
1917 | 2002 | { |
---|
1918 | 2003 | DumpObject(); |
---|
| 2004 | + } else |
---|
| 2005 | + if (source == minButton) |
---|
| 2006 | + { |
---|
| 2007 | + Minimize(); |
---|
| 2008 | + } else |
---|
| 2009 | + if (source == maxButton) |
---|
| 2010 | + { |
---|
| 2011 | + Maximize(); |
---|
| 2012 | + } else |
---|
| 2013 | + if (source == fullButton) |
---|
| 2014 | + { |
---|
| 2015 | + ToggleFullScreen(); |
---|
| 2016 | + } else |
---|
| 2017 | + if (source == undoButton) |
---|
| 2018 | + { |
---|
| 2019 | + Undo(); |
---|
| 2020 | + } else |
---|
| 2021 | + if (source == redoButton) |
---|
| 2022 | + { |
---|
| 2023 | + Redo(); |
---|
| 2024 | + } else |
---|
| 2025 | + if (source == saveButton) |
---|
| 2026 | + { |
---|
| 2027 | + Save(); |
---|
1919 | 2028 | } else |
---|
1920 | 2029 | if (source == oneStepButton) |
---|
1921 | 2030 | { |
---|
.. | .. |
---|
1970 | 2079 | if (source == cutItem || source == clearButton) |
---|
1971 | 2080 | { |
---|
1972 | 2081 | loadClipboard(true); |
---|
| 2082 | + } else |
---|
| 2083 | + if (source == undoItem) |
---|
| 2084 | + { |
---|
| 2085 | + Undo(); |
---|
| 2086 | + } else |
---|
| 2087 | + if (source == redoItem) |
---|
| 2088 | + { |
---|
| 2089 | + Redo(); |
---|
1973 | 2090 | } else |
---|
1974 | 2091 | if (source == duplicateItem) |
---|
1975 | 2092 | { |
---|
.. | .. |
---|
2470 | 2587 | } else |
---|
2471 | 2588 | if (source == genNormalsMESHItem) |
---|
2472 | 2589 | { |
---|
2473 | | - GenNormals(true); // TODO |
---|
| 2590 | + GenNormalsMESH(); |
---|
2474 | 2591 | } else |
---|
2475 | 2592 | if (source == genNormalsORGANItem) |
---|
2476 | 2593 | { |
---|
.. | .. |
---|
2535 | 2652 | if (source == unmarkleavesItem) |
---|
2536 | 2653 | { |
---|
2537 | 2654 | MarkLeaves(false); |
---|
| 2655 | + } else |
---|
| 2656 | + if (source == rewindleavesItem) |
---|
| 2657 | + { |
---|
| 2658 | + RewindLeaves(true); |
---|
| 2659 | + } else |
---|
| 2660 | + if (source == unrewindleavesItem) |
---|
| 2661 | + { |
---|
| 2662 | + RewindLeaves(false); |
---|
| 2663 | + } else |
---|
| 2664 | + if (source == randomleavesItem) |
---|
| 2665 | + { |
---|
| 2666 | + RandomLeaves(true); |
---|
| 2667 | + } else |
---|
| 2668 | + if (source == unrandomleavesItem) |
---|
| 2669 | + { |
---|
| 2670 | + RandomLeaves(false); |
---|
2538 | 2671 | } else |
---|
2539 | 2672 | if (source == flipVItem) |
---|
2540 | 2673 | { |
---|
.. | .. |
---|
2802 | 2935 | bigThree.ClearUI(); |
---|
2803 | 2936 | bigThree.add(centralPanel); |
---|
2804 | 2937 | bigThree.FlushUI(); |
---|
| 2938 | + |
---|
| 2939 | + cameraView.requestFocusInWindow(); |
---|
| 2940 | + |
---|
| 2941 | +// refreshContents(true); |
---|
| 2942 | +// |
---|
| 2943 | +// try |
---|
| 2944 | +// { |
---|
| 2945 | +// java.awt.Robot bot = new java.awt.Robot(); |
---|
| 2946 | +// int mask = InputEvent.BUTTON1_MASK; |
---|
| 2947 | +// bot.mouseMove(100, 100); |
---|
| 2948 | +// bot.mousePress(mask); |
---|
| 2949 | +// bot.mouseRelease(mask); |
---|
| 2950 | +// } |
---|
| 2951 | +// catch (Exception e) |
---|
| 2952 | +// { |
---|
| 2953 | +// |
---|
| 2954 | +// } |
---|
| 2955 | + |
---|
2805 | 2956 | } else |
---|
2806 | 2957 | if (source == threeButton) |
---|
2807 | 2958 | { |
---|
.. | .. |
---|
2838 | 2989 | bigThree.add(centralPanel); |
---|
2839 | 2990 | bigThree.add(XYZPanel); |
---|
2840 | 2991 | bigThree.FlushUI(); |
---|
| 2992 | + |
---|
| 2993 | + cameraView.requestFocusInWindow(); |
---|
2841 | 2994 | } else |
---|
2842 | 2995 | if (source == fourButton) |
---|
2843 | 2996 | { |
---|
.. | .. |
---|
2873 | 3026 | bigThree.ClearUI(); |
---|
2874 | 3027 | bigThree.add(scenePanel); |
---|
2875 | 3028 | bigThree.FlushUI(); |
---|
| 3029 | + |
---|
| 3030 | + cameraView.requestFocusInWindow(); |
---|
2876 | 3031 | } else |
---|
2877 | 3032 | if (source == sixButton) |
---|
2878 | 3033 | { |
---|
.. | .. |
---|
2909 | 3064 | bigThree.add(scenePanel); |
---|
2910 | 3065 | bigThree.add(centralPanel); |
---|
2911 | 3066 | bigThree.FlushUI(); |
---|
| 3067 | + |
---|
| 3068 | + cameraView.requestFocusInWindow(); |
---|
2912 | 3069 | } else |
---|
2913 | 3070 | if (source == sevenButton) |
---|
2914 | 3071 | { |
---|
.. | .. |
---|
2946 | 3103 | bigThree.add(centralPanel); |
---|
2947 | 3104 | bigThree.add(XYZPanel); |
---|
2948 | 3105 | bigThree.FlushUI(); |
---|
| 3106 | + |
---|
| 3107 | + cameraView.requestFocusInWindow(); |
---|
2949 | 3108 | } else |
---|
2950 | 3109 | if (source == rootButton) |
---|
2951 | 3110 | { |
---|
.. | .. |
---|
2957 | 3116 | EditObject(obj); |
---|
2958 | 3117 | } |
---|
2959 | 3118 | |
---|
| 3119 | + cameraView.requestFocusInWindow(); |
---|
2960 | 3120 | refreshContents(true); |
---|
2961 | 3121 | } else |
---|
2962 | 3122 | if (source == closeButton) |
---|
.. | .. |
---|
2978 | 3138 | break; |
---|
2979 | 3139 | } |
---|
2980 | 3140 | } |
---|
| 3141 | + |
---|
| 3142 | + cameraView.requestFocusInWindow(); |
---|
2981 | 3143 | refreshContents(true); |
---|
2982 | 3144 | } else |
---|
2983 | 3145 | if (source == editItem || source == editButton) |
---|
.. | .. |
---|
2994 | 3156 | child.CloseUI(); |
---|
2995 | 3157 | listUI.remove(child); |
---|
2996 | 3158 | |
---|
2997 | | - child.editWindow = null; // ??????????? |
---|
| 3159 | + //child.editWindow = null; // ??????????? |
---|
2998 | 3160 | } |
---|
2999 | 3161 | objEditor.ctrlPanel.FlushUI(); |
---|
3000 | 3162 | //objEditor.jTree.clearSelection(); |
---|
.. | .. |
---|
3081 | 3243 | sideView.object = group; |
---|
3082 | 3244 | } |
---|
3083 | 3245 | |
---|
3084 | | -// fix "+" issue group.editWindow = this; |
---|
| 3246 | +// fix "+" issue |
---|
| 3247 | + //group.editWindow = this; |
---|
3085 | 3248 | |
---|
3086 | 3249 | /* |
---|
3087 | 3250 | currentLayout = radio.layout; |
---|
.. | .. |
---|
3094 | 3257 | //group.parent = null; // ROOT |
---|
3095 | 3258 | //group.attributes = -1; |
---|
3096 | 3259 | ResetModel(); |
---|
| 3260 | + |
---|
| 3261 | + cameraView.requestFocusInWindow(); |
---|
3097 | 3262 | refreshContents(true); |
---|
3098 | | - } |
---|
| 3263 | + } else if (event.getSource() == editCameraItem) |
---|
| 3264 | + { |
---|
| 3265 | + cameraView.ProtectCamera(); |
---|
| 3266 | + cameraView.repaint(); |
---|
| 3267 | + return; |
---|
| 3268 | + } else if (event.getSource() == revertCameraItem) |
---|
| 3269 | + { |
---|
| 3270 | + cameraView.RevertCamera(); |
---|
| 3271 | + cameraView.repaint(); |
---|
| 3272 | + return; |
---|
| 3273 | + // } else if (event.getSource() == textureButton) |
---|
| 3274 | + // { |
---|
| 3275 | + // return; // true; |
---|
| 3276 | + } |
---|
3099 | 3277 | else |
---|
3100 | 3278 | { |
---|
3101 | 3279 | //return super.action(event, arg); |
---|
.. | .. |
---|
3104 | 3282 | } |
---|
3105 | 3283 | |
---|
3106 | 3284 | boolean useclient = false; |
---|
3107 | | - cRadio radio; |
---|
3108 | 3285 | |
---|
3109 | 3286 | void ToggleRoot() |
---|
3110 | 3287 | { |
---|
.. | .. |
---|
3343 | 3520 | |
---|
3344 | 3521 | int size = obj.MemorySize(); |
---|
3345 | 3522 | |
---|
3346 | | - System.err.println((size/1024) + " KB is the size of " + obj); |
---|
| 3523 | + //System.err.println((size/1024) + " KB is the size of " + obj); |
---|
| 3524 | + System.err.println("the size of " + obj + " is " + size + " (" + (size/1024) + "KB)"); |
---|
3347 | 3525 | } |
---|
3348 | 3526 | } |
---|
3349 | 3527 | catch (Exception e) |
---|
.. | .. |
---|
3424 | 3602 | void GenNormals(boolean crease) |
---|
3425 | 3603 | { |
---|
3426 | 3604 | group.GenNormalsS(crease); |
---|
| 3605 | + |
---|
| 3606 | + refreshContents(); |
---|
| 3607 | + } |
---|
| 3608 | + |
---|
| 3609 | + void GenNormalsMESH() |
---|
| 3610 | + { |
---|
| 3611 | + group.GenNormalsMeshS(); |
---|
3427 | 3612 | |
---|
3428 | 3613 | refreshContents(); |
---|
3429 | 3614 | } |
---|
.. | .. |
---|
4051 | 4236 | refreshContents(); |
---|
4052 | 4237 | } |
---|
4053 | 4238 | |
---|
| 4239 | + void RewindLeaves(boolean hide) |
---|
| 4240 | + { |
---|
| 4241 | + group.selection.RewindLeaves(hide); |
---|
| 4242 | + refreshContents(); |
---|
| 4243 | + } |
---|
| 4244 | + |
---|
| 4245 | + void RandomLeaves(boolean hide) |
---|
| 4246 | + { |
---|
| 4247 | + group.selection.RandomLeaves(hide); |
---|
| 4248 | + refreshContents(); |
---|
| 4249 | + } |
---|
| 4250 | + |
---|
4054 | 4251 | void SetTexRes(int tr) |
---|
4055 | 4252 | { |
---|
4056 | 4253 | group.selection.SetTexRes(tr); |
---|
.. | .. |
---|
4226 | 4423 | //case 702: // Event.LIST_DESELECT |
---|
4227 | 4424 | group.deselectAll(); |
---|
4228 | 4425 | TreePath tps[] = objEditor.jTree.getSelectionPaths(); |
---|
4229 | | - objEditor.ClearInfo(); // .GetMaterial()); |
---|
4230 | 4426 | if (tps != null) |
---|
4231 | 4427 | { |
---|
4232 | 4428 | for (int i=0; i < tps.length; i++) |
---|
.. | .. |
---|
4235 | 4431 | |
---|
4236 | 4432 | //if (child.parent != null) |
---|
4237 | 4433 | //child.parent.addSelectee(child); |
---|
| 4434 | + objEditor.SetMaterial(child); |
---|
4238 | 4435 | group.addSelectee(child); |
---|
4239 | | - objEditor.SetMaterial(child); // .GetMaterial()); |
---|
4240 | | - objEditor.AddInfo(child, this, true); // .GetMaterial()); |
---|
4241 | | - System.err.println("info : " + child.GetPath()); |
---|
4242 | 4436 | } |
---|
4243 | 4437 | } |
---|
4244 | 4438 | // else |
---|
.. | .. |
---|
4248 | 4442 | // System.err.println("info : " + group.GetPath()); |
---|
4249 | 4443 | // } |
---|
4250 | 4444 | |
---|
4251 | | - objEditor.SetText(); // jan 2014 |
---|
4252 | | - |
---|
4253 | | - if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera)) |
---|
| 4445 | + if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(tps[0].getLastPathComponent() instanceof Camera)) |
---|
4254 | 4446 | CameraPane.flash = true; |
---|
4255 | 4447 | |
---|
4256 | | - if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera) |
---|
| 4448 | + if (tps != null && tps.length > 0 && tps[0].getLastPathComponent() instanceof Camera) |
---|
4257 | 4449 | // a camera |
---|
4258 | 4450 | { |
---|
4259 | | - CameraPane.camerachangeframe = 0; // don't refuse it |
---|
4260 | | - Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
| 4451 | + if (tps[0].getLastPathComponent() != Globals.theRenderer.LightCamera()) |
---|
| 4452 | + { |
---|
| 4453 | + CameraPane.camerachangeframe = 0; // don't refuse it |
---|
| 4454 | + Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
| 4455 | + } |
---|
4261 | 4456 | // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera; |
---|
4262 | 4457 | // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera; |
---|
4263 | 4458 | } |
---|
.. | .. |
---|
4270 | 4465 | |
---|
4271 | 4466 | freezemodel = false; |
---|
4272 | 4467 | } |
---|
| 4468 | + |
---|
| 4469 | + void refreshContents(boolean cp) |
---|
| 4470 | + { |
---|
| 4471 | + if (!Globals.MOUSEDRAGGED) |
---|
| 4472 | + { |
---|
| 4473 | + objEditor.ClearInfo(); // .GetMaterial()); |
---|
| 4474 | + |
---|
| 4475 | + for (int i=0; i < group.selection.Size(); i++) |
---|
| 4476 | + { |
---|
| 4477 | + Object3D child = (Object3D) group.selection.get(i); |
---|
| 4478 | + |
---|
| 4479 | + objEditor.AddInfo(child, this, true); |
---|
| 4480 | + System.err.println("info : " + child.GetPath()); |
---|
| 4481 | + } |
---|
| 4482 | + |
---|
| 4483 | + objEditor.SetText(); // jan 2014 |
---|
| 4484 | + } |
---|
| 4485 | + |
---|
| 4486 | + super.refreshContents(cp); |
---|
| 4487 | + } |
---|
4273 | 4488 | |
---|
4274 | 4489 | void linkSomething(Object3D thing) |
---|
4275 | 4490 | { |
---|
.. | .. |
---|
4341 | 4556 | { |
---|
4342 | 4557 | if (group.selection.isEmpty()) |
---|
4343 | 4558 | return; |
---|
| 4559 | + |
---|
4344 | 4560 | Grafreed.clipboardIsTempGroup = false; |
---|
4345 | 4561 | Composite tGroup = null; |
---|
4346 | 4562 | if (group.selection.size() > 0) // 1) |
---|
.. | .. |
---|
4351 | 4567 | |
---|
4352 | 4568 | if (cut) |
---|
4353 | 4569 | { |
---|
| 4570 | + Save(); |
---|
4354 | 4571 | //int indices[] = jList.getSelectedIndices(); |
---|
4355 | 4572 | //for (int i = indices.length - 1; i >= 0; i--) |
---|
4356 | 4573 | //jList.remove(indices[i]); |
---|
.. | .. |
---|
4440 | 4657 | } |
---|
4441 | 4658 | |
---|
4442 | 4659 | } |
---|
| 4660 | + |
---|
4443 | 4661 | if (Grafreed.clipboardIsTempGroup) |
---|
4444 | 4662 | Grafreed.clipboard = tGroup; |
---|
| 4663 | + |
---|
4445 | 4664 | if (cut) |
---|
4446 | 4665 | { |
---|
4447 | 4666 | ResetModel(); |
---|
.. | .. |
---|
4973 | 5192 | } |
---|
4974 | 5193 | */ |
---|
4975 | 5194 | |
---|
4976 | | - void ImportGFD() |
---|
4977 | | - { |
---|
4978 | | - FileDialog browser = new FileDialog(objEditor.frame, "Import GrafreeD", FileDialog.LOAD); |
---|
4979 | | - browser.show(); |
---|
4980 | | - String filename = browser.getFile(); |
---|
4981 | | - if (filename != null && filename.length() > 0) |
---|
4982 | | - { |
---|
4983 | | - String fullname = browser.getDirectory() + filename; |
---|
4984 | | - |
---|
4985 | | - //Object3D readobj = |
---|
4986 | | - objEditor.ReadGFD(fullname, objEditor); |
---|
4987 | | - //makeSomething(readobj); |
---|
4988 | | - } |
---|
4989 | | - } |
---|
4990 | | - |
---|
4991 | 5195 | /* |
---|
4992 | 5196 | public void Callback(Object obj) |
---|
4993 | 5197 | { |
---|
.. | .. |
---|
5011 | 5215 | } |
---|
5012 | 5216 | */ |
---|
5013 | 5217 | |
---|
5014 | | - void ImportVRMLX3D() |
---|
5015 | | - { |
---|
5016 | | - if (Grafreed.standAlone) |
---|
5017 | | - { |
---|
5018 | | - /**/ |
---|
5019 | | - FileDialog browser = new FileDialog(objEditor.frame, "Import VRML/X3D", FileDialog.LOAD); |
---|
5020 | | - browser.show(); |
---|
5021 | | - String filename = browser.getFile(); |
---|
5022 | | - if (filename != null && filename.length() > 0) |
---|
5023 | | - { |
---|
5024 | | - String fullname = browser.getDirectory() + filename; |
---|
5025 | | - LoadVRMLX3D(fullname); |
---|
5026 | | - } |
---|
5027 | | - /**/ |
---|
5028 | | - } |
---|
5029 | | - } |
---|
5030 | | - |
---|
5031 | 5218 | String GetFile(String dialogName) |
---|
5032 | 5219 | { |
---|
5033 | 5220 | if (Grafreed.standAlone) |
---|
.. | .. |
---|
5098 | 5285 | cButton clearpanelButton; |
---|
5099 | 5286 | cButton unselectButton; |
---|
5100 | 5287 | |
---|
| 5288 | + cButton minButton; |
---|
| 5289 | + cButton maxButton; |
---|
| 5290 | + cButton fullButton; |
---|
| 5291 | + cButton undoButton; |
---|
| 5292 | + cButton redoButton; |
---|
| 5293 | + cButton saveButton; |
---|
5101 | 5294 | cButton oneStepButton; |
---|
5102 | 5295 | |
---|
5103 | 5296 | cButton screenfitButton; |
---|
.. | .. |
---|
5111 | 5304 | |
---|
5112 | 5305 | cButton setsupportButton; |
---|
5113 | 5306 | |
---|
5114 | | - cButton twoButton; |
---|
5115 | | - cButton sixButton; |
---|
5116 | | - cButton threeButton; |
---|
5117 | | - cButton sevenButton; |
---|
5118 | | - cButton fourButton; // full panel |
---|
5119 | | - cButton oneButton; // full XYZ |
---|
5120 | | - //cButton currentLayout; |
---|
5121 | | - |
---|
5122 | 5307 | // |
---|
5123 | 5308 | //Composite |
---|
5124 | 5309 | Object3D // to do !! |
---|
.. | .. |
---|
5130 | 5315 | private MenuItem lookFromItem; |
---|
5131 | 5316 | private MenuItem switchItem; |
---|
5132 | 5317 | private MenuItem cutItem; |
---|
| 5318 | + private MenuItem undoItem; |
---|
| 5319 | + private MenuItem redoItem; |
---|
5133 | 5320 | private MenuItem duplicateItem; |
---|
5134 | 5321 | private MenuItem cloneItem; |
---|
5135 | 5322 | private MenuItem cloneSupportItem; |
---|
.. | .. |
---|
5193 | 5380 | private MenuItem showleavesItem; |
---|
5194 | 5381 | private MenuItem markleavesItem; |
---|
5195 | 5382 | private MenuItem unmarkleavesItem; |
---|
| 5383 | + private MenuItem rewindleavesItem; |
---|
| 5384 | + private MenuItem unrewindleavesItem; |
---|
| 5385 | + private MenuItem randomleavesItem; |
---|
| 5386 | + private MenuItem unrandomleavesItem; |
---|
5196 | 5387 | |
---|
5197 | 5388 | private MenuItem flipVItem; |
---|
5198 | 5389 | private MenuItem unflipVItem; |
---|
.. | .. |
---|
5276 | 5467 | private MenuItem doubleItem; |
---|
5277 | 5468 | private MenuItem tripleItem; |
---|
5278 | 5469 | |
---|
5279 | | - private MenuItem importGFDItem; |
---|
5280 | | - private MenuItem importVRMLX3DItem; |
---|
5281 | | - private MenuItem import3DSItem; |
---|
5282 | | - private MenuItem importOBJItem; |
---|
5283 | | - |
---|
5284 | 5470 | private MenuItem computeAOItem; |
---|
5285 | 5471 | private MenuItem recompileItem; |
---|
5286 | 5472 | private MenuItem editScriptItem; |
---|
.. | .. |
---|
5290 | 5476 | private MenuItem analyzeItem; |
---|
5291 | 5477 | private MenuItem dumpItem; |
---|
5292 | 5478 | //boolean freezemodel = false; |
---|
| 5479 | + |
---|
| 5480 | + Menu cameraMenu; |
---|
| 5481 | + MenuItem editCameraItem; |
---|
| 5482 | + MenuItem revertCameraItem; |
---|
5293 | 5483 | } |
---|