[JPP-Devel] Some enhencements on Openjump
Greatings to all Jumpers, today I made some small changes in the editing section of openjump. EditOptionPanel: I added an option that automatically opens the InfoFrame of the attributes immediately after digitizing a geometry. This option allows you to enter attribute values during digitization and responds (in part) to the feature request "235" (Create form to edit attribute values) of a few years ago. CAD plugin: the new version also loads a python console and tools (python console and tools plugin), for now I have activated only a few tools, such as the align and arrange tools. Hopefully thks section could be expanded in the future. This changes are already available on Openjump snapshot 6361. Best regards Peppe ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6361] core/trunk/ChangeLog
Revision: 6361 http://sourceforge.net/p/jump-pilot/code/6361 Author: ma15569 Date: 2020-07-16 11:27:43 + (Thu, 16 Jul 2020) Log Message: --- Updated ChangeLog file Modified Paths: -- core/trunk/ChangeLog Modified: core/trunk/ChangeLog === --- core/trunk/ChangeLog2020-07-16 11:25:18 UTC (rev 6360) +++ core/trunk/ChangeLog2020-07-16 11:27:43 UTC (rev 6361) @@ -7,7 +7,9 @@ 2020-07-16 Giuseppe Aruta * EditOptionPanel : Added option to automatically open a feature attributes Info Frame after a new feature is created. Workaround to Feature request -#245 "Create form to edit attribute values" +#245 "Create form to edit attribute values" + * CadTools Plugin version 0.9: added capability to load Python console and +tools: added Align and Distribute selected features tools 2020-07-09 Giuseppe Aruta * Sextante: ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6360] core/trunk/lib/plus/CadTools-0.9.jar
Revision: 6360 http://sourceforge.net/p/jump-pilot/code/6360 Author: ma15569 Date: 2020-07-16 11:25:18 + (Thu, 16 Jul 2020) Log Message: --- Added new version of CadTools (CadTools-09.jar) Added Paths: --- core/trunk/lib/plus/CadTools-0.9.jar Added: core/trunk/lib/plus/CadTools-0.9.jar === (Binary files differ) Index: core/trunk/lib/plus/CadTools-0.9.jar === --- core/trunk/lib/plus/CadTools-0.9.jar2020-07-16 11:23:47 UTC (rev 6359) +++ core/trunk/lib/plus/CadTools-0.9.jar2020-07-16 11:25:18 UTC (rev 6360) Property changes on: core/trunk/lib/plus/CadTools-0.9.jar ___ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6359] core/trunk/lib/plus/CadTools-0.8.jar
Revision: 6359 http://sourceforge.net/p/jump-pilot/code/6359 Author: ma15569 Date: 2020-07-16 11:23:47 + (Thu, 16 Jul 2020) Log Message: --- Removed CatTool6-08.jar Removed Paths: - core/trunk/lib/plus/CadTools-0.8.jar Deleted: core/trunk/lib/plus/CadTools-0.8.jar === (Binary files differ) ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6358] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/ CadExtension.java
Revision: 6358 http://sourceforge.net/p/jump-pilot/code/6358 Author: ma15569 Date: 2020-07-16 11:19:04 + (Thu, 16 Jul 2020) Log Message: --- Updated version Modified Paths: -- plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/CadExtension.java Modified: plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/CadExtension.java === --- plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/CadExtension.java 2020-07-16 11:17:33 UTC (rev 6357) +++ plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/CadExtension.java 2020-07-16 11:19:04 UTC (rev 6358) @@ -31,7 +31,7 @@ @Override public String getVersion() { -return "0.4 (2017-11-10)"; +return "0.9 (2020-07-18)"; } @Override ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6357] plug-ins/CADExtension/trunk/src/org/openjump/advancedtools
Revision: 6357 http://sourceforge.net/p/jump-pilot/code/6357 Author: ma15569 Date: 2020-07-16 11:17:33 + (Thu, 16 Jul 2020) Log Message: --- Added capability to open Python console and tools from CAD toolbar: added Align and Distribute tools Modified Paths: -- plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/EditToolboxCADPlugIn.java plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/utils/WorkbenchUtils.java Modified: plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/EditToolboxCADPlugIn.java === --- plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/EditToolboxCADPlugIn.java 2020-07-16 11:11:52 UTC (rev 6356) +++ plug-ins/CADExtension/trunk/src/org/openjump/advancedtools/EditToolboxCADPlugIn.java 2020-07-16 11:17:33 UTC (rev 6357) @@ -20,7 +20,6 @@ * @since OpenJUMP 1.10 */ import java.awt.BorderLayout; -import java.awt.GridBagConstraints; import java.awt.event.ActionEvent; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; @@ -47,6 +46,7 @@ import org.openjump.advancedtools.plugins.RegularPolygonPlugIn; import org.openjump.advancedtools.plugins.ShortenLinePlugIn; import org.openjump.advancedtools.plugins.SimpleLinePlugIn; +import org.openjump.advancedtools.tools.AddAreaTool; import org.openjump.advancedtools.tools.CopyDraggingTool; import org.openjump.advancedtools.tools.CuadraticBezierCurveTool; import org.openjump.advancedtools.tools.DrawConstrainedParallelogramTool; @@ -55,10 +55,13 @@ import org.openjump.advancedtools.tools.ParalelAuxiliarylLineTool; import org.openjump.advancedtools.tools.ParalelLineTool; import org.openjump.advancedtools.tools.PerpendicularLineTool; +import org.openjump.advancedtools.tools.RemoveAreaTool; import org.openjump.advancedtools.tools.RemoveSectionInLineTool; import org.openjump.advancedtools.tools.SelectEditingFeaturesTool; import org.openjump.advancedtools.tools.cogo.CommandLineStringFrame; import org.openjump.advancedtools.tools.cogo.DrawGeometryCommandsTool; +import org.openjump.advancedtools.utils.WorkbenchUtils; +import org.openjump.core.ui.swing.DetachableInternalFrame; import com.vividsolutions.jump.workbench.JUMPWorkbench; import com.vividsolutions.jump.workbench.WorkbenchContext; @@ -76,6 +79,8 @@ import com.vividsolutions.jump.workbench.ui.toolbox.ToolboxDialog; import com.vividsolutions.jump.workbench.ui.toolbox.ToolboxPlugIn; + + /** * @author Giuseppe Aruta * @since OpenJUMP 1.10 @@ -83,277 +88,301 @@ public class EditToolboxCADPlugIn extends ToolboxPlugIn { -public static final String CAD = I18NPlug -.getI18N("org.openjump.core.ui.CAD"); -public static final String CAD_OPTIONS_PANE_NAME = I18NPlug -.getI18N("org.openjump.core.ui.config.CADToolsOptionsPanel"); + public static final String CAD = I18NPlug + .getI18N("org.openjump.core.ui.CAD"); + public static final String CAD_OPTIONS_PANE_NAME = I18NPlug + .getI18N("org.openjump.core.ui.config.CADToolsOptionsPanel"); -PlugInContext context; + PlugInContext context; -public static ImageIcon ICON = org.openjump.advancedtools.icon.IconLoader -.icon("cadTools.png"); + public static ImageIcon ICON = org.openjump.advancedtools.icon.IconLoader + .icon("cadTools.png"); -@Override -public void initialize(PlugInContext context) throws Exception { -WorkbenchContext workbenchContext = context.getWorkbenchContext(); -new FeatureInstaller(workbenchContext); + @Override + public void initialize(PlugInContext context) throws Exception { + WorkbenchContext workbenchContext = context.getWorkbenchContext(); + new FeatureInstaller(workbenchContext); -context.getWorkbenchFrame().getToolBar().addSpacer(); -context.getWorkbenchFrame() -.getToolBar() -.addPlugIn(ICON, this, createEnableCheck(workbenchContext), -context.getWorkbenchContext()); -context.getFeatureInstaller().addMainMenuPlugin(this, -new String[] { MenuNames.PLUGINS }, CAD, false, ICON, -createEnableCheck(workbenchContext)); -OptionsDialog.instance(context.getWorkbenchContext().getWorkbench()) -.addTab(CAD_OPTIONS_PANE_NAME, GUIUtil.toSmallIcon(ICON), -new CADToolsOptionsPanel()); + context.getWorkbenchFrame().getToolBar().addSpacer(); + context.getWorkbenchFrame() + .getToolBar() + .addPlugIn(ICON, this, createEnableCheck(workbenchContext), + context.getWorkbenchContext()); + context.getFeatureInstaller().addMainMenuPlugin(this, + new String[] {
[JPP-Devel] SVN: [6356] core/trunk/lib/ext/jython/CADstartup.py
Revision: 6356 http://sourceforge.net/p/jump-pilot/code/6356 Author: ma15569 Date: 2020-07-16 11:11:52 + (Thu, 16 Jul 2020) Log Message: --- Added python startap file to relocate access to some usefull tools from OpenJUMP python console into CAD toolbar (PlugIn) Added Paths: --- core/trunk/lib/ext/jython/CADstartup.py Added: core/trunk/lib/ext/jython/CADstartup.py === --- core/trunk/lib/ext/jython/CADstartup.py (rev 0) +++ core/trunk/lib/ext/jython/CADstartup.py 2020-07-16 11:11:52 UTC (rev 6356) @@ -0,0 +1,123 @@ +# This script is run the first time the jython toolbox is opened +# The toolbox Tool Menu and the Tool Bar have already been added +# Example tools are defined here in order of simple to complex +import org.openjump.util.python.pythonexampleclasses.DrawCustomTool as DrawCustomTool +import com.vividsolutions.jump.workbench.ui.cursortool.editing.FeatureDrawingUtil as FeatureDrawingUtil +import javax.swing as swing +import java.io.File as File + +featureDrawingUtil = FeatureDrawingUtil(toolbox.getContext()) +toolMenu = toolbox.JMenuBar.getMenu(0) +sep = File.separator # / for linux and \ for windows + +#toolbox.centerPanel.components[0].hide() #comment out to initially show +#install menu items +#def showConsole(event): toolbox.centerPanel.components[0].show(); toolbox.pack() +#toolMenu.add(swing.JMenuItem("Show Console", actionPerformed=showConsole, icon = swing.ImageIcon(startuppath + "images" + sep + "console_show.png"))) +#def hideConsole(event): toolbox.centerPanel.components[0].hide(); toolbox.pack() +#toolMenu.add(swing.JMenuItem("Hide Console", actionPerformed=hideConsole, icon = swing.ImageIcon(startuppath + "images" + sep + "console_hide.png"))) +#import UnionSelected #too much code to inline. use module +#toolMenu.add(swing.JMenuItem("Union Selected", actionPerformed=UnionSelected.unionSelected, icon = swing.ImageIcon(startuppath + "images" + sep #+ "features_merge.png"))) +import AlignSelected +alignMenu = swing.JMenu("Align Selected", icon = swing.ImageIcon(startuppath + "images" + sep + "shape_align_left.png")) +alignLeftMenu = swing.JMenuItem("Left", actionPerformed=AlignSelected.alignLeft, icon = swing.ImageIcon(startuppath + "images" + sep + "shape_align_left.png")) +alignRightMenu = swing.JMenuItem("Right", actionPerformed=AlignSelected.alignRight, icon = swing.ImageIcon(startuppath + "images" + sep + "shape_align_right.png")) +alignTopMenu = swing.JMenuItem("Top", actionPerformed=AlignSelected.alignTop, icon = swing.ImageIcon(startuppath + "images" + sep + "shape_align_top.png")) +alignBottomMenu = swing.JMenuItem("Bottom", actionPerformed=AlignSelected.alignBottom, icon = swing.ImageIcon(startuppath + "images" + sep + "shape_align_bottom.png")) +alignVerticalMenu = swing.JMenuItem("Center Vertical", actionPerformed=AlignSelected.alignVertical, icon = swing.ImageIcon(startuppath + "images" + sep + "shape_center_vertical.png")) +alignHorizontalMenu = swing.JMenuItem("Center Horizontal", actionPerformed=AlignSelected.alignHorizontal, icon = swing.ImageIcon(startuppath + "images" + sep + "shape_center_horizontal.png")) +alignMenu.add(alignLeftMenu) +alignMenu.add(alignTopMenu) +alignMenu.add(alignRightMenu) +alignMenu.add(alignBottomMenu) +alignMenu.add(alignVerticalMenu) +alignMenu.add(alignHorizontalMenu) +toolMenu.add(alignMenu) +import DistributeSelected +distributeMenu = swing.JMenu("Distribute Selected", icon = swing.ImageIcon(startuppath + "images" + sep + "shape_distribute_vertical.png")) +distributeVerticalMenu = swing.JMenuItem("Vertical", actionPerformed=DistributeSelected.distributeVertical, icon = swing.ImageIcon(startuppath + "images" + sep + "shape_distribute_vertical.png")) +distributeHorizontalMenu = swing.JMenuItem("Horizontal", actionPerformed=DistributeSelected.distributeHorizontal, icon = swing.ImageIcon(startuppath + "images" + sep + "shape_distribute_horizontal.png")) +distributeMenu.add(distributeVerticalMenu) +distributeMenu.add(distributeHorizontalMenu) +toolMenu.add(distributeMenu) + +#add a new panel with a label and edit text area for tool input +#panel = swing.JPanel() +#edit1 = swing.JTextField(preferredSize=(100,20)) +#label1 = swing.JLabel("Tool Input:") +#panel.add("West", label1) +#panel.add("East",edit1) +#toolbox.centerPanel.add("South",panel) +#toolbox.pack() +#toolbox.centerPanel.components[2].hide() #uncomment to hide panel1 + +#install toolbox custom cursor tools +#tools can be defined in java only - as in this orphaned JUMP Note tool +# [Jukka Rahkonen 2016_10_17] Tool commented out because it does not work +# Label box is listening to key shortcuts and letters A, X, V, M, and R are +# unusable in labels. Code left here as an example. +#import com.vividsolutions.jump.workbench.ui.cursortool.NoteTool as NoteTool +#toolbox.add(NoteTool()) #surprise! Deselect before chang
[JPP-Devel] [jump-pilot:feature-requests] #245 Create form to edit attribute values
- **status**: open --> pending - **Comment**: OJ 6352 2020-07-16. added to EditOptionPanel an option to automatically open a feature Info Frame after a new feature is created. This allows user to input attribute values directly after digitalizing a feature --- ** [feature-requests:#245] Create form to edit attribute values** **Status:** pending **Created:** Mon Oct 24, 2016 09:16 PM UTC by michael michaud **Last Updated:** Mon Oct 24, 2016 09:16 PM UTC **Owner:** michael michaud Create a form to edit attribute values like QGIS. --- Sent from sourceforge.net because jump-pilot-devel@lists.sourceforge.net is subscribed to https://sourceforge.net/p/jump-pilot/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jump-pilot/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6355] core/trunk/ChangeLog
Revision: 6355 http://sourceforge.net/p/jump-pilot/code/6355 Author: ma15569 Date: 2020-07-16 11:04:05 + (Thu, 16 Jul 2020) Log Message: --- Updated ChangeLOg file with a more accurate description Modified Paths: -- core/trunk/ChangeLog Modified: core/trunk/ChangeLog === --- core/trunk/ChangeLog2020-07-16 11:00:24 UTC (rev 6354) +++ core/trunk/ChangeLog2020-07-16 11:04:05 UTC (rev 6355) @@ -5,9 +5,9 @@ #< 80 chars --># 2020-07-16 Giuseppe Aruta - * EditOptionPanel : Added option to open a feature InfoFrame when a feature -is created. Workaround to Feature request #245 "Create form to edit -attribute values" + * EditOptionPanel : Added option to automatically open a feature attributes +Info Frame after a new feature is created. Workaround to Feature request +#245 "Create form to edit attribute values" 2020-07-09 Giuseppe Aruta * Sextante: ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6354] core/trunk/ChangeLog
Revision: 6354 http://sourceforge.net/p/jump-pilot/code/6354 Author: ma15569 Date: 2020-07-16 11:00:24 + (Thu, 16 Jul 2020) Log Message: --- Updated ChangeLog file Modified Paths: -- core/trunk/ChangeLog Modified: core/trunk/ChangeLog === --- core/trunk/ChangeLog2020-07-16 10:58:28 UTC (rev 6353) +++ core/trunk/ChangeLog2020-07-16 11:00:24 UTC (rev 6354) @@ -4,6 +4,11 @@ # 3. be concise but convey the change in a way that ordinary users understand #< 80 chars --># +2020-07-16 Giuseppe Aruta + * EditOptionPanel : Added option to open a feature InfoFrame when a feature +is created. Workaround to Feature request #245 "Create form to edit +attribute values" + 2020-07-09 Giuseppe Aruta * Sextante: 1) converted Sextante Toolbox as OpenJUMP Detached InternaFrame ___ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
[JPP-Devel] SVN: [6353] core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool /editing/FeatureDrawingUtil.java
Revision: 6353 http://sourceforge.net/p/jump-pilot/code/6353 Author: ma15569 Date: 2020-07-16 10:58:28 + (Thu, 16 Jul 2020) Log Message: --- Added option to open a feature InfoFrame when a feature is created. Workaround to Feature request #245 "Create form to edit attribute values" Modified Paths: -- core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/FeatureDrawingUtil.java Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/FeatureDrawingUtil.java === --- core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/FeatureDrawingUtil.java 2020-07-16 10:55:56 UTC (rev 6352) +++ core/trunk/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/FeatureDrawingUtil.java 2020-07-16 10:58:28 UTC (rev 6353) @@ -48,6 +48,8 @@ import java.util.Iterator; import java.util.List; +import javax.swing.JInternalFrame; + import com.vividsolutions.jts.geom.CoordinateList; import com.vividsolutions.jts.geom.Geometry; import com.vividsolutions.jts.geom.GeometryCollection; @@ -58,6 +60,7 @@ import com.vividsolutions.jump.I18N; import com.vividsolutions.jump.feature.Feature; import com.vividsolutions.jump.feature.FeatureUtil; +import com.vividsolutions.jump.workbench.JUMPWorkbench; import com.vividsolutions.jump.workbench.model.Layer; import com.vividsolutions.jump.workbench.model.StandardCategoryNames; import com.vividsolutions.jump.workbench.model.UndoableCommand; @@ -65,9 +68,13 @@ import com.vividsolutions.jump.workbench.ui.EditOptionsPanel; import com.vividsolutions.jump.workbench.ui.EditTransaction; import com.vividsolutions.jump.workbench.ui.GeometryEditor; +import com.vividsolutions.jump.workbench.ui.InfoFrame; import com.vividsolutions.jump.workbench.ui.LayerNamePanelProxy; import com.vividsolutions.jump.workbench.ui.LayerViewPanel; +import com.vividsolutions.jump.workbench.ui.OptionsPanel; import com.vividsolutions.jump.workbench.ui.SelectionManager; +import com.vividsolutions.jump.workbench.ui.TaskFrameProxy; +import com.vividsolutions.jump.workbench.ui.WorkbenchFrame; import com.vividsolutions.jump.workbench.ui.cursortool.AbstractCursorTool; import com.vividsolutions.jump.workbench.ui.cursortool.CursorTool; import com.vividsolutions.jump.workbench.ui.cursortool.DelegatingTool; @@ -75,330 +82,363 @@ import com.vividsolutions.jump.workbench.ui.plugin.AddNewLayerPlugIn; import com.vividsolutions.jump.workbench.ui.plugin.PersistentBlackboardPlugIn; + + public class FeatureDrawingUtil { -protected List featsToAdd; + protected List featsToAdd; -private Collection selectedFeaturesContaining(Polygon polygon, -LayerViewPanel panel) { -if (layerNamePanelProxy.getLayerNamePanel().chooseEditableLayer() == null) { -return new ArrayList(); -} -ArrayList selectedFeaturesContainingPolygon = new ArrayList(); -for (Iterator i = panel -.getSelectionManager() -.getFeaturesWithSelectedItems( -layerNamePanelProxy.getLayerNamePanel() -.chooseEditableLayer()).iterator(); i.hasNext();) { -Feature feature = (Feature) i.next(); -// Unfortunately, GeometryCollection does not yet support either -// #contains or (more importantly) #difference. [Jon Aquino] -// Use == rather than instanceof because MultiPoint, MultiLineString -// and -// MultiPolygon do not have this problem. [Jon Aquino] -if (feature.getGeometry().getClass() == GeometryCollection.class) { -continue; -} -if (!feature.getGeometry().getEnvelopeInternal() -.contains(polygon.getEnvelopeInternal())) { -continue; -} -if (feature.getGeometry().contains(polygon)) { -selectedFeaturesContainingPolygon.add(feature); -} -} -return selectedFeaturesContainingPolygon; -} + private Collection selectedFeaturesContaining(Polygon polygon, + LayerViewPanel panel) { + if (layerNamePanelProxy.getLayerNamePanel().chooseEditableLayer() == null) { + return new ArrayList(); + } + ArrayList selectedFeaturesContainingPolygon = new ArrayList(); + for (Iterator i = panel + .getSelectionManager() + .getFeaturesWithSelectedItems( + layerNamePanelProxy.getLayerNamePanel() + .chooseEditableLayer()).iterator(); i.hasNext();) { + Feature feature = (Feature) i.next(); + // Unfortunately, GeometryCollection does not
[JPP-Devel] SVN: [6352] core/trunk/src/com/vividsolutions/jump/workbench/ui/ EditOptionsPanel.java
Revision: 6352 http://sourceforge.net/p/jump-pilot/code/6352 Author: ma15569 Date: 2020-07-16 10:55:56 + (Thu, 16 Jul 2020) Log Message: --- Added option to open a feature InfoFrame when a new feature is created workaround to Feature request #245 "Create form to edit attribute values" Modified Paths: -- core/trunk/src/com/vividsolutions/jump/workbench/ui/EditOptionsPanel.java Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/EditOptionsPanel.java === --- core/trunk/src/com/vividsolutions/jump/workbench/ui/EditOptionsPanel.java 2020-07-16 10:51:16 UTC (rev 6351) +++ core/trunk/src/com/vividsolutions/jump/workbench/ui/EditOptionsPanel.java 2020-07-16 10:55:56 UTC (rev 6352) @@ -34,6 +34,8 @@ import java.awt.Color; import java.awt.GridBagLayout; +import java.awt.event.ItemEvent; +import java.awt.event.ItemListener; import javax.swing.BorderFactory; import javax.swing.JCheckBox; @@ -53,140 +55,180 @@ * [2015-04-01] Giuseppe Aruta - add option for advanced layer tooltip * [2016-10-04] Giuseppe Aruta - add option to select the geometry after it has * been drawn - * [2016-10-09] Micha\xEBl Michaud - add option to limit the number of editable + * [2016-10-09] Micha�l Michaud - add option to limit the number of editable * layers to one - */ + * [2020-06-16] Giuseppe Aruta - Feature request #245 Create form to edit attribute values + * Added option to open Infoframe after digitalized a new feature + */ public class EditOptionsPanel extends JPanel implements OptionsPanel { -private JPanel editPanel; -private JCheckBox preventEditsCheckBox; -private JCheckBox selectNewGeometryCheckBox; -private JCheckBox singleEditableLayerCheckBox; + private JPanel editPanel; + private JCheckBox preventEditsCheckBox; + private JCheckBox selectNewGeometryCheckBox; + private JCheckBox selectInfoNewGeometryCheckBox; + private JCheckBox singleEditableLayerCheckBox; -private JPanel layerToolTipPanel; -private Blackboard blackboard; -private JCheckBox tooltipCheckBox; + private JPanel layerToolTipPanel; + private Blackboard blackboard; + private JCheckBox tooltipCheckBox; -/** Option de editable layer number */ -public static final String SELECT_NEW_GEOMETRY_KEY = ConfigTooltipPanel.class -.getName() + " - SELECT_NEW_GEOMETRY"; + /** Option de editable layer number */ + public static final String SELECT_NEW_GEOMETRY_KEY = ConfigTooltipPanel.class + .getName() + " - SELECT_NEW_GEOMETRY"; -/** Option de editable layer number */ -public static final String SINGLE_EDITABLE_LAYER_KEY = ConfigTooltipPanel.class -.getName() + " - SINGLE_EDITABLE_LAYER"; + /** Option de editable layer number */ + public static final String SELECT_INFO_GEOMETRY_KEY = ConfigTooltipPanel.class + .getName() + " - SELECT_INFO_GEOMETRY"; -/** Option de tooltip */ -public static final String LAYER_TOOLTIPS_KEY = ConfigTooltipPanel.class -.getName() + " - LAYER_TOOLTIPS"; + /** Option de editable layer number */ + public static final String SINGLE_EDITABLE_LAYER_KEY = ConfigTooltipPanel.class + .getName() + " - SINGLE_EDITABLE_LAYER"; -public static final String EDIT_PANEL = -I18N.get("ui.EditOptionsPanel.edit-panel"); -public static final String PREVENT_INVALID_EDIT = - I18N.get("ui.EditOptionsPanel.prevent-edits-resulting-in-invalid-geometries"); -public static final String SELECT_NEW_GEOMETRY = -I18N.get("ui.EditOptionsPanel.select-new-geometry"); // Select the geometry after it has been drawn -public static final String SELECT_NEW_GEOMETRY_WARNING = - I18N.get("ui.EditOptionsPanel.select-new-geometry-deselect-previous-selection"); // Select the geometry after it has been drawn -public static final String SINGLE_EDITABLE_LAYER = -I18N.get("ui.EditOptionsPanel.single-editable-layer"); + /** Option de tooltip */ + public static final String LAYER_TOOLTIPS_KEY = ConfigTooltipPanel.class + .getName() + " - LAYER_TOOLTIPS"; -public static final String CONFIGURE_LAYERTREE_PANEL = -I18N.get("ui.EditOptionsPanel.configure-layer-tree-tooltip"); -public static final String LAYER_TOOLTIP = -I18N.get("ui.EditOptionsPanel.enable-JUMP-basic-tooltips"); + public static final String EDIT_PANEL = + I18N.get("ui.EditOptionsPanel.edit-panel"); + public static final String PREVENT_INVALID_EDIT = + I18N.get("ui.EditOptionsPanel.prevent-edits-resulting-in-invalid-geometries"); + public static final String SELECT_NEW_GEOMETRY = + I18N.get("ui.EditOptionsPanel.s
[JPP-Devel] SVN: [6351] core/trunk/src/language
Revision: 6351 http://sourceforge.net/p/jump-pilot/code/6351 Author: ma15569 Date: 2020-07-16 10:51:16 + (Thu, 16 Jul 2020) Log Message: --- Updated language files Modified Paths: -- core/trunk/src/language/jump.properties core/trunk/src/language/jump_cz.properties core/trunk/src/language/jump_de.properties core/trunk/src/language/jump_es.properties core/trunk/src/language/jump_fi.properties core/trunk/src/language/jump_fr.properties core/trunk/src/language/jump_hu.properties core/trunk/src/language/jump_it.properties core/trunk/src/language/jump_ja_JP.properties core/trunk/src/language/jump_ml.properties core/trunk/src/language/jump_pt.properties core/trunk/src/language/jump_pt_BR.properties core/trunk/src/language/jump_ta_IN.properties core/trunk/src/language/jump_te.properties core/trunk/src/language/jump_zh_CN.properties core/trunk/src/language/jump_zh_HK.properties Modified: core/trunk/src/language/jump.properties === --- core/trunk/src/language/jump.properties 2020-07-15 10:35:18 UTC (rev 6350) +++ core/trunk/src/language/jump.properties 2020-07-16 10:51:16 UTC (rev 6351) @@ -2006,6 +2006,7 @@ ui.EditOptionsPanel.select-new-geometry=Select the geometry after it has been drawn ui.EditOptionsPanel.select-new-geometry-deselect-previous-selection=Warning: this option deselects previous geometries selection ui.EditOptionsPanel.single-editable-layer = Limited to a single editable layer +ui.EditOptionsPanel.open.info.frame=and open feature info frame ui.EditTransaction.the-geometry-is-invalid-cancelled = The new geometry is invalid. Cancelled. ui.EditTransaction.the-new-geometry-is-invalid = The new geometry is invalid. ui.ErrorFialog.hide-details = Hide Details @@ -2888,7 +2889,7 @@ com.vividsolutions.jump.workbench.ui.network.ProxySettingsOptionsPanel.connection-timeout = Connection timeout (ms) ui.AttributeTablePanel.feature.view-edit = View/Edit org.openjump.core.ui.plugin.file.open.OpenFileWizardState.dummy-loader-description = Dummy loader (ignore data) -org.openjump.core.ui.plugin.raster.RasterImageLayerPropertiesPlugIn.statistics = Statistics +org.openjump.core.ui.plugin.raster.RasterIui.EditOptionsPanel.open.info.frame= ed apri la tabella informazione elementimageLayerPropertiesPlugIn.statistics = Statistics org.openjump.core.ui.plugin.wms.WMSLegendPlugIn = Show WMS Layer Legend org.openjump.core.ui.plugin.wms.WMSLegendPlugIn.panel = WMS Legend org.openjump.core.ui.plugin.wms.WMSLegendPlugIn.message = Error or no legend associated to selected layer Modified: core/trunk/src/language/jump_cz.properties === --- core/trunk/src/language/jump_cz.properties 2020-07-15 10:35:18 UTC (rev 6350) +++ core/trunk/src/language/jump_cz.properties 2020-07-16 10:51:16 UTC (rev 6351) @@ -2969,4 +2969,5 @@ org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn.order-by-attribute=#T:Sorting attribute org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn.order-by-attribute-tooltip=#T:Attribute used to sort points belonging to a path org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn.use-selection=#T:Use selection only -org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn.non-point-warning=#T:Some geometries in the layer are not points : they will be excluded \ No newline at end of file +org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn.non-point-warning=#T:Some geometries in the layer are not points : they will be excluded +ui.EditOptionsPanel.open.info.frame=\#T\:and open feature info frame \ No newline at end of file Modified: core/trunk/src/language/jump_de.properties === --- core/trunk/src/language/jump_de.properties 2020-07-15 10:35:18 UTC (rev 6350) +++ core/trunk/src/language/jump_de.properties 2020-07-16 10:51:16 UTC (rev 6351) @@ -2963,3 +2963,4 @@ org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn.use-selection=#T:Use selection only com.vividsolutions.wms.AbstractParser.wms-parser-not-found=#T:Mandatory element <{0}> not found in the GetCapabilities,\nThere may be a WMS version problem! org.openjump.core.ui.plugin.tools.geometrychange.PointsToPathsPlugIn.non-point-warning=#T:Some geometries in the layer are not points : they will be excluded +ui.EditOptionsPanel.open.info.frame=\#T\:and open feature info frame \ No newline at end of file Modified: core/trunk/src/language/jump_es.properties === --- core/trunk/src/language/jump_es.properties 2020-07-15 10:35:18 UTC (rev 6350) +++ core/trunk/src/language/jump_es.properties 2020-07-16 10:51:16 UTC (rev 6351) @@ -2941,3 +2941,4 @@ org.openjump