SDK:
- Cleanup icon use throughout SDK-Core git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10131 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@ -133,7 +133,7 @@ public class AssetDataObject extends MultiDataObject {
|
|||||||
@Override
|
@Override
|
||||||
protected Node createNodeDelegate() {
|
protected Node createNodeDelegate() {
|
||||||
AssetDataNode node = new AssetDataNode(this, Children.LEAF, new ProxyLookup(getCookieSet().getLookup(), contentLookup));
|
AssetDataNode node = new AssetDataNode(this, Children.LEAF, new ProxyLookup(getCookieSet().getLookup(), contentLookup));
|
||||||
node.setIconBaseWithExtension("com/jme3/gde/core/assets/jme-logo.png");
|
node.setIconBaseWithExtension("com/jme3/gde/core/icons/jme-logo.png");
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,13 +33,13 @@ package com.jme3.gde.core.assets.nodes;
|
|||||||
|
|
||||||
import com.jme3.gde.core.assets.AssetDataObject;
|
import com.jme3.gde.core.assets.AssetDataObject;
|
||||||
import com.jme3.gde.core.assets.ProjectAssetManager;
|
import com.jme3.gde.core.assets.ProjectAssetManager;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import org.netbeans.api.project.Project;
|
import org.netbeans.api.project.Project;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.loaders.DataObjectNotFoundException;
|
import org.openide.loaders.DataObjectNotFoundException;
|
||||||
import org.openide.nodes.FilterNode;
|
import org.openide.nodes.FilterNode;
|
||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.Lookup;
|
import org.openide.util.Lookup;
|
||||||
import org.openide.util.lookup.ProxyLookup;
|
import org.openide.util.lookup.ProxyLookup;
|
||||||
|
|
||||||
@ -49,8 +49,7 @@ import org.openide.util.lookup.ProxyLookup;
|
|||||||
*/
|
*/
|
||||||
public class ProjectAssetsNode extends FilterNode {
|
public class ProjectAssetsNode extends FilterNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.asset.getImage();
|
||||||
ImageUtilities.loadImage("/com/jme3/gde/core/assets/nodes/icons/assets.gif");
|
|
||||||
|
|
||||||
public ProjectAssetsNode(ProjectAssetManager manager, Project proj, Node node) throws DataObjectNotFoundException {
|
public ProjectAssetsNode(ProjectAssetManager manager, Project proj, Node node) throws DataObjectNotFoundException {
|
||||||
super(node, new AssetChildren(manager, node), createLookupProxy(manager, node));
|
super(node, new AssetChildren(manager, node), createLookupProxy(manager, node));
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
package com.jme3.gde.core.codeless;
|
package com.jme3.gde.core.codeless;
|
||||||
|
|
||||||
import com.jme3.gde.core.assets.ProjectAssetManager;
|
import com.jme3.gde.core.assets.ProjectAssetManager;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import java.beans.PropertyChangeListener;
|
import java.beans.PropertyChangeListener;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -21,7 +22,6 @@ import org.netbeans.spi.project.ui.LogicalViewProvider;
|
|||||||
import org.netbeans.spi.project.ui.support.DefaultProjectOperations;
|
import org.netbeans.spi.project.ui.support.DefaultProjectOperations;
|
||||||
import org.openide.filesystems.FileObject;
|
import org.openide.filesystems.FileObject;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.Lookup;
|
import org.openide.util.Lookup;
|
||||||
import org.openide.util.lookup.Lookups;
|
import org.openide.util.lookup.Lookups;
|
||||||
|
|
||||||
@ -203,8 +203,7 @@ class CodelessProject implements Project {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Icon getIcon() {
|
public Icon getIcon() {
|
||||||
return new ImageIcon(ImageUtilities.loadImage(
|
return IconList.jmeLogo;
|
||||||
"com/jme3/gde/core/sceneviewer/jme-logo.png"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.jme3.gde.core.codeless;
|
package com.jme3.gde.core.codeless;
|
||||||
|
|
||||||
import com.jme3.gde.core.assets.ProjectAssetManager;
|
import com.jme3.gde.core.assets.ProjectAssetManager;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -66,7 +67,7 @@ class CodelessProjectLogicalView implements LogicalViewProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Image getIcon(int type) {
|
public Image getIcon(int type) {
|
||||||
return ImageUtilities.loadImage("com/jme3/gde/core/sceneviewer/jme-logo.png");
|
return IconList.jmeLogo.getImage();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
package com.jme3.gde.core.completion;
|
package com.jme3.gde.core.completion;
|
||||||
|
|
||||||
import com.jme3.gde.core.assets.ProjectAssetManager;
|
import com.jme3.gde.core.assets.ProjectAssetManager;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import java.awt.Font;
|
import java.awt.Font;
|
||||||
import java.awt.Graphics;
|
import java.awt.Graphics;
|
||||||
@ -60,7 +61,6 @@ import org.netbeans.spi.editor.completion.support.CompletionUtilities;
|
|||||||
import org.openide.filesystems.FileObject;
|
import org.openide.filesystems.FileObject;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -70,23 +70,6 @@ import org.openide.util.ImageUtilities;
|
|||||||
public class AssetCompletionProvider implements CompletionProvider {
|
public class AssetCompletionProvider implements CompletionProvider {
|
||||||
|
|
||||||
private static final Logger logger = Logger.getLogger(AssetCompletionProvider.class.getName());
|
private static final Logger logger = Logger.getLogger(AssetCompletionProvider.class.getName());
|
||||||
private static ImageIcon assetIcon =
|
|
||||||
new ImageIcon(ImageUtilities.loadImage("com/jme3/gde/core/assets/nodes/icons/assets.gif"));
|
|
||||||
private static ImageIcon modelIcon =
|
|
||||||
new ImageIcon(ImageUtilities.loadImage("com/jme3/gde/core/assets/nodes/icons/model.gif"));
|
|
||||||
private static ImageIcon soundIcon =
|
|
||||||
new ImageIcon(ImageUtilities.loadImage("com/jme3/gde/core/assets/nodes/icons/sound.gif"));
|
|
||||||
private static ImageIcon materialIcon =
|
|
||||||
new ImageIcon(ImageUtilities.loadImage("com/jme3/gde/core/assets/nodes/icons/material.gif"));
|
|
||||||
private static ImageIcon matDefIcon =
|
|
||||||
new ImageIcon(ImageUtilities.loadImage("com/jme3/gde/core/assets/jme-logo.png"));
|
|
||||||
private static ImageIcon fontIcon =
|
|
||||||
new ImageIcon(ImageUtilities.loadImage("com/jme3/gde/core/assets/nodes/icons/font.gif"));
|
|
||||||
private static ImageIcon filterIcon =
|
|
||||||
new ImageIcon(ImageUtilities.loadImage("com/jme3/gde/core/filters/icons/eye.gif"));
|
|
||||||
private static ImageIcon textureIcon =
|
|
||||||
new ImageIcon(ImageUtilities.loadImage("com/jme3/gde/core/assets/nodes/icons/image.gif"));
|
|
||||||
|
|
||||||
private enum AssetType {
|
private enum AssetType {
|
||||||
|
|
||||||
Invalid, Model, Material, Filter, MatDef, Texture, Sound, Font, Xml, Asset
|
Invalid, Model, Material, Filter, MatDef, Texture, Sound, Font, Xml, Asset
|
||||||
@ -366,28 +349,28 @@ public class AssetCompletionProvider implements CompletionProvider {
|
|||||||
ImageIcon icon = null;
|
ImageIcon icon = null;
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case Model:
|
case Model:
|
||||||
icon = modelIcon;
|
icon = IconList.model;
|
||||||
break;
|
break;
|
||||||
case Material:
|
case Material:
|
||||||
icon = materialIcon;
|
icon = IconList.material;
|
||||||
break;
|
break;
|
||||||
case MatDef:
|
case MatDef:
|
||||||
icon = matDefIcon;
|
icon = IconList.matDef;
|
||||||
break;
|
break;
|
||||||
case Texture:
|
case Texture:
|
||||||
icon = textureIcon;
|
icon = IconList.texture;
|
||||||
break;
|
break;
|
||||||
case Sound:
|
case Sound:
|
||||||
icon = soundIcon;
|
icon = IconList.sound;
|
||||||
break;
|
break;
|
||||||
case Font:
|
case Font:
|
||||||
icon = fontIcon;
|
icon = IconList.font;
|
||||||
break;
|
break;
|
||||||
case Filter:
|
case Filter:
|
||||||
icon = filterIcon;
|
icon = IconList.filter;
|
||||||
break;
|
break;
|
||||||
case Asset:
|
case Asset:
|
||||||
icon = assetIcon;
|
icon = IconList.asset;
|
||||||
break;
|
break;
|
||||||
case Invalid:
|
case Invalid:
|
||||||
break;
|
break;
|
||||||
|
@ -0,0 +1,127 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2003-2012 jMonkeyEngine
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are
|
||||||
|
* met:
|
||||||
|
*
|
||||||
|
* * Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
|
* * Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution.
|
||||||
|
*
|
||||||
|
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
|
||||||
|
* may be used to endorse or promote products derived from this software
|
||||||
|
* without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||||
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||||
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||||
|
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
package com.jme3.gde.core.completion;
|
||||||
|
|
||||||
|
//import java.lang.reflect.Modifier;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
import javax.swing.text.Document;
|
||||||
|
import javax.swing.text.JTextComponent;
|
||||||
|
import org.netbeans.api.editor.mimelookup.MimeRegistration;
|
||||||
|
import org.netbeans.spi.editor.codegen.CodeGenerator;
|
||||||
|
import org.netbeans.spi.editor.codegen.CodeGeneratorContextProvider;
|
||||||
|
import org.openide.util.Exceptions;
|
||||||
|
import org.openide.util.Lookup;
|
||||||
|
|
||||||
|
public class ModelGenerator implements CodeGenerator {
|
||||||
|
|
||||||
|
JTextComponent textComp;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param context containing JTextComponent and possibly other items
|
||||||
|
* registered by {@link CodeGeneratorContextProvider}
|
||||||
|
*/
|
||||||
|
private ModelGenerator(Lookup context) { // Good practice is not to save Lookup outside ctor
|
||||||
|
textComp = context.lookup(JTextComponent.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
// @MimeRegistration(mimeType = "text/x-java", service = CodeGenerator.Factory.class)
|
||||||
|
public static class Factory implements CodeGenerator.Factory {
|
||||||
|
|
||||||
|
public List<? extends CodeGenerator> create(Lookup context) {
|
||||||
|
return Collections.singletonList(new ModelGenerator(context));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The name which will be inserted inside Insert Code dialog
|
||||||
|
*/
|
||||||
|
public String getDisplayName() {
|
||||||
|
return "Sample Generator";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This will be invoked when user chooses this Generator from Insert Code
|
||||||
|
* dialog
|
||||||
|
*/
|
||||||
|
public void invoke() {
|
||||||
|
try {
|
||||||
|
Document doc = textComp.getDocument();
|
||||||
|
int caretPos = textComp.getCaretPosition();
|
||||||
|
doc.insertString(caretPos, "hack", null);
|
||||||
|
// Document doc = textComp.getDocument();
|
||||||
|
// JavaSource javaSource = JavaSource.forDocument(doc);
|
||||||
|
// CancellableTask task = new CancellableTask<WorkingCopy>() {
|
||||||
|
// public void run(WorkingCopy workingCopy) throws IOException {
|
||||||
|
// workingCopy.toPhase(Phase.RESOLVED);
|
||||||
|
// CompilationUnitTree cut = workingCopy.getCompilationUnit();
|
||||||
|
// TreeMaker make = workingCopy.getTreeMaker();
|
||||||
|
// for (Tree typeDecl : cut.getTypeDecls()) {
|
||||||
|
// if (Tree.Kind.CLASS == typeDecl.getKind()) {
|
||||||
|
// ClassTree clazz = (ClassTree) typeDecl;
|
||||||
|
// ModifiersTree methodModifiers =
|
||||||
|
// make.Modifiers(Collections.<Modifier>singleton(Modifier.PUBLIC),
|
||||||
|
// Collections.<AnnotationTree>emptyList());
|
||||||
|
// VariableTree parameter =
|
||||||
|
// make.Variable(make.Modifiers(Collections.<Modifier>singleton(Modifier.FINAL),
|
||||||
|
// Collections.<AnnotationTree>emptyList()),
|
||||||
|
// "arg0",
|
||||||
|
// make.Identifier("Object"),
|
||||||
|
// null);
|
||||||
|
// TypeElement element = workingCopy.getElements().getTypeElement("java.io.IOException");
|
||||||
|
// ExpressionTree throwsClause = make.QualIdent(element);
|
||||||
|
// MethodTree newMethod =
|
||||||
|
// make.Method(methodModifiers,
|
||||||
|
// "writeExternal",
|
||||||
|
// make.PrimitiveType(TypeKind.VOID),
|
||||||
|
// Collections.<TypeParameterTree>emptyList(),
|
||||||
|
// Collections.singletonList(parameter),
|
||||||
|
// Collections.<ExpressionTree>singletonList(throwsClause),
|
||||||
|
// "{ throw new UnsupportedOperationException(\"Not supported yet.\") }",
|
||||||
|
// null);
|
||||||
|
// ClassTree modifiedClazz = make.addClassMember(clazz, newMethod);
|
||||||
|
// workingCopy.rewrite(clazz, modifiedClazz);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public void cancel() {
|
||||||
|
// }
|
||||||
|
// };
|
||||||
|
// ModificationResult result = javaSource.runModificationTask(task);
|
||||||
|
// result.commit();
|
||||||
|
} catch (Exception ex) {
|
||||||
|
Exceptions.printStackTrace(ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -32,6 +32,7 @@
|
|||||||
package com.jme3.gde.core.filters;
|
package com.jme3.gde.core.filters;
|
||||||
|
|
||||||
import com.jme3.gde.core.filters.actions.EnableFiterAction;
|
import com.jme3.gde.core.filters.actions.EnableFiterAction;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.properties.SceneExplorerProperty;
|
import com.jme3.gde.core.properties.SceneExplorerProperty;
|
||||||
import com.jme3.gde.core.properties.ScenePropertyChangeListener;
|
import com.jme3.gde.core.properties.ScenePropertyChangeListener;
|
||||||
import com.jme3.gde.core.util.PropertyUtils;
|
import com.jme3.gde.core.util.PropertyUtils;
|
||||||
@ -51,7 +52,6 @@ import org.openide.nodes.Children;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,8 +65,6 @@ public abstract class AbstractFilterNode extends AbstractNode implements FilterN
|
|||||||
protected DataObject dataObject;
|
protected DataObject dataObject;
|
||||||
protected Filter filter;
|
protected Filter filter;
|
||||||
private static Image icon;
|
private static Image icon;
|
||||||
private static final String ICON_ENABLED = "com/jme3/gde/core/filters/icons/eye.gif";
|
|
||||||
private static final String ICON_DISABLED = "com/jme3/gde/core/filters/icons/crossedEye.gif";
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Image getIcon(int type) {
|
public Image getIcon(int type) {
|
||||||
@ -81,10 +79,10 @@ public abstract class AbstractFilterNode extends AbstractNode implements FilterN
|
|||||||
|
|
||||||
public void toggleIcon(boolean enabled) {
|
public void toggleIcon(boolean enabled) {
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
icon = ImageUtilities.loadImage(ICON_ENABLED);
|
icon = IconList.eyeOpen.getImage();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
icon = ImageUtilities.loadImage(ICON_DISABLED);
|
icon = IconList.eyeCrossed.getImage();
|
||||||
|
|
||||||
}
|
}
|
||||||
fireIconChange();
|
fireIconChange();
|
||||||
@ -98,9 +96,8 @@ public abstract class AbstractFilterNode extends AbstractNode implements FilterN
|
|||||||
super(Children.LEAF);
|
super(Children.LEAF);
|
||||||
this.filter = filter;
|
this.filter = filter;
|
||||||
setName(filter.getName());
|
setName(filter.getName());
|
||||||
icon = ImageUtilities.loadImage(ICON_ENABLED);
|
icon = IconList.eyeOpen.getImage();
|
||||||
setIconBaseWithExtension(ICON_ENABLED);
|
// setIconBaseWithExtension(IconList.eyeOpen.);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -33,6 +33,7 @@ package com.jme3.gde.core.filters;
|
|||||||
|
|
||||||
import com.jme3.gde.core.assets.FilterDataObject;
|
import com.jme3.gde.core.assets.FilterDataObject;
|
||||||
import com.jme3.gde.core.filters.actions.NewFilterPopup;
|
import com.jme3.gde.core.filters.actions.NewFilterPopup;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.post.Filter;
|
import com.jme3.post.Filter;
|
||||||
import com.jme3.post.FilterPostProcessor;
|
import com.jme3.post.FilterPostProcessor;
|
||||||
@ -50,7 +51,6 @@ import org.openide.nodes.Children;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.NodeTransfer;
|
import org.openide.nodes.NodeTransfer;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.Lookup;
|
import org.openide.util.Lookup;
|
||||||
import org.openide.util.datatransfer.PasteType;
|
import org.openide.util.datatransfer.PasteType;
|
||||||
import org.openide.util.lookup.Lookups;
|
import org.openide.util.lookup.Lookups;
|
||||||
@ -62,8 +62,7 @@ import org.openide.util.lookup.Lookups;
|
|||||||
public class FilterPostProcessorNode extends AbstractNode {
|
public class FilterPostProcessorNode extends AbstractNode {
|
||||||
|
|
||||||
private FilterDataObject dataObject;
|
private FilterDataObject dataObject;
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.eyeOpen.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/filters/icons/eye.gif");
|
|
||||||
private FilterPostProcessor fpp;
|
private FilterPostProcessor fpp;
|
||||||
|
|
||||||
public FilterPostProcessorNode(FilterDataObject dataObject) {
|
public FilterPostProcessorNode(FilterDataObject dataObject) {
|
||||||
|
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/65.png
Normal file
After Width: | Height: | Size: 832 B |
139
sdk/jme3-core/src/com/jme3/gde/core/icons/IconList.java
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2003-2012 jMonkeyEngine
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
* modification, are permitted provided that the following conditions are
|
||||||
|
* met:
|
||||||
|
*
|
||||||
|
* * Redistributions of source code must retain the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer.
|
||||||
|
*
|
||||||
|
* * Redistributions in binary form must reproduce the above copyright
|
||||||
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
|
* documentation and/or other materials provided with the distribution.
|
||||||
|
*
|
||||||
|
* * Neither the name of 'jMonkeyEngine' nor the names of its contributors
|
||||||
|
* may be used to endorse or promote products derived from this software
|
||||||
|
* without specific prior written permission.
|
||||||
|
*
|
||||||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||||
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||||
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||||
|
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
*/
|
||||||
|
package com.jme3.gde.core.icons;
|
||||||
|
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
|
import org.openide.util.ImageUtilities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author normenhansen
|
||||||
|
*/
|
||||||
|
public class IconList {
|
||||||
|
|
||||||
|
public static final ImageIcon jmeLogo =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/jme-logo.png", false);
|
||||||
|
public static ImageIcon asset =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/assets.gif", false);
|
||||||
|
public static ImageIcon model =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/model.gif", false);
|
||||||
|
public static ImageIcon sound =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/sound.gif", false);
|
||||||
|
public static ImageIcon material =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/material.gif", false);
|
||||||
|
public static ImageIcon matDef =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/jme-logo.png", false);
|
||||||
|
public static ImageIcon font =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/font.gif", false);
|
||||||
|
public static ImageIcon filter =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/eye.gif", false);
|
||||||
|
public static ImageIcon texture =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/image.gif", false);
|
||||||
|
public static ImageIcon orthoMode =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/ortho.png", false);
|
||||||
|
public static ImageIcon perspMode =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/persp.png", false);
|
||||||
|
public static ImageIcon userMode =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/user.png", false);
|
||||||
|
public static ImageIcon bottomView =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/bottom.png", false);
|
||||||
|
public static ImageIcon backView =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/back.png", false);
|
||||||
|
public static ImageIcon topView =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/top.png", false);
|
||||||
|
public static ImageIcon leftView =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/left.png", false);
|
||||||
|
public static ImageIcon rightView =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/right.png", false);
|
||||||
|
public static ImageIcon frontView =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/front.png", false);
|
||||||
|
public static ImageIcon audioTrack =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/audioTrack.png", false);
|
||||||
|
public static ImageIcon effectTrack =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/effectTrack.png", false);
|
||||||
|
public static ImageIcon boneTrack =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/boneTrack.png", false);
|
||||||
|
public static ImageIcon track =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/track.png", false);
|
||||||
|
public static ImageIcon lightOff =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/lightbulb_off.gif", false);
|
||||||
|
public static ImageIcon lightOn =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/lightbulb.gif", false);
|
||||||
|
public static ImageIcon eyeOpen =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/eye.gif", false);
|
||||||
|
public static ImageIcon eyeCrossed =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/crossedEye.gif", false);
|
||||||
|
public static ImageIcon colorBox =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/box_color.gif", false);
|
||||||
|
public static ImageIcon wireBox =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/box_wire.gif", false);
|
||||||
|
public static ImageIcon info =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/65.png", false);
|
||||||
|
public static ImageIcon player =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/player.gif", false);
|
||||||
|
public static ImageIcon important =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/important.gif", false);
|
||||||
|
public static ImageIcon animControl =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/animationcontrol.gif", false);
|
||||||
|
public static ImageIcon animation =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/anim.png", false);
|
||||||
|
public static ImageIcon animationPlay =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/animPlay.png", false);
|
||||||
|
public static ImageIcon link =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/linknode.gif", false);
|
||||||
|
public static ImageIcon bone =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/bone.png", false);
|
||||||
|
public static ImageIcon wheel =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/physicswheel.gif", false);
|
||||||
|
public static ImageIcon geometry =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/geometry.gif", false);
|
||||||
|
public static ImageIcon ghostControl =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/ghostcontrol.gif", false);
|
||||||
|
public static ImageIcon light =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/light.gif", false);
|
||||||
|
public static ImageIcon mesh =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/mesh.gif", false);
|
||||||
|
public static ImageIcon node =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/node.gif", false);
|
||||||
|
public static ImageIcon emitter =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/particleemitter.gif", false);
|
||||||
|
public static ImageIcon physicsControl =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/physicscontrol.gif", false);
|
||||||
|
public static ImageIcon skeletonControl =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/skeletonControl.gif", false);
|
||||||
|
public static ImageIcon terrain =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/terrain.png", false);
|
||||||
|
public static ImageIcon vehicle =
|
||||||
|
ImageUtilities.loadImageIcon("com/jme3/gde/core/icons/vehicle.png", false);
|
||||||
|
// public static ImageIcon orthoMode =
|
||||||
|
// ImageUtilities.loadImageIcon(, false);
|
||||||
|
}
|
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/anim.png
Normal file
After Width: | Height: | Size: 850 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/animPlay.png
Normal file
After Width: | Height: | Size: 665 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/animationcontrol.gif
Normal file
After Width: | Height: | Size: 572 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/assets.gif
Normal file
After Width: | Height: | Size: 619 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/audioTrack.png
Normal file
After Width: | Height: | Size: 794 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/audionode.gif
Normal file
After Width: | Height: | Size: 340 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/bitmaptext.gif
Normal file
After Width: | Height: | Size: 295 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/bone.png
Normal file
After Width: | Height: | Size: 617 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/boneTrack.png
Normal file
After Width: | Height: | Size: 763 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/box_color.gif
Normal file
After Width: | Height: | Size: 118 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/box_wire.gif
Normal file
After Width: | Height: | Size: 97 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/charactercontrol.gif
Normal file
After Width: | Height: | Size: 561 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/crossedEye.gif
Normal file
After Width: | Height: | Size: 1022 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/effectTrack.png
Normal file
After Width: | Height: | Size: 748 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/eye.gif
Normal file
After Width: | Height: | Size: 990 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/font.gif
Normal file
After Width: | Height: | Size: 127 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/geometry.gif
Normal file
After Width: | Height: | Size: 562 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/ghostcontrol.gif
Normal file
After Width: | Height: | Size: 581 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/ghostnode.gif
Normal file
After Width: | Height: | Size: 323 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 386 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/image.gif
Normal file
After Width: | Height: | Size: 608 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/important.gif
Normal file
After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/light.gif
Normal file
After Width: | Height: | Size: 562 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/lightbulb.gif
Normal file
After Width: | Height: | Size: 562 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/lightbulb_off.gif
Normal file
After Width: | Height: | Size: 562 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/linknode.gif
Normal file
After Width: | Height: | Size: 156 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/material.gif
Normal file
After Width: | Height: | Size: 375 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/mesh.gif
Normal file
After Width: | Height: | Size: 97 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/model.gif
Normal file
After Width: | Height: | Size: 118 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/node.gif
Normal file
After Width: | Height: | Size: 79 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/ortho.png
Normal file
After Width: | Height: | Size: 604 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/particleemitter.gif
Normal file
After Width: | Height: | Size: 149 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/persp.png
Normal file
After Width: | Height: | Size: 706 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/physicscontrol.gif
Normal file
After Width: | Height: | Size: 553 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/physicsnode.gif
Normal file
After Width: | Height: | Size: 87 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/physicswheel.gif
Normal file
After Width: | Height: | Size: 405 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/player.gif
Normal file
After Width: | Height: | Size: 567 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/scene.gif
Normal file
After Width: | Height: | Size: 79 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/skeletonControl.gif
Normal file
After Width: | Height: | Size: 598 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/sound.gif
Normal file
After Width: | Height: | Size: 340 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/terrain.png
Normal file
After Width: | Height: | Size: 771 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/track.png
Normal file
After Width: | Height: | Size: 582 B |
BIN
sdk/jme3-core/src/com/jme3/gde/core/icons/vehicle.png
Normal file
After Width: | Height: | Size: 700 B |
@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.importantfiles;
|
package com.jme3.gde.core.importantfiles;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -20,7 +21,6 @@ import org.openide.nodes.AbstractNode;
|
|||||||
import org.openide.nodes.Children;
|
import org.openide.nodes.Children;
|
||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.Lookup;
|
import org.openide.util.Lookup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -29,8 +29,7 @@ import org.openide.util.Lookup;
|
|||||||
*/
|
*/
|
||||||
public class ImportantFilesNode extends AbstractNode implements FileChangeListener {
|
public class ImportantFilesNode extends AbstractNode implements FileChangeListener {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.important.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/importantfiles/important.gif");
|
|
||||||
|
|
||||||
public ImportantFilesNode(Project proj) throws DataObjectNotFoundException {
|
public ImportantFilesNode(Project proj) throws DataObjectNotFoundException {
|
||||||
super(new ImportantFilesChildren(proj));
|
super(new ImportantFilesChildren(proj));
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.1" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
|
||||||
<Form version="1.5" maxVersion="1.8">
|
<Form version="1.5" maxVersion="1.8">
|
||||||
<NonVisualComponents>
|
<NonVisualComponents>
|
||||||
@ -10,8 +10,8 @@
|
|||||||
<SubComponents>
|
<SubComponents>
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="frontMenuItem">
|
<MenuItem class="javax.swing.JMenuItem" name="frontMenuItem">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/scene/controller/toolbars/front.png"/>
|
<Connection code="IconList.frontView" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.frontMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.frontMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -23,8 +23,8 @@
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="leftMenuItem">
|
<MenuItem class="javax.swing.JMenuItem" name="leftMenuItem">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/scene/controller/toolbars/left.png"/>
|
<Connection code="IconList.leftView" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.leftMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.leftMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -36,8 +36,8 @@
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="rightMenuItem">
|
<MenuItem class="javax.swing.JMenuItem" name="rightMenuItem">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/scene/controller/toolbars/right.png"/>
|
<Connection code="IconList.rightView" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.rightMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.rightMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -49,8 +49,8 @@
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="topMenuItem">
|
<MenuItem class="javax.swing.JMenuItem" name="topMenuItem">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/scene/controller/toolbars/top.png"/>
|
<Connection code="IconList.topView" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.topMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.topMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -62,8 +62,8 @@
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="backMenuItem">
|
<MenuItem class="javax.swing.JMenuItem" name="backMenuItem">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/scene/controller/toolbars/back.png"/>
|
<Connection code="IconList.backView" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.backMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.backMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -75,8 +75,8 @@
|
|||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem class="javax.swing.JMenuItem" name="bottomMenuItem">
|
<MenuItem class="javax.swing.JMenuItem" name="bottomMenuItem">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/scene/controller/toolbars/bottom.png"/>
|
<Connection code="IconList.bottomView" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.bottomMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.bottomMenuItem.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -108,7 +108,7 @@
|
|||||||
<Component id="viewButton" min="-2" max="-2" attributes="0"/>
|
<Component id="viewButton" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="enableOrtho" min="-2" max="-2" attributes="0"/>
|
<Component id="enableOrtho" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace pref="96" max="32767" attributes="0"/>
|
<EmptySpace pref="116" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -125,8 +125,8 @@
|
|||||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||||
<Font name="Tahoma" size="8" style="0"/>
|
<Font name="Tahoma" size="8" style="0"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/scene/controller/toolbars/user.png"/>
|
<Connection code="IconList.userMode" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.viewButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.viewButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -145,8 +145,8 @@
|
|||||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||||
<Font name="Tahoma" size="8" style="0"/>
|
<Font name="Tahoma" size="8" style="0"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneviewer/icons/persp.png"/>
|
<Connection code="IconList.perspMode" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.enableOrtho.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.enableOrtho.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -155,7 +155,7 @@
|
|||||||
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.enableOrtho.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/scene/controller/toolbars/Bundle.properties" key="CameraToolbar.enableOrtho.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
|
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
|
||||||
<Color id="Pointeur par défaut"/>
|
<Color id="Standardcursor"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="focusable" type="boolean" value="false"/>
|
<Property name="focusable" type="boolean" value="false"/>
|
||||||
<Property name="horizontalTextPosition" type="int" value="4"/>
|
<Property name="horizontalTextPosition" type="int" value="4"/>
|
||||||
@ -168,8 +168,8 @@
|
|||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[50, 23]"/>
|
<Dimension value="[50, 23]"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="selectedIcon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="selectedIcon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneviewer/icons/ortho.png"/>
|
<Connection code="IconList.orthoMode" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="verticalTextPosition" type="int" value="3"/>
|
<Property name="verticalTextPosition" type="int" value="3"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.scene.controller.toolbars;
|
package com.jme3.gde.core.scene.controller.toolbars;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.sceneviewer.SceneViewerTopComponent;
|
import com.jme3.gde.core.sceneviewer.SceneViewerTopComponent;
|
||||||
import com.jme3.gde.core.sceneviewer.actions.SwitchBackViewAction;
|
import com.jme3.gde.core.sceneviewer.actions.SwitchBackViewAction;
|
||||||
import com.jme3.gde.core.sceneviewer.actions.SwitchBottomViewAction;
|
import com.jme3.gde.core.sceneviewer.actions.SwitchBottomViewAction;
|
||||||
@ -13,7 +14,6 @@ import com.jme3.gde.core.sceneviewer.actions.SwitchRightViewAction;
|
|||||||
import com.jme3.gde.core.sceneviewer.actions.SwitchTopViewAction;
|
import com.jme3.gde.core.sceneviewer.actions.SwitchTopViewAction;
|
||||||
import com.jme3.gde.core.sceneviewer.actions.ToggleOrthoPerspAction;
|
import com.jme3.gde.core.sceneviewer.actions.ToggleOrthoPerspAction;
|
||||||
import com.jme3.gde.core.util.CameraUtil.View;
|
import com.jme3.gde.core.util.CameraUtil.View;
|
||||||
import javax.swing.ImageIcon;
|
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -24,8 +24,6 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
|
|
||||||
protected boolean isUserView = true;
|
protected boolean isUserView = true;
|
||||||
private static CameraToolbar instance;
|
private static CameraToolbar instance;
|
||||||
ImageIcon userIcon = new ImageIcon(getClass().getResource("/com/jme3/gde/core/scene/controller/toolbars/user.png"));
|
|
||||||
//toolbar actions
|
|
||||||
private ToggleOrthoPerspAction toggleOrthoPerspAction;
|
private ToggleOrthoPerspAction toggleOrthoPerspAction;
|
||||||
private SwitchFrontViewAction switchFrontViewAction;
|
private SwitchFrontViewAction switchFrontViewAction;
|
||||||
private SwitchLeftViewAction switchLeftViewAction;
|
private SwitchLeftViewAction switchLeftViewAction;
|
||||||
@ -74,7 +72,7 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
viewButton = new javax.swing.JButton();
|
viewButton = new javax.swing.JButton();
|
||||||
enableOrtho = new javax.swing.JToggleButton();
|
enableOrtho = new javax.swing.JToggleButton();
|
||||||
|
|
||||||
frontMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/scene/controller/toolbars/front.png"))); // NOI18N
|
frontMenuItem.setIcon(IconList.frontView);
|
||||||
frontMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.frontMenuItem.text")); // NOI18N
|
frontMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.frontMenuItem.text")); // NOI18N
|
||||||
frontMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
frontMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -83,7 +81,7 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
});
|
});
|
||||||
viewMenu.add(frontMenuItem);
|
viewMenu.add(frontMenuItem);
|
||||||
|
|
||||||
leftMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/scene/controller/toolbars/left.png"))); // NOI18N
|
leftMenuItem.setIcon(IconList.leftView);
|
||||||
leftMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.leftMenuItem.text")); // NOI18N
|
leftMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.leftMenuItem.text")); // NOI18N
|
||||||
leftMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
leftMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -92,7 +90,7 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
});
|
});
|
||||||
viewMenu.add(leftMenuItem);
|
viewMenu.add(leftMenuItem);
|
||||||
|
|
||||||
rightMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/scene/controller/toolbars/right.png"))); // NOI18N
|
rightMenuItem.setIcon(IconList.rightView);
|
||||||
rightMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.rightMenuItem.text")); // NOI18N
|
rightMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.rightMenuItem.text")); // NOI18N
|
||||||
rightMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
rightMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -101,7 +99,7 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
});
|
});
|
||||||
viewMenu.add(rightMenuItem);
|
viewMenu.add(rightMenuItem);
|
||||||
|
|
||||||
topMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/scene/controller/toolbars/top.png"))); // NOI18N
|
topMenuItem.setIcon(IconList.topView);
|
||||||
topMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.topMenuItem.text")); // NOI18N
|
topMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.topMenuItem.text")); // NOI18N
|
||||||
topMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
topMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -110,7 +108,7 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
});
|
});
|
||||||
viewMenu.add(topMenuItem);
|
viewMenu.add(topMenuItem);
|
||||||
|
|
||||||
backMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/scene/controller/toolbars/back.png"))); // NOI18N
|
backMenuItem.setIcon(IconList.backView);
|
||||||
backMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.backMenuItem.text")); // NOI18N
|
backMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.backMenuItem.text")); // NOI18N
|
||||||
backMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
backMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -119,7 +117,7 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
});
|
});
|
||||||
viewMenu.add(backMenuItem);
|
viewMenu.add(backMenuItem);
|
||||||
|
|
||||||
bottomMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/scene/controller/toolbars/bottom.png"))); // NOI18N
|
bottomMenuItem.setIcon(IconList.bottomView);
|
||||||
bottomMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.bottomMenuItem.text")); // NOI18N
|
bottomMenuItem.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.bottomMenuItem.text")); // NOI18N
|
||||||
bottomMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
bottomMenuItem.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -128,8 +126,8 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
});
|
});
|
||||||
viewMenu.add(bottomMenuItem);
|
viewMenu.add(bottomMenuItem);
|
||||||
|
|
||||||
viewButton.setFont(new java.awt.Font("Tahoma", 0, 8));
|
viewButton.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
|
||||||
viewButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/scene/controller/toolbars/user.png"))); // NOI18N
|
viewButton.setIcon(IconList.userMode);
|
||||||
viewButton.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.viewButton.text")); // NOI18N
|
viewButton.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.viewButton.text")); // NOI18N
|
||||||
viewButton.setFocusable(false);
|
viewButton.setFocusable(false);
|
||||||
viewButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
|
viewButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
|
||||||
@ -141,8 +139,8 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
enableOrtho.setFont(new java.awt.Font("Tahoma", 0, 8));
|
enableOrtho.setFont(new java.awt.Font("Tahoma", 0, 8)); // NOI18N
|
||||||
enableOrtho.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneviewer/icons/persp.png"))); // NOI18N
|
enableOrtho.setIcon(IconList.perspMode);
|
||||||
enableOrtho.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.enableOrtho.text")); // NOI18N
|
enableOrtho.setText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.enableOrtho.text")); // NOI18N
|
||||||
enableOrtho.setToolTipText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.enableOrtho.toolTipText")); // NOI18N
|
enableOrtho.setToolTipText(org.openide.util.NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.enableOrtho.toolTipText")); // NOI18N
|
||||||
enableOrtho.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
|
enableOrtho.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
|
||||||
@ -151,7 +149,7 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
enableOrtho.setMaximumSize(new java.awt.Dimension(27, 23));
|
enableOrtho.setMaximumSize(new java.awt.Dimension(27, 23));
|
||||||
enableOrtho.setMinimumSize(new java.awt.Dimension(27, 23));
|
enableOrtho.setMinimumSize(new java.awt.Dimension(27, 23));
|
||||||
enableOrtho.setPreferredSize(new java.awt.Dimension(50, 23));
|
enableOrtho.setPreferredSize(new java.awt.Dimension(50, 23));
|
||||||
enableOrtho.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneviewer/icons/ortho.png"))); // NOI18N
|
enableOrtho.setSelectedIcon(IconList.orthoMode);
|
||||||
enableOrtho.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
|
enableOrtho.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
|
||||||
enableOrtho.addActionListener(new java.awt.event.ActionListener() {
|
enableOrtho.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -167,7 +165,7 @@ public class CameraToolbar extends javax.swing.JToolBar {
|
|||||||
.addComponent(viewButton)
|
.addComponent(viewButton)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(enableOrtho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(enableOrtho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addContainerGap(96, Short.MAX_VALUE))
|
.addContainerGap(116, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
@ -306,7 +304,7 @@ private void enableOrthoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F
|
|||||||
case User:
|
case User:
|
||||||
default:
|
default:
|
||||||
if (!isUserView) {
|
if (!isUserView) {
|
||||||
viewButton.setIcon(userIcon);
|
viewButton.setIcon(IconList.userMode);
|
||||||
viewButton.setText(NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.viewButton.label"));
|
viewButton.setText(NbBundle.getMessage(CameraToolbar.class, "CameraToolbar.viewButton.label"));
|
||||||
isUserView = true;
|
isUserView = true;
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer;
|
package com.jme3.gde.core.sceneexplorer;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.PreviewRequest;
|
import com.jme3.gde.core.scene.PreviewRequest;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.gde.core.scene.SceneListener;
|
import com.jme3.gde.core.scene.SceneListener;
|
||||||
@ -59,7 +60,6 @@ import org.openide.explorer.view.BeanTreeView;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.HelpCtx;
|
import org.openide.util.HelpCtx;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.Lookup;
|
import org.openide.util.Lookup;
|
||||||
import org.openide.util.NbBundle;
|
import org.openide.util.NbBundle;
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
@ -75,7 +75,6 @@ public final class SceneExplorerTopComponent extends TopComponent implements Exp
|
|||||||
|
|
||||||
private static SceneExplorerTopComponent instance;
|
private static SceneExplorerTopComponent instance;
|
||||||
/** path to the icon used by the component and its open action */
|
/** path to the icon used by the component and its open action */
|
||||||
static final String ICON_PATH = "com/jme3/gde/core/sceneexplorer/jme-logo.png";
|
|
||||||
private static final String PREFERRED_ID = "SceneExplorerTopComponent";
|
private static final String PREFERRED_ID = "SceneExplorerTopComponent";
|
||||||
private SceneRequest request;
|
private SceneRequest request;
|
||||||
// private final Result<AbstractSceneExplorerNode> nodeSelectionResult;
|
// private final Result<AbstractSceneExplorerNode> nodeSelectionResult;
|
||||||
@ -89,7 +88,7 @@ public final class SceneExplorerTopComponent extends TopComponent implements Exp
|
|||||||
initActions();
|
initActions();
|
||||||
setName(NbBundle.getMessage(SceneExplorerTopComponent.class, "CTL_SceneExplorerTopComponent"));
|
setName(NbBundle.getMessage(SceneExplorerTopComponent.class, "CTL_SceneExplorerTopComponent"));
|
||||||
setToolTipText(NbBundle.getMessage(SceneExplorerTopComponent.class, "HINT_SceneExplorerTopComponent"));
|
setToolTipText(NbBundle.getMessage(SceneExplorerTopComponent.class, "HINT_SceneExplorerTopComponent"));
|
||||||
setIcon(ImageUtilities.loadImage(ICON_PATH, true));
|
setIcon(IconList.jmeLogo.getImage());
|
||||||
associateLookup(ExplorerUtils.createLookup(explorerManager, getActionMap()));
|
associateLookup(ExplorerUtils.createLookup(explorerManager, getActionMap()));
|
||||||
// nodeSelectionResult = Utilities.actionsGlobalContext().lookupResult(AbstractSceneExplorerNode.class);
|
// nodeSelectionResult = Utilities.actionsGlobalContext().lookupResult(AbstractSceneExplorerNode.class);
|
||||||
// nodeSelectionResult.addLookupListener(this);
|
// nodeSelectionResult.addLookupListener(this);
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
import com.jme3.animation.AnimControl;
|
import com.jme3.animation.AnimControl;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.properties.AnimationProperty;
|
import com.jme3.gde.core.properties.AnimationProperty;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.gde.core.sceneexplorer.nodes.actions.TrackVisibilityPopup;
|
import com.jme3.gde.core.sceneexplorer.nodes.actions.TrackVisibilityPopup;
|
||||||
@ -47,7 +48,6 @@ import org.openide.nodes.Node;
|
|||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.HelpCtx;
|
import org.openide.util.HelpCtx;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.BooleanStateAction;
|
import org.openide.util.actions.BooleanStateAction;
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
@ -63,8 +63,7 @@ public class JmeAnimControl extends AbstractSceneExplorerNode {
|
|||||||
private boolean displayBoneTracks = false;
|
private boolean displayBoneTracks = false;
|
||||||
private boolean displayEffectTracks = true;
|
private boolean displayEffectTracks = true;
|
||||||
private boolean displayAudioTracks = true;
|
private boolean displayAudioTracks = true;
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.animControl.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/animationcontrol.gif");
|
|
||||||
|
|
||||||
public JmeAnimControl() {
|
public JmeAnimControl() {
|
||||||
}
|
}
|
||||||
|
@ -36,6 +36,7 @@ import com.jme3.animation.AnimControl;
|
|||||||
import com.jme3.animation.AnimEventListener;
|
import com.jme3.animation.AnimEventListener;
|
||||||
import com.jme3.animation.Animation;
|
import com.jme3.animation.Animation;
|
||||||
import com.jme3.animation.LoopMode;
|
import com.jme3.animation.LoopMode;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.properties.AnimationProperty;
|
import com.jme3.gde.core.properties.AnimationProperty;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.gde.core.sceneexplorer.nodes.actions.ChannelDialog;
|
import com.jme3.gde.core.sceneexplorer.nodes.actions.ChannelDialog;
|
||||||
@ -53,7 +54,6 @@ import org.openide.loaders.DataObject;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -63,8 +63,6 @@ import org.openide.util.ImageUtilities;
|
|||||||
public class JmeAnimation extends AbstractSceneExplorerNode {
|
public class JmeAnimation extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private Animation animation;
|
private Animation animation;
|
||||||
private static final String ICON = "com/jme3/gde/core/sceneexplorer/nodes/icons/anim.png";
|
|
||||||
private static final String ICON_PLAY = "com/jme3/gde/core/sceneexplorer/nodes/icons/animPlay.png";
|
|
||||||
private Image icon;
|
private Image icon;
|
||||||
private JmeAnimControl jmeControl;
|
private JmeAnimControl jmeControl;
|
||||||
private boolean playing = false;
|
private boolean playing = false;
|
||||||
@ -86,7 +84,7 @@ public class JmeAnimation extends AbstractSceneExplorerNode {
|
|||||||
setName(animation.getName());
|
setName(animation.getName());
|
||||||
children.setAnimation(this);
|
children.setAnimation(this);
|
||||||
children.setAnimControl(jmeControl);
|
children.setAnimControl(jmeControl);
|
||||||
icon = ImageUtilities.loadImage(ICON);
|
icon = IconList.animation.getImage();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,10 +102,10 @@ public class JmeAnimation extends AbstractSceneExplorerNode {
|
|||||||
|
|
||||||
public void toggleIcon(boolean enabled) {
|
public void toggleIcon(boolean enabled) {
|
||||||
if (!playing) {
|
if (!playing) {
|
||||||
icon = ImageUtilities.loadImage(ICON);
|
icon = IconList.animation.getImage();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
icon = ImageUtilities.loadImage(ICON_PLAY);
|
icon = IconList.animationPlay.getImage();
|
||||||
|
|
||||||
}
|
}
|
||||||
fireIconChange();
|
fireIconChange();
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
import com.jme3.asset.ModelKey;
|
import com.jme3.asset.ModelKey;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.gde.core.sceneexplorer.nodes.actions.AddUserDataAction;
|
import com.jme3.gde.core.sceneexplorer.nodes.actions.AddUserDataAction;
|
||||||
import com.jme3.gde.core.sceneexplorer.nodes.actions.NewControlPopup;
|
import com.jme3.gde.core.sceneexplorer.nodes.actions.NewControlPopup;
|
||||||
@ -55,7 +56,6 @@ import org.openide.nodes.Children;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -65,8 +65,7 @@ import org.openide.util.actions.SystemAction;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
||||||
public class JmeAssetLinkNode extends JmeNode {
|
public class JmeAssetLinkNode extends JmeNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.link.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/linknode.gif");
|
|
||||||
private AssetLinkNode geom;
|
private AssetLinkNode geom;
|
||||||
private AssetLinkChildren linkChildren;
|
private AssetLinkChildren linkChildren;
|
||||||
|
|
||||||
|
@ -34,12 +34,12 @@ package com.jme3.gde.core.sceneexplorer.nodes;
|
|||||||
import com.jme3.audio.AudioNode;
|
import com.jme3.audio.AudioNode;
|
||||||
import com.jme3.audio.AudioNode.Status;
|
import com.jme3.audio.AudioNode.Status;
|
||||||
import com.jme3.audio.Filter;
|
import com.jme3.audio.Filter;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.properties.AudioDataProperty;
|
import com.jme3.gde.core.properties.AudioDataProperty;
|
||||||
import com.jme3.math.Vector3f;
|
import com.jme3.math.Vector3f;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -48,8 +48,7 @@ import org.openide.util.ImageUtilities;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
||||||
public class JmeAudioNode extends JmeNode {
|
public class JmeAudioNode extends JmeNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.sound.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/audionode.gif");
|
|
||||||
private AudioNode node;
|
private AudioNode node;
|
||||||
|
|
||||||
public JmeAudioNode() {
|
public JmeAudioNode() {
|
||||||
|
@ -33,11 +33,11 @@ package com.jme3.gde.core.sceneexplorer.nodes;
|
|||||||
|
|
||||||
import com.jme3.font.BitmapFont;
|
import com.jme3.font.BitmapFont;
|
||||||
import com.jme3.font.BitmapText;
|
import com.jme3.font.BitmapText;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.math.ColorRGBA;
|
import com.jme3.math.ColorRGBA;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -46,8 +46,7 @@ import org.openide.util.ImageUtilities;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
||||||
public class JmeBitmapText extends JmeNode {
|
public class JmeBitmapText extends JmeNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.font.getImage();
|
||||||
ImageUtilities.loadImage("/com/jme3/gde/core/sceneexplorer/nodes/icons/bitmaptext.gif");
|
|
||||||
private BitmapText geom;
|
private BitmapText geom;
|
||||||
|
|
||||||
public JmeBitmapText() {
|
public JmeBitmapText() {
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
import com.jme3.animation.Bone;
|
import com.jme3.animation.Bone;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import java.awt.datatransfer.DataFlavor;
|
import java.awt.datatransfer.DataFlavor;
|
||||||
@ -44,7 +45,6 @@ import org.openide.awt.Actions;
|
|||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -53,8 +53,7 @@ import org.openide.util.ImageUtilities;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
||||||
public class JmeBone extends AbstractSceneExplorerNode {
|
public class JmeBone extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.bone.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/bone.png");
|
|
||||||
private Bone bone;
|
private Bone bone;
|
||||||
private JmeSkeletonControl jmeSkeletonControl;
|
private JmeSkeletonControl jmeSkeletonControl;
|
||||||
protected final DataFlavor BONE_FLAVOR = new DataFlavor(ClipboardSpatial.class, "Bone");
|
protected final DataFlavor BONE_FLAVOR = new DataFlavor(ClipboardSpatial.class, "Bone");
|
||||||
|
@ -33,6 +33,7 @@ package com.jme3.gde.core.sceneexplorer.nodes;
|
|||||||
|
|
||||||
import com.jme3.bullet.collision.shapes.CollisionShape;
|
import com.jme3.bullet.collision.shapes.CollisionShape;
|
||||||
import com.jme3.bullet.control.CharacterControl;
|
import com.jme3.bullet.control.CharacterControl;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.math.Vector3f;
|
import com.jme3.math.Vector3f;
|
||||||
import com.jme3.scene.Spatial;
|
import com.jme3.scene.Spatial;
|
||||||
@ -41,6 +42,7 @@ import java.io.IOException;
|
|||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import javax.swing.Action;
|
import javax.swing.Action;
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
import org.openide.actions.DeleteAction;
|
import org.openide.actions.DeleteAction;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
@ -55,8 +57,7 @@ import org.openide.util.actions.SystemAction;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
||||||
public class JmeCharacterControl extends AbstractSceneExplorerNode {
|
public class JmeCharacterControl extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.player.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/player.gif");
|
|
||||||
private CharacterControl geom;
|
private CharacterControl geom;
|
||||||
|
|
||||||
public JmeCharacterControl() {
|
public JmeCharacterControl() {
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.terrain.geomipmap.TerrainLodControl;
|
import com.jme3.terrain.geomipmap.TerrainLodControl;
|
||||||
import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
|
import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
|
||||||
@ -43,7 +44,6 @@ import org.openide.loaders.DataObject;
|
|||||||
import org.openide.nodes.Children;
|
import org.openide.nodes.Children;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
|
|
||||||
@ -57,8 +57,7 @@ public class JmeDistanceLodCalculator extends AbstractSceneExplorerNode {
|
|||||||
private DistanceLodCalculator lodCalculator;
|
private DistanceLodCalculator lodCalculator;
|
||||||
private TerrainLodControl lodControl;
|
private TerrainLodControl lodControl;
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.wheel.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/physicswheel.gif");
|
|
||||||
|
|
||||||
public JmeDistanceLodCalculator() {
|
public JmeDistanceLodCalculator() {
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.properties.SceneExplorerProperty;
|
import com.jme3.gde.core.properties.SceneExplorerProperty;
|
||||||
import com.jme3.gde.core.properties.ScenePropertyChangeListener;
|
import com.jme3.gde.core.properties.ScenePropertyChangeListener;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
@ -51,7 +52,6 @@ import org.openide.nodes.AbstractNode;
|
|||||||
import org.openide.nodes.Children;
|
import org.openide.nodes.Children;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
import org.openide.util.lookup.InstanceContent;
|
import org.openide.util.lookup.InstanceContent;
|
||||||
import org.openide.util.lookup.ProxyLookup;
|
import org.openide.util.lookup.ProxyLookup;
|
||||||
@ -63,8 +63,7 @@ import org.openide.util.lookup.ProxyLookup;
|
|||||||
public class JmeGenericControl extends AbstractNode implements ScenePropertyChangeListener {
|
public class JmeGenericControl extends AbstractNode implements ScenePropertyChangeListener {
|
||||||
|
|
||||||
private Control control;
|
private Control control;
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.wheel.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/animationcontrol.gif");
|
|
||||||
private DataObject dobject;
|
private DataObject dobject;
|
||||||
private InstanceContent lookupContents;
|
private InstanceContent lookupContents;
|
||||||
|
|
||||||
@ -81,14 +80,12 @@ public class JmeGenericControl extends AbstractNode implements ScenePropertyChan
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Image getIcon(int type) {
|
public Image getIcon(int type) {
|
||||||
return super.getIcon(type);
|
return smallImage;
|
||||||
// return smallImage;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Image getOpenedIcon(int type) {
|
public Image getOpenedIcon(int type) {
|
||||||
return super.getOpenedIcon(type);
|
return smallImage;
|
||||||
// return smallImage;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.gde.core.sceneexplorer.MaterialChangeListener;
|
import com.jme3.gde.core.sceneexplorer.MaterialChangeListener;
|
||||||
import com.jme3.gde.core.sceneexplorer.SceneExplorerTopComponent;
|
import com.jme3.gde.core.sceneexplorer.SceneExplorerTopComponent;
|
||||||
@ -42,7 +43,6 @@ import java.io.IOException;
|
|||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -51,8 +51,7 @@ import org.openide.util.ImageUtilities;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
||||||
public class JmeGeometry extends JmeSpatial implements MaterialChangeListener {
|
public class JmeGeometry extends JmeSpatial implements MaterialChangeListener {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.geometry.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/geometry.gif");
|
|
||||||
private Geometry geom;
|
private Geometry geom;
|
||||||
|
|
||||||
public JmeGeometry() {
|
public JmeGeometry() {
|
||||||
|
@ -33,6 +33,7 @@ package com.jme3.gde.core.sceneexplorer.nodes;
|
|||||||
|
|
||||||
import com.jme3.bullet.collision.shapes.CollisionShape;
|
import com.jme3.bullet.collision.shapes.CollisionShape;
|
||||||
import com.jme3.bullet.control.GhostControl;
|
import com.jme3.bullet.control.GhostControl;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.math.Quaternion;
|
import com.jme3.math.Quaternion;
|
||||||
import com.jme3.math.Vector3f;
|
import com.jme3.math.Vector3f;
|
||||||
@ -46,7 +47,6 @@ import org.openide.actions.DeleteAction;
|
|||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -56,8 +56,7 @@ import org.openide.util.actions.SystemAction;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
||||||
public class JmeGhostControl extends AbstractSceneExplorerNode {
|
public class JmeGhostControl extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.ghostControl.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/ghostcontrol.gif");
|
|
||||||
private GhostControl geom;
|
private GhostControl geom;
|
||||||
|
|
||||||
public JmeGhostControl() {
|
public JmeGhostControl() {
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.light.Light;
|
import com.jme3.light.Light;
|
||||||
import com.jme3.math.ColorRGBA;
|
import com.jme3.math.ColorRGBA;
|
||||||
@ -45,7 +46,6 @@ import org.openide.nodes.Children;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,8 +57,7 @@ public class JmeLight extends AbstractSceneExplorerNode {
|
|||||||
|
|
||||||
private Spatial spatial;
|
private Spatial spatial;
|
||||||
private Light light;
|
private Light light;
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.light.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/light.gif");
|
|
||||||
|
|
||||||
public JmeLight() {
|
public JmeLight() {
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.light.Light;
|
import com.jme3.light.Light;
|
||||||
import com.jme3.scene.Geometry;
|
import com.jme3.scene.Geometry;
|
||||||
@ -45,7 +46,6 @@ import org.openide.actions.DeleteAction;
|
|||||||
import org.openide.nodes.Children;
|
import org.openide.nodes.Children;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,8 +57,7 @@ public class JmeMesh extends AbstractSceneExplorerNode{
|
|||||||
|
|
||||||
private Geometry geom;
|
private Geometry geom;
|
||||||
private Mesh mesh;
|
private Mesh mesh;
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.mesh.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/mesh.gif");
|
|
||||||
|
|
||||||
public JmeMesh() {
|
public JmeMesh() {
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.gde.core.sceneexplorer.nodes.actions.AddUserDataAction;
|
import com.jme3.gde.core.sceneexplorer.nodes.actions.AddUserDataAction;
|
||||||
import com.jme3.gde.core.sceneexplorer.nodes.actions.NewControlPopup;
|
import com.jme3.gde.core.sceneexplorer.nodes.actions.NewControlPopup;
|
||||||
@ -56,7 +57,6 @@ import org.openide.awt.Actions;
|
|||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
import org.openide.util.datatransfer.PasteType;
|
import org.openide.util.datatransfer.PasteType;
|
||||||
|
|
||||||
@ -67,8 +67,7 @@ import org.openide.util.datatransfer.PasteType;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
||||||
public class JmeNode extends JmeSpatial {
|
public class JmeNode extends JmeSpatial {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.node.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/node.gif");
|
|
||||||
private Node node;
|
private Node node;
|
||||||
|
|
||||||
public JmeNode() {
|
public JmeNode() {
|
||||||
|
@ -37,6 +37,7 @@ import com.jme3.effect.influencers.DefaultParticleInfluencer;
|
|||||||
import com.jme3.effect.influencers.ParticleInfluencer;
|
import com.jme3.effect.influencers.ParticleInfluencer;
|
||||||
import com.jme3.effect.shapes.EmitterShape;
|
import com.jme3.effect.shapes.EmitterShape;
|
||||||
import com.jme3.gde.core.assets.ProjectAssetManager;
|
import com.jme3.gde.core.assets.ProjectAssetManager;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.properties.ParticleInfluencerProperty;
|
import com.jme3.gde.core.properties.ParticleInfluencerProperty;
|
||||||
import com.jme3.gde.core.util.PropertyUtils;
|
import com.jme3.gde.core.util.PropertyUtils;
|
||||||
import com.jme3.math.ColorRGBA;
|
import com.jme3.math.ColorRGBA;
|
||||||
@ -50,7 +51,6 @@ import org.openide.loaders.DataObject;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.PropertySupport;
|
import org.openide.nodes.PropertySupport;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -61,8 +61,7 @@ public class JmeParticleEmitter extends JmeGeometry {
|
|||||||
|
|
||||||
public JmeParticleEmitter() {
|
public JmeParticleEmitter() {
|
||||||
}
|
}
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.emitter.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/particleemitter.gif");
|
|
||||||
private ParticleEmitter geom;
|
private ParticleEmitter geom;
|
||||||
|
|
||||||
public JmeParticleEmitter(ParticleEmitter spatial, JmeSpatialChildren children) {
|
public JmeParticleEmitter(ParticleEmitter spatial, JmeSpatialChildren children) {
|
||||||
@ -132,7 +131,7 @@ public class JmeParticleEmitter extends JmeGeometry {
|
|||||||
|
|
||||||
set2.setDisplayName("Particle Influencer" + " - " + obj.getParticleInfluencer().getClass().getSimpleName());
|
set2.setDisplayName("Particle Influencer" + " - " + obj.getParticleInfluencer().getClass().getSimpleName());
|
||||||
set2.setName(obj.getParticleInfluencer().getClass().getName());
|
set2.setName(obj.getParticleInfluencer().getClass().getName());
|
||||||
ParticleInfluencerProperty prop = new ParticleInfluencerProperty(obj,this, this.getLookup().lookup(ProjectAssetManager.class).getProject());
|
ParticleInfluencerProperty prop = new ParticleInfluencerProperty(obj, this, this.getLookup().lookup(ProjectAssetManager.class).getProject());
|
||||||
prop.addPropertyChangeListener(this);
|
prop.addPropertyChangeListener(this);
|
||||||
set2.put(prop);
|
set2.put(prop);
|
||||||
|
|
||||||
@ -191,7 +190,6 @@ public class JmeParticleEmitter extends JmeGeometry {
|
|||||||
|
|
||||||
private Property createButtonProperty() {
|
private Property createButtonProperty() {
|
||||||
return new PropertySupport.ReadWrite<Object>("emit", Object.class, "Emit all particles", "Click here to emit all particles of this emitter ") {
|
return new PropertySupport.ReadWrite<Object>("emit", Object.class, "Emit all particles", "Click here to emit all particles of this emitter ") {
|
||||||
|
|
||||||
JmeParticleEmitterButtonProperty pe;
|
JmeParticleEmitterButtonProperty pe;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.ui.Picture;
|
import com.jme3.ui.Picture;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -44,8 +44,7 @@ import org.openide.util.ImageUtilities;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
||||||
public class JmePicture extends JmeGeometry {
|
public class JmePicture extends JmeGeometry {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.texture.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/picture.gif");
|
|
||||||
private Picture geom;
|
private Picture geom;
|
||||||
|
|
||||||
public JmePicture() {
|
public JmePicture() {
|
||||||
|
@ -33,6 +33,7 @@ package com.jme3.gde.core.sceneexplorer.nodes;
|
|||||||
|
|
||||||
import com.jme3.bullet.collision.shapes.CollisionShape;
|
import com.jme3.bullet.collision.shapes.CollisionShape;
|
||||||
import com.jme3.bullet.control.RigidBodyControl;
|
import com.jme3.bullet.control.RigidBodyControl;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.math.Quaternion;
|
import com.jme3.math.Quaternion;
|
||||||
import com.jme3.math.Vector3f;
|
import com.jme3.math.Vector3f;
|
||||||
@ -46,7 +47,6 @@ import org.openide.actions.DeleteAction;
|
|||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -56,8 +56,7 @@ import org.openide.util.actions.SystemAction;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
||||||
public class JmeRigidBodyControl extends AbstractSceneExplorerNode {
|
public class JmeRigidBodyControl extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.physicsControl.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/physicscontrol.gif");
|
|
||||||
private RigidBodyControl geom;
|
private RigidBodyControl geom;
|
||||||
|
|
||||||
public JmeRigidBodyControl() {
|
public JmeRigidBodyControl() {
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
import com.jme3.animation.SkeletonControl;
|
import com.jme3.animation.SkeletonControl;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.scene.Spatial;
|
import com.jme3.scene.Spatial;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
@ -44,7 +45,6 @@ import org.openide.loaders.DataObject;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -55,8 +55,7 @@ import org.openide.util.actions.SystemAction;
|
|||||||
public class JmeSkeletonControl extends AbstractSceneExplorerNode {
|
public class JmeSkeletonControl extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private SkeletonControl skeletonControl;
|
private SkeletonControl skeletonControl;
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.skeletonControl.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/skeletonControl.gif");
|
|
||||||
|
|
||||||
public JmeSkeletonControl() {
|
public JmeSkeletonControl() {
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.math.Vector3f;
|
import com.jme3.math.Vector3f;
|
||||||
import com.jme3.terrain.geomipmap.TerrainGrid;
|
import com.jme3.terrain.geomipmap.TerrainGrid;
|
||||||
import com.jme3.terrain.geomipmap.TerrainGridListener;
|
import com.jme3.terrain.geomipmap.TerrainGridListener;
|
||||||
@ -40,7 +41,6 @@ import java.util.logging.Level;
|
|||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -49,8 +49,7 @@ import org.openide.util.ImageUtilities;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
||||||
public class JmeTerrainGrid extends JmeTerrainQuad implements TerrainGridListener {
|
public class JmeTerrainGrid extends JmeTerrainQuad implements TerrainGridListener {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.terrain.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/terrain.png");
|
|
||||||
private TerrainGrid geom;
|
private TerrainGrid geom;
|
||||||
|
|
||||||
public JmeTerrainGrid() {
|
public JmeTerrainGrid() {
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.scene.Spatial;
|
import com.jme3.scene.Spatial;
|
||||||
import com.jme3.terrain.geomipmap.TerrainLodControl;
|
import com.jme3.terrain.geomipmap.TerrainLodControl;
|
||||||
@ -49,7 +50,6 @@ import org.openide.nodes.Children;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -59,8 +59,7 @@ import org.openide.util.actions.SystemAction;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
||||||
public class JmeTerrainLodControl extends AbstractSceneExplorerNode {
|
public class JmeTerrainLodControl extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.wheel.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/physicswheel.gif");
|
|
||||||
private TerrainLodControl terrainLodControl;
|
private TerrainLodControl terrainLodControl;
|
||||||
|
|
||||||
public JmeTerrainLodControl() {
|
public JmeTerrainLodControl() {
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
*/
|
*/
|
||||||
package com.jme3.gde.core.sceneexplorer.nodes;
|
package com.jme3.gde.core.sceneexplorer.nodes;
|
||||||
|
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.terrain.geomipmap.TerrainQuad;
|
import com.jme3.terrain.geomipmap.TerrainQuad;
|
||||||
import java.awt.Image;
|
import java.awt.Image;
|
||||||
import org.openide.loaders.DataObject;
|
import org.openide.loaders.DataObject;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@ -44,8 +44,7 @@ import org.openide.util.ImageUtilities;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class)
|
||||||
public class JmeTerrainQuad extends JmeNode {
|
public class JmeTerrainQuad extends JmeNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.terrain.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/terrain.png");
|
|
||||||
private TerrainQuad geom;
|
private TerrainQuad geom;
|
||||||
|
|
||||||
public JmeTerrainQuad() {
|
public JmeTerrainQuad() {
|
||||||
|
@ -37,6 +37,7 @@ import com.jme3.animation.AudioTrack;
|
|||||||
import com.jme3.animation.BoneTrack;
|
import com.jme3.animation.BoneTrack;
|
||||||
import com.jme3.animation.EffectTrack;
|
import com.jme3.animation.EffectTrack;
|
||||||
import com.jme3.animation.Track;
|
import com.jme3.animation.Track;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.properties.AudioTrackProperty;
|
import com.jme3.gde.core.properties.AudioTrackProperty;
|
||||||
import com.jme3.gde.core.properties.EffectTrackEmitterProperty;
|
import com.jme3.gde.core.properties.EffectTrackEmitterProperty;
|
||||||
import com.jme3.gde.core.properties.SceneExplorerProperty;
|
import com.jme3.gde.core.properties.SceneExplorerProperty;
|
||||||
@ -53,7 +54,6 @@ import org.openide.loaders.DataObject;
|
|||||||
import org.openide.nodes.Children;
|
import org.openide.nodes.Children;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,14 +63,10 @@ import org.openide.util.actions.SystemAction;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
||||||
public class JmeTrack extends AbstractSceneExplorerNode {
|
public class JmeTrack extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private static Image iconBoneTrack =
|
private static Image iconBoneTrack = IconList.boneTrack.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/boneTrack.png");
|
private static Image iconEffectTrack = IconList.effectTrack.getImage();
|
||||||
private static Image iconEffectTrack =
|
private static Image iconAudioTrack = IconList.audioTrack.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/effectTrack.png");
|
private static Image iconTrack = IconList.track.getImage();
|
||||||
private static Image iconAudioTrack =
|
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/audioTrack.png");
|
|
||||||
private static Image iconTrack =
|
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/track.png");
|
|
||||||
private Track track;
|
private Track track;
|
||||||
private AnimControl control;
|
private AnimControl control;
|
||||||
|
|
||||||
|
@ -34,6 +34,7 @@ package com.jme3.gde.core.sceneexplorer.nodes;
|
|||||||
import com.jme3.bullet.collision.shapes.CollisionShape;
|
import com.jme3.bullet.collision.shapes.CollisionShape;
|
||||||
import com.jme3.bullet.control.VehicleControl;
|
import com.jme3.bullet.control.VehicleControl;
|
||||||
import com.jme3.bullet.objects.VehicleWheel;
|
import com.jme3.bullet.objects.VehicleWheel;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.math.Quaternion;
|
import com.jme3.math.Quaternion;
|
||||||
import com.jme3.math.Vector3f;
|
import com.jme3.math.Vector3f;
|
||||||
@ -51,7 +52,6 @@ import org.openide.nodes.Children;
|
|||||||
import org.openide.nodes.Node;
|
import org.openide.nodes.Node;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -61,8 +61,7 @@ import org.openide.util.actions.SystemAction;
|
|||||||
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
@org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class)
|
||||||
public class JmeVehicleControl extends AbstractSceneExplorerNode {
|
public class JmeVehicleControl extends AbstractSceneExplorerNode {
|
||||||
|
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.vehicle.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/vehicle.png");
|
|
||||||
private VehicleControl vehicle;
|
private VehicleControl vehicle;
|
||||||
|
|
||||||
public JmeVehicleControl() {
|
public JmeVehicleControl() {
|
||||||
|
@ -33,6 +33,7 @@ package com.jme3.gde.core.sceneexplorer.nodes;
|
|||||||
|
|
||||||
import com.jme3.bullet.control.VehicleControl;
|
import com.jme3.bullet.control.VehicleControl;
|
||||||
import com.jme3.bullet.objects.VehicleWheel;
|
import com.jme3.bullet.objects.VehicleWheel;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.light.Light;
|
import com.jme3.light.Light;
|
||||||
import com.jme3.math.Vector3f;
|
import com.jme3.math.Vector3f;
|
||||||
@ -45,7 +46,6 @@ import org.openide.actions.DeleteAction;
|
|||||||
import org.openide.nodes.Children;
|
import org.openide.nodes.Children;
|
||||||
import org.openide.nodes.Sheet;
|
import org.openide.nodes.Sheet;
|
||||||
import org.openide.util.Exceptions;
|
import org.openide.util.Exceptions;
|
||||||
import org.openide.util.ImageUtilities;
|
|
||||||
import org.openide.util.actions.SystemAction;
|
import org.openide.util.actions.SystemAction;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,8 +57,7 @@ public class JmeVehicleWheel extends AbstractSceneExplorerNode{
|
|||||||
|
|
||||||
private VehicleWheel wheel;
|
private VehicleWheel wheel;
|
||||||
private VehicleControl vehicle;
|
private VehicleControl vehicle;
|
||||||
private static Image smallImage =
|
private static Image smallImage = IconList.wheel.getImage();
|
||||||
ImageUtilities.loadImage("com/jme3/gde/core/sceneexplorer/nodes/icons/physicswheel.gif");
|
|
||||||
|
|
||||||
public JmeVehicleWheel() {
|
public JmeVehicleWheel() {
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.1" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
|
||||||
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
@ -95,7 +95,7 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace pref="27" max="32767" attributes="0"/>
|
<EmptySpace pref="28" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -106,8 +106,8 @@
|
|||||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||||
<Font name="Tahoma" size="12" style="1"/>
|
<Font name="Tahoma" size="12" style="1"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneexplorer/nodes/icons/audioTrack.png"/>
|
<Connection code="IconList.audioTrack" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/sceneexplorer/nodes/actions/impl/tracks/Bundle.properties" key="AudioTrackVisualPanel1.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/sceneexplorer/nodes/actions/impl/tracks/Bundle.properties" key="AudioTrackVisualPanel1.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
@ -33,6 +33,7 @@ package com.jme3.gde.core.sceneexplorer.nodes.actions.impl.tracks;
|
|||||||
|
|
||||||
import com.jme3.animation.Animation;
|
import com.jme3.animation.Animation;
|
||||||
import com.jme3.audio.AudioNode;
|
import com.jme3.audio.AudioNode;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.sceneexplorer.nodes.JmeAnimation;
|
import com.jme3.gde.core.sceneexplorer.nodes.JmeAnimation;
|
||||||
import com.jme3.scene.Node;
|
import com.jme3.scene.Node;
|
||||||
import com.jme3.scene.Spatial;
|
import com.jme3.scene.Spatial;
|
||||||
@ -118,7 +119,7 @@ public final class AudioTrackVisualPanel1 extends JPanel {
|
|||||||
jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
||||||
|
|
||||||
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
|
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
|
||||||
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneexplorer/nodes/icons/audioTrack.png"))); // NOI18N
|
jLabel1.setIcon(IconList.audioTrack);
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(AudioTrackVisualPanel1.class, "AudioTrackVisualPanel1.jLabel1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(AudioTrackVisualPanel1.class, "AudioTrackVisualPanel1.jLabel1.text")); // NOI18N
|
||||||
|
|
||||||
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
|
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
|
||||||
@ -194,7 +195,7 @@ public final class AudioTrackVisualPanel1 extends JPanel {
|
|||||||
.addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(jLabel4)
|
.addComponent(jLabel4)
|
||||||
.addContainerGap(27, Short.MAX_VALUE))
|
.addContainerGap(28, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.1" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
|
||||||
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
<Form version="1.5" maxVersion="1.7" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
@ -95,7 +95,7 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
|
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace pref="27" max="32767" attributes="0"/>
|
<EmptySpace pref="28" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -106,8 +106,8 @@
|
|||||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||||
<Font name="Tahoma" size="12" style="1"/>
|
<Font name="Tahoma" size="12" style="1"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneexplorer/nodes/icons/effectTrack.png"/>
|
<Connection code="IconList.effectTrack" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/sceneexplorer/nodes/actions/impl/tracks/Bundle.properties" key="EffectTrackVisualPanel1.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/sceneexplorer/nodes/actions/impl/tracks/Bundle.properties" key="EffectTrackVisualPanel1.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
@ -33,6 +33,7 @@ package com.jme3.gde.core.sceneexplorer.nodes.actions.impl.tracks;
|
|||||||
|
|
||||||
import com.jme3.animation.Animation;
|
import com.jme3.animation.Animation;
|
||||||
import com.jme3.effect.ParticleEmitter;
|
import com.jme3.effect.ParticleEmitter;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.sceneexplorer.nodes.JmeAnimation;
|
import com.jme3.gde.core.sceneexplorer.nodes.JmeAnimation;
|
||||||
import com.jme3.scene.Node;
|
import com.jme3.scene.Node;
|
||||||
import com.jme3.scene.Spatial;
|
import com.jme3.scene.Spatial;
|
||||||
@ -118,7 +119,7 @@ public final class EffectTrackVisualPanel1 extends JPanel {
|
|||||||
jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
||||||
|
|
||||||
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
|
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
|
||||||
jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneexplorer/nodes/icons/effectTrack.png"))); // NOI18N
|
jLabel1.setIcon(IconList.effectTrack);
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(EffectTrackVisualPanel1.class, "EffectTrackVisualPanel1.jLabel1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(EffectTrackVisualPanel1.class, "EffectTrackVisualPanel1.jLabel1.text")); // NOI18N
|
||||||
|
|
||||||
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
|
jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
|
||||||
@ -194,7 +195,7 @@ public final class EffectTrackVisualPanel1 extends JPanel {
|
|||||||
.addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(jLabel4)
|
.addComponent(jLabel4)
|
||||||
.addContainerGap(27, Short.MAX_VALUE))
|
.addContainerGap(28, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JToggleButton" name="enableCamLight">
|
<Component class="javax.swing.JToggleButton" name="enableCamLight">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneviewer/icons/lightbulb_off.gif"/>
|
<Connection code="IconList.lightOff" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.enableCamLight.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.enableCamLight.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -41,8 +41,8 @@
|
|||||||
</Property>
|
</Property>
|
||||||
<Property name="focusable" type="boolean" value="false"/>
|
<Property name="focusable" type="boolean" value="false"/>
|
||||||
<Property name="horizontalTextPosition" type="int" value="0"/>
|
<Property name="horizontalTextPosition" type="int" value="0"/>
|
||||||
<Property name="selectedIcon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="selectedIcon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneviewer/icons/lightbulb.gif"/>
|
<Connection code="IconList.lightOn" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="verticalTextPosition" type="int" value="3"/>
|
<Property name="verticalTextPosition" type="int" value="3"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
@ -52,8 +52,8 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JToggleButton" name="jToggleButton1">
|
<Component class="javax.swing.JToggleButton" name="jToggleButton1">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/filters/icons/eye.gif"/>
|
<Connection code="IconList.eyeOpen" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.jToggleButton1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.jToggleButton1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -73,8 +73,8 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JToggleButton" name="enableWireframe">
|
<Component class="javax.swing.JToggleButton" name="enableWireframe">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneviewer/icons/box_color.gif"/>
|
<Connection code="IconList.colorBox" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.enableWireframe.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.enableWireframe.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
@ -84,8 +84,8 @@
|
|||||||
</Property>
|
</Property>
|
||||||
<Property name="focusable" type="boolean" value="false"/>
|
<Property name="focusable" type="boolean" value="false"/>
|
||||||
<Property name="horizontalTextPosition" type="int" value="0"/>
|
<Property name="horizontalTextPosition" type="int" value="0"/>
|
||||||
<Property name="selectedIcon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="selectedIcon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneviewer/icons/box_wire.gif"/>
|
<Connection code="IconList.wireBox" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="verticalTextPosition" type="int" value="3"/>
|
<Property name="verticalTextPosition" type="int" value="3"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
@ -99,8 +99,8 @@
|
|||||||
</Container>
|
</Container>
|
||||||
<Component class="javax.swing.JToggleButton" name="enableStats">
|
<Component class="javax.swing.JToggleButton" name="enableStats">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/core/sceneviewer/icons/65.png"/>
|
<Connection code="IconList.info" type="code"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.enableStats.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.enableStats.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
package com.jme3.gde.core.sceneviewer;
|
package com.jme3.gde.core.sceneviewer;
|
||||||
|
|
||||||
import com.jme3.gde.core.filters.FilterExplorerTopComponent;
|
import com.jme3.gde.core.filters.FilterExplorerTopComponent;
|
||||||
|
import com.jme3.gde.core.icons.IconList;
|
||||||
import com.jme3.gde.core.scene.SceneApplication;
|
import com.jme3.gde.core.scene.SceneApplication;
|
||||||
import com.jme3.gde.core.scene.SceneRequest;
|
import com.jme3.gde.core.scene.SceneRequest;
|
||||||
import com.jme3.input.awt.AwtKeyInput;
|
import com.jme3.input.awt.AwtKeyInput;
|
||||||
@ -176,12 +177,12 @@ public final class SceneViewerTopComponent extends TopComponent {
|
|||||||
|
|
||||||
jToolBar1.setRollover(true);
|
jToolBar1.setRollover(true);
|
||||||
|
|
||||||
enableCamLight.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneviewer/icons/lightbulb_off.gif"))); // NOI18N
|
enableCamLight.setIcon(IconList.lightOff);
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(enableCamLight, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableCamLight.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(enableCamLight, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableCamLight.text")); // NOI18N
|
||||||
enableCamLight.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableCamLight.toolTipText")); // NOI18N
|
enableCamLight.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableCamLight.toolTipText")); // NOI18N
|
||||||
enableCamLight.setFocusable(false);
|
enableCamLight.setFocusable(false);
|
||||||
enableCamLight.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
|
enableCamLight.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
|
||||||
enableCamLight.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneviewer/icons/lightbulb.gif"))); // NOI18N
|
enableCamLight.setSelectedIcon(IconList.lightOn);
|
||||||
enableCamLight.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
|
enableCamLight.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
|
||||||
enableCamLight.addActionListener(new java.awt.event.ActionListener() {
|
enableCamLight.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -190,7 +191,7 @@ public final class SceneViewerTopComponent extends TopComponent {
|
|||||||
});
|
});
|
||||||
jToolBar1.add(enableCamLight);
|
jToolBar1.add(enableCamLight);
|
||||||
|
|
||||||
jToggleButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/filters/icons/eye.gif"))); // NOI18N
|
jToggleButton1.setIcon(IconList.eyeOpen);
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jToggleButton1, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.jToggleButton1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(jToggleButton1, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.jToggleButton1.text")); // NOI18N
|
||||||
jToggleButton1.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.jToggleButton1.toolTipText")); // NOI18N
|
jToggleButton1.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.jToggleButton1.toolTipText")); // NOI18N
|
||||||
jToggleButton1.setFocusable(false);
|
jToggleButton1.setFocusable(false);
|
||||||
@ -204,12 +205,12 @@ public final class SceneViewerTopComponent extends TopComponent {
|
|||||||
jToolBar1.add(jToggleButton1);
|
jToolBar1.add(jToggleButton1);
|
||||||
jToolBar1.add(jSeparator1);
|
jToolBar1.add(jSeparator1);
|
||||||
|
|
||||||
enableWireframe.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneviewer/icons/box_color.gif"))); // NOI18N
|
enableWireframe.setIcon(IconList.colorBox);
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(enableWireframe, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableWireframe.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(enableWireframe, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableWireframe.text")); // NOI18N
|
||||||
enableWireframe.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableWireframe.toolTipText")); // NOI18N
|
enableWireframe.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableWireframe.toolTipText")); // NOI18N
|
||||||
enableWireframe.setFocusable(false);
|
enableWireframe.setFocusable(false);
|
||||||
enableWireframe.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
|
enableWireframe.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
|
||||||
enableWireframe.setSelectedIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneviewer/icons/box_wire.gif"))); // NOI18N
|
enableWireframe.setSelectedIcon(IconList.wireBox);
|
||||||
enableWireframe.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
|
enableWireframe.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
|
||||||
enableWireframe.addActionListener(new java.awt.event.ActionListener() {
|
enableWireframe.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -219,7 +220,7 @@ public final class SceneViewerTopComponent extends TopComponent {
|
|||||||
jToolBar1.add(enableWireframe);
|
jToolBar1.add(enableWireframe);
|
||||||
jToolBar1.add(jPanel1);
|
jToolBar1.add(jPanel1);
|
||||||
|
|
||||||
enableStats.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/core/sceneviewer/icons/65.png"))); // NOI18N
|
enableStats.setIcon(IconList.info);
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(enableStats, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableStats.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(enableStats, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableStats.text")); // NOI18N
|
||||||
enableStats.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableStats.toolTipText")); // NOI18N
|
enableStats.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableStats.toolTipText")); // NOI18N
|
||||||
enableStats.setFocusable(false);
|
enableStats.setFocusable(false);
|
||||||
|