From cdf0029e378ba5e57f47cbb7226c6940dbe1ee33 Mon Sep 17 00:00:00 2001 From: relu91 Date: Wed, 20 Aug 2014 15:02:20 +0200 Subject: [PATCH] Gui pack --- .../com/jme3/gde/gui/Computer_File_043.gif | Bin 386 -> 0 bytes .../src/com/jme3/gde/gui/EmptyNiftyGui.xml | 10 - .../src/com/jme3/gde/gui/Navigator.java | 200 --------- .../src/com/jme3/gde/gui/NiftyGui.xml | 19 - .../com/jme3/gde/gui/NiftyGuiDataObject.java | 6 +- .../jme3/gde/gui/NiftyGuiVisualElement.java | 403 ------------------ .../jme3/gde/gui/multiview/icons/GButton.png | Bin 0 -> 348 bytes .../jme3/gde/gui/multiview/icons/GChat.png | Bin 0 -> 674 bytes .../gde/gui/multiview/icons/GCheckbox.png | Bin 0 -> 435 bytes .../jme3/gde/gui/multiview/icons/GConsole.png | Bin 0 -> 492 bytes .../gde/gui/multiview/icons/GDraggable.png | Bin 0 -> 768 bytes .../gde/gui/multiview/icons/GDropDown.png | Bin 0 -> 454 bytes .../gde/gui/multiview/icons/GDroppable.png | Bin 0 -> 556 bytes .../jme3/gde/gui/multiview/icons/GHSlider.png | Bin 0 -> 478 bytes .../jme3/gde/gui/multiview/icons/GImage.png | Bin 0 -> 540 bytes .../gde/gui/multiview/icons/GImageSelect.png | Bin 0 -> 602 bytes .../jme3/gde/gui/multiview/icons/GLable.png | Bin 0 -> 524 bytes .../jme3/gde/gui/multiview/icons/GLayer.png | Bin 0 -> 392 bytes .../jme3/gde/gui/multiview/icons/GListBox.png | Bin 0 -> 415 bytes .../jme3/gde/gui/multiview/icons/GPanel.png | Bin 0 -> 305 bytes .../gde/gui/multiview/icons/GRadioButton.png | Bin 0 -> 478 bytes .../gde/gui/multiview/icons/GRadioGroup.png | Bin 0 -> 557 bytes .../jme3/gde/gui/multiview/icons/GScreen.png | Bin 0 -> 536 bytes .../gde/gui/multiview/icons/GScrollpane.png | Bin 0 -> 361 bytes .../gde/gui/multiview/icons/GTextfield.png | Bin 0 -> 359 bytes .../jme3/gde/gui/multiview/icons/GTree.png | Bin 0 -> 520 bytes .../jme3/gde/gui/multiview/icons/GVSlider.png | Bin 0 -> 458 bytes .../jme3/gde/gui/multiview/icons/GWindow.png | Bin 0 -> 341 bytes .../gde/gui/multiview/icons/game-monitor.png | Bin 0 -> 608 bytes .../jme3/gde/gui/multiview/icons/gui-icon.png | Bin 0 -> 538 bytes .../icons/ui-scroll-bar-horizontal.png | Bin 0 -> 349 bytes .../gde/gui/multiview/icons/ui-scroll-bar.png | Bin 0 -> 390 bytes .../com/jme3/gde/gui/nodes/GElementNode.java | 5 +- .../src/com/jme3/gde/gui/nodes/GUINode.java | 3 +- .../com/jme3/gde/gui/palette/WidgetNode.java | 8 +- .../gde/gui/view/NiftyGuiVisualElement.java | 2 +- 36 files changed, 12 insertions(+), 644 deletions(-) delete mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/Computer_File_043.gif delete mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/EmptyNiftyGui.xml delete mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/Navigator.java delete mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGui.xml delete mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiVisualElement.java create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GButton.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GChat.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GCheckbox.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GConsole.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GDraggable.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GDropDown.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GDroppable.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GHSlider.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GImage.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GImageSelect.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GLable.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GLayer.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GListBox.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GPanel.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GRadioButton.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GRadioGroup.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GScreen.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GScrollpane.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GTextfield.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GTree.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GVSlider.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GWindow.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/game-monitor.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/gui-icon.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/ui-scroll-bar-horizontal.png create mode 100644 sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/ui-scroll-bar.png diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/Computer_File_043.gif b/sdk/jme3-gui/src/com/jme3/gde/gui/Computer_File_043.gif deleted file mode 100644 index 421d54335943f6eb085baa4fc48c26ff7758d7ce..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 386 zcmZ?wbhEHb6krfwxXQrr|Nnn=W4p$_+5QoU;wlC^kDOn&aqsd?ds`;X`}XU9(}cMz zHt(CdXq|URTvPwt`1GQht{Hw|2{Gv<$+_iajeYe!Gt*1zW6}x>>w6me=0v9z{Q37k zFfzGg>cWJ~lI+sPik6Af7OmGXw%>p1O7ny{ITdZKljaxKcNf%jG*6sY**-P3pz7DZ z|4Dh3H62s(Dq1p%>dIRuNvIl0s2ZBu`*;P%dj`ju*n2bJ0E$0Zz%n`@667Zaw)qG6 zJRNkTI+ysd9>}qpD=NO=pk&1QFhAx8OpHp4n<{kVTp1L&7(Uf((o}EYn&7GVt}Dci z&tf5iAp=itbEAeng9HORH(MVYH+v_8zC42}gLLk!8S(}UVhnt097{RW_!cl2XfxVG!p(b&B6iiSfb1 LM-P-t9T}_vRGx&H diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/EmptyNiftyGui.xml b/sdk/jme3-gui/src/com/jme3/gde/gui/EmptyNiftyGui.xml deleted file mode 100644 index 4627e7ff5..000000000 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/EmptyNiftyGui.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/Navigator.java b/sdk/jme3-gui/src/com/jme3/gde/gui/Navigator.java deleted file mode 100644 index 60aecd474..000000000 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/Navigator.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -package com.jme3.gde.gui; - -import com.jme3.gde.gui.nodes.GElementNode; -import com.jme3.gde.gui.nodes.GUINode; -import jada.ngeditor.controller.CommandProcessor; -import jada.ngeditor.controller.GUIEditor; -import jada.ngeditor.controller.commands.SelectCommand; -import jada.ngeditor.listeners.events.SelectionChanged; -import jada.ngeditor.model.GUI; -import jada.ngeditor.model.GuiEditorModel; -import jada.ngeditor.model.elements.GElement; -import java.awt.BorderLayout; -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; -import java.beans.PropertyVetoException; -import java.util.ArrayList; -import java.util.Observable; -import java.util.Observer; -import javax.swing.JComponent; -import org.netbeans.spi.navigator.NavigatorPanel; -import org.openide.explorer.ExplorerManager; -import org.openide.explorer.ExplorerUtils; -import org.openide.explorer.view.BeanTreeView; -import org.openide.nodes.AbstractNode; -import org.openide.nodes.Node; -import org.openide.util.Exceptions; -import org.openide.util.Lookup; -import org.openide.util.lookup.ProxyLookup; - -/** - * - * @author cris - */ -@NavigatorPanel.Registration(mimeType = "text/x-niftygui+xml", displayName="Gui View") -public class Navigator extends javax.swing.JPanel implements NavigatorPanel,ExplorerManager.Provider , Observer, PropertyChangeListener{ - private Lookup lookup; - private ExplorerManager mgr = new ExplorerManager(); - private final BeanTreeView beanTreeView; - /** - * Creates new form Navigator - */ - public Navigator() { - initComponents(); - setLayout(new BorderLayout()); - beanTreeView = new BeanTreeView(); - add(beanTreeView, BorderLayout.CENTER); - final GuiEditorModel model = (GuiEditorModel) CommandProcessor.getInstance().getObservable(); - model.addObserver(this); - if(model.getCurrent() != null){ - try { - this.intNavigator(model.getCurrent()); - } catch (PropertyVetoException ex) { - Exceptions.printStackTrace(ex); - } - } - - - } - - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always - * regenerated by the Form Editor. - */ - @SuppressWarnings("unchecked") - // //GEN-BEGIN:initComponents - private void initComponents() { - - javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); - this.setLayout(layout); - layout.setHorizontalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 244, Short.MAX_VALUE) - ); - layout.setVerticalGroup( - layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGap(0, 274, Short.MAX_VALUE) - ); - }// //GEN-END:initComponents - // Variables declaration - do not modify//GEN-BEGIN:variables - // End of variables declaration//GEN-END:variables - - @Override - public String getDisplayName() { - return "GuiView"; - } - - @Override - public String getDisplayHint() { - return "Easy view for your gui"; - } - - @Override - public JComponent getComponent() { - return this; - } - - @Override - public void panelActivated(Lookup context) { - - } - - @Override - public void panelDeactivated() { - ExplorerUtils.activateActions(mgr, false); - } - - @Override - public Lookup getLookup() { - return lookup; - } - - @Override - public ExplorerManager getExplorerManager() { - return mgr; - } - - @Override - public void update(Observable o, Object arg) { - if(o instanceof GuiEditorModel){ - try { - GuiEditorModel model = (GuiEditorModel) o; - model.getCurrent().addObserver(this); - model.getCurrent().getSelection().addObserver(this); - this.intNavigator(model.getCurrent()); - } catch (PropertyVetoException ex) { - Exceptions.printStackTrace(ex); - } - } - - if(arg instanceof SelectionChanged){ - SelectionChanged event = (SelectionChanged) arg; - if(event.getNewSelection().isEmpty()){ - return; - } - ArrayList path = new ArrayList(); - GElement parent = ((SelectionChanged)arg).getElement(); - while(parent!=null){ - path.add(parent.getID()); - parent = parent.getParent(); - } - Node result = mgr.getRootContext(); - for(int i=path.size()-1;i>=0;i--){ - result = result.getChildren().findChild(path.get(i)); - } - try { - mgr.setSelectedNodes(new Node[]{result}); - } catch (PropertyVetoException ex) { - Exceptions.printStackTrace(ex); - } - } - beanTreeView.updateUI(); - } - - @Override - public void propertyChange(PropertyChangeEvent evt) { - if (evt.getPropertyName().equals(ExplorerManager.PROP_SELECTED_NODES)) { - Node[] newValue = (Node[]) evt.getNewValue(); - if (newValue.length > 0) { - AbstractNode firstSelected = (AbstractNode) newValue[0]; - if (firstSelected instanceof GElementNode) { - GElement element = ((GElementNode) firstSelected).getGelement(); - GUI gui = ((GUINode)mgr.getRootContext()).getGui(); - gui.getSelection().deleteObserver(this); // I don't wont to get notified about this selection change - SelectCommand command = CommandProcessor.getInstance().getCommand(SelectCommand.class); - command.setElement(element); - try { - CommandProcessor.getInstance().excuteCommand(command); - } catch (Exception ex) { - Exceptions.printStackTrace(ex); - } - gui.getSelection().addObserver(this); - - } - } - } - } - - - private void intNavigator(GUI gui) throws PropertyVetoException { - - - ExplorerUtils.activateActions(mgr, true); - - - AbstractNode guiRoot = new GUINode(gui); - guiRoot.setName("Gui"); - this.mgr.setRootContext(guiRoot); - this.beanTreeView.updateUI(); - mgr.addPropertyChangeListener(this); - this.mgr.setSelectedNodes(new Node[]{guiRoot}); - Lookup lookup1 = ExplorerUtils.createLookup(mgr, getActionMap()); - lookup = new ProxyLookup(lookup1); - - } -} diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGui.xml b/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGui.xml deleted file mode 100644 index ec0bd6e31..000000000 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGui.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiDataObject.java b/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiDataObject.java index 1c5bc7446..32a62ff5e 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiDataObject.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiDataObject.java @@ -36,7 +36,7 @@ import org.openide.windows.TopComponent; resource = "NiftyGuiResolver.xml") @DataObject.Registration( mimeType = "text/x-niftygui+xml", - iconBase = "com/jme3/gde/gui/multiview/icons/Computer_File_043.gif", + iconBase = "com/jme3/gde/gui/multiview/icons/gui-icon.png", displayName = "#LBL_NiftyGui_LOADER", position = 300) @ActionReferences({ @@ -125,7 +125,7 @@ public class NiftyGuiDataObject extends MultiDataObject { @Override protected Node createNodeDelegate() { DataNode node = new DataNode(this, Children.LEAF, getLookup()); - node.setIconBaseWithExtension("com/jme3/gde/gui/multiview/icons/Computer_File_043.gif"); + node.setIconBaseWithExtension("com/jme3/gde/gui/multiview/icons/gui-icon.png"); return node; } @@ -136,7 +136,7 @@ public class NiftyGuiDataObject extends MultiDataObject { @MultiViewElement.Registration( displayName = "#LBL_NiftyGui_EDITOR", - iconBase = "com/jme3/gde/gui/multiview/icons/Computer_File_043.gif", + iconBase = "com/jme3/gde/gui/multiview/icons/gui-icon.png", mimeType = "text/x-niftygui+xml", persistenceType = TopComponent.PERSISTENCE_ONLY_OPENED, preferredID = "NiftyGui", diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiVisualElement.java b/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiVisualElement.java deleted file mode 100644 index b01fef391..000000000 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/NiftyGuiVisualElement.java +++ /dev/null @@ -1,403 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ -package com.jme3.gde.gui; - -import com.jme3.app.Application; -import com.jme3.gde.core.assets.ProjectAssetManager; -import com.jme3.gde.gui.nodes.GElementNode; -import com.jme3.gde.gui.nodes.GUINode; -import de.lessvoid.nifty.Nifty; -import jada.ngeditor.controller.CommandProcessor; -import jada.ngeditor.controller.GUIEditor; -import jada.ngeditor.guiviews.DND.PaletteDropTarget; -import jada.ngeditor.guiviews.DND.TrasferHandling; -import jada.ngeditor.guiviews.J2DNiftyView; -import jada.ngeditor.listeners.events.SelectionChanged; -import jada.ngeditor.model.GUI; -import jada.ngeditor.model.GuiEditorModel; -import jada.ngeditor.model.elements.GElement; -import jada.ngeditor.model.elements.GLayer; -import jada.ngeditor.model.exception.NoProductException; -import jada.ngeditor.persistence.GUIWriter; -import java.awt.Dimension; -import java.awt.event.ItemEvent; -import java.awt.event.ItemListener; -import java.beans.PropertyChangeEvent; -import java.beans.PropertyChangeListener; -import java.beans.PropertyVetoException; -import java.io.File; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.HashSet; -import java.util.Observable; -import java.util.Observer; -import java.util.logging.Level; -import java.util.logging.Logger; -import javax.swing.Action; -import javax.swing.ActionMap; -import javax.swing.DefaultComboBoxModel; -import javax.swing.JComboBox; -import javax.swing.JComponent; -import javax.swing.JLabel; -import javax.swing.JPanel; -import javax.swing.JToolBar; -import javax.xml.bind.JAXBException; -import javax.xml.parsers.ParserConfigurationException; -import org.netbeans.api.progress.ProgressHandle; -import org.netbeans.api.progress.ProgressHandleFactory; -import org.netbeans.core.spi.multiview.CloseOperationState; -import org.netbeans.core.spi.multiview.MultiViewElement; -import org.netbeans.core.spi.multiview.MultiViewElementCallback; -import org.netbeans.spi.actions.AbstractSavable; -import org.openide.awt.UndoRedo; -import org.openide.explorer.ExplorerManager; -import org.openide.explorer.ExplorerUtils; -import org.openide.loaders.DataObject; -import org.openide.nodes.Node; -import org.openide.util.Exceptions; -import org.openide.util.Lookup; -import org.openide.util.NbBundle.Messages; -import org.openide.util.lookup.AbstractLookup; -import org.openide.util.lookup.InstanceContent; -import org.openide.util.lookup.ProxyLookup; -import org.openide.windows.TopComponent; -import org.xml.sax.SAXException; -import sun.rmi.runtime.Log; - -@MultiViewElement.Registration( - displayName = "#LBL_NiftyGui_VISUAL", - iconBase = "com/jme3/gde/gui/Computer_File_043.gif", - mimeType = "text/x-niftygui+xml", - persistenceType = TopComponent.PERSISTENCE_NEVER, - preferredID = "NiftyGuiVisual", - position = 2000) -@Messages("LBL_NiftyGui_VISUAL=Visual") -public final class NiftyGuiVisualElement extends JPanel implements MultiViewElement , ExplorerManager.Provider,Observer, PropertyChangeListener { - private static final Logger logger = Logger.getLogger(NiftyGuiVisualElement.class.getName()); - private NiftyGuiDataObject obj; - private JToolBar toolbar = new JToolBar(); - private transient MultiViewElementCallback callback; - private GUIEditor editor; - private final Nifty nifty; - private final J2DNiftyView view; - private final JComboBox layers = new JComboBox(); - private final ExplorerManager nodesManager; - private final UndoRedo.Manager undoSupport; - private int guiID; - private final InstanceContent content = new InstanceContent(); - private Lookup lookup; - - public NiftyGuiVisualElement(Lookup lkp) { - obj = lkp.lookup(NiftyGuiDataObject.class); - assert obj != null; - initComponents(); - view = new J2DNiftyView(800, 600); - view.init(); - this.scrollArea.getViewport().addChangeListener(view); - this.scrollArea.setViewportView(view); - TrasferHandling tranf = new TrasferHandling(); - PaletteDropTarget tmp = new PaletteDropTarget(); - editor = obj.getLookup().lookup(GUIEditor.class); - nodesManager = new ExplorerManager(); - nifty = view.getNifty(); - view.setTransferHandler(tranf); - view.setDropTarget(tmp); - // editor.addObserver(view); - // editor.addObserver(tranf); - this.obj.addPropertyChangeListener(this); - this.createToolbar(); - this.undoSupport = new UndoRedo.Manager(); - CommandProcessor.getInstance().setUndoManager(undoSupport); - this.content.set(Collections.singleton(obj.getNodeDelegate()), null); - lookup = new AbstractLookup(content); - } - /** - * Old code - * @author normenhansen - */ - private void createToolbar() { - toolbar.setPreferredSize(new Dimension(10000, 24)); - toolbar.setMaximumSize(new Dimension(10000, 24)); - toolbar.setFloatable(false); - toolbar.add(new JLabel("Change Resolution")); - JComboBox comboBox = new JComboBox(new String[]{"640x480", "480x800", "800x480", "800x600", "1024x768", "1280x720"}); - comboBox.addItemListener(new ItemListener() { - - public void itemStateChanged(ItemEvent e) { - String string = (String) e.getItem(); - if ("640x480".equals(string)) { - view.setResoltion(640, 480); - } else if ("1024x768".equals(string)) { - view.setResoltion(1024, 768); - } else if ("1280x720".equals(string)) { - view.setResoltion(1280, 720); - } else if ("800x600".equals(string)) { - view.setResoltion(800, 600); - } else if ("800x480".equals(string)) { - view.setResoltion(800, 480); - } else if ("480x800".equals(string)) { - view.setResoltion(480, 800); - } else { - view.setResoltion(800, 600); - } - } - }); - toolbar.add(comboBox); - comboBox.setSelectedItem("800x600"); - toolbar.add(new JLabel("Current Layer")); - layers.addItemListener(new ItemListener() { - - public void itemStateChanged(ItemEvent e) { - GLayer item = (GLayer) e.getItem(); - editor.selectElement(item); - } - }); - toolbar.add(layers); - } - @Override - public String getName() { - return "NiftyGuiVisualElement"; - } - - /** - * This method is called from within the constructor to initialize the form. - * WARNING: Do NOT modify this code. The content of this method is always - * regenerated by the Form Editor. - */ - // //GEN-BEGIN:initComponents - private void initComponents() { - - scrollArea = new javax.swing.JScrollPane(); - - setLayout(new java.awt.BorderLayout()); - add(scrollArea, java.awt.BorderLayout.CENTER); - }// //GEN-END:initComponents - - // Variables declaration - do not modify//GEN-BEGIN:variables - private javax.swing.JScrollPane scrollArea; - // End of variables declaration//GEN-END:variables - @Override - public JComponent getVisualRepresentation() { - return this; - } - - @Override - public JComponent getToolbarRepresentation() { - return toolbar; - } - - @Override - public Action[] getActions() { - return new Action[0]; - } - - @Override - public Lookup getLookup() { - return this.lookup ; - } - /** - * Raw implementation , just to prototype the editor - */ - @Override - public void componentOpened() { - loadGui(); - } - - @Override - public void componentClosed() { - - } - /** - * Raw implementation , just to prototype the editor - */ - @Override - public void componentShowing() { - if(!this.obj.isModified()){ - return; - } - loadGui(); - - } - /** - * Raw implementation , just to prototype the editor - */ - @Override - public void componentHidden() { - String path = this.obj.getPrimaryFile().getPath(); - try { - this.editor.saveGui(path); - } catch (FileNotFoundException ex) { - Exceptions.printStackTrace(ex); - } catch (JAXBException ex) { - Exceptions.printStackTrace(ex); - } catch (NullPointerException ex){ - Exceptions.printStackTrace(ex); - } - } - - @Override - public void componentActivated() { - try{ - GuiEditorModel model = (GuiEditorModel) CommandProcessor.getInstance().getObservable(); - model.setCurrentGUI(guiID); - model.getCurrent().addObserver(this); - CommandProcessor.getInstance().setUndoManager(undoSupport); - }catch(java.lang.IllegalArgumentException ex){ - logger.log(Level.SEVERE,"Can't load your gui", ex); - } - } - - @Override - public void componentDeactivated() { - } - - @Override - public UndoRedo getUndoRedo() { - return this.undoSupport; - } - - @Override - public void setMultiViewCallback(MultiViewElementCallback callback) { - this.callback = callback; - } - - @Override - public CloseOperationState canCloseElement() { - return CloseOperationState.STATE_OK; - } - - @Override - public ExplorerManager getExplorerManager() { - return nodesManager; - } - - @Override - public void update(Observable o, Object arg) { - if(arg instanceof SelectionChanged ){ - SelectionChanged event = (SelectionChanged) arg; - if(event.getNewSelection().isEmpty()){ - return; - } - GElement parent = event.getElement(); - GElementNode node = new GElementNode(parent); - this.content.set(Collections.singleton(node), null); - - }else if(o instanceof GUI){ - //Add a save. We don't add multible savable because they cointains the same - //information about editing. - GuiSavable savable = this.lookup.lookup(GuiSavable.class); - if(savable == null){ - String path = this.obj.getPrimaryFile().getPath(); - final GuiSavable guiSavable = new NiftyGuiVisualElement.GuiSavable(((GUI)o),path); - this.content.add(guiSavable); - } - } - } - - @Override - public void propertyChange(PropertyChangeEvent evt) { - if(evt.getPropertyName().equals(DataObject.PROP_MODIFIED)){ - boolean old = (Boolean)evt.getOldValue(); - boolean nev = (Boolean)evt.getNewValue(); - if(old && !nev){ - this.loadGui(); - } - } - - } - - private void loadGui() { - try { - ProgressHandle handle = ProgressHandleFactory.createHandle("Loading the gui file"); - InputStream is = this.obj.getPrimaryFile().getInputStream(); - handle.start(); - ProjectAssetManager mgr = this.obj.getLookup().lookup(ProjectAssetManager.class); - String assetPath = mgr.getAssetFolder().getPath(); - this.editor.createNewGui(nifty,is,new File(assetPath)); - this.view.newGui(this.editor.getGui()); - nodesManager.setRootContext(new GUINode(this.editor.getGui())); - this.editor.getGui().getSelection().addObserver(this); - Collection layers1 = this.editor.getGui().getLayers(); - guiID = this.editor.getGui().getGUIid(); - this.editor.getGui().addObserver(this); - DefaultComboBoxModel model = new DefaultComboBoxModel(layers1.toArray(new GLayer[0])); - layers.setModel(model); - layers.setSelectedItem(this.editor.getCurrentLayer()); - - handle.finish(); - } catch (ParserConfigurationException ex) { - Exceptions.printStackTrace(ex); - } catch (JAXBException ex) { - Exceptions.printStackTrace(ex); - } catch (ClassNotFoundException ex) { - Exceptions.printStackTrace(ex); - } catch (IOException ex) { - Exceptions.printStackTrace(ex); - } catch (NoProductException ex) { - Exceptions.printStackTrace(ex); - } catch (SAXException ex) { - Exceptions.printStackTrace(ex); - } catch (Exception ex) { - Exceptions.printStackTrace(ex); - } - - - - } - - private class GuiSavable extends AbstractSavable { - private final GUI gui; - - private final String filename; - - public GuiSavable(GUI gui,String filename){ - - this.gui = gui; - this.filename = filename; - this.register(); - - - } - @Override - protected String findDisplayName() { - return "Save "+ this.gui + " changes"; - } - - @Override - protected void handleSave() throws IOException { - try { - GUIWriter writer = new GUIWriter(this.gui); - writer.writeGUI(filename); - NiftyGuiVisualElement.this.content.remove(this); - - - } catch (FileNotFoundException ex) { - Exceptions.printStackTrace(ex); - } catch (JAXBException ex) { - Exceptions.printStackTrace(ex); - } catch (ClassNotFoundException ex) { - Exceptions.printStackTrace(ex); - } - } - - @Override - public boolean equals(Object obj) { - if(obj instanceof com.jme3.gde.gui.NiftyGuiVisualElement.GuiSavable){ - return this.gui.equals(((com.jme3.gde.gui.NiftyGuiVisualElement.GuiSavable)obj).gui); - } - return false; - } - - @Override - public int hashCode() { - return this.gui.hashCode(); - } - -} -} diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GButton.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GButton.png new file mode 100644 index 0000000000000000000000000000000000000000..32a4eeb711ddda3b9f3a16bdb395df00b8e7fbaf GIT binary patch literal 348 zcmV-i0i*tjP)xVepbmnzX;KcVDk`7zQ#W7?~K8 z1$YnyGsc($>m8&R$(4}zzVC0m>pI7E-J|dO2O)$xiZ07EilS2-$Ar~&z4tutpzFHX zwk;WxcorFCxs-D8g;fF>WKn=Z8$?xrb54*&0oF8)vH;Exvb-pYcLgY-5|mPcEC)wr zmSrhCrKuuNRaJ_tW?9w>ZeQBAy@h8Knx>Io3E(pf!*h}(7Yc5!4a0C@V*_Q)NA@qF u?MI&HSNfU06&kBJ#prrQ|Na|a0t^5k)SVSRSh3;&0000f@ zh&Gt?L6pW?UHE_&AK*q)w760!byX1*_lg_w4+y$Q-3TrOK@<`biA}~NlY6h{CNpCdUFEPFN|y*8r|h?)w_t~QUN${R;!i^xmFynw=-x7LEb=@y z-crhcis99ldJQOtqmk1$qgrcQ0L&r)!vM_u3wUN4pm{q3k(1Y>g5xNl3__jThr&=T zIj>SygtD22ikXEPT?fX>jjBs-P;@;kI8J~X1DP|EV6sRwpj25#Vg^&AzuP6L){22? z=852JRPZ_TZXxCG>xmfUH^8_FE_w4m+eWZW+0^Tl;5c(YDNHXsyfM3$UCt;<8>q79 zzxcVjo=GMi&kByCfN@wUtfueH+_^@>!^igpcOUH2+I{V^EGzXkHaY>xnMd<)=civ( ziiP_Uft9)U6Mmw%Vkivcnxxs^`Ii6#0IcBgtRRGRSO5S307*qo IM6N<$f);=^{{R30 literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GCheckbox.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GCheckbox.png new file mode 100644 index 0000000000000000000000000000000000000000..07f3522a9cb0f2714eb2e7565f9fab15876c443f GIT binary patch literal 435 zcmV;k0ZjghP)}?G`Qs27>`vmPKir3Pg_X*aHXLGl3uo&@GFi=v|g&(siAt)2Tp7 zk_cn1;{Qe(Vmc8;gJ{3R_{xSQ*1b_0ntRe7k dkLg>00RU+)?qLaUw9)_o002ovPDHLkV1f%@yFvf} literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GConsole.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GConsole.png new file mode 100644 index 0000000000000000000000000000000000000000..c18df24f94c324e288b3c937c8e83f90fc7ae9ce GIT binary patch literal 492 zcmVkaI738ieo^KQh9aVr5W0vwGq7z_q5pU+{rTtdI!hfe1S z(zF2A^(nefFq;(tW|+lFfE8!688jLV*_=#XsT;0D;O@o6xCzNxE8VflGl>#Pgh5Ac`W7okpY4S$`rk%qof;(Bkoui$Hz*P;yoPO}Iz+wGi-$b0000)#(6jDF%>2 zaAATbCK6JKCI*!dA~7+V=*EQ$H?VZ&UYE)WqefkssDD6RD4?=1kp#-Zjg~|Rr531K zN|~8<-kv+14r=sFzB#$)oO>SMy_dt^al>f^E@A>X+l+13?4kzrzi?s*Tu{ER{;n9JXESiNyIvF zySuxnR4QRhJkP_ZYUPCwvpKdt(m&Yij}ayaXReX zj);^&MD!Dk(5yFtP9}ZjI4~^}x~@a7>X0KcG__)o>v52Cf&#!GU{szO9U42AXldQQ zxmg%U#@k|+Yws&=7onRvb!x*CJQ%84a&6lQ65NC!rXWcf4tHXULnnvRtQsRoH*~C) zR>5;TL_rJ=!-K6>%RB2EJ_jw`9ldHv%Q=?QFH(sD$8l-XFx1S#d{%0X#A1EPJ`}8S zX?{I#l?_8oMC9h#MW8 y^B^zz+Y~)n|hzkTCX z9LIS9fG22y)9G|Euj@Jj%d+0;mI#8N#v*l9RXmQz<5v|YR0-zuIe(#vlv5N1BuN6U z>+%@KF$i2#C}^4{C;f&z&zXb4fXDrQ4`RJu!*aO>Q;LjV8(07*qoM6N<$f;4Z#_5c6? literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GDroppable.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GDroppable.png new file mode 100644 index 0000000000000000000000000000000000000000..fd7eb0a93b93dcbc7ba5e3209f01f210e10f59f5 GIT binary patch literal 556 zcmV+{0@MA8P)QID4Dg8;CMmFZokkXP?44ibb zefNFe`OY#sJg#a$V~iE0lmR+KQ3rmT>t;X*L0-^WZ&U2_Xqt&`H!|cn?gmPIz$i;Z zIky7ac6uVB)9DmZ0Lij|D+L+4{^q6jh$~{D00jz0KM9C zVsRWBLC^C7BS2RRLnFYVhyw}u{$#3!Mx#ywM#K<>DFmWYsU#SkRKp%|Xl`Hs5!7n6 z0bCe{xUA9)qExj~sRa3a9L;iB zlTx}!R%TTL{6UP#>U2(*F&zLn~37@`NLNQp94+DzskjX1n!=Th47=xjzBR z;+p*Tp7Ml4{2cL&!q!1aukK!4Pvtfj@VNMwBQA&d8{(nS=gPp$Qm`?*ymS8kd=uPV u?T>u(wY^K2%5Bg`TJOCnsr<)21sDKnlhlCp-a7FB0000Yh{-NTpH*+@9llU#(UjqSHpB!F?u^ zfiMhz?4W=}7qwdLkv!o)U7^$I02aVr zF!2=sYAl^j-=MbyvE6QAG#V8*n+-2!j1j&<-k^I6!#W?G$MX67S*z80kX8HrKEDbH z(C{3`so1t%k#k(vz2hCAYS3&pZ{^^0I=w8FO4lSpFVgLHpHcKx&cQnVbWGE<7hTs6 zfh0*_GMVUjIu}q?mGGNsnr*`{4tY4(;~_>-1cSi<;yBi*5WfX3K$v)n9}Q7#eBXy& zueT=|OLDo~y@=sJ6Pm|xID~S!43=emFEE?U1bm`FO9##6JXt{b_n+xxflmPj0F3*_ UjW>OCWB>pF07*qoM6N<$g6FN-Bme*a literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GImage.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GImage.png new file mode 100644 index 0000000000000000000000000000000000000000..8f07172448528411aab356297904d6c146b135f1 GIT binary patch literal 540 zcmV+%0^|LOP)8PIkQk7N(9CX;R3>|F;(Ln1&UfU|S(D&@Z^bN>Q% zTd>!Li>WYk8^h|EnY5-A9CNF=O+9E8nQw2xW>gA|1?a4oP9|w7swbL)P191~!#*8AoV0wKiN z7t715$N6$}%r7n7>lK*O7Dn}l>#w%9uvfgFSe$Z0%-?+v!8u`xvrKW?K|9Y+1Y!}tWnkMCH@Sh%@5bs)*loK8!`;{nd!r*E-u!! z@k3Bb>|a^i{(>O=7W>}>e(XhQ{;Cj>4sW@{XHMm-x{UnC(NW-YV4oIllAVOY;}`&zyo>Zh`v#_(^V#A^)mWo)~iP opa*rF>O3E}47u66@mqia0K35&1H+Yty8r+H07*qoM6N<$g3Hh!MF0Q* literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GLable.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GLable.png new file mode 100644 index 0000000000000000000000000000000000000000..2fc5ccc4fb5dec180abe03e6c1da38950eb744f3 GIT binary patch literal 524 zcmV+n0`vWeP)Wn5v|6plNF;K5N#TCKciZiDPoRTlv-uQUXkpE72b0M}6AcD~k9xh{;aeQX zdBwX_Dm57EcDpa-a`_H5Fonl>JQlw13){9kmSw%clgXsU;D{MV4lvXh4d(N?Td7nU zN~wN49v7)pN*^K-mdRxFd%0W!>xa3nAt11~+wE|R$Y!%5oldh*M+8zzT;@=&gIq&! zX!(5J#N0tN8Z~D`aFnkOf8=sGEoSHv9l#MYj+~P{fF%+M-THRBWk_-dgh>XG11&JJ zAsCHDTDVv&CP*AjhVEE{&1R!JU9Z=Atl@Adrqk&$0gFW&DLl_B(AYb&1L~DO5nP#cErGN#yi5bT3vkK zaGV7I1BKKBQrk-ip-#XE&qBJVE&#=!<%og0lWg(T$P*fZ4r2rvL-82v zFOVDL04eO#2sXC%xkVtkLcm7eDFVtXf{_>T-_y(|tQbgq#(`mXM&|p?467hE*LBJB zJQ~N5gb;U}x}j~B$uJD3LKqiQ-}i?oik`Mq2SM;47x6@9k=ry)XVKrxG);0G2QVS` zkdq{#VHl`wTar7;bh%upX&NE-kh`w?As~=kBQM6B3eoy3fB*vUHPbY0CabfqYfVB0 z0esDLU7yM7WC1Y?puKCR$g1mq31A0`jAF!jp6e2GY!Sc?6giILSKs&F_sy=`&nWRs2YZGbq5Rbnf+_ZTb6at^BuOl mMDF6FEXxcBzfB^u`!Y7XYmB1VT0000hKooqttkTegG74AV z1e_r^phSsi=;$!w29y>O*PwKPMB#f_3LT302=OswAIhTG$TrDHqvh?6hR3{x_`d%J z057ls<2YW_(==t^y6(rc5y#{4qIMkTou1EUbb>Gp=QrFUYWlukw78aK35;(NEKJj! zH}9eAI{2+EiUL@grVvFDU?<377*-T#s;WX&Rg2;2bOI`Zu`KIhh-juL%ECO)fuS>E zzu#{e1PHwV(=<&o3}ZE-Yfwrdj^mX9<-rha&GS5H+x8|=BRUYAJK%=|A9lOl|2_db zNRkA$LUghiU17G1GJr~ z8+3p!VI0U39iSU@rs4q_7xG`9Acnq05eP%jcbqOZ*L8g*q7&&Wc<*1;IF9G0X&zeI zId{idP18invPf?&W+reVFbo6F^Q;yCCjw~&5kPOPq9_R5>OkPt($)ee0)5}JRsbu2 z%NYRH3gis-I6wy3LDzL^fwC+K+-?V$|8tN3 zt)N433KV<+(Jsyod4WuYjE;E)XJ4U1iIWdd2!%k#B%%(2w4y0Q^P}lGsRRe_l%W?c zIrsa%^X1-i?q$+6B}E2H3XZ}C{OO|K@Be{3FTv*t=FO4%f@vp7GQowe>*ozXKsb(j z7DchsZnwLYN~MbUa=COyqtTn^dB%Rf|DYZrj^hVNe(CjkuaMjT=n5ysh#`j>>Jh>) zY_wXfF3YlI$8m^hni($3GLa;yjGS%Tp8$Dh4R*WTtsn@GQ52E!cuaiX&+yG=Lli|J z$f1V1gCGbPtOJhKYDL!TbzU3Tdaj|?0Lbt8eD0yR*=*)G#)u(@8tM+V+pRSm4&OCR zyRX;lrAIpW3gE9s;YLNaCjdGv~MyP3=GS%3~cFX4s-ez z;7=Fu5lf{~6*_ST@%54N4~N4HiaUdN1~~!EfIB8#Qf_X9O@W;FtiiuLre6UD0D@`0 U?wQ+*<^TWy07*qoM6N<$f-v#eV*mgE literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GRadioGroup.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GRadioGroup.png new file mode 100644 index 0000000000000000000000000000000000000000..1d27c7cc718e11fd5e4dbfe6d93dd6e4bb4db5a4 GIT binary patch literal 557 zcmV+|0@D47P)<;51LmLS^Z9!=o82|Q zpeRav&So<-bFwUZol2!{d_Lb9>dj{JrBEp3`~Chs4BvDJXkaiHh@vQDJRV;r5{X-{ z*BgbmnlQ0O4d-+STWu4Y%|^Q2uG8c3oKC0Hoq5zoqmlDB0}j4Q)MPR_>~{NAy^6h-28yNT6m)eyn7G8hbcI)g3di%zGbX)c!w z4|LvWG^k)Os8%6zx!gmm)q2tyAQ$q%Vp1#?H7y>G6Q1X(bUOW5E|;GHPnt|7uW-n+ z&H%aaz+_n_?RHz!um&_0+7~2A%CDBDwElMkV%f~ja`^w7^+^cXOMsq$1!2o?37Ro@Wo=WX9vLl6o{e- zT-O8N4?w8|7-JxW2~t{MSr+a*6A-J_DkH|R0?+gH&bdSq5r}AN0U=}t;%Wik_cd85 zEefV-Z-P^z+=vkb7zW3RjBkM?Nicvi*%@IiAT*Kll*G0>)dHrJ#l&$ASz6+n#F0c< z*stzIQJ4^y{(2Z_6^lhEl}b>lRG?fg>-R#TphbcpfaP)t)9Dl@lL^dbGnmikXt3|I zMx${(7z`dMkh12nt^j~qRA>;L6`D>fZoyCuq1|rZuzJ0Ig#jnqC3ZTUhx~WH-@o0C zK~LVvz-P*kF3N;i?i|PY5scMxH1$5MDsyo>9s?m=bV$$#t5&OlZQFVhuIp0o7WJQw zoL043%`B#A93hSo2WaSJv)Me&XBv%0Z)oHTz6OX7#3v1dFc6(F77fjoL^%p) z$PKnc*^Z8mf*VkC4-UaSkd_Xu_z3ZjXCy~TvLa6MB=i_FJU>6%7{~Dm01jY)bzN`j zZQDwSqUdKcM4sn2br^9vzrupuc;b$M4#a=(-L~Pa-in2!eoF385^@Qc^&+Z9fgM z?|bGXNto41l;}9lwMzOzUIV51cM)I!b)Pq{mi!nv00000NkvXX Hu0mjfvvQA1 literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GTextfield.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GTextfield.png new file mode 100644 index 0000000000000000000000000000000000000000..7fc1c7f7e1c0782a85a02b4ac2ce471c45465449 GIT binary patch literal 359 zcmV-t0hs=YP)1Y%)9Z(`{MD7^w_5NSLDjfGyqM6bY4$hXcTtes}{D}2dhW*__BE|XcMwWed> z(2-!J6!MwGsl=4mL_rXc<2bZ$zD35`CZJVu9AB^NdII%0jSWm(A7Hh>lehpn4} zX`0B?mIen7!|=-hH~5VKv@BiMf9(OZEGND+aHZQJuCNuF&DMEikBd>V$qa2Hay zD2k%6GEw^kUP)YH6eKVRk6D&I)OG!%7!OhX`)m9ZU;rd~N-dw*(31cF002ovPDHLk FV1jwEmwNyJ literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GTree.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GTree.png new file mode 100644 index 0000000000000000000000000000000000000000..35186694207a1445c9b026cfb708761f5c858666 GIT binary patch literal 520 zcmV+j0{8uiP)qT7Y>*69`|zYx$jX;)5s*jkO{+KB;jz_bm{ea3Cpqz48!aI(+@&8Dfr+U6PA1~{EglS)-ptv$dwjac3|Ca^Le6ukm8 z%*bs`M5jln)oLVjbqK5cx?W#Z{U`fwf*EC9XDNg}vf%*el=FHDbT3t~}^70Jv@$nd%nV7KqmIavu3{d@l|NdFX%E~eT1JL5y zwQCF<92~YFDWEt={uz+HnE_1`7#9>27!(y1Wdarc|NHkZ1_p_PKCAmoHy%2H=MeADD24!I?8>ZbU>xQgHg4Rw_SLIb$Dm>#u3x`C4{I1e0V@zofv}jESo8Vw=l{pX#+Jjx zfS4CO4A7nQ8;G9)qwE5N0C8Zxe#`1drvLx|07*qoM6N<$f+ya# ABLDyZ literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GWindow.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/GWindow.png new file mode 100644 index 0000000000000000000000000000000000000000..ea60171bd2a2b3890317b1f5315746ab3b5e5fd4 GIT binary patch literal 341 zcmV-b0jmCqP)24D+HM#unZDbiCR8f-)UO_DOw!%HWB;XB{G-Y`v*T2q+k`H{{O zAr^8w!UMhc=b|XCNs^@AJLQ}wSY<8uPL1QJW|Kw%U;yGqwQc(>%li%K!oKhOv}u}f znL(lf|9V1NRn-ooC>paYTa>@9Ye2FIvrXAB0e~Y00sXZlDXldN=$`;XQpT8Bz*?($ z+6+l?Wai>942EBq3h)e=%K{++sflO6+{F$MadtpU6tNxJ2XTbJjpO)26Fn?hBy#=& nI=7#XghD=N?qKbAehV-F=10AQpaGP;00000NkvXXu0mjfPq2uw literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/game-monitor.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/game-monitor.png new file mode 100644 index 0000000000000000000000000000000000000000..fdb0219be905edef960b74038ba9a755cdd4c6be GIT binary patch literal 608 zcmV-m0-ybfP)F73f;M^DI`_Av)xz|e56#w(-TCFxK{qY0pw{(&u z$8oH}Fhr}>f|!9@+K+$dl84bK1b192`RH~Zb4}5}Vj`nbshEDytU|w8L;Up{NEVfS zc-N{}Z$5(7IqdBXOdhq0E_CNY6h$D-==pmby*h*Oc#MAk2Tom|$M(`H9LIy}dIp~w zLm(oHLSjg@6X;Dlg(iJk3p28x4R?b6u(}6G`(%x8G)8l&InjJl#{2h|KbCZUI3*O)CnJ@ zE9a39EJI>hmLZ@vBj6!!++P8AGI+g)GtEmV7LURA%Q#)Xh@WpinG4i^uqv(fmq31% zV)a6yfZ=c`crolRoA`WpS*qKHV0ZC}R0YN&Vbz1O-7MrIl>TwcT1sW8t=2skOHLf`CmL!H>cZL?u{gF(jiBqZwhXe*UU5yLQ4GlNJK{+AOXsZ^>}1_FUf zJRX13{^@jDNRlZ$nT=-tSUtr~{$Ay=_K#SZ{L*Ni5WJ!y&}y>k&y%e9J*1<))x#^V3C=ubk&y?!O*03|RIBvBFs3jhEB07*qoM6N<$f)#G^E&u=k literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/ui-scroll-bar-horizontal.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/ui-scroll-bar-horizontal.png new file mode 100644 index 0000000000000000000000000000000000000000..f93ed8f80e4ea4ba0eea6dd88c3296c2c1a257c2 GIT binary patch literal 349 zcmV-j0iyniP)1WHwbtDH{!yL8`rsn=So0a_(SkNT}=XJk`TfyvdIJK>i4RuUq4ms`;J>e;>P%U z1C=DnqY&cZm@JCoOS13#ANG2FuWB4eH_Ni;_hD)?c%BExaj>o{wrw+OUDpVL07qUF zMNe`V1~Jbw%CbZp#~`NYI+$aP9CC@Nm3`mKX_}CxsX2vsS(Z-*%&|rexy01UuIr3J z7=~z?#uV7{buh;oIph*ktJ=1eyq9HJ$n)IX@w*OKBj;^^pjNo9dsa%Fj^wJUVB0o+ v%4yRVq1QY8-1C+G@)Ka2wfO%Ra1metwXm?RKqq!800000NkvXXu0mjfoCBM5 literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/ui-scroll-bar.png b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/icons/ui-scroll-bar.png new file mode 100644 index 0000000000000000000000000000000000000000..709605a0b17af8ac61356162a6beefe43526a8a8 GIT binary patch literal 390 zcmV;10eSw3P)^f)jFx zti3~yp;_btt`uE)g}CTR7CuypTthbX>h=TNBv%xRWnt}vMdDgeSg)8 zqP#F%XeW&K#qa?;iXtA@Hly$R&Ah~M{Jt;XdEP5YMBR+GZ8^|YRaKNE$*SRtd1-;B zX*lp8O;ehtY1Qz>yeNDGd`Xy>9LM?Ri+O2*q9}MU%d#t?m_O{mG|emGVF#jM_FF|- zV4ml51x|Nxx`1ulG>+pRNz;xCV8aZD{d kUDtgw6KBoW@<)IH0LOFI(3irUQUCw|07*qoM6N<$g4STI)c^nh literal 0 HcmV?d00001 diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java b/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java index ae4e0158a..3380b687c 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java @@ -27,12 +27,15 @@ import sun.beans.editors.BooleanEditor; */ public class GElementNode extends AbstractNode{ private final GElement element; - + private static final String basePath="com/jme3/gde/gui/multiview/icons"; public GElementNode(GElement element) { super(Children.create(new GElementChildFactory(element), false)); this.element = element; this.setName(element.getID()); + String name = this.element.getClass().getSimpleName(); + this.setName(name); + this.setIconBaseWithExtension(basePath+"/"+name+".png"); } diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GUINode.java b/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GUINode.java index 15da0e1d5..1b041b260 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GUINode.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GUINode.java @@ -14,10 +14,11 @@ import org.openide.nodes.Children; */ public class GUINode extends AbstractNode{ private final GUI gui; + private static final String basePath="com/jme3/gde/gui/multiview/icons"; public GUINode(GUI gui) { super(Children.create(new ScreenChildFactory(gui),false)); this.gui = gui; - + this.setIconBaseWithExtension(basePath+"/"+"game-monitor"+".png"); } /** diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/palette/WidgetNode.java b/sdk/jme3-gui/src/com/jme3/gde/gui/palette/WidgetNode.java index c4faa274e..4f6faad23 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/palette/WidgetNode.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/palette/WidgetNode.java @@ -30,18 +30,14 @@ import org.openide.util.Exceptions; */ public class WidgetNode extends AbstractNode{ private final Class clazz; - private static final String basePath="jada/ngeditor/resources"; + private static final String basePath="com/jme3/gde/gui/multiview/icons"; public WidgetNode(Class wrappedClass) { super(Children.LEAF); this.clazz = wrappedClass; String name = wrappedClass.getSimpleName(); this.setName(name); - - this.setIconBaseWithExtension(basePath+"/"+name+".png"); - - - + this.setIconBaseWithExtension(basePath+"/"+name+".png"); } @Override diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java b/sdk/jme3-gui/src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java index a459a2553..3e9f0def7 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java @@ -73,7 +73,7 @@ import sun.rmi.runtime.Log; @MultiViewElement.Registration( displayName = "#LBL_NiftyGui_VISUAL", - iconBase = "com/jme3/gde/gui/multiview/icons/Computer_File_043.gif", + iconBase = "com/jme3/gde/gui/multiview/icons/game-monitor.png", mimeType = "text/x-niftygui+xml", persistenceType = TopComponent.PERSISTENCE_NEVER, preferredID = "NiftyGuiVisual",