From f1c718cce66e5651a0dae91375db6ebfaded1a92 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sat, 27 Apr 2019 21:33:41 -0400 Subject: [PATCH] Test unfold UV --- GroupEditor.java | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/GroupEditor.java b/GroupEditor.java index 02ade54..b72085f 100644 --- a/GroupEditor.java +++ b/GroupEditor.java @@ -438,10 +438,16 @@ oe.aConstraints.gridx = 0; oe.toolbarPanel.add(liveCB = new cCheckBox("Live", Globals.isLIVE()), oe.aConstraints); + liveCB.setToolTipText("Enabled animation"); liveCB.addItemListener(this); oe.aConstraints.gridx += 1; + oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST), oe.aConstraints); + fastCB.setToolTipText("Fast mode"); + fastCB.addItemListener(this); + oe.aConstraints.gridx += 1; oe.toolbarPanel.add(supportCB = new cCheckBox("Support", CameraPane.SUPPORT), oe.aConstraints); + supportCB.setToolTipText("Enabled rigging"); supportCB.addItemListener(this); // oe.aConstraints.gridx += 1; @@ -450,21 +456,26 @@ oe.aConstraints.gridx += 1; oe.toolbarPanel.add(crowdCB = new cCheckBox("Crowd", Globals.CROWD), oe.aConstraints); + crowdCB.setToolTipText("Used for crowds"); crowdCB.addItemListener(this); oe.aConstraints.gridx += 1; oe.toolbarPanel.add(smoothCB = new cCheckBox("Inertia", CameraPane.INERTIA), oe.aConstraints); + smoothCB.setToolTipText("Snapping delay"); smoothCB.addItemListener(this); oe.aConstraints.gridx += 1; - oe.toolbarPanel.add(fastCB = new cCheckBox("Fast", CameraPane.FAST), oe.aConstraints); - fastCB.addItemListener(this); - oe.aConstraints.gridx += 1; oe.toolbarPanel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE), oe.aConstraints); + slowCB.setToolTipText("Smooth interpolation"); slowCB.addItemListener(this); oe.aConstraints.gridx += 1; - oe.toolbarPanel.add(boxCB = new cCheckBox("Box", CameraPane.FAST), oe.aConstraints); + oe.toolbarPanel.add(boxCB = new cCheckBox("Box", CameraPane.BOXMODE), oe.aConstraints); + boxCB.setToolTipText("Display bounding boxes"); boxCB.addItemListener(this); + oe.aConstraints.gridx += 1; + oe.toolbarPanel.add(zoomBoxCB = new cCheckBox("Zoom", CameraPane.ZOOMBOXMODE), oe.aConstraints); + zoomBoxCB.setToolTipText("Display bounding boxes when moving the wheel"); + zoomBoxCB.addItemListener(this); // oe.aConstraints.gridx += 1; // oe.toolbarPanel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), oe.aConstraints); @@ -491,19 +502,22 @@ // debugCB.addItemListener(this); oe.aConstraints.gridx += 1; - oe.toolbarPanel.add(oeilCB = new cCheckBox("O", CameraPane.OEIL), oe.aConstraints); + oe.toolbarPanel.add(oeilCB = new cCheckBox("Eye", CameraPane.OEIL), oe.aConstraints); oeilCB.addItemListener(this); oe.aConstraints.gridx += 1; - oe.toolbarPanel.add(lookAtCB = new cCheckBox("T", CameraPane.LOOKAT), oe.aConstraints); + oe.toolbarPanel.add(lookAtCB = new cCheckBox("Target", CameraPane.LOOKAT), oe.aConstraints); + lookAtCB.setToolTipText("Look-at target"); lookAtCB.addItemListener(this); oe.aConstraints.gridx += 1; oe.toolbarPanel.add(trackCB = new cCheckBox(":", CameraPane.TRACK), oe.aConstraints); + trackCB.setToolTipText("Enable tracking"); trackCB.addItemListener(this); oe.aConstraints.gridx += 1; oe.toolbarPanel.add(screenfitButton = new cButton("@ ")); //, oe.aConstraints); + screenfitButton.setToolTipText("Screen fit"); screenfitButton.addActionListener(this); oe.aConstraints.gridx += 1; // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints); @@ -511,6 +525,7 @@ // oe.aConstraints.gridx += 1; oe.toolbarPanel.add(snapobjectButton = new cButton(" O+ ")); //, oe.aConstraints); snapobjectButton.addActionListener(this); + snapobjectButton.setToolTipText("Snap Object"); oe.aConstraints.gridx += 1; //aConstraints.gridx = 0; @@ -519,6 +534,7 @@ oe.aConstraints.gridwidth = 1; oe.toolbarPanel.add(flashSelectionButton = new cButton(" ? ")); //, oe.aConstraints); + flashSelectionButton.setToolTipText("Show selection"); flashSelectionButton.addActionListener(this); oe.toolbarPanel.add(new cButton(" ", false)); @@ -529,21 +545,28 @@ // oe.toolbarPanel.add(twoButton = new cButton(" |+| ")); //, oe.aConstraints); + twoButton.setToolTipText("Show center view only"); twoButton.addActionListener(this); oe.toolbarPanel.add(fourButton = new cButton("+|| ")); //, oe.aConstraints); fourButton.addActionListener(this); + fourButton.setToolTipText("Show left panel only"); oe.toolbarPanel.add(sixButton = new cButton("+|+| ")); //, oe.aConstraints); + sixButton.setToolTipText("2-column layout left"); sixButton.addActionListener(this); oe.toolbarPanel.add(threeButton = new cButton(" |+|+")); //, oe.aConstraints); + threeButton.setToolTipText("2-column layout right"); threeButton.addActionListener(this); oe.toolbarPanel.add(sevenButton = new cButton("+|+|+")); //, oe.aConstraints); + sevenButton.setToolTipText("3-column layout"); sevenButton.addActionListener(this); // - oe.toolbarPanel.add(rootButton = new cButton(" o o o E ")); //, oe.aConstraints); + oe.toolbarPanel.add(rootButton = new cButton(" o o o ")); //, oe.aConstraints); + rootButton.setToolTipText("Edit object in new tab"); rootButton.addActionListener(this); oe.aConstraints.gridx += 1; oe.toolbarPanel.add(closeButton = new cButton(" X ")); //, oe.aConstraints); + closeButton.setToolTipText("Close tab"); closeButton.addActionListener(this); //oe.treePanel.add(clearButton = new cButton("X"), oe.aConstraints); //clearButton.addActionListener(this); @@ -676,6 +699,7 @@ JCheckBox fastCB; JCheckBox slowCB; JCheckBox boxCB; + JCheckBox zoomBoxCB; JCheckBox trackCB; JCheckBox smoothfocusCB; // JCheckBox speakerMocapCB; @@ -756,6 +780,10 @@ cameraView.repaint(); // refreshContents(); } + else if(e.getSource() == zoomBoxCB) + { + cameraView.ToggleZoomBoxMode(); + } else if(e.getSource() == smoothfocusCB) { cameraView.ToggleSmoothFocus(); -- Gitblit v1.6.2