.. | .. |
---|
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, |
---|
.. | .. |
---|
604 | 605 | oe.toolbarPanel.add(radioPanel); //, oe.aConstraints); |
---|
605 | 606 | } |
---|
606 | 607 | |
---|
607 | | - void AddOptions(JPanel panel, GridBagConstraints constraints) |
---|
| 608 | + void AddOptions(cGridBag panel) //, GridBagConstraints constraints) |
---|
608 | 609 | { |
---|
609 | | - constraints.gridx = 0; |
---|
610 | | - constraints.gridy = 0; |
---|
611 | | - panel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST), constraints); |
---|
| 610 | + //constraints.gridx = 0; |
---|
| 611 | + //constraints.gridy = 0; |
---|
| 612 | + panel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints); |
---|
612 | 613 | fastCB.setToolTipText("Fast mode"); |
---|
613 | 614 | fastCB.addItemListener(this); |
---|
614 | | - constraints.gridy += 1; |
---|
615 | | - panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT), constraints); |
---|
| 615 | + //constraints.gridy += 1; |
---|
| 616 | + panel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT)); //, constraints); |
---|
616 | 617 | supportCB.setToolTipText("Enabled rigging"); |
---|
617 | 618 | supportCB.addItemListener(this); |
---|
618 | 619 | |
---|
.. | .. |
---|
620 | 621 | // panel.add(localCB = new cCheckBox("Local", CameraPane.LOCALTRANSFORM), constraints); |
---|
621 | 622 | // localCB.addItemListener(this); |
---|
622 | 623 | |
---|
623 | | - constraints.gridy += 1; |
---|
624 | | - panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD), constraints); |
---|
| 624 | + //constraints.gridy += 1; |
---|
| 625 | + panel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD)); //, constraints); |
---|
625 | 626 | crowdCB.setToolTipText("Used for crowds"); |
---|
626 | 627 | crowdCB.addItemListener(this); |
---|
627 | 628 | |
---|
628 | | - constraints.gridy += 1; |
---|
629 | | - panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA), constraints); |
---|
| 629 | + //constraints.gridy += 1; |
---|
| 630 | + panel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA)); //, constraints); |
---|
630 | 631 | smoothCB.setToolTipText("Snapping delay"); |
---|
631 | 632 | smoothCB.addItemListener(this); |
---|
632 | 633 | |
---|
633 | | - constraints.gridy += 1; |
---|
634 | | - panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE), constraints); |
---|
| 634 | + //constraints.gridy += 1; |
---|
| 635 | + panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints); |
---|
635 | 636 | slowCB.setToolTipText("Smooth interpolation"); |
---|
636 | 637 | slowCB.addItemListener(this); |
---|
637 | | - constraints.gridy += 1; |
---|
638 | | - panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE), constraints); |
---|
| 638 | + //constraints.gridy += 1; |
---|
| 639 | + panel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE)); //, constraints); |
---|
639 | 640 | boxCB.setToolTipText("Display bounding boxes"); |
---|
640 | 641 | boxCB.addItemListener(this); |
---|
641 | | - constraints.gridy += 1; |
---|
642 | | - panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE), constraints); |
---|
| 642 | + //constraints.gridy += 1; |
---|
| 643 | + panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints); |
---|
643 | 644 | zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel"); |
---|
644 | 645 | zoomBoxCB.addItemListener(this); |
---|
645 | 646 | |
---|
.. | .. |
---|
650 | 651 | if (false) |
---|
651 | 652 | { |
---|
652 | 653 | // handled in scripts |
---|
653 | | - constraints.gridy += 1; |
---|
654 | | - panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA), constraints); |
---|
| 654 | + //constraints.gridy += 1; |
---|
| 655 | + panel.add(speakerCameraCB = new cCheckBox("Cam", CameraPane.SPEAKERCAMERA)); //, constraints); |
---|
655 | 656 | speakerCameraCB.addItemListener(this); |
---|
656 | 657 | |
---|
657 | | - constraints.gridy += 1; |
---|
658 | | - panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS), constraints); |
---|
| 658 | + //constraints.gridy += 1; |
---|
| 659 | + panel.add(speakerFocusCB = new cCheckBox("Focus", CameraPane.SPEAKERFOCUS)); //, constraints); |
---|
659 | 660 | speakerFocusCB.addItemListener(this); |
---|
660 | 661 | |
---|
661 | | - constraints.gridy += 1; |
---|
662 | | - panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS), constraints); |
---|
| 662 | + //constraints.gridy += 1; |
---|
| 663 | + panel.add(smoothfocusCB = new cCheckBox("Smooth", CameraPane.SMOOTHFOCUS)); //, constraints); |
---|
663 | 664 | smoothfocusCB.addItemListener(this); |
---|
664 | 665 | } |
---|
665 | 666 | |
---|
.. | .. |
---|
667 | 668 | //panel.add(debugCB = new cCheckBox("Debug", CameraPane.DEBUG), constraints); |
---|
668 | 669 | // debugCB.addItemListener(this); |
---|
669 | 670 | |
---|
670 | | - constraints.gridy += 1; |
---|
671 | | - panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL), constraints); |
---|
| 671 | + //constraints.gridy += 1; |
---|
| 672 | + panel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL)); //, constraints); |
---|
672 | 673 | oeilCB.addItemListener(this); |
---|
673 | 674 | |
---|
674 | | - constraints.gridy += 1; |
---|
675 | | - panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT), constraints); |
---|
| 675 | + //constraints.gridy += 1; |
---|
| 676 | + panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints); |
---|
676 | 677 | lookAtCB.setToolTipText("Look-at target"); |
---|
677 | 678 | lookAtCB.addItemListener(this); |
---|
678 | 679 | |
---|
.. | .. |
---|
2916 | 2917 | |
---|
2917 | 2918 | child.editWindow = null; // ??????????? |
---|
2918 | 2919 | } |
---|
2919 | | - objEditor.ctrlPanel.revalidate(); |
---|
| 2920 | + objEditor.ctrlPanel.validate(); |
---|
2920 | 2921 | //objEditor.jTree.clearSelection(); |
---|
2921 | 2922 | //objEditor.ResetSliders(); |
---|
2922 | 2923 | refreshContents(true); |
---|