.. | .. |
---|
580 | 580 | //minButton.setToolTipText("Minimize window"); |
---|
581 | 581 | //minButton.addActionListener(this); |
---|
582 | 582 | |
---|
583 | | - oe.toolbarPanel.add(maxButton = new cButton("\u271A", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 583 | + oe.toolbarPanel.add(maxButton = GetButton("icons/add-128.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
584 | 584 | maxButton.setToolTipText("Maximize window"); |
---|
585 | 585 | maxButton.addActionListener(this); |
---|
586 | 586 | |
---|
587 | | - oe.toolbarPanel.add(fullButton = new cButton("\u2b1c", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 587 | + oe.toolbarPanel.add(fullButton = GetButton("icons/fullscreen.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
588 | 588 | fullButton.setToolTipText("Full-screen window"); |
---|
589 | 589 | fullButton.addActionListener(this); |
---|
590 | 590 | |
---|
591 | | - oe.toolbarPanel.add(undoButton = new cButton("\u21a9", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 591 | + oe.toolbarPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
592 | 592 | undoButton.setToolTipText("Undo changes"); |
---|
593 | 593 | undoButton.addActionListener(this); |
---|
594 | 594 | |
---|
595 | | - oe.toolbarPanel.add(redoButton = new cButton("\u21aa", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 595 | + oe.toolbarPanel.add(redoButton = GetButton("icons/redo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
596 | 596 | redoButton.setToolTipText("Redo changes"); |
---|
597 | 597 | redoButton.addActionListener(this); |
---|
598 | 598 | |
---|
599 | | - oe.toolbarPanel.add(saveButton = new cButton("\u21e3", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 599 | + oe.toolbarPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
600 | 600 | saveButton.setToolTipText("Save changes"); |
---|
601 | 601 | saveButton.addActionListener(this); |
---|
602 | 602 | |
---|
603 | | - oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE())); //, oe.aConstraints); |
---|
| 603 | + oe.toolbarPanel.add(liveCB = GetCheckBox("icons/run.png", Globals.isLIVE())); //, oe.aConstraints); |
---|
604 | 604 | liveCB.setToolTipText("Enable animation"); |
---|
605 | 605 | liveCB.addItemListener(this); |
---|
606 | 606 | |
---|
607 | | - oe.toolbarPanel.add(oneStepButton = new cButton("\u29f4", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
608 | | - oneStepButton.setToolTipText("Animate one step forward"); |
---|
609 | | - oneStepButton.addActionListener(this); |
---|
610 | | - |
---|
611 | | - oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST)); //, constraints); |
---|
| 607 | + oe.toolbarPanel.add(fastCB = GetCheckBox("icons/runfast.png", CameraPane.FAST)); //, constraints); |
---|
612 | 608 | fastCB.setToolTipText("Fast mode"); |
---|
613 | 609 | fastCB.addItemListener(this); |
---|
614 | 610 | |
---|
615 | | - oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK)); //, oe.aConstraints); |
---|
| 611 | + oe.toolbarPanel.add(oneStepButton = GetButton("icons/step.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 612 | + oneStepButton.setToolTipText("Animate one step forward"); |
---|
| 613 | + oneStepButton.addActionListener(this); |
---|
| 614 | + |
---|
| 615 | + oe.toolbarPanel.add(trackCB = GetCheckBox("icons/track.png", CameraPane.TRACK)); //, oe.aConstraints); |
---|
616 | 616 | trackCB.setToolTipText("Enable tracking"); |
---|
617 | 617 | trackCB.addItemListener(this); |
---|
618 | 618 | |
---|
619 | | - oe.toolbarPanel.add(screenfitButton = new cButton("@", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 619 | + oe.toolbarPanel.add(screenfitButton = GetButton("icons/fit.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
620 | 620 | screenfitButton.setToolTipText("Screen fit"); |
---|
621 | 621 | screenfitButton.addActionListener(this); |
---|
622 | 622 | |
---|
.. | .. |
---|
630 | 630 | snapobjectButton.setToolTipText("Snap Object"); |
---|
631 | 631 | } |
---|
632 | 632 | |
---|
633 | | - oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
634 | | - flashSelectionButton.setToolTipText("Show selection"); |
---|
| 633 | + oe.toolbarPanel.add(flashSelectionButton = GetButton("icons/light-bulb.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 634 | + flashSelectionButton.setToolTipText("Highlight selection"); |
---|
635 | 635 | flashSelectionButton.addActionListener(this); |
---|
636 | 636 | |
---|
637 | 637 | oe.toolbarPanel.add(new JSeparator(SwingConstants.VERTICAL)); |
---|
.. | .. |
---|
815 | 815 | shadowCB.setToolTipText("Compute shadows when live"); |
---|
816 | 816 | shadowCB.addItemListener(this); |
---|
817 | 817 | |
---|
| 818 | + panel.add(autosaveCB = new cCheckBox("Auto-save", Globals.SAVEONMAKE)); //, constraints); |
---|
| 819 | + autosaveCB.setToolTipText("Auto-save on structure change"); |
---|
| 820 | + autosaveCB.addItemListener(this); |
---|
| 821 | + |
---|
818 | 822 | if (Globals.ADVANCED) |
---|
819 | 823 | { |
---|
820 | 824 | panel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT)); //, constraints); |
---|
.. | .. |
---|
864 | 868 | /*DropTarget dropTarget =*/ new DropTarget(oe.cameraView, this); |
---|
865 | 869 | } |
---|
866 | 870 | |
---|
867 | | - JCheckBox liveCB; |
---|
868 | | - JCheckBox supportCB; |
---|
869 | | - JCheckBox localCB; |
---|
870 | | - JCheckBox crowdCB; |
---|
871 | | - JCheckBox smoothCB; |
---|
872 | | - JCheckBox fastCB; |
---|
873 | | - JCheckBox slowCB; |
---|
874 | | - JCheckBox boxCB; |
---|
875 | | - JCheckBox zoomBoxCB; |
---|
876 | | - JCheckBox trackCB; |
---|
877 | | - JCheckBox smoothfocusCB; |
---|
| 871 | + cCheckBox liveCB; |
---|
| 872 | + cCheckBox supportCB; |
---|
| 873 | + cCheckBox localCB; |
---|
| 874 | + cCheckBox crowdCB; |
---|
| 875 | + cCheckBox smoothCB; |
---|
| 876 | + cCheckBox fastCB; |
---|
| 877 | + cCheckBox slowCB; |
---|
| 878 | + cCheckBox boxCB; |
---|
| 879 | + cCheckBox zoomBoxCB; |
---|
| 880 | + cCheckBox trackCB; |
---|
| 881 | + cCheckBox smoothfocusCB; |
---|
878 | 882 | // JCheckBox speakerMocapCB; |
---|
879 | | - JCheckBox speakerCameraCB; |
---|
880 | | - JCheckBox speakerFocusCB; |
---|
881 | | - JCheckBox debugCB; |
---|
| 883 | + cCheckBox speakerCameraCB; |
---|
| 884 | + cCheckBox speakerFocusCB; |
---|
| 885 | + cCheckBox debugCB; |
---|
882 | 886 | |
---|
883 | | - JCheckBox oeilCB; |
---|
884 | | - JCheckBox shadowCB; |
---|
885 | | - JCheckBox lookAtCB; |
---|
| 887 | + cCheckBox oeilCB; |
---|
| 888 | + cCheckBox shadowCB; |
---|
| 889 | + cCheckBox autosaveCB; |
---|
| 890 | + cCheckBox lookAtCB; |
---|
886 | 891 | |
---|
887 | 892 | // static int COLOR = 1; |
---|
888 | 893 | // static int MATERIAL = 2; |
---|
.. | .. |
---|
890 | 895 | |
---|
891 | 896 | int dropAttributes = Object3D.COLOR | Object3D.MATERIAL; |
---|
892 | 897 | |
---|
893 | | - JCheckBox colorCB; |
---|
894 | | - JCheckBox materialCB; |
---|
895 | | - JCheckBox textureCB; |
---|
| 898 | + cCheckBox colorCB; |
---|
| 899 | + cCheckBox materialCB; |
---|
| 900 | + cCheckBox textureCB; |
---|
896 | 901 | |
---|
897 | 902 | public void itemStateChanged(ItemEvent e) |
---|
898 | 903 | { |
---|
.. | .. |
---|
988 | 993 | else if(e.getSource() == shadowCB) |
---|
989 | 994 | { |
---|
990 | 995 | Globals.COMPUTESHADOWWHENLIVE ^= true; |
---|
| 996 | + } |
---|
| 997 | + else if(e.getSource() == autosaveCB) |
---|
| 998 | + { |
---|
| 999 | + Globals.SAVEONMAKE ^= true; |
---|
991 | 1000 | } |
---|
992 | 1001 | else if(e.getSource() == lookAtCB) |
---|
993 | 1002 | { |
---|
.. | .. |
---|
3159 | 3168 | buttonGroup.remove(ab); |
---|
3160 | 3169 | radioPanel.remove(ab); |
---|
3161 | 3170 | |
---|
3162 | | - ab.GetObject().editWindow = null; |
---|
| 3171 | + //ab.GetObject().editWindow = null; |
---|
| 3172 | + ab.GetObject().manipWindow = null; |
---|
3163 | 3173 | // ab.GetObject().objectUI = null; // ????????? |
---|
3164 | 3174 | |
---|
3165 | 3175 | ((cRadio)radioPanel.getComponent(radioPanel.getComponentCount() - 1)).doClick(); |
---|
.. | .. |
---|
3273 | 3283 | |
---|
3274 | 3284 | // fix "+" issue |
---|
3275 | 3285 | //group.editWindow = this; |
---|
| 3286 | + group.manipWindow = this; |
---|
3276 | 3287 | |
---|
3277 | 3288 | /* |
---|
3278 | 3289 | currentLayout = radio.layout; |
---|
.. | .. |
---|
4595 | 4606 | |
---|
4596 | 4607 | if (cut) |
---|
4597 | 4608 | { |
---|
| 4609 | + if (Globals.SAVEONMAKE) |
---|
4598 | 4610 | Save(); |
---|
4599 | 4611 | //int indices[] = jList.getSelectedIndices(); |
---|
4600 | 4612 | //for (int i = indices.length - 1; i >= 0; i--) |
---|