.. | .. |
---|
356 | 356 | this.copy = this.group = group; |
---|
357 | 357 | //selectees = this.group.selectees; |
---|
358 | 358 | |
---|
359 | | - if (copy.versions == null) |
---|
| 359 | + if (copy.versionlist == null) |
---|
360 | 360 | { |
---|
361 | | - copy.versions = new byte[100][]; |
---|
| 361 | + copy.versionlist = new Object3D[100]; |
---|
362 | 362 | copy.versionindex = -1; |
---|
363 | 363 | } |
---|
364 | 364 | |
---|
.. | .. |
---|
383 | 383 | |
---|
384 | 384 | ((cRadio)radioPanel.getComponent(0)).SetCamera(cameraView.renderCamera, true); |
---|
385 | 385 | |
---|
386 | | - if (copy.versions == null) |
---|
| 386 | + if (copy.versionlist == null) |
---|
387 | 387 | { |
---|
388 | | - copy.versions = new byte[100][]; |
---|
| 388 | + copy.versionlist = new Object3D[100]; |
---|
389 | 389 | copy.versionindex = -1; |
---|
390 | 390 | |
---|
391 | 391 | Save(true); |
---|
.. | .. |
---|
932 | 932 | restoreCameraButton.addActionListener(this); |
---|
933 | 933 | |
---|
934 | 934 | copyOptionsPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
935 | | - saveButton.setToolTipText("New version"); |
---|
| 935 | + saveButton.setToolTipText("Duplicate current version"); |
---|
936 | 936 | saveButton.addActionListener(this); |
---|
937 | 937 | |
---|
938 | 938 | copyOptionsPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
.. | .. |
---|
942 | 942 | |
---|
943 | 943 | cGridBag updown = new cGridBag().setVertical(true); |
---|
944 | 944 | updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
945 | | - restoreButton.setToolTipText("Restore current"); |
---|
| 945 | + restoreButton.setToolTipText("Undo (restore current version)"); |
---|
946 | 946 | restoreButton.addActionListener(this); |
---|
947 | 947 | restoreButton.setEnabled(false); |
---|
948 | 948 | |
---|
949 | 949 | updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
950 | | - replaceButton.setToolTipText("Replace current"); |
---|
| 950 | + replaceButton.setToolTipText("Save (replace current version)"); |
---|
951 | 951 | replaceButton.addActionListener(this); |
---|
952 | 952 | replaceButton.setEnabled(false); |
---|
953 | 953 | |
---|
.. | .. |
---|
1110 | 1110 | editButton.addActionListener(this); |
---|
1111 | 1111 | |
---|
1112 | 1112 | editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1113 | | - uneditButton.setToolTipText("Remove selection controls"); |
---|
| 1113 | + uneditButton.setToolTipText("Unpin and remove selection controls"); |
---|
1114 | 1114 | uneditButton.addActionListener(this); |
---|
1115 | 1115 | |
---|
1116 | 1116 | editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints); |
---|
1117 | 1117 | allParamsButton.setToolTipText("Show all controle"); |
---|
1118 | 1118 | allParamsButton.addActionListener(this); |
---|
1119 | 1119 | |
---|
1120 | | - editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 1120 | + editCommandsPanel.add(clearPanelButton = GetButton("icons/clear.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1121 | 1121 | clearPanelButton.setToolTipText("Clear edit panel"); |
---|
1122 | 1122 | clearPanelButton.addActionListener(this); |
---|
1123 | 1123 | |
---|
.. | .. |
---|
1183 | 1183 | dgr.addDragGestureListener(this); |
---|
1184 | 1184 | }catch(Exception e) {} |
---|
1185 | 1185 | */ |
---|
1186 | | - radio.layout = sixButton; // sevenButton; |
---|
| 1186 | + radio.layout = threeButton; // sixButton; |
---|
1187 | 1187 | oe.toolbarPanel.add(radioPanel); //, oe.aConstraints); |
---|
1188 | 1188 | } |
---|
1189 | 1189 | |
---|
.. | .. |
---|
1328 | 1328 | } |
---|
1329 | 1329 | |
---|
1330 | 1330 | radioButton.SetObject(obj); |
---|
1331 | | - radioButton.layout = sixButton; // sevenButton; |
---|
| 1331 | + radioButton.layout = threeButton; // sixButton; |
---|
1332 | 1332 | radioButton.SetCamera(cameraView.renderCamera, false); |
---|
1333 | 1333 | radioButton.addActionListener(this); |
---|
1334 | 1334 | radioPanel.add(radioButton); |
---|
.. | .. |
---|
2613 | 2613 | { |
---|
2614 | 2614 | // Restore current version |
---|
2615 | 2615 | Restore(); |
---|
| 2616 | + restoreButton.setEnabled(false); |
---|
2616 | 2617 | } else |
---|
2617 | 2618 | if (source == replaceButton) |
---|
2618 | 2619 | { |
---|
2619 | 2620 | // Overwrite current version |
---|
2620 | 2621 | Replace(); |
---|
| 2622 | + replaceButton.setEnabled(false); |
---|
2621 | 2623 | } else |
---|
2622 | 2624 | if (source == redoButton) |
---|
2623 | 2625 | { |
---|
.. | .. |
---|
3820 | 3822 | { |
---|
3821 | 3823 | Object3D child = (Object3D)e.nextElement(); |
---|
3822 | 3824 | if(child.editWindow != null) |
---|
3823 | | - objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit")); |
---|
3824 | 3825 | child.pinned = false; |
---|
3825 | 3826 | child.CloseUI(); |
---|
3826 | 3827 | listUI.remove(child); |
---|
| 3828 | +// objectPanel.setSelectedIndex(objectPanel.indexOfTab("Edit")); |
---|
3827 | 3829 | |
---|
3828 | 3830 | //child.editWindow = null; // ??????????? |
---|
3829 | 3831 | } |
---|
.. | .. |
---|
3842 | 3844 | obj.CloseUI(); |
---|
3843 | 3845 | } |
---|
3844 | 3846 | listUI.clear(); |
---|
| 3847 | + SetPinStates(group.selection.size() > 0); |
---|
3845 | 3848 | refreshContents(true); |
---|
3846 | 3849 | } else |
---|
3847 | 3850 | if (source == allParamsButton) |
---|
.. | .. |
---|
3928 | 3931 | radio.layout.doClick(); |
---|
3929 | 3932 | |
---|
3930 | 3933 | ClearUnpinned(); |
---|
| 3934 | + |
---|
3931 | 3935 | //Grafreed.Assert(group != null); |
---|
3932 | 3936 | //Grafreed.Assert(group.selection != null); |
---|
3933 | 3937 | SetPinStates(group.selection == null || group.selection.size() > 0); |
---|
.. | .. |
---|
3944 | 3948 | } else if (event.getSource() == editCameraItem) |
---|
3945 | 3949 | { |
---|
3946 | 3950 | cameraView.ProtectCamera(); |
---|
| 3951 | + cameraView.requestFocusInWindow(); |
---|
3947 | 3952 | cameraView.repaint(); |
---|
3948 | 3953 | return; |
---|
3949 | 3954 | } else if (event.getSource() == restoreCameraItem || event.getSource() == restoreCameraButton) |
---|
3950 | 3955 | { |
---|
3951 | 3956 | cameraView.RevertCamera(); |
---|
| 3957 | + cameraView.requestFocusInWindow(); |
---|
3952 | 3958 | cameraView.repaint(); |
---|
3953 | 3959 | return; |
---|
3954 | 3960 | // } else if (event.getSource() == textureButton) |
---|
.. | .. |
---|
5081 | 5087 | |
---|
5082 | 5088 | freezemodel = false; |
---|
5083 | 5089 | } |
---|
5084 | | - |
---|
5085 | | - boolean flashIt = true; |
---|
5086 | | - |
---|
| 5090 | + |
---|
5087 | 5091 | public void valueChanged(TreeSelectionEvent e) |
---|
5088 | 5092 | //public boolean handleEvent(Event event) |
---|
5089 | 5093 | { |
---|
.. | .. |
---|
5158 | 5162 | uneditButton.setEnabled(enabled); |
---|
5159 | 5163 | unselectButton.setEnabled(enabled); |
---|
5160 | 5164 | flashSelectionButton.setEnabled(enabled); |
---|
| 5165 | + |
---|
| 5166 | + clearPanelButton.setEnabled(!listUI.isEmpty()); |
---|
5161 | 5167 | } |
---|
5162 | 5168 | |
---|
5163 | 5169 | void refreshContents(boolean cp) |
---|