CameraPane.java | ●●●●● patch | view | raw | blame | history | |
Grid.java | ●●●●● patch | view | raw | blame | history | |
GroupEditor.java | ●●●●● patch | view | raw | blame | history | |
ObjEditor.java | ●●●●● patch | view | raw | blame | history | |
Object3D.java | ●●●●● patch | view | raw | blame | history | |
cTree.java | ●●●●● patch | view | raw | blame | history | |
icons/Media_player_icons-04-512.png | patch | view | raw | blame | history | |
icons/controls.png | patch | view | raw | blame | history | |
icons/flash-light.png | patch | view | raw | blame | history | |
icons/loop0.png | patch | view | raw | blame | history | |
icons/particles0.png | patch | view | raw | blame | history | |
icons/remove.png | patch | view | raw | blame | history |
CameraPane.java
.. .. @@ -16783,6 +16783,11 @@ 16783 16783 //System.out.println("objects[color] = " + objects[color]); 16784 16784 //objects[color].Select(); 16785 16785 indexcount = 0; 16786 + ObjEditor window = object.GetWindow();16787 + if (window != null && deselect)16788 + {16789 + window.Select(null, deselect, true);16790 + }16786 16791 object.Select(color, deselect); 16787 16792 } 16788 16793 Grid.java
.. .. @@ -64,7 +64,7 @@ 64 64 65 65 Vertex biparamFunction(double u, double v) 66 66 { 67 - Vertex temp = new Vertex((2*v-1)*radius*8, 0 /*-radius,*/, (2*u-1)*radius*8);67 + Vertex temp = new Vertex((2*v-1)*radius*4, 0 /*-radius,*/, (2*u-1)*radius*4);68 68 temp.norm = LA.newVector(0,1,0); 69 69 return temp; 70 70 } GroupEditor.java
.. .. @@ -758,16 +758,16 @@ 758 758 } 759 759 760 760 // EDIT panel 761 - editCommandsPanel.add(editButton = new cButton("+", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);762 - editButton.setToolTipText("Edit selection");761 + editCommandsPanel.add(editButton = GetButton("icons/controls.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);762 + editButton.setToolTipText("Pin selection controls");763 763 editButton.addActionListener(this); 764 764 765 - editCommandsPanel.add(uneditButton = new cButton("-", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);766 - uneditButton.setToolTipText("Unedit selection");765 + editCommandsPanel.add(uneditButton = GetButton("icons/remove.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);766 + uneditButton.setToolTipText("Remove selection controls");767 767 uneditButton.addActionListener(this); 768 768 769 769 editCommandsPanel.add(allParamsButton = new JCheckBox("All", allparams)); //, oe.aConstraints); 770 - allParamsButton.setToolTipText("Edit all params");770 + allParamsButton.setToolTipText("Show all controle");771 771 allParamsButton.addActionListener(this); 772 772 773 773 editCommandsPanel.add(clearPanelButton = new cButton("C", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); .. .. @@ -784,6 +784,7 @@ 784 784 785 785 editCommandsPanel.preferredHeight = 1; 786 786 787 + SetPinStates(false);787 788 // oe.treePanel.add(commandsPanel); 788 789 // oe.treePanel.Return(); 789 790 .. .. @@ -857,7 +858,7 @@ 857 858 boxCB.addItemListener(this); 858 859 859 860 panel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE)); //, constraints); 860 - zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel");861 + zoomBoxCB.setToolTipText("Display only for wheel");861 862 zoomBoxCB.addItemListener(this); 862 863 863 864 if (true) // Globals.ADVANCED) .. .. @@ -919,7 +920,7 @@ 919 920 oeilCB.addItemListener(this); 920 921 921 922 panel.add(shadowCB = new cCheckBox("Shadow", Globals.COMPUTESHADOWWHENLIVE)); //, constraints); 922 - shadowCB.setToolTipText("Compute shadows when live");923 + shadowCB.setToolTipText("When live compute shadows");923 924 shadowCB.addItemListener(this); 924 925 925 926 panel.Return(); .. .. @@ -932,7 +933,7 @@ 932 933 toggleSwitchCB.addItemListener(this); 933 934 934 935 panel.add(autosaveCB = new cCheckBox("Auto-save", Globals.SAVEONMAKE)); //, constraints); 935 - autosaveCB.setToolTipText("Auto-save on structure change");936 + autosaveCB.setToolTipText("On structure change");936 937 autosaveCB.addItemListener(this); 937 938 938 939 panel.Return(); .. .. @@ -1628,6 +1629,20 @@ 1628 1629 1629 1630 makeSomething(shadow); 1630 1631 } 1632 +1633 + private void ClearUnpinned()1634 + {1635 + //for (Object3D obj : listUI)1636 + for (int i=listUI.size(); --i>=0;)1637 + {1638 + Object3D obj = listUI.elementAt(i);1639 + if (!obj.pinned)1640 + {1641 + obj.CloseUI();1642 + listUI.remove(i);1643 + }1644 + }1645 + }1631 1646 1632 1647 /** 1633 1648 * applyExample .. .. @@ -3372,7 +3387,7 @@ 3372 3387 //copy.ClearUI(); 3373 3388 for (Object3D obj : listUI) 3374 3389 { 3375 - obj.pinned = true;3390 + obj.pinned = false;3376 3391 obj.CloseUI(); 3377 3392 } 3378 3393 listUI.clear(); .. .. @@ -3457,6 +3472,11 @@ 3457 3472 currentLayout = sevenButton; 3458 3473 */ 3459 3474 radio.layout.doClick(); 3475 +3476 + ClearUnpinned();3477 + SetPinStates(group.selection.size() > 0);3478 + if (group.selection.size() == 1)3479 + EditSelection(false);3460 3480 keepparent = group.parent; 3461 3481 // PARENT = NULL or not??? 3462 3482 //group.parent = null; // ROOT .. .. @@ -4616,17 +4636,7 @@ 4616 4636 //new Exception().printStackTrace(); 4617 4637 4618 4638 freezemodel = true; 4619 -4620 - //for (Object3D obj : listUI)4621 - for (int i=listUI.size(); --i>=0;)4622 - {4623 - Object3D obj = listUI.elementAt(i);4624 - if (!obj.pinned)4625 - {4626 - obj.CloseUI();4627 - listUI.remove(i);4628 - }4629 - }4639 + ClearUnpinned();4630 4640 4631 4641 /**/ 4632 4642 //switch (event.id) .. .. @@ -4689,6 +4699,8 @@ 4689 4699 { 4690 4700 editButton.setEnabled(enabled); 4691 4701 uneditButton.setEnabled(enabled); 4702 + unselectButton.setEnabled(enabled);4703 + flashSelectionButton.setEnabled(enabled);4692 4704 } 4693 4705 4694 4706 void refreshContents(boolean cp) ObjEditor.java
.. .. @@ -15,6 +15,9 @@ 15 15 //import javax.swing.plaf.ColorUIResource; 16 16 //import javax.swing.plaf.metal.DefaultMetalTheme; 17 17 18 +import javax.swing.plaf.basic.BasicSplitPaneDivider;19 +import javax.swing.plaf.basic.BasicSplitPaneUI;20 +18 21 //import javax.media.opengl.GLCanvas; 19 22 20 23 import //weka.core. .. .. @@ -458,7 +461,13 @@ 458 461 mainPanel.setDividerSize(9); 459 462 mainPanel.setDividerLocation(0.5); //1.0); 460 463 mainPanel.setResizeWeight(0.5); 461 -464 +465 +//mainPanel.setDividerSize((int) (mainPanel.getDividerSize() * 1.5));466 +// BasicSplitPaneDivider divider = ( (BasicSplitPaneUI) mainPanel.getUI()).getDivider();467 +// divider.setDividerSize(15);468 +// divider.setBorder(BorderFactory.createTitledBorder(divider.getBorder(), "Custom border title -- gets rid of the one-touch arrows!"));469 +470 +462 471 //ctrlPanel.setLayout(new GridLayout(4, 1, 5, 5)); 463 472 //mainPanel.setLayout(new GridBagLayout()); 464 473 toolbarPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); .. .. @@ -1125,7 +1134,7 @@ 1125 1134 hideCB = AddCheckBox(setupPanel, "Hide", copy.hide); 1126 1135 hideCB.setToolTipText("Hide object"); 1127 1136 markCB = AddCheckBox(setupPanel, "Mark", copy.marked); 1128 - markCB.setToolTipText("Set the animation target transform");1137 + markCB.setToolTipText("As animation target transform");1129 1138 1130 1139 setupPanel2 = new cGridBag().setVertical(false); 1131 1140 .. .. @@ -1133,7 +1142,7 @@ 1133 1142 rewindCB.setToolTipText("Rewind animation"); 1134 1143 1135 1144 randomCB = AddCheckBox(setupPanel2, "Rand", copy.random); 1136 - randomCB.setToolTipText("Randomly Rewind or Go back and forth");1145 + randomCB.setToolTipText("Randomly Rewind (or Go back and forth)");1137 1146 1138 1147 if (Globals.ADVANCED) 1139 1148 { .. .. @@ -3017,12 +3026,17 @@ 3017 3026 // } 3018 3027 3019 3028 /**/ 3020 - if (deselect)3029 + if (deselect || child == null)3021 3030 { 3022 3031 //group.deselectAll(); 3023 3032 //freeze = true; 3024 3033 GetTree().clearSelection(); 3025 3034 //freeze = false; 3035 +3036 + if (child == null)3037 + {3038 + return;3039 + }3026 3040 } 3027 3041 3028 3042 //group.addSelectee(child); Object3D.java
.. .. @@ -5043,6 +5043,7 @@ 5043 5043 5044 5044 if (child == null) 5045 5045 continue; 5046 +5046 5047 if (child.HasTransparency() && child.size() != 0) 5047 5048 { 5048 5049 cTreePath leaf = child.Select(indexcount, deselect); .. .. @@ -5929,6 +5930,7 @@ 5929 5930 if (GetBRep() != null) 5930 5931 { 5931 5932 display.NextIndex(); 5933 +5932 5934 // vertex color conflict : gl.glCallList(list); 5933 5935 DrawNode(display, root, selected); 5934 5936 if (this instanceof BezierPatch) cTree.java
.. .. @@ -20,7 +20,11 @@ 20 20 { 21 21 public void mousePressed(MouseEvent e) 22 22 { 23 - if (e.isPopupTrigger()) {23 + if (e.isPopupTrigger())24 + {25 + int row = getClosestRowForLocation(e.getX(), e.getY());26 + if (!isRowSelected(row))27 + setSelectionRow(row);24 28 popup.show((JComponent) e.getSource(), e.getX(), e.getY()); 25 29 } 26 30 } icons/Media_player_icons-04-512.pngBinary files differ
icons/controls.pngBinary files differ
icons/flash-light.pngBinary files differ
icons/loop0.pngdeleted file mode 100644Binary files differ
icons/particles0.pngdeleted file mode 100644Binary files differ
icons/remove.pngBinary files differ