.. | .. |
---|
12 | 12 | import com.jme.math.Vector3f; |
---|
13 | 13 | import com.jme.renderer.ColorRGBA; |
---|
14 | 14 | |
---|
| 15 | +import grafeme.ui.*; |
---|
15 | 16 | //import buoy.widget.BFileChooser; |
---|
16 | 17 | |
---|
17 | 18 | class GroupEditor extends ObjEditor implements //iParse, //iCallBack, |
---|
.. | .. |
---|
434 | 435 | oe.buttonGroup.add(dummyButton); |
---|
435 | 436 | */ |
---|
436 | 437 | aConstraints.gridy += 1; |
---|
| 438 | + |
---|
| 439 | + //this.AddOptions(oe.toolbarPanel, oe.aConstraints); |
---|
| 440 | + |
---|
437 | 441 | oe.aConstraints.gridwidth = 1; |
---|
438 | 442 | oe.aConstraints.gridx = 0; |
---|
439 | 443 | |
---|
440 | | - oe.toolbarPanel.add(liveCB = new cCheckBox("Live", CameraPane.isLIVE()), oe.aConstraints); |
---|
| 444 | + oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE()), oe.aConstraints); |
---|
| 445 | + liveCB.setToolTipText("Enabled animation"); |
---|
441 | 446 | liveCB.addItemListener(this); |
---|
442 | 447 | |
---|
443 | 448 | oe.aConstraints.gridx += 1; |
---|
444 | | - oe.toolbarPanel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT), oe.aConstraints); |
---|
445 | | - supportCB.addItemListener(this); |
---|
446 | | - |
---|
447 | | - // oe.aConstraints.gridx += 1; |
---|
448 | | - // oe.toolbarPanel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), oe.aConstraints); |
---|
449 | | - // localCB.addItemListener(this); |
---|
450 | | - |
---|
451 | | - oe.aConstraints.gridx += 1; |
---|
452 | | - oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", CameraPane.CROWD), oe.aConstraints); |
---|
453 | | - crowdCB.addItemListener(this); |
---|
454 | | - |
---|
455 | | - oe.aConstraints.gridx += 1; |
---|
456 | | - oe.toolbarPanel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA), oe.aConstraints); |
---|
457 | | - smoothCB.addItemListener(this); |
---|
458 | | - |
---|
459 | | - oe.aConstraints.gridx += 1; |
---|
460 | | - oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST), oe.aConstraints); |
---|
461 | | - fastCB.addItemListener(this); |
---|
462 | | - oe.aConstraints.gridx += 1; |
---|
463 | | - oe.toolbarPanel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE), oe.aConstraints); |
---|
464 | | - slowCB.addItemListener(this); |
---|
465 | | - oe.aConstraints.gridx += 1; |
---|
466 | | - oe.toolbarPanel.add(boxCB = new cCheckBox("Box", CameraPane.FAST), oe.aConstraints); |
---|
467 | | - boxCB.addItemListener(this); |
---|
468 | | - |
---|
469 | | -// oe.aConstraints.gridx += 1; |
---|
470 | | -// oe.toolbarPanel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), oe.aConstraints); |
---|
471 | | -// speakerMocapCB.addItemListener(this); |
---|
472 | | - |
---|
473 | | - if (false) |
---|
474 | | - { |
---|
475 | | - // handled in scripts |
---|
476 | | - oe.aConstraints.gridx += 1; |
---|
477 | | - oe.toolbarPanel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA), oe.aConstraints); |
---|
478 | | - speakerCameraCB.addItemListener(this); |
---|
479 | | - |
---|
480 | | - oe.aConstraints.gridx += 1; |
---|
481 | | - oe.toolbarPanel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS), oe.aConstraints); |
---|
482 | | - speakerFocusCB.addItemListener(this); |
---|
483 | | - |
---|
484 | | - oe.aConstraints.gridx += 1; |
---|
485 | | - oe.toolbarPanel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS), oe.aConstraints); |
---|
486 | | - smoothfocusCB.addItemListener(this); |
---|
487 | | - } |
---|
488 | | - |
---|
489 | | -//oe.aConstraints.gridx += 1; |
---|
490 | | -//oe.toolbarPanel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), oe.aConstraints); |
---|
491 | | -// debugCB.addItemListener(this); |
---|
492 | | - |
---|
493 | | - oe.aConstraints.gridx += 1; |
---|
494 | | - oe.toolbarPanel.add(oeilCB = new cCheckBox("O", CameraPane.OEIL), oe.aConstraints); |
---|
495 | | - oeilCB.addItemListener(this); |
---|
496 | | - |
---|
497 | | - oe.aConstraints.gridx += 1; |
---|
498 | | - oe.toolbarPanel.add(lookAtCB = new cCheckBox("T", CameraPane.LOOKAT), oe.aConstraints); |
---|
499 | | - lookAtCB.addItemListener(this); |
---|
500 | | - |
---|
501 | | - oe.aConstraints.gridx += 1; |
---|
502 | | - oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK), oe.aConstraints); |
---|
| 449 | + oe.toolbarPanel.add(trackCB = new cCheckBox("Track", CameraPane.TRACK), oe.aConstraints); |
---|
| 450 | + trackCB.setToolTipText("Enable tracking"); |
---|
503 | 451 | trackCB.addItemListener(this); |
---|
504 | 452 | |
---|
505 | 453 | oe.aConstraints.gridx += 1; |
---|
506 | 454 | oe.toolbarPanel.add(screenfitButton = new cButton("@ ")); //, oe.aConstraints); |
---|
| 455 | + screenfitButton.setToolTipText("Screen fit"); |
---|
507 | 456 | screenfitButton.addActionListener(this); |
---|
508 | 457 | oe.aConstraints.gridx += 1; |
---|
509 | 458 | // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints); |
---|
.. | .. |
---|
511 | 460 | // oe.aConstraints.gridx += 1; |
---|
512 | 461 | oe.toolbarPanel.add(snapobjectButton = new cButton(" O+ ")); //, oe.aConstraints); |
---|
513 | 462 | snapobjectButton.addActionListener(this); |
---|
| 463 | + snapobjectButton.setToolTipText("Snap Object"); |
---|
514 | 464 | oe.aConstraints.gridx += 1; |
---|
515 | 465 | |
---|
516 | 466 | //aConstraints.gridx = 0; |
---|
.. | .. |
---|
519 | 469 | oe.aConstraints.gridwidth = 1; |
---|
520 | 470 | |
---|
521 | 471 | oe.toolbarPanel.add(flashSelectionButton = new cButton(" ? ")); //, oe.aConstraints); |
---|
| 472 | + flashSelectionButton.setToolTipText("Show selection"); |
---|
522 | 473 | flashSelectionButton.addActionListener(this); |
---|
523 | 474 | |
---|
524 | 475 | oe.toolbarPanel.add(new cButton(" ", false)); |
---|
.. | .. |
---|
529 | 480 | |
---|
530 | 481 | // |
---|
531 | 482 | oe.toolbarPanel.add(twoButton = new cButton(" |+| ")); //, oe.aConstraints); |
---|
| 483 | + twoButton.setToolTipText("Show center view only"); |
---|
532 | 484 | twoButton.addActionListener(this); |
---|
533 | 485 | oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints); |
---|
534 | 486 | fourButton.addActionListener(this); |
---|
| 487 | + fourButton.setToolTipText("Show left panel only"); |
---|
535 | 488 | oe.toolbarPanel.add(sixButton = new cButton("+|+| ")); //, oe.aConstraints); |
---|
| 489 | + sixButton.setToolTipText("2-column layout left"); |
---|
536 | 490 | sixButton.addActionListener(this); |
---|
537 | 491 | oe.toolbarPanel.add(threeButton = new cButton(" |+|+")); //, oe.aConstraints); |
---|
| 492 | + threeButton.setToolTipText("2-column layout right"); |
---|
538 | 493 | threeButton.addActionListener(this); |
---|
539 | 494 | oe.toolbarPanel.add(sevenButton = new cButton("+|+|+")); //, oe.aConstraints); |
---|
| 495 | + sevenButton.setToolTipText("3-column layout"); |
---|
540 | 496 | sevenButton.addActionListener(this); |
---|
541 | 497 | // |
---|
542 | 498 | |
---|
543 | | - oe.toolbarPanel.add(rootButton = new cButton(" o o o E ")); //, oe.aConstraints); |
---|
| 499 | + oe.toolbarPanel.add(rootButton = new cButton(" o o o ")); //, oe.aConstraints); |
---|
| 500 | + rootButton.setToolTipText("Edit object in new tab"); |
---|
544 | 501 | rootButton.addActionListener(this); |
---|
545 | 502 | oe.aConstraints.gridx += 1; |
---|
546 | 503 | oe.toolbarPanel.add(closeButton = new cButton(" X ")); //, oe.aConstraints); |
---|
| 504 | + closeButton.setToolTipText("Close tab"); |
---|
547 | 505 | closeButton.addActionListener(this); |
---|
548 | 506 | //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints); |
---|
549 | 507 | //clearButton.addActionListener(this); |
---|
.. | .. |
---|
646 | 604 | radio.layout = sevenButton; |
---|
647 | 605 | oe.toolbarPanel.add(radioPanel); //, oe.aConstraints); |
---|
648 | 606 | } |
---|
| 607 | + |
---|
| 608 | + void AddOptions(cGridBag panel) //, GridBagConstraints constraints) |
---|
| 609 | + { |
---|
| 610 | + //constraints.gridx = 0; |
---|
| 611 | + //constraints.gridy = 0; |
---|
| 612 | + panel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints); |
---|
| 613 | + fastCB.setToolTipText("Fast mode"); |
---|
| 614 | + fastCB.addItemListener(this); |
---|
| 615 | + //constraints.gridy += 1; |
---|
| 616 | + panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints); |
---|
| 617 | + supportCB.setToolTipText("Enabled rigging"); |
---|
| 618 | + supportCB.addItemListener(this); |
---|
| 619 | + |
---|
| 620 | + // constraints.gridy += 1; |
---|
| 621 | + // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints); |
---|
| 622 | + // localCB.addItemListener(this); |
---|
| 623 | + |
---|
| 624 | + //constraints.gridy += 1; |
---|
| 625 | + panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints); |
---|
| 626 | + crowdCB.setToolTipText("Used for crowds"); |
---|
| 627 | + crowdCB.addItemListener(this); |
---|
| 628 | + |
---|
| 629 | + //constraints.gridy += 1; |
---|
| 630 | + panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints); |
---|
| 631 | + smoothCB.setToolTipText("Snapping delay"); |
---|
| 632 | + smoothCB.addItemListener(this); |
---|
| 633 | + |
---|
| 634 | + //constraints.gridy += 1; |
---|
| 635 | + panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints); |
---|
| 636 | + slowCB.setToolTipText("Smooth interpolation"); |
---|
| 637 | + slowCB.addItemListener(this); |
---|
| 638 | + //constraints.gridy += 1; |
---|
| 639 | + panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints); |
---|
| 640 | + boxCB.setToolTipText("Display bounding boxes"); |
---|
| 641 | + boxCB.addItemListener(this); |
---|
| 642 | + //constraints.gridy += 1; |
---|
| 643 | + panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints); |
---|
| 644 | + zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel"); |
---|
| 645 | + zoomBoxCB.addItemListener(this); |
---|
| 646 | + |
---|
| 647 | +// constraints.gridy += 1; |
---|
| 648 | +// panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints); |
---|
| 649 | +// speakerMocapCB.addItemListener(this); |
---|
| 650 | + |
---|
| 651 | + if (false) |
---|
| 652 | + { |
---|
| 653 | + // handled in scripts |
---|
| 654 | + //constraints.gridy += 1; |
---|
| 655 | + panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA)); //, constraints); |
---|
| 656 | + speakerCameraCB.addItemListener(this); |
---|
| 657 | + |
---|
| 658 | + //constraints.gridy += 1; |
---|
| 659 | + panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS)); //, constraints); |
---|
| 660 | + speakerFocusCB.addItemListener(this); |
---|
| 661 | + |
---|
| 662 | + //constraints.gridy += 1; |
---|
| 663 | + panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints); |
---|
| 664 | + smoothfocusCB.addItemListener(this); |
---|
| 665 | + } |
---|
| 666 | + |
---|
| 667 | +//constraints.gridx += 1; |
---|
| 668 | +//panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints); |
---|
| 669 | +// debugCB.addItemListener(this); |
---|
| 670 | + |
---|
| 671 | + //constraints.gridy += 1; |
---|
| 672 | + panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints); |
---|
| 673 | + oeilCB.addItemListener(this); |
---|
| 674 | + |
---|
| 675 | + //constraints.gridy += 1; |
---|
| 676 | + panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints); |
---|
| 677 | + lookAtCB.setToolTipText("Look-at target"); |
---|
| 678 | + lookAtCB.addItemListener(this); |
---|
| 679 | + |
---|
| 680 | + } |
---|
649 | 681 | |
---|
650 | 682 | void EditObject(Object3D obj) |
---|
651 | 683 | { |
---|
.. | .. |
---|
676 | 708 | JCheckBox fastCB; |
---|
677 | 709 | JCheckBox slowCB; |
---|
678 | 710 | JCheckBox boxCB; |
---|
| 711 | + JCheckBox zoomBoxCB; |
---|
679 | 712 | JCheckBox trackCB; |
---|
680 | 713 | JCheckBox smoothfocusCB; |
---|
681 | 714 | // JCheckBox speakerMocapCB; |
---|
.. | .. |
---|
755 | 788 | Recompile(); |
---|
756 | 789 | cameraView.repaint(); |
---|
757 | 790 | // refreshContents(); |
---|
| 791 | + } |
---|
| 792 | + else if(e.getSource() == zoomBoxCB) |
---|
| 793 | + { |
---|
| 794 | + cameraView.ToggleZoomBoxMode(); |
---|
758 | 795 | } |
---|
759 | 796 | else if(e.getSource() == smoothfocusCB) |
---|
760 | 797 | { |
---|
.. | .. |
---|
1120 | 1157 | resetParentItem.addActionListener(this); |
---|
1121 | 1158 | repairParentItem = menu.add(new MenuItem("Repair Parent")); |
---|
1122 | 1159 | repairParentItem.addActionListener(this); |
---|
| 1160 | + repairShadowItem = menu.add(new MenuItem("Repair Shadow")); |
---|
| 1161 | + repairShadowItem.addActionListener(this); |
---|
1123 | 1162 | menu.add(invariantsItem = new MenuItem("Invariants")); |
---|
1124 | 1163 | invariantsItem.addActionListener(this); |
---|
1125 | 1164 | menu.add(recompileItem = new MenuItem("Recompile")); |
---|
.. | .. |
---|
1480 | 1519 | // |
---|
1481 | 1520 | public void actionPerformed(ActionEvent event) // , Object arg) |
---|
1482 | 1521 | { |
---|
| 1522 | + Object source = event.getSource(); |
---|
1483 | 1523 | /* |
---|
1484 | 1524 | if (event.getSource() == nameField) |
---|
1485 | 1525 | { |
---|
.. | .. |
---|
1491 | 1531 | } |
---|
1492 | 1532 | else |
---|
1493 | 1533 | */ |
---|
1494 | | - if (event.getSource() == lookAtItem || event.getSource() == lookFromItem) |
---|
| 1534 | + if (source == lookAtItem || source == lookFromItem) |
---|
1495 | 1535 | { |
---|
1496 | 1536 | ScreenFit(); |
---|
1497 | 1537 | } else |
---|
1498 | | - if (event.getSource() == switchItem) |
---|
| 1538 | + if (source == switchItem) |
---|
1499 | 1539 | { |
---|
1500 | 1540 | cVector v1 = new cVector(); |
---|
1501 | 1541 | cVector v2 = new cVector(); |
---|
.. | .. |
---|
1504 | 1544 | objEditor.cameraView.renderCamera.setAim(v2, v1); |
---|
1505 | 1545 | objEditor.cameraView.repaint(); |
---|
1506 | 1546 | } else |
---|
1507 | | - if (event.getSource() == rectoidItem) |
---|
| 1547 | + if (source == rectoidItem) |
---|
1508 | 1548 | { |
---|
1509 | 1549 | makeSomething(new Box()); |
---|
1510 | 1550 | } else |
---|
1511 | | - if (event.getSource() == particleItem) |
---|
| 1551 | + if (source == particleItem) |
---|
1512 | 1552 | { |
---|
1513 | 1553 | ParticleNode particleGeom = new ParticleNode("Particles", 1000); //, particleType); |
---|
1514 | 1554 | ParticleController particleController = new ParticleController(particleGeom); |
---|
.. | .. |
---|
1529 | 1569 | applyExample(particleGeom, "SMOKE"); |
---|
1530 | 1570 | makeSomething(particleGeom); |
---|
1531 | 1571 | } else |
---|
1532 | | - if (event.getSource() == ragdollItem || event.getSource() == ragdoll2Item) |
---|
| 1572 | + if (source == ragdollItem || source == ragdoll2Item) |
---|
1533 | 1573 | { |
---|
1534 | | - GenericJoint ragdoll = new GenericJoint(event.getSource() == ragdollItem); |
---|
| 1574 | + GenericJoint ragdoll = new GenericJoint(source == ragdollItem); |
---|
1535 | 1575 | |
---|
1536 | 1576 | ragdoll.toParent = LA.newMatrix(); |
---|
1537 | 1577 | ragdoll.fromParent = LA.newMatrix(); |
---|
.. | .. |
---|
1549 | 1589 | } else |
---|
1550 | 1590 | /* |
---|
1551 | 1591 | */ |
---|
1552 | | - if (event.getSource() == heightFieldItem) |
---|
| 1592 | + if (source == heightFieldItem) |
---|
1553 | 1593 | { |
---|
1554 | 1594 | Object3D obj = new Object3D(); |
---|
1555 | 1595 | |
---|
.. | .. |
---|
1587 | 1627 | |
---|
1588 | 1628 | makeSomething(obj); |
---|
1589 | 1629 | } else |
---|
1590 | | - if (event.getSource() == gridItem) |
---|
| 1630 | + if (source == gridItem) |
---|
1591 | 1631 | { |
---|
1592 | 1632 | makeSomething(new Grid()); |
---|
1593 | 1633 | } else |
---|
1594 | | - if (event.getSource() == ellipsoidItem) |
---|
| 1634 | + if (source == ellipsoidItem) |
---|
1595 | 1635 | { |
---|
1596 | 1636 | makeSomething(new Sphere()); |
---|
1597 | 1637 | } else |
---|
1598 | | - if (event.getSource() == coneItem) |
---|
| 1638 | + if (source == coneItem) |
---|
1599 | 1639 | { |
---|
1600 | 1640 | makeSomething(new Cone()); |
---|
1601 | 1641 | } else |
---|
1602 | | - if (event.getSource() == torusItem) |
---|
| 1642 | + if (source == torusItem) |
---|
1603 | 1643 | { |
---|
1604 | 1644 | makeSomething(new Torus()); |
---|
1605 | 1645 | } else |
---|
1606 | | - if (event.getSource() == superItem) |
---|
| 1646 | + if (source == superItem) |
---|
1607 | 1647 | { |
---|
1608 | 1648 | makeSomething(new Superellipsoid()); |
---|
1609 | 1649 | } else |
---|
1610 | | - if (event.getSource() == kleinItem) |
---|
| 1650 | + if (source == kleinItem) |
---|
1611 | 1651 | { |
---|
1612 | 1652 | makeSomething(new Klein()); |
---|
1613 | 1653 | } else |
---|
1614 | | - if (event.getSource() == blobItem) |
---|
| 1654 | + if (source == blobItem) |
---|
1615 | 1655 | { |
---|
1616 | 1656 | Blob blob = new Blob(); |
---|
1617 | 1657 | BlobComponent comp = new BlobComponent(); |
---|
.. | .. |
---|
1619 | 1659 | //blob.retile(); |
---|
1620 | 1660 | makeSomething(blob); |
---|
1621 | 1661 | } else |
---|
1622 | | - if (event.getSource() == latheItem) |
---|
| 1662 | + if (source == latheItem) |
---|
1623 | 1663 | { |
---|
1624 | 1664 | makeSomething(new Lathe()); |
---|
1625 | 1665 | } else |
---|
1626 | | - if (event.getSource() == bezierItem) |
---|
| 1666 | + if (source == bezierItem) |
---|
1627 | 1667 | { |
---|
1628 | 1668 | makeSomething(new BezierSurface()); |
---|
1629 | 1669 | } else |
---|
1630 | | - if (event.getSource() == checkerItem) |
---|
| 1670 | + if (source == checkerItem) |
---|
1631 | 1671 | { |
---|
1632 | 1672 | /* |
---|
1633 | 1673 | Object3D obj = new BezierSurface(5,8); |
---|
.. | .. |
---|
1642 | 1682 | */ |
---|
1643 | 1683 | makeSomething(new Checker()); |
---|
1644 | 1684 | } else |
---|
1645 | | - if (event.getSource() == meshItem) |
---|
| 1685 | + if (source == meshItem) |
---|
1646 | 1686 | { |
---|
1647 | 1687 | Object3D itemtomake = new Object3D(); |
---|
1648 | 1688 | Object3D child; |
---|
.. | .. |
---|
1663 | 1703 | makeSomething(child); |
---|
1664 | 1704 | } |
---|
1665 | 1705 | } else |
---|
1666 | | - if (event.getSource() == springItem) |
---|
| 1706 | + if (source == springItem) |
---|
1667 | 1707 | { |
---|
1668 | 1708 | cSpring s = new cSpring(); |
---|
1669 | 1709 | s.setup(); |
---|
1670 | 1710 | makeSomething(s); |
---|
1671 | 1711 | } else |
---|
1672 | | - if (event.getSource() == flagItem) |
---|
| 1712 | + if (source == flagItem) |
---|
1673 | 1713 | { |
---|
1674 | 1714 | cSpring s = new cFlag(); |
---|
1675 | 1715 | s.setup(); |
---|
1676 | 1716 | makeSomething(s); |
---|
1677 | 1717 | } else |
---|
1678 | | - if (event.getSource() == lightItem) |
---|
| 1718 | + if (source == lightItem) |
---|
1679 | 1719 | { |
---|
1680 | 1720 | makeSomething(new Light()); |
---|
1681 | 1721 | } else |
---|
1682 | | - if (event.getSource() == csgItem) |
---|
| 1722 | + if (source == csgItem) |
---|
1683 | 1723 | { |
---|
1684 | 1724 | group(new CSG()); |
---|
1685 | 1725 | } else |
---|
1686 | | - if (event.getSource() == templateItem) |
---|
| 1726 | + if (source == templateItem) |
---|
1687 | 1727 | { |
---|
1688 | 1728 | group(new cTemplate()); |
---|
1689 | 1729 | } else |
---|
1690 | | - if (event.getSource() == attributeItem) |
---|
| 1730 | + if (source == attributeItem) |
---|
1691 | 1731 | { |
---|
1692 | 1732 | makeSomething(new Attribute()); |
---|
1693 | 1733 | } else |
---|
1694 | | - if (event.getSource() == pointflowItem) |
---|
| 1734 | + if (source == pointflowItem) |
---|
1695 | 1735 | { |
---|
1696 | 1736 | makeSomething(new PointFlow()); |
---|
1697 | 1737 | } else |
---|
.. | .. |
---|
1703 | 1743 | } else |
---|
1704 | 1744 | */ |
---|
1705 | 1745 | |
---|
1706 | | - if (event.getSource() == superLoopItem) |
---|
| 1746 | + if (source == superLoopItem) |
---|
1707 | 1747 | { |
---|
1708 | 1748 | Composite g = new cGroup(); |
---|
1709 | 1749 | for (int i=0; i<15; i++) |
---|
.. | .. |
---|
1725 | 1765 | |
---|
1726 | 1766 | group(g); |
---|
1727 | 1767 | } else |
---|
1728 | | - if (event.getSource() == loopItem) |
---|
| 1768 | + if (source == loopItem) |
---|
1729 | 1769 | { |
---|
1730 | 1770 | Composite csg = new GroupLeaf(); |
---|
1731 | 1771 | csg.count = 5; |
---|
.. | .. |
---|
1734 | 1774 | csg.addChild(child); |
---|
1735 | 1775 | child.addChild(csg); |
---|
1736 | 1776 | } else |
---|
1737 | | - if (event.getSource() == doubleItem) |
---|
| 1777 | + if (source == doubleItem) |
---|
1738 | 1778 | { |
---|
1739 | 1779 | Composite csg = new GroupLeaf(); |
---|
1740 | 1780 | csg.count = 5; |
---|
.. | .. |
---|
1746 | 1786 | csg.addChild(child); |
---|
1747 | 1787 | child.addChild(csg); |
---|
1748 | 1788 | } else |
---|
1749 | | - if (event.getSource() == tripleItem) |
---|
| 1789 | + if (source == tripleItem) |
---|
1750 | 1790 | { |
---|
1751 | 1791 | Composite csg = new GroupLeaf(); |
---|
1752 | 1792 | csg.count = 4; |
---|
.. | .. |
---|
1762 | 1802 | child.addChild(csg); |
---|
1763 | 1803 | } else |
---|
1764 | 1804 | |
---|
1765 | | - if (event.getSource() == importGFDItem) |
---|
| 1805 | + if (source == importGFDItem) |
---|
1766 | 1806 | { |
---|
1767 | 1807 | ImportGFD(); |
---|
1768 | 1808 | } else |
---|
1769 | | - if (event.getSource() == importVRMLX3DItem) |
---|
| 1809 | + if (source == importVRMLX3DItem) |
---|
1770 | 1810 | { |
---|
1771 | 1811 | ImportVRMLX3D(); |
---|
1772 | 1812 | } else |
---|
1773 | | - if (event.getSource() == import3DSItem) |
---|
| 1813 | + if (source == import3DSItem) |
---|
1774 | 1814 | { |
---|
1775 | 1815 | objEditor.ImportJME(new com.jmex.model.converters.MaxToJme(), "3ds", "Import 3DS"); |
---|
1776 | 1816 | } else |
---|
1777 | | - if (event.getSource() == importOBJItem) |
---|
| 1817 | + if (source == importOBJItem) |
---|
1778 | 1818 | { |
---|
1779 | 1819 | objEditor.ImportJME(new com.jmex.model.converters.ObjToJme(), "obj", "Import OBJ"); |
---|
1780 | 1820 | } else |
---|
1781 | | - if (event.getSource() == computeAOItem) |
---|
| 1821 | + if (source == computeAOItem) |
---|
1782 | 1822 | { |
---|
1783 | | - CameraPane.drawMode = CameraPane.OCCLUSION; |
---|
1784 | | - CameraPane.theRenderer.repaint(); |
---|
| 1823 | + Globals.drawMode = CameraPane.OCCLUSION; |
---|
| 1824 | + Globals.theRenderer.repaint(); |
---|
1785 | 1825 | } else |
---|
1786 | | - if (event.getSource() == recompileItem) |
---|
| 1826 | + if (source == recompileItem) |
---|
1787 | 1827 | { |
---|
1788 | 1828 | Recompile(); |
---|
1789 | 1829 | refreshContents(); |
---|
1790 | 1830 | } else |
---|
1791 | | - if (event.getSource() == editScriptItem) |
---|
| 1831 | + if (source == editScriptItem) |
---|
1792 | 1832 | { |
---|
1793 | 1833 | OpenDialog(); |
---|
1794 | 1834 | refreshContents(); |
---|
1795 | 1835 | } else |
---|
1796 | | - if (event.getSource() == invariantsItem) |
---|
| 1836 | + if (source == invariantsItem) |
---|
1797 | 1837 | { |
---|
1798 | 1838 | System.out.println("Invariants:"); |
---|
1799 | 1839 | GrafreeD.grafreeD.universe.invariants(); |
---|
1800 | 1840 | } else |
---|
1801 | | - if (event.getSource() == memoryItem) |
---|
| 1841 | + if (source == memoryItem) |
---|
1802 | 1842 | { |
---|
1803 | 1843 | //System.out.println("Invariants:"); |
---|
1804 | 1844 | PrintMemory(); |
---|
1805 | 1845 | } else |
---|
1806 | | - if (event.getSource() == pathItem) |
---|
| 1846 | + if (source == pathItem) |
---|
1807 | 1847 | { |
---|
1808 | 1848 | PrintPath(); |
---|
1809 | 1849 | } else |
---|
1810 | | - if (event.getSource() == analyzeItem) |
---|
| 1850 | + if (source == analyzeItem) |
---|
1811 | 1851 | { |
---|
1812 | 1852 | AnalyzeObject(); |
---|
1813 | 1853 | } else |
---|
1814 | | - if (event.getSource() == dumpItem) |
---|
| 1854 | + if (source == dumpItem) |
---|
1815 | 1855 | { |
---|
1816 | 1856 | DumpObject(); |
---|
1817 | 1857 | } else |
---|
1818 | | - if (event.getSource() == screenfitButton) |
---|
| 1858 | + if (source == screenfitButton) |
---|
1819 | 1859 | { |
---|
1820 | 1860 | //Reload(lastConverter, lastFilename, true); |
---|
1821 | 1861 | ScreenFit(); |
---|
1822 | 1862 | } else |
---|
1823 | | - if (event.getSource() == screenfitpointButton) |
---|
| 1863 | + if (source == screenfitpointButton) |
---|
1824 | 1864 | { |
---|
1825 | 1865 | //Reload(lastConverter, lastFilename, true); |
---|
1826 | 1866 | ScreenFitPoint(); |
---|
1827 | 1867 | } else |
---|
1828 | | - if (event.getSource() == snapobjectButton) |
---|
| 1868 | + if (source == snapobjectButton) |
---|
1829 | 1869 | { |
---|
1830 | 1870 | //Reload(lastConverter, lastFilename, true); |
---|
1831 | 1871 | SnapObject(); |
---|
.. | .. |
---|
1836 | 1876 | // Recompile(); |
---|
1837 | 1877 | // refreshContents(); |
---|
1838 | 1878 | // } else |
---|
1839 | | - if (event.getSource() == gcButton) |
---|
| 1879 | + if (source == gcButton) |
---|
1840 | 1880 | { |
---|
1841 | 1881 | System.out.println("Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory()); |
---|
1842 | 1882 | System.gc(); |
---|
1843 | 1883 | System.out.println("GC Memory (F/T/M) : " + Runtime.getRuntime().freeMemory() + "/" + Runtime.getRuntime().totalMemory() + "/" + Runtime.getRuntime().maxMemory()); |
---|
1844 | 1884 | } else |
---|
1845 | | - if (event.getSource() == editLeafItem) |
---|
| 1885 | + if (source == editLeafItem) |
---|
1846 | 1886 | { |
---|
1847 | 1887 | Object3D obj; |
---|
1848 | 1888 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
.. | .. |
---|
1856 | 1896 | } |
---|
1857 | 1897 | refreshContents(true); |
---|
1858 | 1898 | } else |
---|
1859 | | - if (event.getSource() == openWindowItem) |
---|
| 1899 | + if (source == openWindowItem) |
---|
1860 | 1900 | { |
---|
1861 | 1901 | EditSelection(true); |
---|
1862 | 1902 | } else |
---|
1863 | | - if (event.getSource() == cutItem || event.getSource() == clearButton) |
---|
| 1903 | + if (source == cutItem || source == clearButton) |
---|
1864 | 1904 | { |
---|
1865 | 1905 | loadClipboard(true); |
---|
1866 | 1906 | } else |
---|
1867 | | - if (event.getSource() == duplicateItem) |
---|
| 1907 | + if (source == duplicateItem) |
---|
1868 | 1908 | { |
---|
1869 | 1909 | Object3D keep = GrafreeD.clipboard; |
---|
1870 | 1910 | loadClipboard(false); |
---|
1871 | 1911 | paste(false); |
---|
1872 | 1912 | GrafreeD.clipboard = keep; |
---|
1873 | 1913 | } else |
---|
1874 | | - if (event.getSource() == cloneItem) |
---|
| 1914 | + if (source == cloneItem) |
---|
1875 | 1915 | { |
---|
1876 | 1916 | CloneSelection(false); |
---|
1877 | 1917 | } else |
---|
1878 | | - if (event.getSource() == cloneSupportItem) |
---|
| 1918 | + if (source == cloneSupportItem) |
---|
1879 | 1919 | { |
---|
1880 | 1920 | CloneSelection(true); |
---|
1881 | 1921 | } else |
---|
1882 | | - if (event.getSource() == copyItem) |
---|
| 1922 | + if (source == copyItem) |
---|
1883 | 1923 | { |
---|
1884 | 1924 | loadClipboard(false); |
---|
1885 | 1925 | } else |
---|
1886 | | - if (event.getSource() == pasteItem) |
---|
| 1926 | + if (source == pasteItem) |
---|
1887 | 1927 | { |
---|
1888 | 1928 | paste(false); |
---|
1889 | 1929 | } else |
---|
1890 | | - if (event.getSource() == pasteLinkItem) |
---|
| 1930 | + if (source == pasteLinkItem) |
---|
1891 | 1931 | { |
---|
1892 | 1932 | pasteInto(false); |
---|
1893 | 1933 | } else |
---|
1894 | | - if (event.getSource() == pasteCloneItem) |
---|
| 1934 | + if (source == pasteCloneItem) |
---|
1895 | 1935 | { |
---|
1896 | 1936 | pasteInto(true); |
---|
1897 | 1937 | } else |
---|
1898 | | - if (event.getSource() == pasteExpandItem) |
---|
| 1938 | + if (source == pasteExpandItem) |
---|
1899 | 1939 | { |
---|
1900 | 1940 | paste(true); |
---|
1901 | 1941 | } else |
---|
1902 | | - if (event.getSource() == synchronizeItem) |
---|
| 1942 | + if (source == synchronizeItem) |
---|
1903 | 1943 | { |
---|
1904 | 1944 | Overwrite(Object3D.TRANSFORM); |
---|
1905 | 1945 | } else |
---|
1906 | | - if (event.getSource() == overwriteNameItem) |
---|
| 1946 | + if (source == overwriteNameItem) |
---|
1907 | 1947 | { |
---|
1908 | 1948 | Overwrite(Object3D.NAME); |
---|
1909 | 1949 | } else |
---|
1910 | | - if (event.getSource() == overwriteUVItem) |
---|
| 1950 | + if (source == overwriteUVItem) |
---|
1911 | 1951 | { |
---|
1912 | 1952 | Overwrite(Object3D.UV); |
---|
1913 | 1953 | } else |
---|
1914 | | - if (event.getSource() == overwriteMatItem) |
---|
| 1954 | + if (source == overwriteMatItem) |
---|
1915 | 1955 | { |
---|
1916 | 1956 | /* july 2015 |
---|
1917 | 1957 | if ((dropAttributes & Object3D.TEXTURE) == 0) |
---|
.. | .. |
---|
1931 | 1971 | |
---|
1932 | 1972 | Overwrite(dropAttributes); |
---|
1933 | 1973 | } |
---|
1934 | | - if (event.getSource() == overwriteGeoItem) |
---|
| 1974 | + if (source == overwriteGeoItem) |
---|
1935 | 1975 | { |
---|
1936 | 1976 | Overwrite(Object3D.GEOMETRY); |
---|
1937 | 1977 | // if (/*group.selection.size() == 1 &&*/ GrafreeD.clipboard.size() == 1) |
---|
.. | .. |
---|
1948 | 1988 | // refreshContents(); |
---|
1949 | 1989 | // } |
---|
1950 | 1990 | } else |
---|
1951 | | - if (event.getSource() == generateMeshItem) |
---|
| 1991 | + if (source == generateMeshItem) |
---|
1952 | 1992 | { |
---|
1953 | 1993 | //if (group.selection.size() == 1) |
---|
1954 | 1994 | // for (int i=0; i<group.selection.size(); i++) |
---|
.. | .. |
---|
1959 | 1999 | ResetModel(); |
---|
1960 | 2000 | refreshContents(); |
---|
1961 | 2001 | } else |
---|
1962 | | - if (event.getSource() == extractGeometriesItem) |
---|
| 2002 | + if (source == extractGeometriesItem) |
---|
1963 | 2003 | { |
---|
1964 | 2004 | boolean one = false; |
---|
1965 | 2005 | |
---|
.. | .. |
---|
1986 | 2026 | ResetModel(); |
---|
1987 | 2027 | refreshContents(); |
---|
1988 | 2028 | } else |
---|
1989 | | - if (event.getSource() == cloneGeometriesItem) |
---|
| 2029 | + if (source == cloneGeometriesItem) |
---|
1990 | 2030 | { |
---|
1991 | 2031 | boolean one = false; |
---|
1992 | 2032 | |
---|
.. | .. |
---|
2012 | 2052 | ResetModel(); |
---|
2013 | 2053 | refreshContents(); |
---|
2014 | 2054 | } else |
---|
2015 | | - if (event.getSource() == shareGeometriesItem) |
---|
| 2055 | + if (source == shareGeometriesItem) |
---|
2016 | 2056 | { |
---|
2017 | 2057 | boolean one = false; |
---|
2018 | 2058 | |
---|
.. | .. |
---|
2042 | 2082 | refreshContents(); |
---|
2043 | 2083 | } |
---|
2044 | 2084 | } else |
---|
2045 | | - if (event.getSource() == mergeGeometriesItem) |
---|
| 2085 | + if (source == mergeGeometriesItem) |
---|
2046 | 2086 | { |
---|
2047 | 2087 | boolean one = false; |
---|
2048 | 2088 | |
---|
.. | .. |
---|
2072 | 2112 | ResetModel(); |
---|
2073 | 2113 | refreshContents(); |
---|
2074 | 2114 | } else |
---|
2075 | | - if (event.getSource() == linkverticesItem) |
---|
| 2115 | + if (source == linkverticesItem) |
---|
2076 | 2116 | { |
---|
2077 | 2117 | // if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1) |
---|
2078 | 2118 | // { |
---|
.. | .. |
---|
2092 | 2132 | if (content instanceof cGroup && ((cGroup)content).transientlink ) |
---|
2093 | 2133 | content = ((cGroup)content).get(0); |
---|
2094 | 2134 | |
---|
2095 | | - CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR)); |
---|
| 2135 | + Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.WAIT_CURSOR)); |
---|
2096 | 2136 | for (int i=0; i<group.selection.size(); i++) |
---|
2097 | 2137 | { |
---|
2098 | 2138 | boolean random = CameraPane.RANDOM; |
---|
.. | .. |
---|
2101 | 2141 | // group.selection.get(i).setMasterThis(content); // should be identity |
---|
2102 | 2142 | CameraPane.RANDOM = random; |
---|
2103 | 2143 | } |
---|
2104 | | - CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR)); |
---|
| 2144 | + Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR)); |
---|
2105 | 2145 | refreshContents(); |
---|
2106 | 2146 | } |
---|
2107 | 2147 | } else |
---|
2108 | | - if (event.getSource() == resetsupportItem) |
---|
| 2148 | + if (source == resetsupportItem) |
---|
2109 | 2149 | { |
---|
2110 | 2150 | for (int i=0; i<group.selection.size(); i++) |
---|
2111 | 2151 | { |
---|
.. | .. |
---|
2117 | 2157 | |
---|
2118 | 2158 | refreshContents(); |
---|
2119 | 2159 | } else |
---|
2120 | | - if (event.getSource() == relinkverticesItem) |
---|
| 2160 | + if (source == relinkverticesItem) |
---|
2121 | 2161 | { |
---|
2122 | 2162 | boolean random = CameraPane.RANDOM; |
---|
2123 | 2163 | CameraPane.RANDOM = false; // parse all random nodes |
---|
.. | .. |
---|
2126 | 2166 | |
---|
2127 | 2167 | refreshContents(); |
---|
2128 | 2168 | } else |
---|
2129 | | - if (event.getSource() == resetreferencesItem) |
---|
| 2169 | + if (source == resetreferencesItem) |
---|
2130 | 2170 | { |
---|
2131 | 2171 | for (int i=0; i<group.selection.size(); i++) |
---|
2132 | 2172 | { |
---|
.. | .. |
---|
2135 | 2175 | |
---|
2136 | 2176 | refreshContents(); |
---|
2137 | 2177 | } else |
---|
2138 | | - if (event.getSource() == setMasterItem) |
---|
| 2178 | + if (source == setMasterItem) |
---|
2139 | 2179 | { |
---|
2140 | 2180 | if (group.selection.size() == 1 && GrafreeD.clipboard.size() == 1) |
---|
2141 | 2181 | { |
---|
.. | .. |
---|
2148 | 2188 | refreshContents(); |
---|
2149 | 2189 | } |
---|
2150 | 2190 | } else |
---|
2151 | | - if (event.getSource() == poseMeshItem) |
---|
| 2191 | + if (source == poseMeshItem) |
---|
2152 | 2192 | { |
---|
2153 | 2193 | if (group.selection.size() == 1) |
---|
2154 | 2194 | { |
---|
.. | .. |
---|
2167 | 2207 | } |
---|
2168 | 2208 | |
---|
2169 | 2209 | } else |
---|
2170 | | - if (event.getSource() == revertMeshItem) |
---|
| 2210 | + if (source == revertMeshItem) |
---|
2171 | 2211 | { |
---|
2172 | 2212 | RevertMeshes(); |
---|
2173 | 2213 | } else |
---|
2174 | | - if (event.getSource() == resetMeshItem) |
---|
| 2214 | + if (source == resetMeshItem) |
---|
2175 | 2215 | { |
---|
2176 | 2216 | ResetAll(); |
---|
2177 | 2217 | } else |
---|
2178 | | - if (event.getSource() == stepAllItem) |
---|
| 2218 | + if (source == stepAllItem) |
---|
2179 | 2219 | { |
---|
2180 | 2220 | StepAll(); |
---|
2181 | 2221 | } else |
---|
2182 | | - if (event.getSource() == clearItem) // || event.getSource() == clearButton) |
---|
| 2222 | + if (source == clearItem) // || event.getSource() == clearButton) |
---|
2183 | 2223 | { |
---|
2184 | 2224 | //int indices[] = jList.getSelectedIndices(); |
---|
2185 | 2225 | //for (int i = indices.length - 1; i >= 0; i--) |
---|
.. | .. |
---|
2187 | 2227 | |
---|
2188 | 2228 | ClearSelection(false); |
---|
2189 | 2229 | } else |
---|
2190 | | - if (event.getSource() == clearAllItem) |
---|
| 2230 | + if (source == clearAllItem) |
---|
2191 | 2231 | { |
---|
2192 | 2232 | ClearSelection(true); |
---|
2193 | 2233 | } else |
---|
2194 | | - if (event.getSource() == grabItem) |
---|
| 2234 | + if (source == grabItem) |
---|
2195 | 2235 | { |
---|
2196 | 2236 | group(new cGroup(), true); |
---|
2197 | 2237 | } else |
---|
2198 | | - if (event.getSource() == hideItem) |
---|
| 2238 | + if (source == hideItem) |
---|
2199 | 2239 | { |
---|
2200 | 2240 | group(new HiddenObject()); |
---|
2201 | 2241 | } else |
---|
2202 | | - if (event.getSource() == frontItem) |
---|
| 2242 | + if (source == frontItem) |
---|
2203 | 2243 | { |
---|
2204 | 2244 | front(); |
---|
2205 | 2245 | } else |
---|
2206 | | - if (event.getSource() == backItem) |
---|
| 2246 | + if (source == backItem) |
---|
2207 | 2247 | { |
---|
2208 | 2248 | back(); |
---|
2209 | 2249 | } else |
---|
2210 | | - if (event.getSource() == cameraItem) |
---|
| 2250 | + if (source == cameraItem) |
---|
2211 | 2251 | { |
---|
2212 | 2252 | makeSomething(new Camera()); |
---|
2213 | 2253 | } else |
---|
2214 | | - if (event.getSource() == compositeItem) |
---|
| 2254 | + if (source == compositeItem) |
---|
2215 | 2255 | { |
---|
2216 | 2256 | group(new Composite()); |
---|
2217 | 2257 | } else |
---|
2218 | | - if (event.getSource() == randomItem) |
---|
| 2258 | + if (source == randomItem) |
---|
2219 | 2259 | { |
---|
2220 | 2260 | RandomNode random = new RandomNode(); |
---|
2221 | 2261 | group(random); |
---|
2222 | 2262 | if (random.size() > 0) |
---|
2223 | 2263 | random.name = random.get(0).name + "Rnd"; |
---|
2224 | 2264 | } else |
---|
2225 | | - if (event.getSource() == physicsItem) |
---|
| 2265 | + if (source == physicsItem) |
---|
2226 | 2266 | { |
---|
2227 | 2267 | group(new PhysicsNode()); |
---|
2228 | 2268 | } else |
---|
2229 | | - if (event.getSource() == frameselectorItem) |
---|
| 2269 | + if (source == frameselectorItem) |
---|
2230 | 2270 | { |
---|
2231 | 2271 | for (int i=0; i<group.selection.size(); i++) |
---|
2232 | 2272 | { |
---|
.. | .. |
---|
2238 | 2278 | ResetModel(); |
---|
2239 | 2279 | refreshContents(); |
---|
2240 | 2280 | } else |
---|
2241 | | - if (event.getSource() == switchGeoItem) |
---|
| 2281 | + if (source == switchGeoItem) |
---|
2242 | 2282 | { |
---|
2243 | 2283 | for (int i=0; i<group.selection.size(); i++) |
---|
2244 | 2284 | { |
---|
.. | .. |
---|
2250 | 2290 | ResetModel(); |
---|
2251 | 2291 | refreshContents(); |
---|
2252 | 2292 | } else |
---|
2253 | | - if (event.getSource() == switchTransfoItem) |
---|
| 2293 | + if (source == switchTransfoItem) |
---|
2254 | 2294 | { |
---|
2255 | 2295 | for (int i=0; i<group.selection.size(); i++) |
---|
2256 | 2296 | { |
---|
.. | .. |
---|
2262 | 2302 | ResetModel(); |
---|
2263 | 2303 | refreshContents(); |
---|
2264 | 2304 | } else |
---|
2265 | | - if (event.getSource() == morphItem) |
---|
| 2305 | + if (source == morphItem) |
---|
2266 | 2306 | { |
---|
2267 | 2307 | for (int i=0; i<group.selection.size(); i++) |
---|
2268 | 2308 | { |
---|
.. | .. |
---|
2274 | 2314 | ResetModel(); |
---|
2275 | 2315 | refreshContents(); |
---|
2276 | 2316 | } else |
---|
2277 | | - if (event.getSource() == scriptNodeItem) |
---|
| 2317 | + if (source == scriptNodeItem) |
---|
2278 | 2318 | { |
---|
2279 | 2319 | boolean atleastone = false; |
---|
2280 | 2320 | |
---|
.. | .. |
---|
2313 | 2353 | } |
---|
2314 | 2354 | } |
---|
2315 | 2355 | } else |
---|
2316 | | - if (event.getSource() == linkerItem) |
---|
| 2356 | + if (source == linkerItem) |
---|
2317 | 2357 | { |
---|
2318 | 2358 | group(new cLinker()); |
---|
2319 | 2359 | } else |
---|
2320 | | - if (event.getSource() == textureItem) |
---|
| 2360 | + if (source == textureItem) |
---|
2321 | 2361 | { |
---|
2322 | 2362 | group(new TextureNode()); |
---|
2323 | 2363 | } else |
---|
2324 | | - if (event.getSource() == billboardItem) |
---|
| 2364 | + if (source == billboardItem) |
---|
2325 | 2365 | { |
---|
2326 | 2366 | group(new BillboardNode()); |
---|
2327 | 2367 | } else |
---|
2328 | | - if (event.getSource() == shadowXItem) |
---|
| 2368 | + if (source == shadowXItem) |
---|
2329 | 2369 | { |
---|
2330 | 2370 | CastShadow(0); |
---|
2331 | 2371 | } else |
---|
2332 | | - if (event.getSource() == shadowYItem) |
---|
| 2372 | + if (source == shadowYItem) |
---|
2333 | 2373 | { |
---|
2334 | 2374 | CastShadow(1); |
---|
2335 | 2375 | } else |
---|
2336 | | - if (event.getSource() == shadowZItem) |
---|
| 2376 | + if (source == shadowZItem) |
---|
2337 | 2377 | { |
---|
2338 | 2378 | CastShadow(2); |
---|
2339 | 2379 | } else |
---|
2340 | | - if (event.getSource() == ungroupItem) |
---|
| 2380 | + if (source == ungroupItem) |
---|
2341 | 2381 | { |
---|
2342 | 2382 | //ungroup(); |
---|
2343 | 2383 | for (int i=0; i<group.selection.size(); i++) |
---|
.. | .. |
---|
2349 | 2389 | |
---|
2350 | 2390 | refreshContents(); |
---|
2351 | 2391 | } else |
---|
2352 | | - if (event.getSource() == genUVItem) |
---|
| 2392 | + if (source == genUVItem) |
---|
2353 | 2393 | { |
---|
2354 | 2394 | GenUV(); |
---|
2355 | 2395 | } else |
---|
2356 | | - if (event.getSource() == genNormalsCADItem) |
---|
| 2396 | + if (source == genNormalsCADItem) |
---|
2357 | 2397 | { |
---|
2358 | 2398 | GenNormals(true); |
---|
2359 | 2399 | } else |
---|
2360 | | - if (event.getSource() == genNormalsMESHItem) |
---|
| 2400 | + if (source == genNormalsMESHItem) |
---|
2361 | 2401 | { |
---|
2362 | 2402 | GenNormals(true); // TODO |
---|
2363 | 2403 | } else |
---|
2364 | | - if (event.getSource() == genNormalsORGANItem) |
---|
| 2404 | + if (source == genNormalsORGANItem) |
---|
2365 | 2405 | { |
---|
2366 | 2406 | GenNormals(false); |
---|
2367 | 2407 | } else |
---|
2368 | | - if (event.getSource() == genNormalsMINEItem) |
---|
| 2408 | + if (source == genNormalsMINEItem) |
---|
2369 | 2409 | { |
---|
2370 | 2410 | GenNormalsMINE(); |
---|
2371 | 2411 | } else |
---|
2372 | | - if (event.getSource() == stripifyItem) |
---|
| 2412 | + if (source == stripifyItem) |
---|
2373 | 2413 | { |
---|
2374 | 2414 | Stripify(); |
---|
2375 | 2415 | } else |
---|
2376 | | - if (event.getSource() == unstripifyItem) |
---|
| 2416 | + if (source == unstripifyItem) |
---|
2377 | 2417 | { |
---|
2378 | 2418 | Unstripify(); |
---|
2379 | 2419 | } else |
---|
2380 | | - if (event.getSource() == trimItem) |
---|
| 2420 | + if (source == trimItem) |
---|
2381 | 2421 | { |
---|
2382 | 2422 | Trim(); |
---|
2383 | 2423 | } else |
---|
2384 | | - if (event.getSource() == untrimItem) |
---|
| 2424 | + if (source == untrimItem) |
---|
2385 | 2425 | { |
---|
2386 | 2426 | Untrim(); |
---|
2387 | 2427 | } else |
---|
2388 | | - if (event.getSource() == clearColorsItem) |
---|
| 2428 | + if (source == clearColorsItem) |
---|
2389 | 2429 | { |
---|
2390 | 2430 | ClearColors(); |
---|
2391 | 2431 | } else |
---|
2392 | | - if (event.getSource() == clearMaterialsItem) |
---|
| 2432 | + if (source == clearMaterialsItem) |
---|
2393 | 2433 | { |
---|
2394 | 2434 | ClearMaterials(); |
---|
2395 | 2435 | } else |
---|
2396 | | - if (event.getSource() == liveleavesItem) |
---|
| 2436 | + if (source == liveleavesItem) |
---|
2397 | 2437 | { |
---|
2398 | 2438 | LiveLeaves(true); |
---|
2399 | 2439 | } else |
---|
2400 | | - if (event.getSource() == unliveleavesItem) |
---|
| 2440 | + if (source == unliveleavesItem) |
---|
2401 | 2441 | { |
---|
2402 | 2442 | LiveLeaves(false); |
---|
2403 | 2443 | } else |
---|
2404 | | - if (event.getSource() == supportleavesItem) |
---|
| 2444 | + if (source == supportleavesItem) |
---|
2405 | 2445 | { |
---|
2406 | 2446 | SupportLeaves(true); |
---|
2407 | 2447 | } else |
---|
2408 | | - if (event.getSource() == unsupportleavesItem) |
---|
| 2448 | + if (source == unsupportleavesItem) |
---|
2409 | 2449 | { |
---|
2410 | 2450 | SupportLeaves(false); |
---|
2411 | 2451 | } else |
---|
2412 | | - if (event.getSource() == hideleavesItem) |
---|
| 2452 | + if (source == hideleavesItem) |
---|
2413 | 2453 | { |
---|
2414 | 2454 | HideLeaves(true); |
---|
2415 | 2455 | } else |
---|
2416 | | - if (event.getSource() == showleavesItem) |
---|
| 2456 | + if (source == showleavesItem) |
---|
2417 | 2457 | { |
---|
2418 | 2458 | HideLeaves(false); |
---|
2419 | 2459 | } else |
---|
2420 | | - if (event.getSource() == markleavesItem) |
---|
| 2460 | + if (source == markleavesItem) |
---|
2421 | 2461 | { |
---|
2422 | 2462 | MarkLeaves(true); |
---|
2423 | 2463 | } else |
---|
2424 | | - if (event.getSource() == unmarkleavesItem) |
---|
| 2464 | + if (source == unmarkleavesItem) |
---|
2425 | 2465 | { |
---|
2426 | 2466 | MarkLeaves(false); |
---|
2427 | 2467 | } else |
---|
2428 | | - if (event.getSource() == flipVItem) |
---|
| 2468 | + if (source == flipVItem) |
---|
2429 | 2469 | { |
---|
2430 | 2470 | FlipV(true); |
---|
2431 | 2471 | } else |
---|
2432 | | - if (event.getSource() == unflipVItem) |
---|
| 2472 | + if (source == unflipVItem) |
---|
2433 | 2473 | { |
---|
2434 | 2474 | FlipV(false); |
---|
2435 | 2475 | } else |
---|
2436 | | - if (event.getSource() == lowTexturesItem) |
---|
| 2476 | + if (source == lowTexturesItem) |
---|
2437 | 2477 | { |
---|
2438 | 2478 | SetTexRes(0); |
---|
2439 | 2479 | } else |
---|
2440 | | - if (event.getSource() == normalTexturesItem) |
---|
| 2480 | + if (source == normalTexturesItem) |
---|
2441 | 2481 | { |
---|
2442 | 2482 | SetTexRes(1); |
---|
2443 | 2483 | } else |
---|
2444 | | - if (event.getSource() == highTexturesItem) |
---|
| 2484 | + if (source == highTexturesItem) |
---|
2445 | 2485 | { |
---|
2446 | 2486 | SetTexRes(2); |
---|
2447 | 2487 | } else |
---|
2448 | | - if (event.getSource() == veryhighTexturesItem) |
---|
| 2488 | + if (source == veryhighTexturesItem) |
---|
2449 | 2489 | { |
---|
2450 | 2490 | SetTexRes(3); |
---|
2451 | 2491 | } else |
---|
2452 | | - if (event.getSource() == maxTexturesItem) |
---|
| 2492 | + if (source == maxTexturesItem) |
---|
2453 | 2493 | { |
---|
2454 | 2494 | SetTexRes(4); |
---|
2455 | 2495 | } else |
---|
2456 | | - if (event.getSource() == panoTexturesItem) |
---|
| 2496 | + if (source == panoTexturesItem) |
---|
2457 | 2497 | { |
---|
2458 | 2498 | SetTexRes(5); |
---|
2459 | 2499 | } else |
---|
2460 | | - if (event.getSource() == reverseNormalsItem) |
---|
| 2500 | + if (source == reverseNormalsItem) |
---|
2461 | 2501 | { |
---|
2462 | 2502 | ReverseNormals(); |
---|
2463 | 2503 | } else |
---|
2464 | | - if (event.getSource() == parseverticesItem) |
---|
| 2504 | + if (source == parseverticesItem) |
---|
2465 | 2505 | { |
---|
2466 | 2506 | ParseVertices(); |
---|
2467 | 2507 | } else |
---|
2468 | | - if (event.getSource() == textureFieldItem) |
---|
| 2508 | + if (source == textureFieldItem) |
---|
2469 | 2509 | { |
---|
2470 | 2510 | TextureVertices(); |
---|
2471 | 2511 | } else |
---|
2472 | | - if (event.getSource() == alignItem) |
---|
| 2512 | + if (source == alignItem) |
---|
2473 | 2513 | { |
---|
2474 | 2514 | Align(); |
---|
2475 | 2515 | } else |
---|
2476 | | - if (event.getSource() == mirrorItem) |
---|
| 2516 | + if (source == mirrorItem) |
---|
2477 | 2517 | { |
---|
2478 | 2518 | MirrorPoses(); |
---|
2479 | 2519 | } else |
---|
2480 | | - if (event.getSource() == reduceMorphItem) |
---|
| 2520 | + if (source == reduceMorphItem) |
---|
2481 | 2521 | { |
---|
2482 | 2522 | MeshReduction(false); |
---|
2483 | 2523 | } else |
---|
2484 | | - if (event.getSource() == reduce34MorphItem) |
---|
| 2524 | + if (source == reduce34MorphItem) |
---|
2485 | 2525 | { |
---|
2486 | 2526 | MeshReduction(true); |
---|
2487 | 2527 | } else |
---|
2488 | | - if (event.getSource() == reverseTrianglesItem) |
---|
| 2528 | + if (source == reverseTrianglesItem) |
---|
2489 | 2529 | { |
---|
2490 | 2530 | ReverseTriangles(); |
---|
2491 | 2531 | } else |
---|
2492 | | - if (event.getSource() == reduceMeshItem) |
---|
| 2532 | + if (source == reduceMeshItem) |
---|
2493 | 2533 | { |
---|
2494 | 2534 | ReduceMesh(false); |
---|
2495 | 2535 | } else |
---|
2496 | | - if (event.getSource() == reduce34MeshItem) |
---|
| 2536 | + if (source == reduce34MeshItem) |
---|
2497 | 2537 | { |
---|
2498 | 2538 | ReduceMesh(true); |
---|
2499 | 2539 | } else |
---|
2500 | | - if (event.getSource() == increaseMeshItem) |
---|
| 2540 | + if (source == increaseMeshItem) |
---|
2501 | 2541 | { |
---|
2502 | 2542 | IncreaseMesh(); |
---|
2503 | 2543 | } else |
---|
2504 | | - if (event.getSource() == clipMeshItem) |
---|
| 2544 | + if (source == clipMeshItem) |
---|
2505 | 2545 | { |
---|
2506 | 2546 | ClipMesh(); |
---|
2507 | 2547 | } else |
---|
2508 | | - if (event.getSource() == smoothMeshItem) |
---|
| 2548 | + if (source == smoothMeshItem) |
---|
2509 | 2549 | { |
---|
2510 | 2550 | SmoothMesh(); |
---|
2511 | 2551 | } else |
---|
2512 | | - if (event.getSource() == transformgeometryItem) |
---|
| 2552 | + if (source == transformgeometryItem) |
---|
2513 | 2553 | { |
---|
2514 | 2554 | TransformGeometry(); |
---|
2515 | 2555 | } else |
---|
2516 | | - if (event.getSource() == resetTransformItem) |
---|
| 2556 | + if (source == resetTransformItem) |
---|
2517 | 2557 | { |
---|
2518 | 2558 | ResetTransform(); |
---|
2519 | 2559 | } else |
---|
2520 | | - if (event.getSource() == resetCentroidItem) |
---|
| 2560 | + if (source == resetCentroidItem) |
---|
2521 | 2561 | { |
---|
2522 | 2562 | ResetCentroid(); |
---|
2523 | 2563 | } else |
---|
2524 | | - if (event.getSource() == resetParentItem) |
---|
| 2564 | + if (source == resetParentItem) |
---|
2525 | 2565 | { |
---|
2526 | 2566 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
2527 | 2567 | { |
---|
.. | .. |
---|
2531 | 2571 | |
---|
2532 | 2572 | refreshContents(); |
---|
2533 | 2573 | } else |
---|
2534 | | - if (event.getSource() == repairParentItem) |
---|
| 2574 | + if (source == repairParentItem) |
---|
2535 | 2575 | { |
---|
2536 | 2576 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
2537 | 2577 | { |
---|
.. | .. |
---|
2545 | 2585 | |
---|
2546 | 2586 | refreshContents(); |
---|
2547 | 2587 | } else |
---|
2548 | | - if (event.getSource() == sortbysizeItem) |
---|
| 2588 | + if (source == repairShadowItem) |
---|
| 2589 | + { |
---|
| 2590 | + for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
| 2591 | + { |
---|
| 2592 | + Object3D obj = (Object3D)e.nextElement(); |
---|
| 2593 | + obj.RepairShadow(); |
---|
| 2594 | +// for (int i=0; i<obj.size(); i++) |
---|
| 2595 | +// { |
---|
| 2596 | +// obj.get(i).parent = obj; |
---|
| 2597 | +// } |
---|
| 2598 | + } |
---|
| 2599 | + |
---|
| 2600 | + refreshContents(); |
---|
| 2601 | + } else |
---|
| 2602 | + if (source == sortbysizeItem) |
---|
2549 | 2603 | { |
---|
2550 | 2604 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
2551 | 2605 | { |
---|
.. | .. |
---|
2557 | 2611 | ResetModel(); |
---|
2558 | 2612 | refreshContents(); |
---|
2559 | 2613 | } else |
---|
2560 | | - if (event.getSource() == sortbynameItem) |
---|
| 2614 | + if (source == sortbynameItem) |
---|
2561 | 2615 | { |
---|
2562 | 2616 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
2563 | 2617 | { |
---|
.. | .. |
---|
2569 | 2623 | ResetModel(); |
---|
2570 | 2624 | refreshContents(); |
---|
2571 | 2625 | } else |
---|
2572 | | - if (event.getSource() == attachPigmentItem) |
---|
| 2626 | + if (source == attachPigmentItem) |
---|
2573 | 2627 | { |
---|
2574 | 2628 | String texture = GetFile("Attach pigment"); |
---|
2575 | 2629 | Object3D obj; |
---|
.. | .. |
---|
2581 | 2635 | |
---|
2582 | 2636 | refreshContents(); |
---|
2583 | 2637 | } else |
---|
2584 | | - if (event.getSource() == detachPigmentItem) |
---|
| 2638 | + if (source == detachPigmentItem) |
---|
2585 | 2639 | { |
---|
2586 | 2640 | Object3D obj; |
---|
2587 | 2641 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
.. | .. |
---|
2592 | 2646 | |
---|
2593 | 2647 | refreshContents(); |
---|
2594 | 2648 | } else |
---|
2595 | | - if (event.getSource() == attachBumpItem) |
---|
| 2649 | + if (source == attachBumpItem) |
---|
2596 | 2650 | { |
---|
2597 | 2651 | String texture = GetFile("Attach bump"); |
---|
2598 | 2652 | Object3D obj; |
---|
.. | .. |
---|
2604 | 2658 | |
---|
2605 | 2659 | refreshContents(); |
---|
2606 | 2660 | } else |
---|
2607 | | - if (event.getSource() == detachBumpItem) |
---|
| 2661 | + if (source == detachBumpItem) |
---|
2608 | 2662 | { |
---|
2609 | 2663 | Object3D obj; |
---|
2610 | 2664 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
.. | .. |
---|
2615 | 2669 | |
---|
2616 | 2670 | refreshContents(); |
---|
2617 | 2671 | } else |
---|
2618 | | - if (event.getSource() == pigmentBumpItem) |
---|
| 2672 | + if (source == pigmentBumpItem) |
---|
2619 | 2673 | { |
---|
2620 | 2674 | Object3D obj; |
---|
2621 | 2675 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
.. | .. |
---|
2626 | 2680 | |
---|
2627 | 2681 | refreshContents(); |
---|
2628 | 2682 | } else |
---|
2629 | | - if (event.getSource() == flashSelectionButton) |
---|
| 2683 | + if (source == flashSelectionButton) |
---|
2630 | 2684 | { |
---|
2631 | 2685 | CameraPane.flash = true; |
---|
2632 | 2686 | refreshContents(); |
---|
2633 | 2687 | } else |
---|
2634 | | - if (event.getSource() == oneButton) |
---|
| 2688 | + if (source == oneButton) |
---|
2635 | 2689 | { |
---|
2636 | 2690 | } else |
---|
2637 | | - if (event.getSource() == twoButton) |
---|
| 2691 | + if (source == twoButton) |
---|
2638 | 2692 | { |
---|
2639 | 2693 | radio.layout = twoButton; |
---|
2640 | 2694 | // bug |
---|
2641 | 2695 | //gridPanel.setDividerLocation(1.0); |
---|
2642 | 2696 | //bigPanel.setDividerLocation(0.0); |
---|
2643 | | - bigThree.remove(scenePanel); |
---|
2644 | | - bigThree.remove(centralPanel); |
---|
2645 | | - bigThree.remove(XYZPanel); |
---|
2646 | | - aWindowConstraints.gridx = 0; |
---|
2647 | | - aWindowConstraints.gridy = 0; |
---|
2648 | | - aWindowConstraints.gridwidth = 1; |
---|
2649 | | - // aConstraints.gridheight = 3; |
---|
2650 | | - aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2651 | | - aWindowConstraints.weightx = 0; |
---|
2652 | | - aWindowConstraints.weighty = 1; |
---|
2653 | | - //bigThree.add(jtp, aWindowConstraints); |
---|
2654 | | - aWindowConstraints.weightx = 1; |
---|
2655 | | - aWindowConstraints.gridwidth = 3; |
---|
2656 | | - // aConstraints.gridheight = 3; |
---|
2657 | | - aWindowConstraints.gridx = 1; |
---|
2658 | | - aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
2659 | | - bigThree.add(centralPanel, aWindowConstraints); |
---|
2660 | | - aWindowConstraints.weightx = 0; |
---|
2661 | | - aWindowConstraints.gridx = 4; |
---|
2662 | | - aWindowConstraints.gridwidth = 1; |
---|
2663 | | - // aConstraints.gridheight = 3; |
---|
2664 | | - aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2665 | | - //bigThree.add(XYZPanel, aWindowConstraints); |
---|
2666 | | - bigThree.revalidate(); |
---|
| 2697 | +// bigThree.remove(scenePanel); |
---|
| 2698 | +// bigThree.remove(centralPanel); |
---|
| 2699 | +// bigThree.remove(XYZPanel); |
---|
| 2700 | +// aWindowConstraints.gridx = 0; |
---|
| 2701 | +// aWindowConstraints.gridy = 0; |
---|
| 2702 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2703 | +// // aConstraints.gridheight = 3; |
---|
| 2704 | +// aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2705 | +// aWindowConstraints.weightx = 0; |
---|
| 2706 | +// aWindowConstraints.weighty = 1; |
---|
| 2707 | +// //bigThree.add(jtp, aWindowConstraints); |
---|
| 2708 | +// aWindowConstraints.weightx = 1; |
---|
| 2709 | +// aWindowConstraints.gridwidth = 3; |
---|
| 2710 | +// // aConstraints.gridheight = 3; |
---|
| 2711 | +// aWindowConstraints.gridx = 1; |
---|
| 2712 | +// aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
| 2713 | +// bigThree.add(centralPanel, aWindowConstraints); |
---|
| 2714 | +// aWindowConstraints.weightx = 0; |
---|
| 2715 | +// aWindowConstraints.gridx = 4; |
---|
| 2716 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2717 | +// // aConstraints.gridheight = 3; |
---|
| 2718 | +// aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2719 | +// //bigThree.add(XYZPanel, aWindowConstraints); |
---|
| 2720 | +// scenePanel.setVisible(false); |
---|
| 2721 | +// centralPanel.setVisible(true); |
---|
| 2722 | +// XYZPanel.setVisible(false); |
---|
| 2723 | + bigThree.ClearUI(); |
---|
| 2724 | + bigThree.add(centralPanel); |
---|
| 2725 | + bigThree.FlushUI(); |
---|
2667 | 2726 | } else |
---|
2668 | | - if (event.getSource() == threeButton) |
---|
| 2727 | + if (source == threeButton) |
---|
2669 | 2728 | { |
---|
2670 | 2729 | radio.layout = threeButton; |
---|
2671 | | - bigThree.remove(scenePanel); |
---|
2672 | | - bigThree.remove(centralPanel); |
---|
2673 | | - bigThree.remove(XYZPanel); |
---|
2674 | | - aWindowConstraints.gridx = 0; |
---|
2675 | | - aWindowConstraints.gridy = 0; |
---|
2676 | | - aWindowConstraints.gridwidth = 1; |
---|
2677 | | - // aConstraints.gridheight = 3; |
---|
2678 | | - aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2679 | | - aWindowConstraints.weightx = 0; |
---|
2680 | | - aWindowConstraints.weighty = 1; |
---|
2681 | | - //bigThree.add(jtp, aWindowConstraints); |
---|
2682 | | - aWindowConstraints.weightx = 1; |
---|
2683 | | - aWindowConstraints.gridwidth = 3; |
---|
2684 | | - // aConstraints.gridheight = 3; |
---|
2685 | | - aWindowConstraints.gridx = 1; |
---|
2686 | | - aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
2687 | | - bigThree.add(centralPanel, aWindowConstraints); |
---|
2688 | | - aWindowConstraints.weightx = 0; |
---|
2689 | | - aWindowConstraints.gridx = 4; |
---|
2690 | | - aWindowConstraints.gridwidth = 1; |
---|
2691 | | - // aConstraints.gridheight = 3; |
---|
2692 | | - aConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2693 | | - bigThree.add(XYZPanel, aWindowConstraints); |
---|
2694 | | - bigThree.revalidate(); |
---|
| 2730 | + |
---|
| 2731 | +// bigThree.remove(scenePanel); |
---|
| 2732 | +// bigThree.remove(centralPanel); |
---|
| 2733 | +// bigThree.remove(XYZPanel); |
---|
| 2734 | +// aWindowConstraints.gridx = 0; |
---|
| 2735 | +// aWindowConstraints.gridy = 0; |
---|
| 2736 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2737 | +// // aConstraints.gridheight = 3; |
---|
| 2738 | +// aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2739 | +// aWindowConstraints.weightx = 0; |
---|
| 2740 | +// aWindowConstraints.weighty = 1; |
---|
| 2741 | +// //bigThree.add(jtp, aWindowConstraints); |
---|
| 2742 | +// aWindowConstraints.weightx = 1; |
---|
| 2743 | +// aWindowConstraints.gridwidth = 3; |
---|
| 2744 | +// // aConstraints.gridheight = 3; |
---|
| 2745 | +// aWindowConstraints.gridx = 1; |
---|
| 2746 | +// aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
| 2747 | +// bigThree.add(centralPanel, aWindowConstraints); |
---|
| 2748 | +// aWindowConstraints.weightx = 0; |
---|
| 2749 | +// aWindowConstraints.gridx = 4; |
---|
| 2750 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2751 | +// // aConstraints.gridheight = 3; |
---|
| 2752 | +// aConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2753 | +// bigThree.add(XYZPanel, aWindowConstraints); |
---|
| 2754 | +// bigThree.validate(); |
---|
| 2755 | +// scenePanel.setVisible(false); |
---|
| 2756 | +// centralPanel.setVisible(true); |
---|
| 2757 | +// XYZPanel.setVisible(true); |
---|
| 2758 | + bigThree.ClearUI(); |
---|
| 2759 | + bigThree.add(centralPanel); |
---|
| 2760 | + bigThree.add(XYZPanel); |
---|
| 2761 | + bigThree.FlushUI(); |
---|
2695 | 2762 | } else |
---|
2696 | | - if (event.getSource() == fourButton) |
---|
| 2763 | + if (source == fourButton) |
---|
2697 | 2764 | { |
---|
2698 | 2765 | radio.layout = fourButton; |
---|
2699 | | - bigThree.remove(scenePanel); |
---|
2700 | | - bigThree.remove(centralPanel); |
---|
2701 | | - bigThree.remove(XYZPanel); |
---|
2702 | | - aWindowConstraints.gridx = 0; |
---|
2703 | | - aWindowConstraints.gridy = 0; |
---|
2704 | | - aWindowConstraints.gridwidth = 1; |
---|
2705 | | - // aWindowConstraints.gridheight = 3; |
---|
2706 | | - aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
2707 | | - aWindowConstraints.weightx = 1; |
---|
2708 | | - aWindowConstraints.weighty = 1; |
---|
2709 | | - bigThree.add(scenePanel, aWindowConstraints); |
---|
2710 | | - aWindowConstraints.weightx = 1; |
---|
2711 | | - aWindowConstraints.gridwidth = 3; |
---|
2712 | | - // aConstraints.gridheight = 3; |
---|
2713 | | - aWindowConstraints.gridx = 1; |
---|
2714 | | - aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
2715 | | - //bigThree.add(cameraPanel, aWindowConstraints); |
---|
2716 | | - aWindowConstraints.weightx = 0; |
---|
2717 | | - aWindowConstraints.gridx = 4; |
---|
2718 | | - aWindowConstraints.gridwidth = 1; |
---|
2719 | | - // aWindowConstraints.gridheight = 3; |
---|
2720 | | - aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2721 | | - //bigThree.add(XYZPanel, aWindowConstraints); |
---|
2722 | | - bigThree.revalidate(); |
---|
| 2766 | + |
---|
| 2767 | +// bigThree.remove(scenePanel); |
---|
| 2768 | +// bigThree.remove(centralPanel); |
---|
| 2769 | +// bigThree.remove(XYZPanel); |
---|
| 2770 | +// aWindowConstraints.gridx = 0; |
---|
| 2771 | +// aWindowConstraints.gridy = 0; |
---|
| 2772 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2773 | +// // aWindowConstraints.gridheight = 3; |
---|
| 2774 | +// aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
| 2775 | +// aWindowConstraints.weightx = 1; |
---|
| 2776 | +// aWindowConstraints.weighty = 1; |
---|
| 2777 | +// bigThree.add(scenePanel, aWindowConstraints); |
---|
| 2778 | +// aWindowConstraints.weightx = 1; |
---|
| 2779 | +// aWindowConstraints.gridwidth = 3; |
---|
| 2780 | +// // aConstraints.gridheight = 3; |
---|
| 2781 | +// aWindowConstraints.gridx = 1; |
---|
| 2782 | +// aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
| 2783 | +// //bigThree.add(cameraPanel, aWindowConstraints); |
---|
| 2784 | +// aWindowConstraints.weightx = 0; |
---|
| 2785 | +// aWindowConstraints.gridx = 4; |
---|
| 2786 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2787 | +// // aWindowConstraints.gridheight = 3; |
---|
| 2788 | +// aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2789 | +// //bigThree.add(XYZPanel, aWindowConstraints); |
---|
| 2790 | +// bigThree.validate(); |
---|
| 2791 | +// scenePanel.setVisible(true); |
---|
| 2792 | +// centralPanel.setVisible(false); |
---|
| 2793 | +// XYZPanel.setVisible(false); |
---|
| 2794 | + bigThree.ClearUI(); |
---|
| 2795 | + bigThree.add(scenePanel); |
---|
| 2796 | + bigThree.FlushUI(); |
---|
2723 | 2797 | } else |
---|
2724 | | - if (event.getSource() == sixButton) |
---|
| 2798 | + if (source == sixButton) |
---|
2725 | 2799 | { |
---|
2726 | 2800 | radio.layout = sixButton; |
---|
2727 | | - bigThree.remove(scenePanel); |
---|
2728 | | - bigThree.remove(centralPanel); |
---|
2729 | | - bigThree.remove(XYZPanel); |
---|
2730 | | - aWindowConstraints.gridx = 0; |
---|
2731 | | - aWindowConstraints.gridy = 0; |
---|
2732 | | - aWindowConstraints.gridwidth = 1; |
---|
2733 | | - // aConstraints.gridheight = 3; |
---|
2734 | | - aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2735 | | - aWindowConstraints.weightx = 0; |
---|
2736 | | - aWindowConstraints.weighty = 1; |
---|
2737 | | - bigThree.add(scenePanel, aWindowConstraints); |
---|
2738 | | - aWindowConstraints.weightx = 1; |
---|
2739 | | - aWindowConstraints.gridwidth = 3; |
---|
2740 | | - // aWindowConstraints.gridheight = 3; |
---|
2741 | | - aWindowConstraints.gridx = 1; |
---|
2742 | | - aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
2743 | | - bigThree.add(centralPanel, aWindowConstraints); |
---|
2744 | | - aWindowConstraints.weightx = 0; |
---|
2745 | | - aWindowConstraints.gridx = 4; |
---|
2746 | | - aWindowConstraints.gridwidth = 1; |
---|
2747 | | - // aWindowConstraints.gridheight = 3; |
---|
2748 | | - aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2749 | | - //bigThree.add(XYZPanel, aConstraints); |
---|
2750 | | - bigThree.revalidate(); |
---|
| 2801 | + |
---|
| 2802 | +// bigThree.remove(scenePanel); |
---|
| 2803 | +// bigThree.remove(centralPanel); |
---|
| 2804 | +// bigThree.remove(XYZPanel); |
---|
| 2805 | +// aWindowConstraints.gridx = 0; |
---|
| 2806 | +// aWindowConstraints.gridy = 0; |
---|
| 2807 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2808 | +// // aConstraints.gridheight = 3; |
---|
| 2809 | +// aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2810 | +// aWindowConstraints.weightx = 0; |
---|
| 2811 | +// aWindowConstraints.weighty = 1; |
---|
| 2812 | +// bigThree.add(scenePanel, aWindowConstraints); |
---|
| 2813 | +// aWindowConstraints.weightx = 1; |
---|
| 2814 | +// aWindowConstraints.gridwidth = 3; |
---|
| 2815 | +// // aWindowConstraints.gridheight = 3; |
---|
| 2816 | +// aWindowConstraints.gridx = 1; |
---|
| 2817 | +// aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
| 2818 | +// bigThree.add(centralPanel, aWindowConstraints); |
---|
| 2819 | +// aWindowConstraints.weightx = 0; |
---|
| 2820 | +// aWindowConstraints.gridx = 4; |
---|
| 2821 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2822 | +// // aWindowConstraints.gridheight = 3; |
---|
| 2823 | +// aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2824 | +// //bigThree.add(XYZPanel, aConstraints); |
---|
| 2825 | +// bigThree.validate(); |
---|
| 2826 | +// scenePanel.setVisible(true); |
---|
| 2827 | +// centralPanel.setVisible(true); |
---|
| 2828 | +// XYZPanel.setVisible(false); |
---|
| 2829 | + bigThree.ClearUI(); |
---|
| 2830 | + bigThree.add(scenePanel); |
---|
| 2831 | + bigThree.add(centralPanel); |
---|
| 2832 | + bigThree.FlushUI(); |
---|
2751 | 2833 | } else |
---|
2752 | | - if (event.getSource() == sevenButton) |
---|
| 2834 | + if (source == sevenButton) |
---|
2753 | 2835 | { |
---|
2754 | 2836 | radio.layout = sevenButton; |
---|
2755 | | - bigThree.remove(scenePanel); |
---|
2756 | | - bigThree.remove(centralPanel); |
---|
2757 | | - bigThree.remove(XYZPanel); |
---|
2758 | | - aWindowConstraints.gridx = 0; |
---|
2759 | | - aWindowConstraints.gridy = 0; |
---|
2760 | | - aWindowConstraints.gridwidth = 1; |
---|
2761 | | - // aWindowConstraints.gridheight = 3; |
---|
2762 | | - aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2763 | | - aWindowConstraints.weightx = 0; |
---|
2764 | | - aWindowConstraints.weighty = 1; |
---|
2765 | | - bigThree.add(scenePanel, aWindowConstraints); |
---|
2766 | | - aWindowConstraints.weightx = 1; |
---|
2767 | | - aWindowConstraints.gridwidth = 3; |
---|
2768 | | - // aWindowConstraints.gridheight = 3; |
---|
2769 | | - aWindowConstraints.gridx = 1; |
---|
2770 | | - aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
2771 | | - bigThree.add(centralPanel, aWindowConstraints); |
---|
2772 | | - aWindowConstraints.weightx = 0; |
---|
2773 | | - aWindowConstraints.gridx = 4; |
---|
2774 | | - aWindowConstraints.gridwidth = 1; |
---|
2775 | | - // aConstraints.gridheight = 3; |
---|
2776 | | - aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
2777 | | - bigThree.add(XYZPanel, aWindowConstraints); |
---|
2778 | | - bigThree.revalidate(); |
---|
| 2837 | + |
---|
| 2838 | +// bigThree.remove(scenePanel); |
---|
| 2839 | +// bigThree.remove(centralPanel); |
---|
| 2840 | +// bigThree.remove(XYZPanel); |
---|
| 2841 | +// aWindowConstraints.gridx = 0; |
---|
| 2842 | +// aWindowConstraints.gridy = 0; |
---|
| 2843 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2844 | +// // aWindowConstraints.gridheight = 3; |
---|
| 2845 | +// aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2846 | +// aWindowConstraints.weightx = 0; |
---|
| 2847 | +// aWindowConstraints.weighty = 1; |
---|
| 2848 | +// bigThree.add(scenePanel, aWindowConstraints); |
---|
| 2849 | +// aWindowConstraints.weightx = 1; |
---|
| 2850 | +// aWindowConstraints.gridwidth = 3; |
---|
| 2851 | +// // aWindowConstraints.gridheight = 3; |
---|
| 2852 | +// aWindowConstraints.gridx = 1; |
---|
| 2853 | +// aWindowConstraints.fill = GridBagConstraints.BOTH; |
---|
| 2854 | +// bigThree.add(centralPanel, aWindowConstraints); |
---|
| 2855 | +// aWindowConstraints.weightx = 0; |
---|
| 2856 | +// aWindowConstraints.gridx = 4; |
---|
| 2857 | +// aWindowConstraints.gridwidth = 1; |
---|
| 2858 | +// // aConstraints.gridheight = 3; |
---|
| 2859 | +// aWindowConstraints.fill = GridBagConstraints.VERTICAL; |
---|
| 2860 | +// bigThree.add(XYZPanel, aWindowConstraints); |
---|
| 2861 | +// bigThree.validate(); |
---|
| 2862 | +// scenePanel.setVisible(true); |
---|
| 2863 | +// centralPanel.setVisible(true); |
---|
| 2864 | +// XYZPanel.setVisible(true); |
---|
| 2865 | + bigThree.ClearUI(); |
---|
| 2866 | + bigThree.add(scenePanel); |
---|
| 2867 | + bigThree.add(centralPanel); |
---|
| 2868 | + bigThree.add(XYZPanel); |
---|
| 2869 | + bigThree.FlushUI(); |
---|
2779 | 2870 | } else |
---|
2780 | | - if (event.getSource() == rootButton) |
---|
| 2871 | + if (source == rootButton) |
---|
2781 | 2872 | { |
---|
2782 | 2873 | Object3D obj; |
---|
2783 | 2874 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
.. | .. |
---|
2789 | 2880 | |
---|
2790 | 2881 | refreshContents(true); |
---|
2791 | 2882 | } else |
---|
2792 | | - if (event.getSource() == closeButton) |
---|
| 2883 | + if (source == closeButton) |
---|
2793 | 2884 | { |
---|
2794 | 2885 | //System.out.println("CLOSE: " + buttonGroup.getSelection()); |
---|
2795 | 2886 | cRadio ab; |
---|
.. | .. |
---|
2810 | 2901 | } |
---|
2811 | 2902 | refreshContents(true); |
---|
2812 | 2903 | } else |
---|
2813 | | - if (event.getSource() == editItem || event.getSource() == editButton) |
---|
| 2904 | + if (source == editItem || source == editButton) |
---|
2814 | 2905 | { |
---|
2815 | 2906 | EditSelection(false); |
---|
2816 | 2907 | } else |
---|
2817 | | - if (event.getSource() == uneditButton) |
---|
| 2908 | + if (source == uneditButton) |
---|
2818 | 2909 | { |
---|
2819 | 2910 | for (Enumeration e = group.selection.elements(); e.hasMoreElements();) |
---|
2820 | 2911 | { |
---|
.. | .. |
---|
2826 | 2917 | |
---|
2827 | 2918 | child.editWindow = null; // ??????????? |
---|
2828 | 2919 | } |
---|
2829 | | - objEditor.ctrlPanel.revalidate(); |
---|
| 2920 | + objEditor.ctrlPanel.validate(); |
---|
2830 | 2921 | //objEditor.jTree.clearSelection(); |
---|
2831 | 2922 | //objEditor.ResetSliders(); |
---|
2832 | 2923 | refreshContents(true); |
---|
2833 | 2924 | } else |
---|
2834 | | - if (event.getSource() == clearPanelButton) |
---|
| 2925 | + if (source == clearPanelButton) |
---|
2835 | 2926 | { |
---|
2836 | 2927 | assert(copy == group); |
---|
2837 | 2928 | //copy.ClearUI(); |
---|
.. | .. |
---|
2842 | 2933 | listUI.clear(); |
---|
2843 | 2934 | refreshContents(true); |
---|
2844 | 2935 | } else |
---|
2845 | | - if (event.getSource() == allParamsButton) |
---|
| 2936 | + if (source == allParamsButton) |
---|
2846 | 2937 | { |
---|
2847 | 2938 | assert(copy == group); |
---|
2848 | 2939 | |
---|
.. | .. |
---|
2863 | 2954 | |
---|
2864 | 2955 | refreshContents(true); |
---|
2865 | 2956 | } else |
---|
2866 | | - if (event.getSource() == unselectButton) |
---|
| 2957 | + if (source == unselectButton) |
---|
2867 | 2958 | { |
---|
2868 | 2959 | objEditor.jTree.clearSelection(); |
---|
2869 | 2960 | // ?? oct 2012 GrafreeD.clipboard.clear(); |
---|
2870 | 2961 | objEditor.ResetSliders(); |
---|
2871 | 2962 | refreshContents(true); |
---|
2872 | 2963 | } else |
---|
2873 | | - if(event.getSource() instanceof cRadio) |
---|
| 2964 | + if(source instanceof cRadio) |
---|
2874 | 2965 | { |
---|
2875 | 2966 | group.parent = keepparent; |
---|
2876 | 2967 | group.attributes = 0; |
---|
2877 | 2968 | //group.editWindow = null; |
---|
2878 | | - /*cRadio*/ radio = (cRadio)event.getSource(); |
---|
| 2969 | + /*cRadio*/ radio = (cRadio)source; |
---|
2879 | 2970 | Object3D obj = radio.GetObject(); |
---|
2880 | 2971 | System.out.println("Edit " + obj); |
---|
2881 | 2972 | if (true) // obj instanceof Composite) // obj.parent == null) // obj instanceof Composite) |
---|
.. | .. |
---|
2895 | 2986 | } |
---|
2896 | 2987 | |
---|
2897 | 2988 | copy = group; |
---|
2898 | | - //CameraPane.theRenderer.object = group; |
---|
| 2989 | + //Globals.theRenderer.object = group; |
---|
2899 | 2990 | if(!useclient) |
---|
2900 | 2991 | { |
---|
2901 | 2992 | cameraView.renderCamera = radio.camera; |
---|
.. | .. |
---|
2904 | 2995 | cameraView.cameras[cameraView.cameracount] = radio.camera; |
---|
2905 | 2996 | cameraView.targetLookAt.set(radio.camera.lookAt); |
---|
2906 | 2997 | cameraView.object = group; |
---|
2907 | | - cameraView.lighttouched = true; |
---|
| 2998 | + //cameraView.lighttouched = true; |
---|
| 2999 | + Globals.lighttouched = true; |
---|
2908 | 3000 | topView.object = group; |
---|
2909 | 3001 | frontView.object = group; |
---|
2910 | 3002 | sideView.object = group; |
---|
.. | .. |
---|
2940 | 3032 | if (useclient) |
---|
2941 | 3033 | { |
---|
2942 | 3034 | cameraView.object = client; |
---|
2943 | | - cameraView.lighttouched = true; |
---|
| 3035 | + Globals.lighttouched = true; |
---|
2944 | 3036 | //topView.object = client; |
---|
2945 | 3037 | //frontView.object = client; |
---|
2946 | 3038 | //sideView.object = client; |
---|
.. | .. |
---|
2948 | 3040 | else |
---|
2949 | 3041 | { |
---|
2950 | 3042 | cameraView.object = group; |
---|
2951 | | - cameraView.lighttouched = true; |
---|
| 3043 | + Globals.lighttouched = true; |
---|
2952 | 3044 | //topView.object = group; |
---|
2953 | 3045 | //frontView.object = group; |
---|
2954 | 3046 | //sideView.object = group; |
---|
.. | .. |
---|
3456 | 3548 | String pigment = Object3D.GetPigment(tex); |
---|
3457 | 3549 | //String bump = Object3D.GetBump(tex); |
---|
3458 | 3550 | |
---|
3459 | | - com.sun.opengl.util.texture.TextureData texturedata = CameraPane.theRenderer.GetTextureData(pigment, false, node.texres); |
---|
| 3551 | + com.sun.opengl.util.texture.TextureData texturedata = Globals.theRenderer.GetTextureData(pigment, false, node.texres); |
---|
3460 | 3552 | |
---|
3461 | 3553 | double s = v.s; |
---|
3462 | 3554 | |
---|
.. | .. |
---|
3757 | 3849 | group.selection.RelinkToSupport(); // july 2014 |
---|
3758 | 3850 | System.out.println("DONE."); |
---|
3759 | 3851 | refreshContents(); |
---|
3760 | | - CameraPane.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR)); |
---|
| 3852 | + Globals.theRenderer.setCursor(java.awt.Cursor.getPredefinedCursor(java.awt.Cursor.DEFAULT_CURSOR)); |
---|
3761 | 3853 | } |
---|
3762 | 3854 | |
---|
3763 | 3855 | void ReduceMesh(boolean reduction34) |
---|
.. | .. |
---|
4042 | 4134 | |
---|
4043 | 4135 | objEditor.SetText(); // jan 2014 |
---|
4044 | 4136 | |
---|
4045 | | - if (flashIt && !CameraPane.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera)) |
---|
| 4137 | + if (flashIt && !Globals.isLIVE() && tps != null && tps.length > 0 && !(((Object3D) tps[0].getLastPathComponent()) instanceof Camera)) |
---|
4046 | 4138 | CameraPane.flash = true; |
---|
4047 | 4139 | |
---|
4048 | 4140 | if (tps != null && tps.length > 0 && ((Object3D) tps[0].getLastPathComponent()) instanceof Camera) |
---|
4049 | 4141 | // a camera |
---|
4050 | 4142 | { |
---|
4051 | 4143 | CameraPane.camerachangeframe = 0; // don't refuse it |
---|
4052 | | - CameraPane.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
4053 | | - // CameraPane.theRenderer.renderCamera = CameraPane.theRenderer.manipCamera; |
---|
4054 | | - // CameraPane.theRenderer.eyeCamera = CameraPane.theRenderer.manipCamera; |
---|
| 4144 | + Globals.theRenderer.SetCamera((Camera) tps[0].getLastPathComponent()); |
---|
| 4145 | + // Globals.theRenderer.renderCamera = Globals.theRenderer.manipCamera; |
---|
| 4146 | + // Globals.theRenderer.eyeCamera = Globals.theRenderer.manipCamera; |
---|
4055 | 4147 | } |
---|
4056 | 4148 | |
---|
4057 | 4149 | refreshContents(); |
---|
.. | .. |
---|
5009 | 5101 | |
---|
5010 | 5102 | private MenuItem resetParentItem; |
---|
5011 | 5103 | private MenuItem repairParentItem; |
---|
| 5104 | + private MenuItem repairShadowItem; |
---|
5012 | 5105 | private MenuItem sortbysizeItem; |
---|
5013 | 5106 | private MenuItem sortbynameItem; |
---|
5014 | 5107 | |
---|