From: <aki...@us...> - 2010-05-16 16:19:23
|
Revision: 7809 http://gridarta.svn.sourceforge.net/gridarta/?rev=7809&view=rev Author: akirschbaum Date: 2010-05-16 16:19:17 +0000 (Sun, 16 May 2010) Log Message: ----------- Improve UI of go location dialog. Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/crossfire/ChangeLog trunk/daimonin/ChangeLog trunk/src/app/net/sf/gridarta/gui/golocationdialog/GoLocationDialog.java Added Paths: ----------- trunk/src/app/net/sf/gridarta/gui/utils/TextComponentUtils.java Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2010-05-16 15:49:08 UTC (rev 7808) +++ trunk/atrinik/ChangeLog 2010-05-16 16:19:17 UTC (rev 7809) @@ -1,5 +1,8 @@ 2010-05-16 Andreas Kirschbaum + * Improve UI of go location dialog: to go to coordinates (12,4) + press CTRL-L, enter 12, press ENTER, enter 4, press ENTER. + * Fix display issues when filtering the map view on mobs within spawn points. Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2010-05-16 15:49:08 UTC (rev 7808) +++ trunk/crossfire/ChangeLog 2010-05-16 16:19:17 UTC (rev 7809) @@ -1,6 +1,9 @@ 2010-05-16 Andreas Kirschbaum - Implement #2385942 (Alert message on exit from unique maps): add + * Improve UI of go location dialog: to go to coordinates (12,4) + press CTRL-L, enter 12, press ENTER, enter 4, press ENTER. + + * Implement #2385942 (Alert message on exit from unique maps): add new map validator "Exit path is not absolute" that checks for exits within 'unique' maps that reference non-absolute map paths. Modified: trunk/daimonin/ChangeLog =================================================================== --- trunk/daimonin/ChangeLog 2010-05-16 15:49:08 UTC (rev 7808) +++ trunk/daimonin/ChangeLog 2010-05-16 16:19:17 UTC (rev 7809) @@ -1,5 +1,8 @@ 2010-05-16 Andreas Kirschbaum + * Improve UI of go location dialog: to go to coordinates (12,4) + press CTRL-L, enter 12, press ENTER, enter 4, press ENTER. + * Fix display issues when filtering the map view on mobs within spawn points. Modified: trunk/src/app/net/sf/gridarta/gui/golocationdialog/GoLocationDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/golocationdialog/GoLocationDialog.java 2010-05-16 15:49:08 UTC (rev 7808) +++ trunk/src/app/net/sf/gridarta/gui/golocationdialog/GoLocationDialog.java 2010-05-16 16:19:17 UTC (rev 7809) @@ -29,17 +29,19 @@ import javax.swing.JButton; import javax.swing.JComponent; import javax.swing.JDialog; -import javax.swing.JFormattedTextField; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; +import javax.swing.JTextField; import javax.swing.WindowConstants; import javax.swing.border.CompoundBorder; import javax.swing.border.EtchedBorder; import javax.swing.border.TitledBorder; +import javax.swing.text.JTextComponent; import net.sf.gridarta.gui.map.AbstractPerMapDialogManager; import net.sf.gridarta.gui.map.mapview.MapView; import net.sf.gridarta.gui.utils.GUIConstants; +import net.sf.gridarta.gui.utils.TextComponentUtils; import net.sf.gridarta.model.archetype.Archetype; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.map.maparchobject.MapArchObject; @@ -81,13 +83,13 @@ * The text input field for the x coordinate. */ @NotNull - private final JFormattedTextField xCoordinateField = new JFormattedTextField(); + private final JTextField xCoordinateField = new JTextField(); /** * The text input field for the y coordinate. */ @NotNull - private final JFormattedTextField yCoordinateField = new JFormattedTextField(); + private final JTextField yCoordinateField = new JTextField(); /** * The {@link JButton} for ok. @@ -122,6 +124,10 @@ this.mapView = mapView; setMessage(createPanel()); + TextComponentUtils.setAutoSelectOnFocus(xCoordinateField); + TextComponentUtils.setAutoSelectOnFocus(yCoordinateField); + TextComponentUtils.setActionNextFocus(xCoordinateField, yCoordinateField); + dialog = createDialog(mapView.getComponent(), ACTION_BUILDER.getString("goLocation.title")); dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); dialog.getRootPane().setDefaultButton(okButton); @@ -157,12 +163,12 @@ final Point point = mapView.getMapViewBasic().getMapCursor().getLocation(); coordinatesPanel.add(new JLabel(ACTION_BUILDER.getString("goLocationX")), gbcLabel); - xCoordinateField.setValue(point == null ? 0 : point.x); + xCoordinateField.setText(point == null ? "0" : Integer.toString(point.x)); xCoordinateField.setColumns(3); coordinatesPanel.add(xCoordinateField, gbcField); coordinatesPanel.add(new JLabel(ACTION_BUILDER.getString("goLocationY")), gbcLabel); - yCoordinateField.setValue(point == null ? 0 : point.y); + yCoordinateField.setText(point == null ? "0" : Integer.toString(point.y)); yCoordinateField.setColumns(3); coordinatesPanel.add(yCoordinateField, gbcField); @@ -224,10 +230,10 @@ * @return the coordinate value * @throws IllegalArgumentException if the coordinate value is invalid */ - private int parseCoordinate(@NotNull final JFormattedTextField textField, final int range) { + private int parseCoordinate(@NotNull final JTextComponent textField, final int range) { final int result; try { - result = (Integer) textField.getValue(); + result = Integer.parseInt(textField.getText()); } catch (final NumberFormatException e) { ACTION_BUILDER.showMessageDialog(this, "goLocationCoordinateNotANumber"); textField.requestFocus(); Added: trunk/src/app/net/sf/gridarta/gui/utils/TextComponentUtils.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/TextComponentUtils.java (rev 0) +++ trunk/src/app/net/sf/gridarta/gui/utils/TextComponentUtils.java 2010-05-16 16:19:17 UTC (rev 7809) @@ -0,0 +1,82 @@ +/* + * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. + * Copyright (C) 2000-2010 The Gridarta Developers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.gridarta.gui.utils; + +import java.awt.Component; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.FocusEvent; +import java.awt.event.FocusListener; +import javax.swing.JTextField; +import javax.swing.text.JTextComponent; +import org.jetbrains.annotations.NotNull; + +/** + * Utility class for {@link JTextComponent} related functions. + * @author Andreas Kirschbaum + */ +public class TextComponentUtils { + + /** + * Private constructor to prevent instantiation. + */ + private TextComponentUtils() { + } + + /** + * Selects all text of a {@link JTextComponent} when the component gains the + * focus. + * @param textComponent the text component + */ + public static void setAutoSelectOnFocus(@NotNull final JTextComponent textComponent) { + final FocusListener focusListener = new FocusListener() { + + @Override + public void focusGained(@NotNull final FocusEvent e) { + textComponent.selectAll(); + } + + @Override + public void focusLost(@NotNull final FocusEvent e) { + // ignore + } + + }; + textComponent.addFocusListener(focusListener); + } + + /** + * Transfers the focus to another component when ENTER is pressed. + * @param textField the text field to track + * @param nextComponent the component to transfer the focus to + */ + public static void setActionNextFocus(@NotNull final JTextField textField, @NotNull final Component nextComponent) { + final ActionListener actionListener = new ActionListener() { + + @Override + public void actionPerformed(@NotNull final ActionEvent e) { + nextComponent.requestFocusInWindow(); + } + + }; + textField.addActionListener(actionListener); + } + +} // class TextComponentUtils Property changes on: trunk/src/app/net/sf/gridarta/gui/utils/TextComponentUtils.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-16 17:53:25
|
Revision: 7815 http://gridarta.svn.sourceforge.net/gridarta/?rev=7815&view=rev Author: akirschbaum Date: 2010-05-16 17:53:18 +0000 (Sun, 16 May 2010) Log Message: ----------- Remove unused parameters. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2010-05-16 17:44:07 UTC (rev 7814) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/DefaultEditorFactory.java 2010-05-16 17:53:18 UTC (rev 7815) @@ -67,7 +67,6 @@ import net.sf.gridarta.model.face.DefaultFaceObjects; import net.sf.gridarta.model.face.FaceObjectProviders; import net.sf.gridarta.model.face.FaceObjects; -import net.sf.gridarta.model.filter.NamedFilter; import net.sf.gridarta.model.gameobject.GameObjectFactory; import net.sf.gridarta.model.gameobject.IsoMapSquareInfo; import net.sf.gridarta.model.gameobject.MultiPositionData; @@ -538,8 +537,8 @@ */ @NotNull @Override - public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapControlFactory<GameObject, MapArchObject, Archetype> mapControlFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<GameObject, MapArchObject, Archetype> archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final NamedFilter defaultFilterList, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final AttributeRangeChecker<GameObject, MapArchObject, Archetype> attributeRangeChecker, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { - return mainControl.createGUIMainControl(FileFilters.pythonFileFilter, ".py", true, mapManager, pickmapManager, archetypeSet, mapControlFactory, guiUtils.getResourceIcon(IGUIConstants.TILE_NORTH), "AtrinikEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_ALTAR_TRIGGER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_SPAWN_POINT, Archetype.TYPE_CONTAINER, }, PREFS_VALIDATOR_AUTO_DEFAULT, IGUIConstants.SPELL_FILE, this, errorView, new SubdirectoryCacheFiles(".dedit"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, -1, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, false, scriptedEventEditor, new int[] { CommonConstants.NORTH_EAST, CommonConstants.SOUTH_EAST, CommonConstants.SOUTH_WEST, CommonConstants.NORTH_WEST, CommonConstants.EAST, CommonConstants.SOUTH, CommonConstants.WEST, CommonConstants.NORTH, }, defaultFilterList, resources, gameObjectSpells, numberSpells, attributeRangeChecker, pluginParameterFactory); + public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapControlFactory<GameObject, MapArchObject, Archetype> mapControlFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<GameObject, MapArchObject, Archetype> archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final AttributeRangeChecker<GameObject, MapArchObject, Archetype> attributeRangeChecker, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { + return mainControl.createGUIMainControl(FileFilters.pythonFileFilter, ".py", true, mapManager, pickmapManager, archetypeSet, mapControlFactory, guiUtils.getResourceIcon(IGUIConstants.TILE_NORTH), "AtrinikEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_ALTAR_TRIGGER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_SPAWN_POINT, Archetype.TYPE_CONTAINER, }, PREFS_VALIDATOR_AUTO_DEFAULT, IGUIConstants.SPELL_FILE, this, errorView, new SubdirectoryCacheFiles(".dedit"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, -1, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, false, scriptedEventEditor, new int[] { CommonConstants.NORTH_EAST, CommonConstants.SOUTH_EAST, CommonConstants.SOUTH_WEST, CommonConstants.NORTH_WEST, CommonConstants.EAST, CommonConstants.SOUTH, CommonConstants.WEST, CommonConstants.NORTH, }, resources, gameObjectSpells, numberSpells, attributeRangeChecker, pluginParameterFactory); } /** Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2010-05-16 17:44:07 UTC (rev 7814) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/maincontrol/DefaultEditorFactory.java 2010-05-16 17:53:18 UTC (rev 7815) @@ -61,7 +61,6 @@ import net.sf.gridarta.model.face.DefaultFaceObjects; import net.sf.gridarta.model.face.FaceObjectProviders; import net.sf.gridarta.model.face.FaceObjects; -import net.sf.gridarta.model.filter.NamedFilter; import net.sf.gridarta.model.gameobject.GameObjectFactory; import net.sf.gridarta.model.io.DefaultMapReaderFactory; import net.sf.gridarta.model.io.DirectoryCacheFiles; @@ -405,8 +404,8 @@ */ @NotNull @Override - public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapControlFactory<GameObject, MapArchObject, Archetype> mapControlFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<GameObject, MapArchObject, Archetype> archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final NamedFilter defaultFilterList, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final AttributeRangeChecker<GameObject, MapArchObject, Archetype> attributeRangeChecker, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { - return mainControl.createGUIMainControl(FileFilters.pythonFileFilter, ".py", false, mapManager, pickmapManager, archetypeSet, mapControlFactory, null, "CrossfireEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_TRIGGER_ALTAR, Archetype.TYPE_DETECTOR, Archetype.TYPE_TRIGGER_MARKER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_CONTAINER, }, PREFS_VALIDATOR_AUTO_DEFAULT, null, this, errorView, new DirectoryCacheFiles(ConfigFileUtils.getHomeFile("thumbnails"), ".png"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, 0, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, true, scriptedEventEditor, new int[] { CommonConstants.NORTH, CommonConstants.EAST, CommonConstants.SOUTH, CommonConstants.WEST, CommonConstants.NORTH_EAST, CommonConstants.SOUTH_EAST, CommonConstants.SOUTH_WEST, CommonConstants.NORTH_WEST, }, defaultFilterList, resources, gameObjectSpells, numberSpells, attributeRangeChecker, pluginParameterFactory); + public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapControlFactory<GameObject, MapArchObject, Archetype> mapControlFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<GameObject, MapArchObject, Archetype> archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final AttributeRangeChecker<GameObject, MapArchObject, Archetype> attributeRangeChecker, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { + return mainControl.createGUIMainControl(FileFilters.pythonFileFilter, ".py", false, mapManager, pickmapManager, archetypeSet, mapControlFactory, null, "CrossfireEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_TRIGGER_ALTAR, Archetype.TYPE_DETECTOR, Archetype.TYPE_TRIGGER_MARKER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_CONTAINER, }, PREFS_VALIDATOR_AUTO_DEFAULT, null, this, errorView, new DirectoryCacheFiles(ConfigFileUtils.getHomeFile("thumbnails"), ".png"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, 0, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, true, scriptedEventEditor, new int[] { CommonConstants.NORTH, CommonConstants.EAST, CommonConstants.SOUTH, CommonConstants.WEST, CommonConstants.NORTH_EAST, CommonConstants.SOUTH_EAST, CommonConstants.SOUTH_WEST, CommonConstants.NORTH_WEST, }, resources, gameObjectSpells, numberSpells, attributeRangeChecker, pluginParameterFactory); } /** Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2010-05-16 17:44:07 UTC (rev 7814) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/DefaultEditorFactory.java 2010-05-16 17:53:18 UTC (rev 7815) @@ -67,7 +67,6 @@ import net.sf.gridarta.model.face.DefaultFaceObjects; import net.sf.gridarta.model.face.FaceObjectProviders; import net.sf.gridarta.model.face.FaceObjects; -import net.sf.gridarta.model.filter.NamedFilter; import net.sf.gridarta.model.gameobject.GameObjectFactory; import net.sf.gridarta.model.gameobject.IsoMapSquareInfo; import net.sf.gridarta.model.gameobject.MultiPositionData; @@ -539,8 +538,8 @@ */ @NotNull @Override - public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapControlFactory<GameObject, MapArchObject, Archetype> mapControlFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<GameObject, MapArchObject, Archetype> archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final NamedFilter defaultFilterList, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final AttributeRangeChecker<GameObject, MapArchObject, Archetype> attributeRangeChecker, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { - return mainControl.createGUIMainControl(FileFilters.luaFileFilter, ".lua", true, mapManager, pickmapManager, archetypeSet, mapControlFactory, guiUtils.getResourceIcon(IGUIConstants.TILE_NORTH), "DaimoninEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_ALTAR_TRIGGER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_SPAWN_POINT, Archetype.TYPE_CONTAINER, }, PREFS_VALIDATOR_AUTO_DEFAULT, IGUIConstants.SPELL_FILE, this, errorView, new SubdirectoryCacheFiles(".dedit"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, -1, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, false, scriptedEventEditor, new int[] { CommonConstants.NORTH_EAST, CommonConstants.SOUTH_EAST, CommonConstants.SOUTH_WEST, CommonConstants.NORTH_WEST, CommonConstants.EAST, CommonConstants.SOUTH, CommonConstants.WEST, CommonConstants.NORTH, }, defaultFilterList, resources, gameObjectSpells, numberSpells, attributeRangeChecker, pluginParameterFactory); + public GUIMainControl<GameObject, MapArchObject, Archetype> createGUIMainControl(@NotNull final DefaultMainControl<GameObject, MapArchObject, Archetype> mainControl, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<GameObject, MapArchObject, Archetype> rendererFactory, @NotNull final FilterControl<GameObject, MapArchObject, Archetype> filterControl, @NotNull final ScriptExecutor<GameObject, MapArchObject, Archetype> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<GameObject, MapArchObject, Archetype> mapManager, @NotNull final MapManager<GameObject, MapArchObject, Archetype> pickmapManager, @NotNull final MapControlFactory<GameObject, MapArchObject, Archetype> mapControlFactory, @NotNull final net.sf.gridarta.model.archetype.ArchetypeSet<GameObject, MapArchObject, Archetype> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<GameObject, MapArchObject, Archetype> topmostInsertionMode, @NotNull final GameObjectFactory<GameObject, MapArchObject, Archetype> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<GameObject, MapArchObject, Archetype> archetypeTypeSet, @NotNull final MapArchObjectFactory<MapArchObject> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<GameObject, MapArchObject, Archetype> mapReaderFactory, @NotNull final DelegatingMapValidator<GameObject, MapArchObject, Archetype> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<GameObject, MapArchObject, Archetype> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<GameObject, MapArchObject, Archetype> archetypeChooserModel, @NotNull final ScriptedEventEditor<GameObject, MapArchObject, Archetype> scriptedEventEditor, @NotNull final AbstractResources<GameObject, MapArchObject, Archetype> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<GameObject, MapArchObject, Archetype>> gameObjectSpells, @NotNull final AttributeRangeChecker<GameObject, MapArchObject, Archetype> attributeRangeChecker, @NotNull final PluginParameterFactory<GameObject, MapArchObject, Archetype> pluginParameterFactory) { + return mainControl.createGUIMainControl(FileFilters.luaFileFilter, ".lua", true, mapManager, pickmapManager, archetypeSet, mapControlFactory, guiUtils.getResourceIcon(IGUIConstants.TILE_NORTH), "DaimoninEditor.jar", new int[] { Archetype.TYPE_LOCKED_DOOR, Archetype.TYPE_SPECIAL_KEY, Archetype.TYPE_ALTAR_TRIGGER, Archetype.TYPE_MARKER, Archetype.TYPE_INVENTORY_CHECKER, Archetype.TYPE_SPAWN_POINT, Archetype.TYPE_CONTAINER, }, PREFS_VALIDATOR_AUTO_DEFAULT, IGUIConstants.SPELL_FILE, this, errorView, new SubdirectoryCacheFiles(".dedit"), configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, -1, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, IGUIConstants.SCRIPTS_DIR, scriptModel, animationObjects, archetypeChooserModel, false, scriptedEventEditor, new int[] { CommonConstants.NORTH_EAST, CommonConstants.SOUTH_EAST, CommonConstants.SOUTH_WEST, CommonConstants.NORTH_WEST, CommonConstants.EAST, CommonConstants.SOUTH, CommonConstants.WEST, CommonConstants.NORTH, }, resources, gameObjectSpells, numberSpells, attributeRangeChecker, pluginParameterFactory); } /** Modified: trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java 2010-05-16 17:44:07 UTC (rev 7814) +++ trunk/src/app/net/sf/gridarta/maincontrol/DefaultMainControl.java 2010-05-16 17:53:18 UTC (rev 7815) @@ -58,7 +58,6 @@ import net.sf.gridarta.model.errorview.ErrorViewCollector; import net.sf.gridarta.model.face.FaceObjectProviders; import net.sf.gridarta.model.face.FaceObjects; -import net.sf.gridarta.model.filter.NamedFilter; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.gameobject.GameObjectFactory; import net.sf.gridarta.model.io.CacheFiles; @@ -347,7 +346,6 @@ * map parameters * @param scriptedEventEditor the scripted event editor * @param directionMap maps relative direction to map window direction - * @param defaultFilterList the default filter list * @param resources the resources * @param gameObjectSpells the game object spells to use * @param numberSpells the number spells to use @@ -355,8 +353,8 @@ * @param pluginParameterFactory the plugin parameter factory to use * @return the new instance */ - public GUIMainControl<G, A, R> createGUIMainControl(@NotNull final FileFilter scriptFileFilter, @NotNull final String scriptExtension, final boolean createDirectionPane, @NotNull final AbstractMapManager<G, A, R> mapManager, @NotNull final MapManager<G, A, R> pickmapManager, @NotNull final ArchetypeSet<G, A, R> archetypeSet, @NotNull final MapControlFactory<G, A, R> mapControlFactory, @Nullable final ImageIcon compassIcon, @NotNull final String gridartaJarFilename, @NotNull final int[] lockedItemsTypeNumbers, final boolean autoValidatorDefault, @Nullable final String spellFile, @NotNull final EditorFactory<G, A, R> editorFactory, @NotNull final ErrorView errorView, @NotNull final CacheFiles cacheFiles, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<G, A, R> rendererFactory, @NotNull final FilterControl<G, A, R> filterControl, @NotNull final ScriptExecutor<G, A, R> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<G, A, R> topmostInsertionMode, @NotNull final GameObjectFactory<G, A, R> gameObjectFactory, @NotNull final SystemIcons systemIcons, final int undefinedSpellIndex, @NotNull final ArchetypeTypeSet<G, A, R> archetypeTypeSet, @NotNull final MapArchObjectFactory<A> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<G, A, R> mapReaderFactory, @NotNull final DelegatingMapValidator<G, A, R> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final String scriptsDir, @NotNull final ScriptModel<G, A, R> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<G, A, R> archetypeChooserModel, final boolean allowRandomMapParameters, @NotNull final ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull final int[] directionMap, @NotNull final NamedFilter defaultFilterList, @NotNull final AbstractResources<G, A, R> resources, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final PluginParameterFactory<G, A, R> pluginParameterFactory) { - return new GUIMainControl<G, A, R>(createDirectionPane, mapManager, pickmapManager, archetypeSet, faceObjects, globalSettings, mapViewSettings, mapControlFactory, mapReaderFactory, mapArchObjectFactory, treasureTree, archetypeTypeSet, compassIcon, gridartaJarFilename, FileFilters.mapFileFilter, scriptFileFilter, scriptExtension, validators, resources, gameObjectMatchers, errorView, attributeRangeChecker, lockedItemsTypeNumbers, scriptsDir, scriptModel, archetypeChooserModel, animationObjects, scriptArchEditor, scriptedEventEditor, scriptArchData, scriptArchDataUtils, scriptArchUtils, autoValidatorDefault, spellFile, allowRandomMapParameters, directionMap, editorFactory, faceObjectProviders, pluginParameterFactory, defaultFilterList, gameObjectFactory, pathManager, cacheFiles, gameObjectSpells, numberSpells, undefinedSpellIndex, systemIcons, configSourceFactory, topmostInsertionMode, rendererFactory, filterControl, scriptExecutor, scriptParameters); + public GUIMainControl<G, A, R> createGUIMainControl(@NotNull final FileFilter scriptFileFilter, @NotNull final String scriptExtension, final boolean createDirectionPane, @NotNull final AbstractMapManager<G, A, R> mapManager, @NotNull final MapManager<G, A, R> pickmapManager, @NotNull final ArchetypeSet<G, A, R> archetypeSet, @NotNull final MapControlFactory<G, A, R> mapControlFactory, @Nullable final ImageIcon compassIcon, @NotNull final String gridartaJarFilename, @NotNull final int[] lockedItemsTypeNumbers, final boolean autoValidatorDefault, @Nullable final String spellFile, @NotNull final EditorFactory<G, A, R> editorFactory, @NotNull final ErrorView errorView, @NotNull final CacheFiles cacheFiles, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<G, A, R> rendererFactory, @NotNull final FilterControl<G, A, R> filterControl, @NotNull final ScriptExecutor<G, A, R> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<G, A, R> topmostInsertionMode, @NotNull final GameObjectFactory<G, A, R> gameObjectFactory, @NotNull final SystemIcons systemIcons, final int undefinedSpellIndex, @NotNull final ArchetypeTypeSet<G, A, R> archetypeTypeSet, @NotNull final MapArchObjectFactory<A> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<G, A, R> mapReaderFactory, @NotNull final DelegatingMapValidator<G, A, R> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final String scriptsDir, @NotNull final ScriptModel<G, A, R> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<G, A, R> archetypeChooserModel, final boolean allowRandomMapParameters, @NotNull final ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull final int[] directionMap, @NotNull final AbstractResources<G, A, R> resources, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final PluginParameterFactory<G, A, R> pluginParameterFactory) { + return new GUIMainControl<G, A, R>(createDirectionPane, mapManager, pickmapManager, archetypeSet, faceObjects, globalSettings, mapViewSettings, mapControlFactory, mapReaderFactory, mapArchObjectFactory, treasureTree, archetypeTypeSet, compassIcon, gridartaJarFilename, FileFilters.mapFileFilter, scriptFileFilter, scriptExtension, validators, resources, gameObjectMatchers, errorView, attributeRangeChecker, lockedItemsTypeNumbers, scriptsDir, scriptModel, archetypeChooserModel, animationObjects, scriptArchEditor, scriptedEventEditor, scriptArchData, scriptArchDataUtils, scriptArchUtils, autoValidatorDefault, spellFile, allowRandomMapParameters, directionMap, editorFactory, faceObjectProviders, pluginParameterFactory, gameObjectFactory, pathManager, cacheFiles, gameObjectSpells, numberSpells, undefinedSpellIndex, systemIcons, configSourceFactory, topmostInsertionMode, rendererFactory, filterControl, scriptExecutor, scriptParameters); } } // class DefaultMainControl Modified: trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java 2010-05-16 17:44:07 UTC (rev 7814) +++ trunk/src/app/net/sf/gridarta/maincontrol/EditorFactory.java 2010-05-16 17:53:18 UTC (rev 7815) @@ -46,7 +46,6 @@ import net.sf.gridarta.model.face.ArchFaceProvider; import net.sf.gridarta.model.face.FaceObjectProviders; import net.sf.gridarta.model.face.FaceObjects; -import net.sf.gridarta.model.filter.NamedFilter; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.gameobject.GameObjectFactory; import net.sf.gridarta.model.io.DefaultMapReaderFactory; @@ -382,7 +381,7 @@ * @return the new instance */ @NotNull - GUIMainControl<G, A, R> createGUIMainControl(@NotNull DefaultMainControl<G, A, R> mainControl, @NotNull ErrorView errorView, @NotNull GUIUtils guiUtils, @NotNull ConfigSourceFactory configSourceFactory, @NotNull RendererFactory<G, A, R> rendererFactory, @NotNull FilterControl<G, A, R> filterControl, @NotNull ScriptExecutor<G, A, R> scriptExecutor, @NotNull ScriptParameters scriptParameters, @NotNull AbstractMapManager<G, A, R> mapManager, @NotNull MapManager<G, A, R> pickmapManager, @NotNull MapControlFactory<G, A, R> mapControlFactory, @NotNull ArchetypeSet<G, A, R> archetypeSet, @NotNull FaceObjects faceObjects, @NotNull GlobalSettings globalSettings, @NotNull MapViewSettings mapViewSettings, @NotNull FaceObjectProviders faceObjectProviders, @NotNull PathManager pathManager, @NotNull InsertionMode<G, A, R> topmostInsertionMode, @NotNull GameObjectFactory<G, A, R> gameObjectFactory, @NotNull SystemIcons systemIcons, @NotNull ArchetypeTypeSet<G, A, R> archetypeTypeSet, @NotNull MapArchObjectFactory<A> mapArchObjectFactory, @NotNull DefaultMapReaderFactory<G, A, R> mapReaderFactory, @NotNull DelegatingMapValidator<G, A, R> validators, @NotNull GameObjectMatchers gameObjectMatchers, @NotNull ScriptModel<G, A, R> scriptModel, @NotNull AnimationObjects animationObjects, @NotNull ArchetypeChooserModel<G, A, R> archetypeChooserModel, @NotNull ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull NamedFilter defaultFilterList, @NotNull AbstractResources<G, A, R> resources, @NotNull Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull PluginParameterFactory<G, A, R> pluginParameterFactory); + GUIMainControl<G, A, R> createGUIMainControl(@NotNull DefaultMainControl<G, A, R> mainControl, @NotNull ErrorView errorView, @NotNull GUIUtils guiUtils, @NotNull ConfigSourceFactory configSourceFactory, @NotNull RendererFactory<G, A, R> rendererFactory, @NotNull FilterControl<G, A, R> filterControl, @NotNull ScriptExecutor<G, A, R> scriptExecutor, @NotNull ScriptParameters scriptParameters, @NotNull AbstractMapManager<G, A, R> mapManager, @NotNull MapManager<G, A, R> pickmapManager, @NotNull MapControlFactory<G, A, R> mapControlFactory, @NotNull ArchetypeSet<G, A, R> archetypeSet, @NotNull FaceObjects faceObjects, @NotNull GlobalSettings globalSettings, @NotNull MapViewSettings mapViewSettings, @NotNull FaceObjectProviders faceObjectProviders, @NotNull PathManager pathManager, @NotNull InsertionMode<G, A, R> topmostInsertionMode, @NotNull GameObjectFactory<G, A, R> gameObjectFactory, @NotNull SystemIcons systemIcons, @NotNull ArchetypeTypeSet<G, A, R> archetypeTypeSet, @NotNull MapArchObjectFactory<A> mapArchObjectFactory, @NotNull DefaultMapReaderFactory<G, A, R> mapReaderFactory, @NotNull DelegatingMapValidator<G, A, R> validators, @NotNull GameObjectMatchers gameObjectMatchers, @NotNull ScriptModel<G, A, R> scriptModel, @NotNull AnimationObjects animationObjects, @NotNull ArchetypeChooserModel<G, A, R> archetypeChooserModel, @NotNull ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull AbstractResources<G, A, R> resources, @NotNull Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull PluginParameterFactory<G, A, R> pluginParameterFactory); /** * Creates a new {@link AbstractResources} instance. Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-16 17:44:07 UTC (rev 7814) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-16 17:53:18 UTC (rev 7815) @@ -133,7 +133,6 @@ import net.sf.gridarta.model.exitconnector.ExitMatcher; import net.sf.gridarta.model.face.FaceObjectProviders; import net.sf.gridarta.model.face.FaceObjects; -import net.sf.gridarta.model.filter.NamedFilter; import net.sf.gridarta.model.gameobject.GameObject; import net.sf.gridarta.model.gameobject.GameObjectFactory; import net.sf.gridarta.model.io.CacheFiles; @@ -381,7 +380,7 @@ * @param scriptExecutor the script executor to use * @param scriptParameters the script parameters to use */ - public GUIMainControl(final boolean createDirectionPane, @NotNull final AbstractMapManager<G, A, R> mapManager, @NotNull final MapManager<G, A, R> pickmapManager, @NotNull final ArchetypeSet<G, A, R> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final MapControlFactory<G, A, R> mapControlFactory, @NotNull final MapReaderFactory<G, A> mapReaderFactory, final MapArchObjectFactory<A> mapArchObjectFactory, @NotNull final TreasureTree treasureTree, @NotNull final ArchetypeTypeSet<G, A, R> archetypeTypeSet, @Nullable final ImageIcon compassIcon, @NotNull final String gridartaJarFilename, @NotNull final FileFilter mapFileFilter, @NotNull final FileFilter scriptFileFilter, @NotNull final String scriptExtension, @NotNull final DelegatingMapValidator<G, A, R> validators, @NotNull final AbstractResources<G, A, R> resources, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ErrorView errorView, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final int[] lockedItemsTypeNumbers, @NotNull final String scriptsDir, @NotNull final ScriptModel<G, A, R> scriptModel, @NotNull final ArchetypeChooserModel<G, A, R> archetypeChooserModel, @NotNull final AnimationObjects animationObjects, @NotNull final ScriptArchEditor<G, A, R> scriptArchEditor, @NotNull final ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull final ScriptArchData<G, A, R> scriptArchData, @NotNull final ScriptArchDataUtils<G, A, R> scriptArchDataUtils, @NotNull final ScriptArchUtils scriptArchUtils, final boolean autoValidatorDefault, @Nullable final String spellFile, final boolean allowRandomMapParameters, @NotNull final int[] directionMap, @NotNull final EditorFactory<G, A, R> editorFactory, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PluginParameterFactory<G, A, R> pluginParameterFactory, @NotNull final NamedFilter defaultFilterList, final GameObjectFactory<G, A, R> gameObjectFactory, @NotNull final PathManager pathManager, @NotNull final CacheFiles cacheFiles, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull final Spells<NumberSpell> numberSpells, final int undefinedSpellIndex, @NotNull final SystemIcons systemIcons, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final InsertionMode<G, A, R> topmostInsertionMode, @NotNull final RendererFactory<G, A, R> rendererFactory, @NotNull final FilterControl<G, A, R> filterControl, @NotNull final ScriptExecutor<G, A, R> scriptExecutor, @NotNull final ScriptParameters scriptParameters) { + public GUIMainControl(final boolean createDirectionPane, @NotNull final AbstractMapManager<G, A, R> mapManager, @NotNull final MapManager<G, A, R> pickmapManager, @NotNull final ArchetypeSet<G, A, R> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final MapControlFactory<G, A, R> mapControlFactory, @NotNull final MapReaderFactory<G, A> mapReaderFactory, final MapArchObjectFactory<A> mapArchObjectFactory, @NotNull final TreasureTree treasureTree, @NotNull final ArchetypeTypeSet<G, A, R> archetypeTypeSet, @Nullable final ImageIcon compassIcon, @NotNull final String gridartaJarFilename, @NotNull final FileFilter mapFileFilter, @NotNull final FileFilter scriptFileFilter, @NotNull final String scriptExtension, @NotNull final DelegatingMapValidator<G, A, R> validators, @NotNull final AbstractResources<G, A, R> resources, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ErrorView errorView, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final int[] lockedItemsTypeNumbers, @NotNull final String scriptsDir, @NotNull final ScriptModel<G, A, R> scriptModel, @NotNull final ArchetypeChooserModel<G, A, R> archetypeChooserModel, @NotNull final AnimationObjects animationObjects, @NotNull final ScriptArchEditor<G, A, R> scriptArchEditor, @NotNull final ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull final ScriptArchData<G, A, R> scriptArchData, @NotNull final ScriptArchDataUtils<G, A, R> scriptArchDataUtils, @NotNull final ScriptArchUtils scriptArchUtils, final boolean autoValidatorDefault, @Nullable final String spellFile, final boolean allowRandomMapParameters, @NotNull final int[] directionMap, @NotNull final EditorFactory<G, A, R> editorFactory, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PluginParameterFactory<G, A, R> pluginParameterFactory, final GameObjectFactory<G, A, R> gameObjectFactory, @NotNull final PathManager pathManager, @NotNull final CacheFiles cacheFiles, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull final Spells<NumberSpell> numberSpells, final int undefinedSpellIndex, @NotNull final SystemIcons systemIcons, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final InsertionMode<G, A, R> topmostInsertionMode, @NotNull final RendererFactory<G, A, R> rendererFactory, @NotNull final FilterControl<G, A, R> filterControl, @NotNull final ScriptExecutor<G, A, R> scriptExecutor, @NotNull final ScriptParameters scriptParameters) { this.configSourceFactory = configSourceFactory; this.rendererFactory = rendererFactory; this.mapManager = mapManager; Modified: trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java 2010-05-16 17:44:07 UTC (rev 7814) +++ trunk/src/app/net/sf/gridarta/maincontrol/GridartaEditor.java 2010-05-16 17:53:18 UTC (rev 7815) @@ -283,13 +283,13 @@ final ScriptExecutor<G, A, R> scriptExecutor = new ScriptExecutor<G, A, R>(scriptModel, scriptParameters); if (script != null) { - returnCode = runScript(script, editorFactory, mainControl, errorView, args2, guiUtils, configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, mapManager, pickmapManager, mapControlFactory, archetypeSet, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, scriptModel, animationObjects, archetypeChooserModel, scriptedEventEditor, defaultFilterList, resources, numberSpells, gameObjectSpells, attributeRangeChecker, pluginParameterFactory); + returnCode = runScript(script, editorFactory, mainControl, errorView, args2, guiUtils, configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, mapManager, pickmapManager, mapControlFactory, archetypeSet, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, scriptModel, animationObjects, archetypeChooserModel, scriptedEventEditor, resources, numberSpells, gameObjectSpells, attributeRangeChecker, pluginParameterFactory); } else { try { switch (mode) { case NORMAL: try { - returnCode = runNormal(args2, mainControl, editorFactory, splashScreen, errorView, guiUtils, configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, mapManager, pickmapManager, mapControlFactory, archetypeSet, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, scriptModel, animationObjects, archetypeChooserModel, scriptedEventEditor, defaultFilterList, resources, numberSpells, gameObjectSpells, attributeRangeChecker, pluginParameterFactory); + returnCode = runNormal(args2, mainControl, editorFactory, splashScreen, errorView, guiUtils, configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, mapManager, pickmapManager, mapControlFactory, archetypeSet, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, scriptModel, animationObjects, archetypeChooserModel, scriptedEventEditor, resources, numberSpells, gameObjectSpells, attributeRangeChecker, pluginParameterFactory); } catch (final Exception ex) { log.fatal(ex.getMessage(), ex); returnCode = 1; @@ -366,7 +366,6 @@ * @param animationObjects the animation objects * @param archetypeChooserModel the archetype chooser model * @param scriptedEventEditor the scripted event editor - * @param defaultFilterList the default filter list * @param resources the resources * @param numberSpells the number spells to use * @param gameObjectSpells the game object spells to use @@ -374,14 +373,14 @@ * @param pluginParameterFactory the plugin parameter factory to use * @return return code suitable for passing to {@link System#exit(int)} */ - private int runScript(@NotNull final String script, final EditorFactory<G, A, R> editorFactory, final DefaultMainControl<G, A, R> mainControl, final ErrorView errorView, final List<String> args2, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<G, A, R> rendererFactory, @NotNull final FilterControl<G, A, R> filterControl, @NotNull final ScriptExecutor<G, A, R> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<G, A, R> mapManager, @NotNull final MapManager<G, A, R> pickmapManager, @NotNull final MapControlFactory<G, A, R> mapControlFactory, @NotNull final ArchetypeSet<G, A, R> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<G, A, R> topmostInsertionMode, @NotNull final GameObjectFactory<G, A, R> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<G, A, R> archetypeTypeSet, @NotNull final MapArchObjectFactory<A> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<G, A, R> mapReaderFactory, @NotNull final DelegatingMapValidator<G, A, R> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<G, A, R> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<G, A, R> archetypeChooserModel, @NotNull final ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull final NamedFilter defaultFilterList, @NotNull final AbstractResources<G, A, R> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final PluginParameterFactory<G, A, R> pluginParameterFactory) { + private int runScript(@NotNull final String script, final EditorFactory<G, A, R> editorFactory, final DefaultMainControl<G, A, R> mainControl, final ErrorView errorView, final List<String> args2, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<G, A, R> rendererFactory, @NotNull final FilterControl<G, A, R> filterControl, @NotNull final ScriptExecutor<G, A, R> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<G, A, R> mapManager, @NotNull final MapManager<G, A, R> pickmapManager, @NotNull final MapControlFactory<G, A, R> mapControlFactory, @NotNull final ArchetypeSet<G, A, R> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<G, A, R> topmostInsertionMode, @NotNull final GameObjectFactory<G, A, R> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<G, A, R> archetypeTypeSet, @NotNull final MapArchObjectFactory<A> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<G, A, R> mapReaderFactory, @NotNull final DelegatingMapValidator<G, A, R> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<G, A, R> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<G, A, R> archetypeChooserModel, @NotNull final ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull final AbstractResources<G, A, R> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final PluginParameterFactory<G, A, R> pluginParameterFactory) { final GUIMainControl<G, A, R>[] tmp2 = (GUIMainControl<G, A, R>[]) new GUIMainControl<?, ?, ?>[1]; final Runnable runnable2 = new Runnable() { /** {@inheritDoc} */ @Override public void run() { - tmp2[0] = editorFactory.createGUIMainControl(mainControl, errorView, guiUtils, configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, mapManager, pickmapManager, mapControlFactory, archetypeSet, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, scriptModel, animationObjects, archetypeChooserModel, scriptedEventEditor, defaultFilterList, resources, numberSpells, gameObjectSpells, attributeRangeChecker, pluginParameterFactory); + tmp2[0] = editorFactory.createGUIMainControl(mainControl, errorView, guiUtils, configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, mapManager, pickmapManager, mapControlFactory, archetypeSet, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, scriptModel, animationObjects, archetypeChooserModel, scriptedEventEditor, resources, numberSpells, gameObjectSpells, attributeRangeChecker, pluginParameterFactory); } }; @@ -491,7 +490,6 @@ * @param animationObjects the animation objects * @param archetypeChooserModel the archetype chooser model * @param scriptedEventEditor the scripted event editor - * @param defaultFilterList the default filter list * @param resources the resources * @param numberSpells the number spells to use * @param gameObjectSpells the game object spells to use @@ -499,14 +497,14 @@ * @param pluginParameterFactory the plugin parameter factory to use * @return return code suitable for passing to {@link System#exit(int)} */ - private int runNormal(@NotNull final Iterable<String> args, @NotNull final DefaultMainControl<G, A, R> mainControl, @NotNull final EditorFactory<G, A, R> editorFactory, @NotNull final SplashScreen splashScreen, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<G, A, R> rendererFactory, @NotNull final FilterControl<G, A, R> filterControl, @NotNull final ScriptExecutor<G, A, R> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<G, A, R> mapManager, @NotNull final MapManager<G, A, R> pickmapManager, @NotNull final MapControlFactory<G, A, R> mapControlFactory, @NotNull final ArchetypeSet<G, A, R> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<G, A, R> topmostInsertionMode, @NotNull final GameObjectFactory<G, A, R> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<G, A, R> archetypeTypeSet, @NotNull final MapArchObjectFactory<A> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<G, A, R> mapReaderFactory, @NotNull final DelegatingMapValidator<G, A, R> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<G, A, R> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<G, A, R> archetypeChooserModel, @NotNull final ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull final NamedFilter defaultFilterList, @NotNull final AbstractResources<G, A, R> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final PluginParameterFactory<G, A, R> pluginParameterFactory) { + private int runNormal(@NotNull final Iterable<String> args, @NotNull final DefaultMainControl<G, A, R> mainControl, @NotNull final EditorFactory<G, A, R> editorFactory, @NotNull final SplashScreen splashScreen, @NotNull final ErrorView errorView, @NotNull final GUIUtils guiUtils, @NotNull final ConfigSourceFactory configSourceFactory, @NotNull final RendererFactory<G, A, R> rendererFactory, @NotNull final FilterControl<G, A, R> filterControl, @NotNull final ScriptExecutor<G, A, R> scriptExecutor, @NotNull final ScriptParameters scriptParameters, @NotNull final AbstractMapManager<G, A, R> mapManager, @NotNull final MapManager<G, A, R> pickmapManager, @NotNull final MapControlFactory<G, A, R> mapControlFactory, @NotNull final ArchetypeSet<G, A, R> archetypeSet, @NotNull final FaceObjects faceObjects, @NotNull final GlobalSettings globalSettings, @NotNull final MapViewSettings mapViewSettings, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final PathManager pathManager, @NotNull final InsertionMode<G, A, R> topmostInsertionMode, @NotNull final GameObjectFactory<G, A, R> gameObjectFactory, @NotNull final SystemIcons systemIcons, @NotNull final ArchetypeTypeSet<G, A, R> archetypeTypeSet, @NotNull final MapArchObjectFactory<A> mapArchObjectFactory, @NotNull final DefaultMapReaderFactory<G, A, R> mapReaderFactory, @NotNull final DelegatingMapValidator<G, A, R> validators, @NotNull final GameObjectMatchers gameObjectMatchers, @NotNull final ScriptModel<G, A, R> scriptModel, @NotNull final AnimationObjects animationObjects, @NotNull final ArchetypeChooserModel<G, A, R> archetypeChooserModel, @NotNull final ScriptedEventEditor<G, A, R> scriptedEventEditor, @NotNull final AbstractResources<G, A, R> resources, @NotNull final Spells<NumberSpell> numberSpells, @NotNull final Spells<GameObjectSpell<G, A, R>> gameObjectSpells, @NotNull final AttributeRangeChecker<G, A, R> attributeRangeChecker, @NotNull final PluginParameterFactory<G, A, R> pluginParameterFactory) { final GUIMainControl<G, A, R>[] guiMainControl = (GUIMainControl<G, A, R>[]) new GUIMainControl<?, ?, ?>[1]; final Runnable runnable = new Runnable() { /** {@inheritDoc} */ @Override public void run() { - guiMainControl[0] = editorFactory.createGUIMainControl(mainControl, errorView, guiUtils, configSourceFactory, rendererFactory, filterControl, scriptExecutor, scriptParameters, mapManager, pickmapManager, mapControlFactory, archetypeSet, faceObjects, globalSettings, mapViewSettings, faceObjectProviders, pathManager, topmostInsertionMode, gameObjectFactory, systemIcons, archetypeTypeSet, mapArchObjectFactory, mapReaderFactory, validators, gameObjectMatchers, scriptModel, animationObjects, archetypeChooserModel, scriptedEventEditor, defaultFilterList, resources, numberSpells, gameObjectSpells, attributeRangeChecker, pluginParameterFactory); + guiMainControl[0] = editorFactory.createGUIMainControl(mainControl, errorView, guiUtils, configSourceFactory, rendererFactory, filterControl, scriptExecutor, sc... [truncated message content] |
From: <aki...@us...> - 2010-05-16 18:01:34
|
Revision: 7818 http://gridarta.svn.sourceforge.net/gridarta/?rev=7818&view=rev Author: akirschbaum Date: 2010-05-16 18:01:28 +0000 (Sun, 16 May 2010) Log Message: ----------- Merge redundant functions GUIMainControl.newMap() and GUIMainControl.createNew(). Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/action.properties trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:01:28 UTC (rev 7818) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=createNew open recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap open recent close - save saveAs saveAll revert createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -47,7 +47,7 @@ ########## # ToolBars -main.toolbar=createNew open save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap open save saveAs - prevWindow nextWindow - undo redo oldLibs.okayLibs=.svn CVS README LICENSE-* *-LICENSE japi.jar jlfgr-1_0.jar Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:01:28 UTC (rev 7818) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=createNew open recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap open recent close - save saveAs saveAll revert createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -47,7 +47,7 @@ ########## # ToolBars -main.toolbar=createNew open save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap open save saveAs - prevWindow nextWindow - undo redo moveCursor.menu=goNorth goEast goSouth goWest goNorthEast goSouthEast goSouthWest goNorthWest - goLocation Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:01:28 UTC (rev 7818) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=createNew open recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap open recent close - save saveAs saveAll revert createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -47,7 +47,7 @@ ########## # ToolBars -main.toolbar=createNew open save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap open save saveAs - prevWindow nextWindow - undo redo oldLibs.okayLibs=.svn CVS README LICENSE-* *-LICENSE japi.jar jlfgr-1_0.jar Modified: trunk/src/app/net/sf/gridarta/action.properties =================================================================== --- trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:01:28 UTC (rev 7818) @@ -29,7 +29,7 @@ #this is empty but yet must be here. recent.menu= -createNew.icon=general/New16 +newMap.icon=general/New16 open.icon=general/Open16 Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-16 18:01:28 UTC (rev 7818) @@ -396,7 +396,7 @@ final ImageCreator2<G, A, R> imageCreator2 = new ImageCreator2<G, A, R>(globalSettings, imageCreator); spellUtils = spellFile != null ? new SpellsUtils(spellFile) : null; appPrefsModel = editorFactory.createAppPrefsModel(); - ACTION_BUILDER.createActions(true, this, "createNew", "onlineHelp", "gc", "newScript", "editScript", "open", "zoom", "tod", "options", "controlServer", "controlClient", "collectSpells", "cleanCompletelyBlockedSquares"); + ACTION_BUILDER.createActions(true, this, "newMap", "onlineHelp", "gc", "newScript", "editScript", "open", "zoom", "tod", "options", "controlServer", "controlClient", "collectSpells", "cleanCompletelyBlockedSquares"); final Action exitAction = ACTION_BUILDER.createAction(true, "exit", this); final MapViewManager<G, A, R> mapViewManager = new MapViewManager<G, A, R>(); statusBar = new StatusBar<G, A, R>(mapManager, mapViewManager, archetypeSet, faceObjects); @@ -586,14 +586,6 @@ */ @ActionMethod public void newMap() { - newMapDialogFactory.showNewMapDialog(); - } - - /** - * Invoked when user wants to begin editing a new (empty) map. - */ - @ActionMethod - public void createNew() { newMap(); } Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:01:28 UTC (rev 7818) @@ -578,11 +578,11 @@ recent.mnemonic=T recentItem.shortdescriptionformat=Opens map {0} ({1}) -createNew.text=New... -createNew.shortdescription=Create new map -createNew.longdescription=Creates a new map -createNew.mnemonic=N -createNew.accel=ctrl pressed N +newMap.text=New... +newMap.shortdescription=Create new map +newMap.longdescription=Creates a new map +newMap.mnemonic=N +newMap.accel=ctrl pressed N open.text=Open... open.shortdescription=Open a new map Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:01:28 UTC (rev 7818) @@ -541,10 +541,10 @@ recent.mnemonic=Z recentItem.shortdescriptionformat=\xD6ffne Karte {0} ({1}) -createNew.text=Neu... -createNew.shortdescription=Erzeuge neue Karte -createNew.longdescription=Erzeugt eine neue Karte -createNew.mnemonic=N +newMap.text=Neu... +newMap.shortdescription=Erzeuge neue Karte +newMap.longdescription=Erzeugt eine neue Karte +newMap.mnemonic=N open.text=\xD6ffnen... open.shortdescription=\xD6ffne eine Karte Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:01:28 UTC (rev 7818) @@ -536,10 +536,10 @@ #recent.mnemonic= #recentItem.shortdescriptionformat= -createNew.text=Nouveau -createNew.shortdescription=Cr\xE9er une nouvelle carte -createNew.longdescription=Cr\xE9e une nouvelle carte -createNew.mnemonic=N +newMap.text=Nouveau +newMap.shortdescription=Cr\xE9er une nouvelle carte +newMap.longdescription=Cr\xE9e une nouvelle carte +newMap.mnemonic=N open.text=Ouvrir open.shortdescription=Ouvrir une carte Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 17:56:04 UTC (rev 7817) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:01:28 UTC (rev 7818) @@ -540,10 +540,10 @@ recent.mnemonic=L recentItem.shortdescriptionformat=\xD6ppnar karta {0} ({1}) -createNew.text=Ny -createNew.shortdescription=Ny karta -createNew.longdescription=Skapar en ny karta -createNew.mnemonic=Y +newMap.text=Ny +newMap.shortdescription=Ny karta +newMap.longdescription=Skapar en ny karta +newMap.mnemonic=Y open.text=\xD6ppna... open.shortdescription=\xD6ppna karta This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-16 18:08:54
|
Revision: 7821 http://gridarta.svn.sourceforge.net/gridarta/?rev=7821&view=rev Author: akirschbaum Date: 2010-05-16 18:08:47 +0000 (Sun, 16 May 2010) Log Message: ----------- Rename action 'open' to 'openFile'. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/action.properties trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:08:47 UTC (rev 7821) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap open recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap openFile recent close - save saveAs saveAll revert createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -47,7 +47,7 @@ ########## # ToolBars -main.toolbar=newMap open save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile save saveAs - prevWindow nextWindow - undo redo oldLibs.okayLibs=.svn CVS README LICENSE-* *-LICENSE japi.jar jlfgr-1_0.jar Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:08:47 UTC (rev 7821) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap open recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap openFile recent close - save saveAs saveAll revert createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -47,7 +47,7 @@ ########## # ToolBars -main.toolbar=newMap open save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile save saveAs - prevWindow nextWindow - undo redo moveCursor.menu=goNorth goEast goSouth goWest goNorthEast goSouthEast goSouthWest goNorthWest - goLocation Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:08:47 UTC (rev 7821) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap open recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap openFile recent close - save saveAs saveAll revert createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -47,7 +47,7 @@ ########## # ToolBars -main.toolbar=newMap open save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile save saveAs - prevWindow nextWindow - undo redo oldLibs.okayLibs=.svn CVS README LICENSE-* *-LICENSE japi.jar jlfgr-1_0.jar Modified: trunk/src/app/net/sf/gridarta/action.properties =================================================================== --- trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:08:47 UTC (rev 7821) @@ -31,7 +31,7 @@ newMap.icon=general/New16 -open.icon=general/Open16 +openFile.icon=general/Open16 save.icon=general/Save16 Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-16 18:08:47 UTC (rev 7821) @@ -396,7 +396,7 @@ final ImageCreator2<G, A, R> imageCreator2 = new ImageCreator2<G, A, R>(globalSettings, imageCreator); spellUtils = spellFile != null ? new SpellsUtils(spellFile) : null; appPrefsModel = editorFactory.createAppPrefsModel(); - ACTION_BUILDER.createActions(true, this, "newMap", "onlineHelp", "gc", "newScript", "editScript", "open", "zoom", "tod", "options", "controlServer", "controlClient", "collectSpells", "cleanCompletelyBlockedSquares"); + ACTION_BUILDER.createActions(true, this, "newMap", "onlineHelp", "gc", "newScript", "editScript", "openFile", "zoom", "tod", "options", "controlServer", "controlClient", "collectSpells", "cleanCompletelyBlockedSquares"); final Action exitAction = ACTION_BUILDER.createAction(true, "exit", this); final MapViewManager<G, A, R> mapViewManager = new MapViewManager<G, A, R>(); statusBar = new StatusBar<G, A, R>(mapManager, mapViewManager, archetypeSet, faceObjects); @@ -632,7 +632,7 @@ * Invoked when user wants to open a file. */ @ActionMethod - public void open() { + public void openFile() { fileControl.openFile(true); } Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:08:47 UTC (rev 7821) @@ -584,12 +584,12 @@ newMap.mnemonic=N newMap.accel=ctrl pressed N -open.text=Open... -open.shortdescription=Open a new map -open.longdescription=Loads a new map from a map file -open.mnemonic=O -open.accel=ctrl pressed O -open.error.text=Error while loading +openFile.text=Open... +openFile.shortdescription=Open a new map +openFile.longdescription=Loads a new map from a map file +openFile.mnemonic=O +openFile.accel=ctrl pressed O +openFile.error.text=Error while loading options.text=Options... options.shortdescription=Shows options Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:08:47 UTC (rev 7821) @@ -546,11 +546,11 @@ newMap.longdescription=Erzeugt eine neue Karte newMap.mnemonic=N -open.text=\xD6ffnen... -open.shortdescription=\xD6ffne eine Karte -open.longdescription=L\xE4dt eine Karte aus einer Datei -open.mnemonic=F -open.error.text=Fehler beim Laden +openFile.text=\xD6ffnen... +openFile.shortdescription=\xD6ffne eine Karte +openFile.longdescription=L\xE4dt eine Karte aus einer Datei +openFile.mnemonic=F +openFile.error.text=Fehler beim Laden options.text=Optionen... options.shortdescription=Optionen zeigen Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:08:47 UTC (rev 7821) @@ -541,11 +541,11 @@ newMap.longdescription=Cr\xE9e une nouvelle carte newMap.mnemonic=N -open.text=Ouvrir -open.shortdescription=Ouvrir une carte -open.longdescription=Ouvre une carte \xE0 partir d''un fichier -open.mnemonic=O -open.error.text=Erreur lors du chargement. +openFile.text=Ouvrir +openFile.shortdescription=Ouvrir une carte +openFile.longdescription=Ouvre une carte \xE0 partir d''un fichier +openFile.mnemonic=O +openFile.error.text=Erreur lors du chargement. options.text=Options... options.shortdescription=Affiche les options Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:04:07 UTC (rev 7820) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:08:47 UTC (rev 7821) @@ -545,11 +545,11 @@ newMap.longdescription=Skapar en ny karta newMap.mnemonic=Y -open.text=\xD6ppna... -open.shortdescription=\xD6ppna karta -open.longdescription=\xD6ppnar en karta fr\xE5n fil -open.mnemonic=P -#open.error.text= +openFile.text=\xD6ppna... +openFile.shortdescription=\xD6ppna karta +openFile.longdescription=\xD6ppnar en karta fr\xE5n fil +openFile.mnemonic=P +#openFile.error.text= options.text=Inst\xE4llningar... options.shortdescription=Justera inst\xE4llningar This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-16 18:16:28
|
Revision: 7822 http://gridarta.svn.sourceforge.net/gridarta/?rev=7822&view=rev Author: akirschbaum Date: 2010-05-16 18:16:21 +0000 (Sun, 16 May 2010) Log Message: ----------- Rename action 'revert' to 'revertMap'. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/action.properties trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:16:21 UTC (rev 7822) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap openFile recent close - save saveAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,7 +40,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=save saveAs createImage - revert - close +mapwindowFile.menu=save saveAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:16:21 UTC (rev 7822) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap openFile recent close - save saveAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,7 +40,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=save saveAs createImage - revert - close +mapwindowFile.menu=save saveAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible smoothing enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:16:21 UTC (rev 7822) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - save saveAs saveAll revert createImage - options - exit +file.menu=newMap openFile recent close - save saveAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,7 +40,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=save saveAs createImage - revert - close +mapwindowFile.menu=save saveAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/src/app/net/sf/gridarta/action.properties =================================================================== --- trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:16:21 UTC (rev 7822) @@ -39,7 +39,7 @@ createImage.icon=CreateImageSmallIcon -revert.icon=general/Refresh16 +revertMap.icon=general/Refresh16 close.icon=EmptySmallIcon Modified: trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java 2010-05-16 18:16:21 UTC (rev 7822) @@ -109,10 +109,10 @@ private final Action aCreateImage = ACTION_BUILDER.createAction(true, "createImage", this); /** - * The action for "revert". + * The action for "revert map". */ @NotNull - private final Action aRevert = ACTION_BUILDER.createAction(true, "revert", this); + private final Action aRevertMap = ACTION_BUILDER.createAction(true, "revertMap", this); /** * The action for "close". @@ -287,7 +287,7 @@ //noinspection CallToSimpleGetterFromWithinClass aSaveAs.setEnabled(getSaveAsEnabled() != null); aCreateImage.setEnabled(getCreateImageEnabled() != null); - aRevert.setEnabled(getRevertEnabled() != null); + aRevertMap.setEnabled(getRevertMapEnabled() != null); //noinspection CallToSimpleGetterFromWithinClass aClose.setEnabled(getCloseEnabled() != null); } @@ -325,12 +325,12 @@ } /** - * Determine whether "revert" is enabled. - * @return the map control for which "revert" is enabled, or - * <code>null</code> if "revert" is disabled + * Determine whether "revert map" is enabled. + * @return the map control for which "revert map" is enabled, or + * <code>null</code> if "revert map" is disabled */ @Nullable - private MapControl<G, A, R> getRevertEnabled() { + private MapControl<G, A, R> getRevertMapEnabled() { final MapControl<G, A, R> mapControl = currentMapControl; return mapControl != null && mapControl.getPlainSaveFile() != null && mapControl.getMapModel().isModified() ? mapControl : null; } @@ -384,8 +384,8 @@ * state. */ @ActionMethod - public void revert() { - final MapControl<G, A, R> mapControl = getRevertEnabled(); + public void revertMap() { + final MapControl<G, A, R> mapControl = getRevertMapEnabled(); if (mapControl == null) { return; } Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:16:21 UTC (rev 7822) @@ -561,11 +561,11 @@ createImage.mnemonic=I createImage.error.text=Error while creating snapshot image -revert.text=Revert -revert.shortdescription=Reverts map -revert.longdescription=Reverts the map to the last saved version -revert.mnemonic=R -revert.error.text=Error while reverting map +revertMap.text=Revert +revertMap.shortdescription=Reverts map +revertMap.longdescription=Reverts the map to the last saved version +revertMap.mnemonic=R +revertMap.error.text=Error while reverting map close.text=Close close.shortdescription=Close map Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:16:21 UTC (rev 7822) @@ -525,11 +525,11 @@ createImage.mnemonic=I createImage.error.text=Fehler beim Bild speichern -revert.text=Zur\xFCcksetzen -revert.shortdescription=Zuletzt gespeicherte Fassung -revert.longdescription=Macht alle \xC4nderungen r\xFCckg\xE4ngig und stellt die zuletzt gespeicherte Fassung wieder her -revert.mnemonic=R -revert.error.text=Fehler beim Zur\xFCcksetzen +revertMap.text=Zur\xFCcksetzen +revertMap.shortdescription=Zuletzt gespeicherte Fassung +revertMap.longdescription=Macht alle \xC4nderungen r\xFCckg\xE4ngig und stellt die zuletzt gespeicherte Fassung wieder her +revertMap.mnemonic=R +revertMap.error.text=Fehler beim Zur\xFCcksetzen close.text=Schie\xDFen close.shortdescription=Karte schlie\xDFen Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:16:21 UTC (rev 7822) @@ -520,11 +520,11 @@ createImage.mnemonic=I createImage.error.text=Erreur lors de la cr\xE9ation d''une image. -revert.text=Restaurer -revert.shortdescription=Restaure la carte -revert.longdescription=Restaure la carte selon la derni\xE8re version enregistr\xE9e -revert.mnemonic=R -revert.error.text=Erreur lors de la restauration de la carte. +revertMap.text=Restaurer +revertMap.shortdescription=Restaure la carte +revertMap.longdescription=Restaure la carte selon la derni\xE8re version enregistr\xE9e +revertMap.mnemonic=R +revertMap.error.text=Erreur lors de la restauration de la carte. close.text=Fermer close.shortdescription=Fermer la carte Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:08:47 UTC (rev 7821) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:16:21 UTC (rev 7822) @@ -524,11 +524,11 @@ createImage.mnemonic=B createImage.error.text=Kunde inte spara bilden -revert.text=\xC5terst\xE4ll -revert.shortdescription=\xC5terst\xE4ller karta -revert.longdescription=\xC5terst\xE4ller kartan till den senast sparade versionen -revert.mnemonic=R -revert.error.text=Kunde inte \xE5terst\xE4lla kartan +revertMap.text=\xC5terst\xE4ll +revertMap.shortdescription=\xC5terst\xE4ller karta +revertMap.longdescription=\xC5terst\xE4ller kartan till den senast sparade versionen +revertMap.mnemonic=R +revertMap.error.text=Kunde inte \xE5terst\xE4lla kartan close.text=St\xE4ng close.shortdescription=St\xE4ng karta This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-16 18:20:35
|
Revision: 7823 http://gridarta.svn.sourceforge.net/gridarta/?rev=7823&view=rev Author: akirschbaum Date: 2010-05-16 18:20:29 +0000 (Sun, 16 May 2010) Log Message: ----------- Rename action 'save' to 'saveMap'. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/action.properties trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:16:21 UTC (rev 7822) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:20:29 UTC (rev 7823) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - save saveAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent close - saveMap saveAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,14 +40,14 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=save saveAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes ########## # ToolBars -main.toolbar=newMap openFile save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile saveMap saveAs - prevWindow nextWindow - undo redo oldLibs.okayLibs=.svn CVS README LICENSE-* *-LICENSE japi.jar jlfgr-1_0.jar Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:16:21 UTC (rev 7822) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:20:29 UTC (rev 7823) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - save saveAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent close - saveMap saveAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,14 +40,14 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=save saveAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible smoothing enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes ########## # ToolBars -main.toolbar=newMap openFile save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile saveMap saveAs - prevWindow nextWindow - undo redo moveCursor.menu=goNorth goEast goSouth goWest goNorthEast goSouthEast goSouthWest goNorthWest - goLocation Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:16:21 UTC (rev 7822) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:20:29 UTC (rev 7823) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - save saveAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent close - saveMap saveAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,14 +40,14 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=save saveAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes ########## # ToolBars -main.toolbar=newMap openFile save saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile saveMap saveAs - prevWindow nextWindow - undo redo oldLibs.okayLibs=.svn CVS README LICENSE-* *-LICENSE japi.jar jlfgr-1_0.jar Modified: trunk/src/app/net/sf/gridarta/action.properties =================================================================== --- trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:16:21 UTC (rev 7822) +++ trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:20:29 UTC (rev 7823) @@ -33,7 +33,7 @@ openFile.icon=general/Open16 -save.icon=general/Save16 +saveMap.icon=general/Save16 saveAs.icon=general/SaveAs16 Modified: trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java 2010-05-16 18:16:21 UTC (rev 7822) +++ trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java 2010-05-16 18:20:29 UTC (rev 7823) @@ -91,10 +91,10 @@ private final MapViewsManager<G, A, R> mapViewsManager; /** - * The action for "save". + * The action for "save map". */ @NotNull - private final Action aSave = ACTION_BUILDER.createAction(true, "save", this); + private final Action aSaveMap = ACTION_BUILDER.createAction(true, "saveMap", this); /** * The action for "save as". @@ -283,7 +283,7 @@ * Update the enabled/disabled state of all actions. */ private void updateActions() { - aSave.setEnabled(getSaveEnabled() != null); + aSaveMap.setEnabled(getSaveMapEnabled() != null); //noinspection CallToSimpleGetterFromWithinClass aSaveAs.setEnabled(getSaveAsEnabled() != null); aCreateImage.setEnabled(getCreateImageEnabled() != null); @@ -293,12 +293,12 @@ } /** - * Determine whether "save" is enabled. - * @return the map control for which "save" is enabled, or <code>null</code> - * if "save" is disabled + * Determine whether "save map" is enabled. + * @return the map control for which "save map" is enabled, or + * <code>null</code> if "save map" is disabled */ @Nullable - private MapControl<G, A, R> getSaveEnabled() { + private MapControl<G, A, R> getSaveMapEnabled() { final MapControl<G, A, R> mapControl = currentMapControl; return mapControl != null && mapControl.getMapModel().isModified() ? mapControl : null; } @@ -349,8 +349,8 @@ * Invoked when the user wants to save the map. */ @ActionMethod - public void save() { - final MapControl<G, A, R> mapControl = getSaveEnabled(); + public void saveMap() { + final MapControl<G, A, R> mapControl = getSaveMapEnabled(); if (mapControl != null) { fileControl.save(mapControl); } Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:16:21 UTC (rev 7822) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:20:29 UTC (rev 7823) @@ -540,13 +540,13 @@ file.text=File file.mnemonic=F -save.text=Save -save.shortdescription=Save map -save.longdescription=Saves the current map -save.mnemonic=S -save.accel=ctrl pressed S -save.error.text.title=Error while saving -save.error.text=Error while saving:\n{0} +saveMap.text=Save +saveMap.shortdescription=Save map +saveMap.longdescription=Saves the current map +saveMap.mnemonic=S +saveMap.accel=ctrl pressed S +saveMap.error.text.title=Error while saving +saveMap.error.text=Error while saving:\n{0} saveAs.text=Save As... saveAs.shortdescription=Save map with new name Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:16:21 UTC (rev 7822) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:20:29 UTC (rev 7823) @@ -506,12 +506,12 @@ file.text=Datei file.mnemonic=D -save.text=Speichern -save.shortdescription=Karte speichern -save.longdescription=Speichert die aktuelle Karte -save.mnemonic=S -save.error.text.title=Fehler beim Speichern -save.error.text=Fehler beim Speichern +saveMap.text=Speichern +saveMap.shortdescription=Karte speichern +saveMap.longdescription=Speichert die aktuelle Karte +saveMap.mnemonic=S +saveMap.error.text.title=Fehler beim Speichern +saveMap.error.text=Fehler beim Speichern saveAs.text=Speichern als... saveAs.shortdescription=Karte mit neuem Namen speichern Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:16:21 UTC (rev 7822) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:20:29 UTC (rev 7823) @@ -501,12 +501,12 @@ file.text=Fichier file.mnemonic=F -save.text=Enregistrer -save.shortdescription=Enregistrer la carte -save.longdescription=Enregistre la carte active -save.mnemonic=E -#save.error.text.title= -save.error.text=Erreur lors de l''enregistrement. +saveMap.text=Enregistrer +saveMap.shortdescription=Enregistrer la carte +saveMap.longdescription=Enregistre la carte active +saveMap.mnemonic=E +#saveMap.error.text.title= +saveMap.error.text=Erreur lors de l''enregistrement. saveAs.text=Enregistrer sous... saveAs.shortdescription=Enregistrer la carte sous un nouveau nom This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-16 18:23:12
|
Revision: 7824 http://gridarta.svn.sourceforge.net/gridarta/?rev=7824&view=rev Author: akirschbaum Date: 2010-05-16 18:23:06 +0000 (Sun, 16 May 2010) Log Message: ----------- Rename action 'saveAs' to 'saveMapAs'. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/action.properties trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:23:06 UTC (rev 7824) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - saveMap saveAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent close - saveMap saveMapAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,14 +40,14 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=saveMap saveAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes ########## # ToolBars -main.toolbar=newMap openFile saveMap saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile saveMap saveMapAs - prevWindow nextWindow - undo redo oldLibs.okayLibs=.svn CVS README LICENSE-* *-LICENSE japi.jar jlfgr-1_0.jar Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:23:06 UTC (rev 7824) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - saveMap saveAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent close - saveMap saveMapAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,14 +40,14 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=saveMap saveAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible smoothing enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes ########## # ToolBars -main.toolbar=newMap openFile saveMap saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile saveMap saveMapAs - prevWindow nextWindow - undo redo moveCursor.menu=goNorth goEast goSouth goWest goNorthEast goSouthEast goSouthWest goNorthWest - goLocation Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:23:06 UTC (rev 7824) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - saveMap saveAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent close - saveMap saveMapAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,14 +40,14 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=saveMap saveAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - close mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes ########## # ToolBars -main.toolbar=newMap openFile saveMap saveAs - prevWindow nextWindow - undo redo +main.toolbar=newMap openFile saveMap saveMapAs - prevWindow nextWindow - undo redo oldLibs.okayLibs=.svn CVS README LICENSE-* *-LICENSE japi.jar jlfgr-1_0.jar Modified: trunk/src/app/net/sf/gridarta/action.properties =================================================================== --- trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:23:06 UTC (rev 7824) @@ -35,7 +35,7 @@ saveMap.icon=general/Save16 -saveAs.icon=general/SaveAs16 +saveMapAs.icon=general/SaveAs16 createImage.icon=CreateImageSmallIcon Modified: trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java 2010-05-16 18:23:06 UTC (rev 7824) @@ -97,10 +97,10 @@ private final Action aSaveMap = ACTION_BUILDER.createAction(true, "saveMap", this); /** - * The action for "save as". + * The action for "save map as". */ @NotNull - private final Action aSaveAs = ACTION_BUILDER.createAction(true, "saveAs", this); + private final Action aSaveMapAs = ACTION_BUILDER.createAction(true, "saveMapAs", this); /** * The action for "create image". @@ -285,7 +285,7 @@ private void updateActions() { aSaveMap.setEnabled(getSaveMapEnabled() != null); //noinspection CallToSimpleGetterFromWithinClass - aSaveAs.setEnabled(getSaveAsEnabled() != null); + aSaveMapAs.setEnabled(getSaveAsEnabled() != null); aCreateImage.setEnabled(getCreateImageEnabled() != null); aRevertMap.setEnabled(getRevertMapEnabled() != null); //noinspection CallToSimpleGetterFromWithinClass @@ -360,7 +360,7 @@ * Invoked when the user wants to save the map to a file. */ @ActionMethod - public void saveAs() { + public void saveMapAs() { //noinspection CallToSimpleGetterFromWithinClass final MapControl<G, A, R> mapControl = getSaveAsEnabled(); if (mapControl != null) { Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:23:06 UTC (rev 7824) @@ -548,12 +548,12 @@ saveMap.error.text.title=Error while saving saveMap.error.text=Error while saving:\n{0} -saveAs.text=Save As... -saveAs.shortdescription=Save map with new name -saveAs.longdescription=Saves map with a new filename -saveAs.mnemonic=A -saveAs.accel=ctrl shift pressed S -saveAs.error.text=Error while saving as +saveMapAs.text=Save As... +saveMapAs.shortdescription=Save map with new name +saveMapAs.longdescription=Saves map with a new filename +saveMapAs.mnemonic=A +saveMapAs.accel=ctrl shift pressed S +saveMapAs.error.text=Error while saving as createImage.text=Create Image createImage.shortdescription=Creates a snapshot Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:23:06 UTC (rev 7824) @@ -513,11 +513,11 @@ saveMap.error.text.title=Fehler beim Speichern saveMap.error.text=Fehler beim Speichern -saveAs.text=Speichern als... -saveAs.shortdescription=Karte mit neuem Namen speichern -saveAs.longdescription=Speichert die Karte unter einem neuen Namen -saveAs.mnemonic=A -saveAs.error.text=Fehler beim Speichern als +saveMapAs.text=Speichern als... +saveMapAs.shortdescription=Karte mit neuem Namen speichern +saveMapAs.longdescription=Speichert die Karte unter einem neuen Namen +saveMapAs.mnemonic=A +saveMapAs.error.text=Fehler beim Speichern als createImage.text=Bild speichern... createImage.shortdescription=Bild der Karte speichern Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:23:06 UTC (rev 7824) @@ -508,11 +508,11 @@ #saveMap.error.text.title= saveMap.error.text=Erreur lors de l''enregistrement. -saveAs.text=Enregistrer sous... -saveAs.shortdescription=Enregistrer la carte sous un nouveau nom -saveAs.longdescription=Enregistre la carte dans un fichier portant un nom diff\xE9rent -saveAs.mnemonic=S -saveAs.error.text=Erreur lors de l''enregistrement sous... +saveMapAs.text=Enregistrer sous... +saveMapAs.shortdescription=Enregistrer la carte sous un nouveau nom +saveMapAs.longdescription=Enregistre la carte dans un fichier portant un nom diff\xE9rent +saveMapAs.mnemonic=S +saveMapAs.error.text=Erreur lors de l''enregistrement sous... createImage.text=Cr\xE9er image createImage.shortdescription=Cr\xE9er une image \xE0 partir de la carte Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:20:29 UTC (rev 7823) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:23:06 UTC (rev 7824) @@ -512,11 +512,11 @@ save.error.text.title=Kunde inte spara save.error.text=Ett fel intr\xE4ffade:\n{0} -saveAs.text=Spara som... -saveAs.shortdescription=Spara karta som ny fil -saveAs.longdescription=Sparar en karta under ett nytt filnamn -saveAs.mnemonic=A -saveAs.error.text=Kunde inte spara som +saveMapAs.text=Spara som... +saveMapAs.shortdescription=Spara karta som ny fil +saveMapAs.longdescription=Sparar en karta under ett nytt filnamn +saveMapAs.mnemonic=A +saveMapAs.error.text=Kunde inte spara som createImage.text=Skapa bild createImage.shortdescription=Skapa bild av kartan This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-16 18:26:59
|
Revision: 7825 http://gridarta.svn.sourceforge.net/gridarta/?rev=7825&view=rev Author: akirschbaum Date: 2010-05-16 18:26:52 +0000 (Sun, 16 May 2010) Log Message: ----------- Rename action 'close' to 'closeMap'. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/action.properties trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:26:52 UTC (rev 7825) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - saveMap saveMapAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,7 +40,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:26:52 UTC (rev 7825) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - saveMap saveMapAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,7 +40,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible smoothing enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:26:52 UTC (rev 7825) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent close - saveMap saveMapAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs saveAll revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes @@ -40,7 +40,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor -mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - close +mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/src/app/net/sf/gridarta/action.properties =================================================================== --- trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:26:52 UTC (rev 7825) @@ -41,7 +41,7 @@ revertMap.icon=general/Refresh16 -close.icon=EmptySmallIcon +closeMap.icon=EmptySmallIcon closeAll.icon=EmptySmallIcon Modified: trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/src/app/net/sf/gridarta/gui/map/MapFileActions.java 2010-05-16 18:26:52 UTC (rev 7825) @@ -115,10 +115,10 @@ private final Action aRevertMap = ACTION_BUILDER.createAction(true, "revertMap", this); /** - * The action for "close". + * The action for "close map". */ @NotNull - private final Action aClose = ACTION_BUILDER.createAction(true, "close", this); + private final Action aCloseMap = ACTION_BUILDER.createAction(true, "closeMap", this); /** * The currently tracked map, or <code>null</code> if no map is tracked. @@ -289,7 +289,7 @@ aCreateImage.setEnabled(getCreateImageEnabled() != null); aRevertMap.setEnabled(getRevertMapEnabled() != null); //noinspection CallToSimpleGetterFromWithinClass - aClose.setEnabled(getCloseEnabled() != null); + aCloseMap.setEnabled(getCloseMapEnabled() != null); } /** @@ -336,12 +336,12 @@ } /** - * Determine whether "close" is enabled. - * @return the map view for which "close" is enabled, or <code>null</code> - * if "close" is disabled + * Determine whether "close map" is enabled. + * @return the map view for which "close map" is enabled, or + * <code>null</code> if "close map" is disabled */ @Nullable - private MapView<G, A, R> getCloseEnabled() { + private MapView<G, A, R> getCloseMapEnabled() { return currentMapView; } @@ -401,9 +401,9 @@ * Invoked when the user wants to close the map. */ @ActionMethod - public void close() { + public void closeMap() { //noinspection CallToSimpleGetterFromWithinClass - final MapView<G, A, R> mapView = getCloseEnabled(); + final MapView<G, A, R> mapView = getCloseMapEnabled(); if (mapView != null) { mapViewsManager.closeMapView(mapView); } Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:26:52 UTC (rev 7825) @@ -567,11 +567,11 @@ revertMap.mnemonic=R revertMap.error.text=Error while reverting map -close.text=Close -close.shortdescription=Close map -close.longdescription=Closes the current map -close.mnemonic=C -close.accel=ctrl pressed W +closeMap.text=Close +closeMap.shortdescription=Close map +closeMap.longdescription=Closes the current map +closeMap.mnemonic=C +closeMap.accel=ctrl pressed W recent.text=Recent recent.shortdescription=Load a recently opened map Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:26:52 UTC (rev 7825) @@ -531,10 +531,10 @@ revertMap.mnemonic=R revertMap.error.text=Fehler beim Zur\xFCcksetzen -close.text=Schie\xDFen -close.shortdescription=Karte schlie\xDFen -close.longdescription=Schlie\xDFt die aktuelle Karte -close.mnemonic=C +closeMap.text=Schie\xDFen +closeMap.shortdescription=Karte schlie\xDFen +closeMap.longdescription=Schlie\xDFt die aktuelle Karte +closeMap.mnemonic=C recent.text=Zuletzt ge\xF6ffnet recent.shortdescription=Lade eine k\xFCrzlich ge\xF6ffnete Karte Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:26:52 UTC (rev 7825) @@ -526,10 +526,10 @@ revertMap.mnemonic=R revertMap.error.text=Erreur lors de la restauration de la carte. -close.text=Fermer -close.shortdescription=Fermer la carte -close.longdescription=Ferme la carte active -close.mnemonic=F +closeMap.text=Fermer +closeMap.shortdescription=Fermer la carte +closeMap.longdescription=Ferme la carte active +closeMap.mnemonic=F #recent.text= #recent.shortdescription= Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:23:06 UTC (rev 7824) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:26:52 UTC (rev 7825) @@ -530,10 +530,10 @@ revertMap.mnemonic=R revertMap.error.text=Kunde inte \xE5terst\xE4lla kartan -close.text=St\xE4ng -close.shortdescription=St\xE4ng karta -close.longdescription=St\xE4nger den aktuella kartan -close.mnemonic=G +closeMap.text=St\xE4ng +closeMap.shortdescription=St\xE4ng karta +closeMap.longdescription=St\xE4nger den aktuella kartan +closeMap.mnemonic=G recent.text=Nyligen recent.shortdescription=Ladda nyligen \xF6ppnad karta This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-16 18:30:30
|
Revision: 7826 http://gridarta.svn.sourceforge.net/gridarta/?rev=7826&view=rev Author: akirschbaum Date: 2010-05-16 18:30:24 +0000 (Sun, 16 May 2010) Log Message: ----------- Rename action 'closeAll' to 'closeAllMaps'. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/action.properties trunk/src/app/net/sf/gridarta/mapmanager/MapManagerActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:30:24 UTC (rev 7826) @@ -35,7 +35,7 @@ analyze.menu= view.menu=resetView - gridVisible doubleFaces - prevWindow nextWindow plugins.menu=- editPlugins - savePlugins importPlugin -window.menu=closeAll +window.menu=closeAllMaps help.menu=showHelp tipOfTheDay about update mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:30:24 UTC (rev 7826) @@ -35,7 +35,7 @@ analyze.menu= view.menu=resetView - gridVisible smoothing - prevWindow nextWindow plugins.menu=- editPlugins - savePlugins importPlugin -window.menu=closeAll +window.menu=closeAllMaps help.menu=showHelp tipOfTheDay about update mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:30:24 UTC (rev 7826) @@ -35,7 +35,7 @@ analyze.menu= view.menu=resetView - gridVisible doubleFaces - prevWindow nextWindow plugins.menu=- editPlugins - savePlugins importPlugin -window.menu=closeAll +window.menu=closeAllMaps help.menu=showHelp tipOfTheDay about update mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor Modified: trunk/src/app/net/sf/gridarta/action.properties =================================================================== --- trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/src/app/net/sf/gridarta/action.properties 2010-05-16 18:30:24 UTC (rev 7826) @@ -43,7 +43,7 @@ closeMap.icon=EmptySmallIcon -closeAll.icon=EmptySmallIcon +closeAllMaps.icon=EmptySmallIcon undo.icon=general/Undo16 Modified: trunk/src/app/net/sf/gridarta/mapmanager/MapManagerActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/mapmanager/MapManagerActions.java 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/src/app/net/sf/gridarta/mapmanager/MapManagerActions.java 2010-05-16 18:30:24 UTC (rev 7826) @@ -47,7 +47,7 @@ /** * Action for "close all map windows". */ - private final Action aCloseAll = ACTION_BUILDER.createAction(true, "closeAll", this); + private final Action aCloseAllMaps = ACTION_BUILDER.createAction(true, "closeAllMaps", this); /** * The action for "save all". @@ -67,7 +67,7 @@ * @return the action */ public Action getCloseAllAction() { - return aCloseAll; + return aCloseAllMaps; } /** @@ -80,7 +80,7 @@ /** * Invoked when the user wants to close all map files. */ - public void closeAll() { + public void closeAllMaps() { fileControl.closeAll(); } Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:30:24 UTC (rev 7826) @@ -89,11 +89,11 @@ # Map Manager -closeAll.text=Close All -closeAll.shortdescription=Close all maps -closeAll.longdescription=Closes all opened maps -closeAll.mnemonic=L -closeAll.accel=ctrl shift pressed W +closeAllMaps.text=Close All +closeAllMaps.shortdescription=Close all maps +closeAllMaps.longdescription=Closes all opened maps +closeAllMaps.mnemonic=L +closeAllMaps.accel=ctrl shift pressed W saveAll.text=Save All saveAll.shortdescription=Save all maps Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:30:24 UTC (rev 7826) @@ -78,10 +78,10 @@ # Map Manager -closeAll.text=Alle schlie\xDFen -closeAll.shortdescription=Alle Karten schlie\xDFen -closeAll.longdescription=Schlie\xDFt alle ge\xF6ffneten Karten. -closeAll.mnemonic=A +closeAllMaps.text=Alle schlie\xDFen +closeAllMaps.shortdescription=Alle Karten schlie\xDFen +closeAllMaps.longdescription=Schlie\xDFt alle ge\xF6ffneten Karten. +closeAllMaps.mnemonic=A saveAll.text=Alle speichern saveAll.shortdescription=Alle Karten speichern Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:30:24 UTC (rev 7826) @@ -77,10 +77,10 @@ # Map Manager -closeAll.text=Tout fermer -#closeAll.shortdescription= -#closeAll.longdescription= -closeAll.mnemonic=T +closeAllMaps.text=Tout fermer +#closeAllMaps.shortdescription= +#closeAllMaps.longdescription= +closeAllMaps.mnemonic=T #saveAll.text= #saveAll.shortdescription= Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:26:52 UTC (rev 7825) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:30:24 UTC (rev 7826) @@ -77,10 +77,10 @@ # Map Manager -closeAll.text=St\xE4ng alla -closeAll.shortdescription=St\xE4ng alla kartor -closeAll.longdescription=St\xE4nger alla \xF6ppnade kartor -closeAll.mnemonic=S +closeAllMaps.text=St\xE4ng alla +closeAllMaps.shortdescription=St\xE4ng alla kartor +closeAllMaps.longdescription=St\xE4nger alla \xF6ppnade kartor +closeAllMaps.mnemonic=S #saveAll.text= #saveAll.shortdescription= This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-16 18:32:25
|
Revision: 7827 http://gridarta.svn.sourceforge.net/gridarta/?rev=7827&view=rev Author: akirschbaum Date: 2010-05-16 18:32:19 +0000 (Sun, 16 May 2010) Log Message: ----------- Rename action 'saveAll' to 'saveAllMaps'. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/mapmanager/MapManagerActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:30:24 UTC (rev 7826) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-16 18:32:19 UTC (rev 7827) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent closeMap - saveMap saveMapAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:30:24 UTC (rev 7826) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-16 18:32:19 UTC (rev 7827) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent closeMap - saveMap saveMapAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:30:24 UTC (rev 7826) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-16 18:32:19 UTC (rev 7827) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent closeMap - saveMap saveMapAs saveAll revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes Modified: trunk/src/app/net/sf/gridarta/mapmanager/MapManagerActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/mapmanager/MapManagerActions.java 2010-05-16 18:30:24 UTC (rev 7826) +++ trunk/src/app/net/sf/gridarta/mapmanager/MapManagerActions.java 2010-05-16 18:32:19 UTC (rev 7827) @@ -50,9 +50,9 @@ private final Action aCloseAllMaps = ACTION_BUILDER.createAction(true, "closeAllMaps", this); /** - * The action for "save all". + * The action for "save all maps". */ - private final Action aSaveAll = ACTION_BUILDER.createAction(true, "saveAll", this); + private final Action aSaveAllMaps = ACTION_BUILDER.createAction(true, "saveAllMaps", this); /** * Creates a new instance. @@ -73,7 +73,7 @@ /** * Invoked when the user wants to save all map files. */ - public void saveAll() { + public void saveAllMaps() { fileControl.saveAll(); } Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:30:24 UTC (rev 7826) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-16 18:32:19 UTC (rev 7827) @@ -95,9 +95,9 @@ closeAllMaps.mnemonic=L closeAllMaps.accel=ctrl shift pressed W -saveAll.text=Save All +closeAllMaps.text=Save All saveAll.shortdescription=Save all maps -saveAll.longdescription=Saves all opened maps +closeAllMaps.longdescription=Saves all opened maps gridVisible.text=Show Grid gridVisible.mnemonic=G Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:30:24 UTC (rev 7826) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-16 18:32:19 UTC (rev 7827) @@ -83,9 +83,9 @@ closeAllMaps.longdescription=Schlie\xDFt alle ge\xF6ffneten Karten. closeAllMaps.mnemonic=A -saveAll.text=Alle speichern -saveAll.shortdescription=Alle Karten speichern -saveAll.longdescription=Speichert alle ge\xF6ffneten Karten. +closeAllMaps.text=Alle speichern +closeAllMaps.shortdescription=Alle Karten speichern +closeAllMaps.longdescription=Speichert alle ge\xF6ffneten Karten. gridVisible.text=Gitter anzeigen gridVisible.mnemonic=G Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:30:24 UTC (rev 7826) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-16 18:32:19 UTC (rev 7827) @@ -82,9 +82,9 @@ #closeAllMaps.longdescription= closeAllMaps.mnemonic=T -#saveAll.text= -#saveAll.shortdescription= -#saveAll.longdescription= +#closeAllMaps.text= +#closeAllMaps.shortdescription= +#closeAllMaps.longdescription= gridVisible.text=Montrer la grille gridVisible.mnemonic=G Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:30:24 UTC (rev 7826) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-16 18:32:19 UTC (rev 7827) @@ -82,9 +82,9 @@ closeAllMaps.longdescription=St\xE4nger alla \xF6ppnade kartor closeAllMaps.mnemonic=S -#saveAll.text= -#saveAll.shortdescription= -#saveAll.longdescription= +#closeAllMaps.text= +#closeAllMaps.shortdescription= +#closeAllMaps.longdescription= gridVisible.text=Visa rutn\xE4t gridVisible.mnemonic=R This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-18 07:13:36
|
Revision: 7836 http://gridarta.svn.sourceforge.net/gridarta/?rev=7836&view=rev Author: akirschbaum Date: 2010-05-18 07:13:29 +0000 (Tue, 18 May 2010) Log Message: ----------- Remove unused text resource. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties 2010-05-17 17:44:58 UTC (rev 7835) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties 2010-05-18 07:13:29 UTC (rev 7836) @@ -150,14 +150,6 @@ archetypes.mnemonic=A -####### -# View - -viewShow.text=Show Only -viewShow.shortdescription=Select some filters to be drawn exclusively -viewShow.mnemonic=S - - ######### # Window Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties 2010-05-17 17:44:58 UTC (rev 7835) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties 2010-05-18 07:13:29 UTC (rev 7836) @@ -89,14 +89,6 @@ archetypes.mnemonic=T -####### -# View - -viewShow.text=Zeige nur -viewShow.shortdescription= -viewShow.mnemonic=Z - - ######### # Window Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties 2010-05-17 17:44:58 UTC (rev 7835) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties 2010-05-18 07:13:29 UTC (rev 7836) @@ -91,14 +91,6 @@ archetypes.mnemonic=A -####### -# View - -#viewShow.text= -#viewShow.shortdescription= -#viewShow.mnemonic= - - ######### # Window Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties 2010-05-17 17:44:58 UTC (rev 7835) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties 2010-05-18 07:13:29 UTC (rev 7836) @@ -89,14 +89,6 @@ archetypes.mnemonic=C -####### -# View - -viewShow.text=Visa endast -viewShow.shortdescription=V\xE4lj kategorier att visa exklusivt -viewShow.mnemonic=V - - ######### # Window Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties 2010-05-17 17:44:58 UTC (rev 7835) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties 2010-05-18 07:13:29 UTC (rev 7836) @@ -148,14 +148,6 @@ archetypes.mnemonic=A -####### -# View - -viewShow.text=Show Only -viewShow.shortdescription=Select some filters to be drawn exclusively -viewShow.mnemonic=S - - ######### # Window Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties 2010-05-17 17:44:58 UTC (rev 7835) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties 2010-05-18 07:13:29 UTC (rev 7836) @@ -87,14 +87,6 @@ archetypes.mnemonic=T -####### -# View - -viewShow.text=Zeige nur -viewShow.shortdescription= -viewShow.mnemonic=Z - - ######### # Window Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties 2010-05-17 17:44:58 UTC (rev 7835) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties 2010-05-18 07:13:29 UTC (rev 7836) @@ -89,14 +89,6 @@ archetypes.mnemonic=A -####### -# View - -#viewShow.text= -#viewShow.shortdescription= -#viewShow.mnemonic= - - ######### # Window Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties 2010-05-17 17:44:58 UTC (rev 7835) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties 2010-05-18 07:13:29 UTC (rev 7836) @@ -87,14 +87,6 @@ archetypes.mnemonic=C -####### -# View - -viewShow.text=Visa endast -viewShow.shortdescription=V\xE4lj kategorier att visa exklusivt -viewShow.mnemonic=V - - ######### # Window This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-18 07:30:43
|
Revision: 7837 http://gridarta.svn.sourceforge.net/gridarta/?rev=7837&view=rev Author: akirschbaum Date: 2010-05-18 07:30:36 +0000 (Tue, 18 May 2010) Log Message: ----------- Move text resources to common code base. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_de.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_fr.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_sv.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -128,11 +128,6 @@ ####### # Cursor -cursor.text=Cursor -cursor.mnemonic=C - -moveCursor.text=Move Cursor - goNorth.accel=NUMPAD9 goNorthEast.accel=NUMPAD6 goEast.accel=NUMPAD3 @@ -143,28 +138,6 @@ goNorthWest.accel=NUMPAD8 -############ -# Archetypes - -archetypes.text=Archetypes -archetypes.mnemonic=A - - -######### -# Window - -window.text=Window -window.mnemonic=W - -nextWindow.text=Next Window -nextWindow.shortdescription=Display next window -nextWindow.accel=shift pressed PAGE_UP - -prevWindow.text=Previous Window -prevWindow.shortdescription=Display previous window -prevWindow.accel=shift pressed PAGE_DOWN - - ####### # Help Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -74,35 +74,6 @@ ####### -# Cursor - -cursor.text=Cursor -cursor.mnemonic=C - -moveCursor.text=Cursor bewegen - - -############ -# Archetypes - -archetypes.text=Archetypen -archetypes.mnemonic=T - - -######### -# Window - -window.text=Fenster -window.mnemonic=F - -nextWindow.text=N\xE4chstes Fenster -nextWindow.shortdescription=Zeige das n\xE4chste Fenster - -prevWindow.text=Vorheriges Fenster -prevWindow.shortdescription=Zeige das vorherige Fenster - - -####### # Help about.title=\xDCber Gridarta f\xFCr Atrinik Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -76,35 +76,6 @@ ####### -# Cursor - -#cursor.text= -#cursor.mnemonic= - -#moveCursor.text= - - -############ -# Archetypes - -archetypes.text=Arches -archetypes.mnemonic=A - - -######### -# Window - -window.text=Fen\xEAtres -window.mnemonic=N - -nextWindow.text=Fen\xEAtre suivante -nextWindow.shortdescription=Affiche la fen\xEAtre suivante - -prevWindow.text=Fen\xEAtre pr\xE9c\xE9dente -prevWindow.shortdescription=Affiche la fen\xEAtre pr\xE9c\xE9dente - - -####### # Help #about.title= Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -74,35 +74,6 @@ ####### -# Cursor - -cursor.text=Mark\xF6r -cursor.mnemonic=M - -moveCursor.text=Flytta mark\xF6r - - -############ -# Archetypes - -#archetypes.text= -archetypes.mnemonic=C - - -######### -# Window - -window.text=F\xF6nster -window.mnemonic=F - -nextWindow.text=N\xE4sta -nextWindow.shortdescription=Visa n\xE4sta f\xF6nster - -prevWindow.text=F\xF6reg\xE5ende -prevWindow.shortdescription=Visa f\xF6reg\xE5ende f\xF6nster - - -####### # Help about.title=Om Gridarta for Atrinik Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -117,11 +117,6 @@ ####### # Cursor -cursor.text=Cursor -cursor.mnemonic=C - -moveCursor.text=Move Cursor - goNorth.accel=NUMPAD8 goNorthEast.accel=NUMPAD9 goEast.accel=NUMPAD6 @@ -132,31 +127,6 @@ goNorthWest.accel=NUMPAD7 -############ -# Archetypes - -archetypes.text=Archetypes -archetypes.mnemonic=A - - -######### -# Window - -window.text=Window -window.mnemonic=W - -nextWindow.text=Next Window -nextWindow.shortdescription=Display next window -nextWindow.accel=shift pressed PAGE_UP - -prevWindow.text=Previous Window -prevWindow.shortdescription=Display previous window -prevWindow.accel=shift pressed PAGE_DOWN - - -####### -# Help - about.title=About Gridarta for Crossfire about=<html><h1 align="center">Gridarta for Crossfire</h1><p>Editor for Crossfire MMORPG maps and arches</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Version:</td><td>{1}</td></tr><tr><td align="right">by:</td><td>{2}</td></tr><tr><td align="right">at:</td><td>{3}</td></tr></table></html> aboutTab.title=About Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_de.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_de.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_de.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -64,35 +64,6 @@ ####### -# Cursor - -cursor.text=Cursor -cursor.mnemonic=C - -moveCursor.text=Cursor bewegen - - -############ -# Archetypes - -archetypes.text=Archetypen -archetypes.mnemonic=T - - -######### -# Window - -window.text=Fenster -window.mnemonic=F - -nextWindow.text=N\xE4chstes Fenster -nextWindow.shortdescription=Zeige das n\xE4chste Fenster - -prevWindow.text=Vorheriges Fenster -prevWindow.shortdescription=Zeige das vorherige Fenster - - -####### # Help about.title=\xDCber Gridarta f\xFCr Crossfire Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_fr.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_fr.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_fr.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -65,35 +65,6 @@ ####### -# Cursor - -#cursor.text= -#cursor.mnemonic= - -#moveCursor.text= - - -############ -# Archetypes - -archetypes.text=Arches -archetypes.mnemonic=A - - -######### -# Window - -window.text=Fen\xEAtres -window.mnemonic=N - -nextWindow.text=Fen\xEAtre suivante -nextWindow.shortdescription=Affiche la fen\xEAtre suivante - -prevWindow.text=Fen\xEAtre pr\xE9c\xE9dente -prevWindow.shortdescription=Affiche la fen\xEAtre pr\xE9c\xE9dente - - -####### # Help #about.title= Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_sv.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_sv.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_sv.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -64,35 +64,6 @@ ####### -# Cursor - -cursor.text=Mark\xF6r -cursor.mnemonic=M - -moveCursor.text=Flytta mark\xF6r - - -############ -# Archetypes - -#archetypes.text= -archetypes.mnemonic=C - - -######### -# Window - -window.text=F\xF6nster -window.mnemonic=F - -nextWindow.text=N\xE4sta -nextWindow.shortdescription=Visa n\xE4sta f\xF6nster - -prevWindow.text=F\xF6reg\xE5ende -prevWindow.shortdescription=Visa f\xF6reg\xE5ende f\xF6nster - - -####### # Help about.title=Om Gridarta for Crossfire Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -126,11 +126,6 @@ ####### # Cursor -cursor.text=Cursor -cursor.mnemonic=C - -moveCursor.text=Move Cursor - goNorth.accel=NUMPAD9 goNorthEast.accel=NUMPAD6 goEast.accel=NUMPAD3 @@ -141,28 +136,6 @@ goNorthWest.accel=NUMPAD8 -############ -# Archetypes - -archetypes.text=Archetypes -archetypes.mnemonic=A - - -######### -# Window - -window.text=Window -window.mnemonic=W - -nextWindow.text=Next Window -nextWindow.shortdescription=Display next window -nextWindow.accel=shift pressed PAGE_UP - -prevWindow.text=Previous Window -prevWindow.shortdescription=Display previous window -prevWindow.accel=shift pressed PAGE_DOWN - - ####### # Help Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -72,35 +72,6 @@ ####### -# Cursor - -cursor.text=Cursor -cursor.mnemonic=C - -moveCursor.text=Cursor bewegen - - -############ -# Archetypes - -archetypes.text=Archetypen -archetypes.mnemonic=T - - -######### -# Window - -window.text=Fenster -window.mnemonic=F - -nextWindow.text=N\xE4chstes Fenster -nextWindow.shortdescription=Zeige das n\xE4chste Fenster - -prevWindow.text=Vorheriges Fenster -prevWindow.shortdescription=Zeige das vorherige Fenster - - -####### # Help about.title=\xDCber Gridarta f\xFCr Daimonin Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -74,35 +74,6 @@ ####### -# Cursor - -#cursor.text= -#cursor.mnemonic= - -#moveCursor.text= - - -############ -# Archetypes - -archetypes.text=Arches -archetypes.mnemonic=A - - -######### -# Window - -window.text=Fen\xEAtres -window.mnemonic=N - -nextWindow.text=Fen\xEAtre suivante -nextWindow.shortdescription=Affiche la fen\xEAtre suivante - -prevWindow.text=Fen\xEAtre pr\xE9c\xE9dente -prevWindow.shortdescription=Affiche la fen\xEAtre pr\xE9c\xE9dente - - -####### # Help #about.title= Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -72,35 +72,6 @@ ####### -# Cursor - -cursor.text=Mark\xF6r -cursor.mnemonic=M - -moveCursor.text=Flytta mark\xF6r - - -############ -# Archetypes - -#archetypes.text= -archetypes.mnemonic=C - - -######### -# Window - -window.text=F\xF6nster -window.mnemonic=F - -nextWindow.text=N\xE4sta -nextWindow.shortdescription=Visa n\xE4sta f\xF6nster - -prevWindow.text=F\xF6reg\xE5ende -prevWindow.shortdescription=Visa f\xF6reg\xE5ende f\xF6nster - - -####### # Help about.title=Om Gridarta for Daimonin Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -37,6 +37,11 @@ # Menus # File menu +cursor.text=Cursor +cursor.mnemonic=C + +moveCursor.text=Move Cursor + goNorth.text=Move Cursor North goNorthEast.text=Move Cursor Northeast @@ -1188,6 +1193,9 @@ ############ # Archetypes +archetypes.text=Archetypes +archetypes.mnemonic=A + displayGameObjectNames.text=Display game object names displayArchetypeNames.text=Display archetype names displayIconsOnly.text=Display icons only @@ -1196,6 +1204,21 @@ findArchetypes.accel=ctrl alt pressed A +######### +# Window + +window.text=Window +window.mnemonic=W + +nextWindow.text=Next Window +nextWindow.shortdescription=Display next window +nextWindow.accel=shift pressed PAGE_UP + +prevWindow.text=Previous Window +prevWindow.shortdescription=Display previous window +prevWindow.accel=shift pressed PAGE_DOWN + + ######################## # Find archetypes dialog Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -37,6 +37,11 @@ # Menus # File menu +cursor.text=Cursor +cursor.mnemonic=C + +moveCursor.text=Cursor bewegen + goNorth.text=Cursor nach Nord goNorthEast.text=Cursor nach Nordost @@ -1019,6 +1024,9 @@ ############ # Archetypes +archetypes.text=Archetypen +archetypes.mnemonic=T + displayGameObjectNames.text=Objektnamen anzeigen displayArchetypeNames.text=Archetypnamen anzeigen displayIconsOnly.text=Bilder anzeigen @@ -1026,6 +1034,19 @@ findArchetypes.text=Archetypen finden +######### +# Window + +window.text=Fenster +window.mnemonic=F + +nextWindow.text=N\xE4chstes Fenster +nextWindow.shortdescription=Zeige das n\xE4chste Fenster + +prevWindow.text=Vorheriges Fenster +prevWindow.shortdescription=Zeige das vorherige Fenster + + ######################## # Find archetypes dialog Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -37,6 +37,11 @@ # Menus # File menu +#cursor.text= +#cursor.mnemonic= + +#moveCursor.text= + #goNorth.text= #goNorthEast.text= @@ -1012,6 +1017,9 @@ ############ # Archetypes +archetypes.text=Arches +archetypes.mnemonic=A + #displayGameObjectNames.text= #displayArchetypeNames.text= #displayIconsOnly.text= @@ -1019,6 +1027,19 @@ #findArchetypes.text= +######### +# Window + +window.text=Fen\xEAtres +window.mnemonic=N + +nextWindow.text=Fen\xEAtre suivante +nextWindow.shortdescription=Affiche la fen\xEAtre suivante + +prevWindow.text=Fen\xEAtre pr\xE9c\xE9dente +prevWindow.shortdescription=Affiche la fen\xEAtre pr\xE9c\xE9dente + + ######################## # Find archetypes dialog Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-18 07:13:29 UTC (rev 7836) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-18 07:30:36 UTC (rev 7837) @@ -37,6 +37,11 @@ # Menus # File menu +cursor.text=Mark\xF6r +cursor.mnemonic=M + +moveCursor.text=Flytta mark\xF6r + goNorth.text=Flytta mark\xF6r norrut goNorthEast.text=Flytta mark\xF6r nord\xF6st @@ -1019,6 +1024,9 @@ ############ # Archetypes +#archetypes.text= +archetypes.mnemonic=C + #displayGameObjectNames.text= #displayArchetypeNames.text= #displayIconsOnly.text= @@ -1026,6 +1034,19 @@ #findArchetypes.text= +######### +# Window + +window.text=F\xF6nster +window.mnemonic=F + +nextWindow.text=N\xE4sta +nextWindow.shortdescription=Visa n\xE4sta f\xF6nster + +prevWindow.text=F\xF6reg\xE5ende +prevWindow.shortdescription=Visa f\xF6reg\xE5ende f\xF6nster + + ######################## # Find archetypes dialog This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-18 20:05:58
|
Revision: 7838 http://gridarta.svn.sourceforge.net/gridarta/?rev=7838&view=rev Author: akirschbaum Date: 2010-05-18 20:05:51 +0000 (Tue, 18 May 2010) Log Message: ----------- Move text resources to common code base. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_de.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_fr.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_sv.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -75,7 +75,6 @@ # Map Properties mapMap=Map -mapBackgroundMusic=Background music mapRegion=Region mapOutdoor=Outdoor mapOptions=Options @@ -91,8 +90,6 @@ mapPvP=PvP Enabled mapPlugins=Plugins mapText=Map Text -mapTilesNoMapFileNoMapTilePane.title=Map tiles card unavailable -mapTilesNoMapFileNoMapTilePane.message=The map has no file name (it wasn''t saved yet).\nA map without filename cannot be attached to other maps.\nTherefore, the Map tiles card is unavailable. ##################### @@ -111,9 +108,6 @@ ####### # Map -map.text=Map -map.mnemonic=M - enterExit.accel=ctrl pressed NUMPAD5 enterNorthMap.accel=ctrl pressed NUMPAD9 enterNorthEastMap.accel=ctrl pressed NUMPAD6 @@ -143,48 +137,10 @@ about.title=About Gridarta for Atrinik about=<html><h1 align="center">Gridarta for Atrinik</h1><p>Editor for Atrinik MMORPG maps and arches</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Version:</td><td>{1}</td></tr><tr><td align="right">by:</td><td>{2}</td></tr><tr><td align="right">at:</td><td>{3}</td></tr></table></html> -aboutTab.title=About -license.text=License... -license.mnemonic=L -license.title=License -license.missing=Cannot find License file. -license.1.title=Gridarta -license.1.file=COPYING -license.2.title=JAPI -license.2.file=japi.jar-LICENSE -license.3.title=SUN Icons -license.3.file=jlfgr-1_0.jar-LICENSE -license.4.title=BeanShell -license.4.file=bsh-LICENSE -license.5.title=Log4J -license.5.file=log4j-1.2.13.jar-LICENSE -license.6.title=GNU getopt -license.6.file=java-getopt-1.0.13.jar-LICENSE - -aboutRuntimeProperties.title=Runtime properties aboutBuildProperties.title=Build properties -############ -# Map window - -mapwindowFile.text=File -mapwindowFile.mnemonic=F - -mapwindowEdit.text=Edit -mapwindowEdit.mnemonic=E - -mapwindowMap.text=Map -mapwindowMap.mnemonic=M - -mapwindowCursor.text=Cursor -mapwindowCursor.mnemonic=C - - ####################### # Various Log Messages -logDuplicateAnimation=Duplicate Animation: {0} -logInventoryInDefArch=Found inventory Object in def arch: {0} -logFoundCoordInDefArchSingleSquareOrHead=Found {0} cmd in single square or head (add it to arch text): {1} logDefArchWithInvalidMpartNr=Arch part {0} has mpart_nr {2}, but head part {1} has mpart_nr {3} Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_de.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -33,7 +33,6 @@ # Map Properties mapMap=Karte -mapBackgroundMusic=Hintergrundmusik mapRegion=Region mapOutdoor=Im Freien mapOptions=Optionen @@ -49,8 +48,6 @@ mapPvP=Spieler gegen Spieler aktiv mapPlugins=Plugins mapText=Kartentext -mapTilesNoMapFileNoMapTilePane.title=Verbindungspfade nicht verf\xFCgbar -mapTilesNoMapFileNoMapTilePane.message=Die Karte wurde noch nicht gespeichert. Daher hat sie noch keinen Dateinamen.\nEine Karte ohne Dateiname kann nicht mit anderen Karten verbunden werden.\nDaher ist der Reiter "Verbindungspfade" zur Zeit nicht verf\xFCgbar. ##################### @@ -67,39 +64,9 @@ ####### -# Map - -map.text=Karte -map.mnemonic=K - - -####### # Help about.title=\xDCber Gridarta f\xFCr Atrinik about=<html><h1 align="center">Gridarta f\xFCr Atrinik</h1><p>Editor f\xFCr Atrinik MMORPG Karten und Objekte</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Version:</td><td>{1}</td></tr><tr><td align="right">Entwickler:</td><td>{2}</td></tr><tr><td align="right">Erstellung:</td><td>{3}</td></tr></table></html> -aboutTab.title=\xDCber -license.text=Lizenz... -license.mnemonic=L -license.title=Lizenz -license.missing=Kann Lizenzdatei nicht finden. - -aboutRuntimeProperties.title=Laufzeitparameter #aboutBuildProperties.title= - - -############ -# Map window - -mapwindowFile.text=Datei -mapwindowFile.mnemonic=D - -mapwindowEdit.text=Bearbeiten -mapwindowEdit.mnemonic=B - -mapwindowMap.text=Karte -mapwindowMap.mnemonic=K - -mapwindowCursor.text=Cursor -mapwindowCursor.mnemonic=C Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_fr.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -34,7 +34,6 @@ # Map Properties #mapMap= -#mapBackgroundMusic= #mapRegion= #mapOutdoor= #mapOptions= @@ -50,8 +49,6 @@ #mapPvP= #mapPlugins= #mapText= -#mapTilesNoMapFileNoMapTilePane.title= -#mapTilesNoMapFileNoMapTilePane.message= ##################### @@ -69,39 +66,9 @@ ####### -# Map - -map.text=Carte -map.mnemonic=C - - -####### # Help #about.title= #about= -#aboutTab.title= -#license.text= -#license.mnemonic= -#license.title= -#license.missing= - -#aboutRuntimeProperties.title= #aboutBuildProperties.title= - - -############ -# Map window - -mapwindowFile.text=Fichier -mapwindowFile.mnemonic=F - -mapwindowEdit.text=Edition -mapwindowEdit.mnemonic=E - -mapwindowMap.text=Carte -mapwindowMap.mnemonic=C - -#mapwindowCursor.text= -mapwindowCursor.mnemonic=U Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/messages_sv.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -33,7 +33,6 @@ # Map Properties mapMap=Karta -mapBackgroundMusic=Bakgrundsljud #mapRegion= mapOutdoor=Utomhus mapOptions=Inst\xE4llningar @@ -49,8 +48,6 @@ mapPvP=Spelare mot Spelare #mapPlugins= mapText=Karttext -mapTilesNoMapFileNoMapTilePane.title=N\xE4rliggande kartor ej tillg\xE4ngligt -mapTilesNoMapFileNoMapTilePane.message=Kartan har inget filnamn (den \xE4r inte sparad \xE4nnu).\nEn karta utan filnamn kan inte anslutas till andra kartor.\nD\xE4rf\xF6r kan du inte v\xE4lja n\xE4rliggande kartor utan att f\xF6rst spara kartan. ##################### @@ -67,39 +64,9 @@ ####### -# Map - -map.text=Karta -map.mnemonic=K - - -####### # Help about.title=Om Gridarta for Atrinik about=<html><h1 align="center">Gridarta for Daimoin</h1><p>Editor for Atrinik MMORPG maps and arches</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Build number:</td><td>{1}</td></tr><tr><td align="right">av:</td><td>{2}</td></tr><tr><td align="right">datum:</td><td>{3}</td></tr></table></html> -aboutTab.title=Om -license.text=Licens... -license.mnemonic=L -license.title=Licens -license.missing=Kan inte hitta licensfilen. - -aboutRuntimeProperties.title=Runtime properties aboutBuildProperties.title=Build properties - - -############ -# Map window - -mapwindowFile.text=Arkiv -mapwindowFile.mnemonic=A - -mapwindowEdit.text=Redigera -mapwindowEdit.mnemonic=R - -mapwindowMap.text=Karta -mapwindowMap.mnemonic=K - -mapwindowCursor.text=Mark\xF6r -mapwindowCursor.mnemonic=M Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -85,7 +85,6 @@ mapUnique=Unique map mapOutdoor=Outdoor map mapNosmooth=Nosmooth map -mapBackgroundMusic=Background music mapShopType=Shop type mapShopGreed=Greed mapUpperPriceLimit=Upper price limit @@ -97,16 +96,11 @@ mapWindSpeed=Wind speed mapWindDirection=Wind direction mapSkySetting=Sky setting -mapTilesNoMapFileNoMapTilePane.title=Map tiles card unavailable -mapTilesNoMapFileNoMapTilePane.message=The map has no file name (it wasn''t saved yet).\nA map without filename cannot be attached to other maps.\nTherefore, the Map tiles card is unavailable. ####### # Map -map.text=Map -map.mnemonic=M - enterExit.accel=ctrl pressed E enterNorthMap.accel=ctrl pressed UP enterEastMap.accel=ctrl pressed RIGHT @@ -129,48 +123,3 @@ about.title=About Gridarta for Crossfire about=<html><h1 align="center">Gridarta for Crossfire</h1><p>Editor for Crossfire MMORPG maps and arches</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Version:</td><td>{1}</td></tr><tr><td align="right">by:</td><td>{2}</td></tr><tr><td align="right">at:</td><td>{3}</td></tr></table></html> -aboutTab.title=About - -license.text=License... -license.mnemonic=L -license.title=License -license.missing=Cannot find License file. -license.1.title=Gridarta -license.1.file=COPYING -license.2.title=JAPI -license.2.file=japi.jar-LICENSE -license.3.title=SUN Icons -license.3.file=jlfgr-1_0.jar-LICENSE -license.4.title=BeanShell -license.4.file=bsh-LICENSE -license.5.title=Log4J -license.5.file=log4j-1.2.13.jar-LICENSE -license.6.title=JDOM -license.6.file=jdom.jar-LICENSE -license.7.title=GNU getopt -license.7.file=java-getopt-1.0.13.jar-LICENSE - -aboutRuntimeProperties.title=Runtime properties - - -############ -# Map window - -mapwindowFile.text=File -mapwindowFile.mnemonic=F - -mapwindowEdit.text=Edit -mapwindowEdit.mnemonic=E - -mapwindowMap.text=Map -mapwindowMap.mnemonic=M - -mapwindowCursor.text=Cursor -mapwindowCursor.mnemonic=C - - -####################### -# Various Log Messages -logDuplicateAnimation=Duplicate Animation: {0} -logInventoryInDefArch=Found inventory Object in def arch: {0} -logFoundCoordInDefArchSingleSquareOrHead=Found {0} cmd in single square or head (add it to arch text): {1} Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_de.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_de.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_de.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -40,7 +40,6 @@ mapUnique=Permanente Karte mapOutdoor=Im Freien mapNosmooth=Ohne Bild\xFCberg\xE4ng -mapBackgroundMusic=Hintergrundmusik mapShopType=Typ mapShopGreed=Geldgier mapLowerPriceLimit=Mindestpreis @@ -52,43 +51,10 @@ mapWindSpeed=Windgeschwindigkeit mapWindDirection=Windrichtung mapSkySetting=Wetterbedingung -mapTilesNoMapFileNoMapTilePane.title=Verbindungspfade nicht verf\xFCgbar -mapTilesNoMapFileNoMapTilePane.message=Die Karte wurde noch nicht gespeichert. Daher hat sie noch keinen Dateinamen.\nEine Karte ohne Dateiname kann nicht mit anderen Karten verbunden werden.\nDaher ist der Reiter "Verbindungspfade" zur Zeit nicht verf\xFCgbar. ####### -# Map - -map.text=Karte -map.mnemonic=K - - -####### # Help about.title=\xDCber Gridarta f\xFCr Crossfire about=<html><h1 align="center">Gridarta f\xFCr Crossfire</h1><p>Editor f\xFCr Crossfire MMORPG Karten und Objekte</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Version:</td><td>{1}</td></tr><tr><td align="right">Entwickler:</td><td>{2}</td></tr><tr><td align="right">Erstellung:</td><td>{3}</td></tr></table></html> -aboutTab.title=\xDCber - -license.text=Lizenz... -license.mnemonic=L -license.title=Lizenz -license.missing=Kann Lizenzdatei nicht finden. - -aboutRuntimeProperties.title=Laufzeitparameter - - -############ -# Map window - -mapwindowFile.text=Datei -mapwindowFile.mnemonic=D - -mapwindowEdit.text=Bearbeiten -mapwindowEdit.mnemonic=B - -mapwindowMap.text=Karte -mapwindowMap.mnemonic=K - -mapwindowCursor.text=Cursor -mapwindowCursor.mnemonic=C Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_fr.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_fr.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_fr.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -41,7 +41,6 @@ #mapUnique= #mapOutdoor= #mapNosmooth= -#mapBackgroundMusic= #mapShopType= #mapShopGreed= #mapUpperPriceLimit= @@ -53,43 +52,10 @@ #mapWindSpeed= #mapWindDirection= #mapSkySetting= -#mapTilesNoMapFileNoMapTilePane.title= -#mapTilesNoMapFileNoMapTilePane.message= ####### -# Map - -map.text=Carte -map.mnemonic=C - - -####### # Help #about.title= #about= -#aboutTab.title= - -#license.text= -#license.mnemonic= -#license.title= -#license.missing= - -#aboutRuntimeProperties.title= - - -############ -# Map window - -mapwindowFile.text=Fichier -mapwindowFile.mnemonic=F - -mapwindowEdit.text=Edition -mapwindowEdit.mnemonic=E - -mapwindowMap.text=Carte -mapwindowMap.mnemonic=C - -#mapwindowCursor.text= -mapwindowCursor.mnemonic=U Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_sv.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_sv.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/messages_sv.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -40,7 +40,6 @@ #mapUnique= mapOutdoor=Utomhus #mapNosmooth= -#mapBackgroundMusic= #mapShopType= #mapShopGreed= #mapUpperPriceLimit= @@ -52,43 +51,10 @@ #mapWindSpeed= #mapWindDirection= #mapSkySetting= -mapTilesNoMapFileNoMapTilePane.title=N\xE4rliggande kartor ej tillg\xE4ngligt -mapTilesNoMapFileNoMapTilePane.message=Kartan har inget filnamn (den \xE4r inte sparad \xE4nnu).\nEn karta utan filnamn kan inte anslutas till andra kartor.\nD\xE4rf\xF6r kan du inte v\xE4lja n\xE4rliggande kartor utan att f\xF6rst spara kartan. ####### -# Map - -map.text=Karta -map.mnemonic=K - - -####### # Help about.title=Om Gridarta for Crossfire about=<html><h1 align="center">Gridarta for Crossfire</h1><p>Editor for Crossfire MMORPG maps and arches</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Build number:</td><td>{1}</td></tr><tr><td align="right">av:</td><td>{2}</td></tr><tr><td align="right">datum:</td><td>{3}</td></tr></table></html> -aboutTab.title=Om - -license.text=Licens... -license.mnemonic=L -license.title=Licens -license.missing=Kan inte hitta licensfilen. - -aboutRuntimeProperties.title=Runtime properties - - -############ -# Map window - -mapwindowFile.text=Arkiv -mapwindowFile.mnemonic=A - -mapwindowEdit.text=Redigera -mapwindowEdit.mnemonic=R - -mapwindowMap.text=Karta -mapwindowMap.mnemonic=K - -mapwindowCursor.text=Mark\xF6r -mapwindowCursor.mnemonic=M Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -75,7 +75,6 @@ # Map Properties mapMap=Map -mapBackgroundMusic=Background music mapOutdoor=Outdoor mapOptions=Options mapNoSave=No Save @@ -89,8 +88,6 @@ mapInstantDeath=Instant Death mapPvP=PvP Enabled mapText=Map Text -mapTilesNoMapFileNoMapTilePane.title=Map tiles card unavailable -mapTilesNoMapFileNoMapTilePane.message=The map has no file name (it wasn''t saved yet).\nA map without filename cannot be attached to other maps.\nTherefore, the Map tiles card is unavailable. ##################### @@ -109,9 +106,6 @@ ####### # Map -map.text=Map -map.mnemonic=M - enterExit.accel=ctrl pressed NUMPAD5 enterNorthMap.accel=ctrl pressed NUMPAD9 enterNorthEastMap.accel=ctrl pressed NUMPAD6 @@ -141,48 +135,10 @@ about.title=About Gridarta for Daimonin about=<html><h1 align="center">Gridarta for Daimonin</h1><p>Editor for Daimonin MMORPG maps and arches</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Version:</td><td>{1}</td></tr><tr><td align="right">by:</td><td>{2}</td></tr><tr><td align="right">at:</td><td>{3}</td></tr></table></html> -aboutTab.title=About -license.text=License... -license.mnemonic=L -license.title=License -license.missing=Cannot find License file. -license.1.title=Gridarta -license.1.file=COPYING -license.2.title=JAPI -license.2.file=japi.jar-LICENSE -license.3.title=SUN Icons -license.3.file=jlfgr-1_0.jar-LICENSE -license.4.title=BeanShell -license.4.file=bsh-LICENSE -license.5.title=Log4J -license.5.file=log4j-1.2.13.jar-LICENSE -license.6.title=GNU getopt -license.6.file=java-getopt-1.0.13.jar-LICENSE - -aboutRuntimeProperties.title=Runtime properties aboutBuildProperties.title=Build properties -############ -# Map window - -mapwindowFile.text=File -mapwindowFile.mnemonic=F - -mapwindowEdit.text=Edit -mapwindowEdit.mnemonic=E - -mapwindowMap.text=Map -mapwindowMap.mnemonic=M - -mapwindowCursor.text=Cursor -mapwindowCursor.mnemonic=C - - ####################### # Various Log Messages -logDuplicateAnimation=Duplicate Animation: {0} -logInventoryInDefArch=Found inventory Object in def arch: {0} -logFoundCoordInDefArchSingleSquareOrHead=Found {0} cmd in single square or head (add it to arch text): {1} logDefArchWithInvalidMpartNr=Arch part {0} has mpart_nr {2}, but head part {1} has mpart_nr {3} Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_de.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -33,7 +33,6 @@ # Map Properties mapMap=Karte -mapBackgroundMusic=Hintergrundmusik mapOutdoor=Im Freien mapOptions=Optionen mapNoSave=Nicht speichern @@ -47,8 +46,6 @@ mapInstantDeath=Sofort-Tod mapPvP=Spieler gegen Spieler aktiv mapText=Kartentext -mapTilesNoMapFileNoMapTilePane.title=Verbindungspfade nicht verf\xFCgbar -mapTilesNoMapFileNoMapTilePane.message=Die Karte wurde noch nicht gespeichert. Daher hat sie noch keinen Dateinamen.\nEine Karte ohne Dateiname kann nicht mit anderen Karten verbunden werden.\nDaher ist der Reiter "Verbindungspfade" zur Zeit nicht verf\xFCgbar. ##################### @@ -65,39 +62,9 @@ ####### -# Map - -map.text=Karte -map.mnemonic=K - - -####### # Help about.title=\xDCber Gridarta f\xFCr Daimonin about=<html><h1 align="center">Gridarta f\xFCr Daimonin</h1><p>Editor f\xFCr Daimonin MMORPG Karten und Objekte</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Version:</td><td>{1}</td></tr><tr><td align="right">Entwickler:</td><td>{2}</td></tr><tr><td align="right">Erstellung:</td><td>{3}</td></tr></table></html> -aboutTab.title=\xDCber -license.text=Lizenz... -license.mnemonic=L -license.title=Lizenz -license.missing=Kann Lizenzdatei nicht finden. - -aboutRuntimeProperties.title=Laufzeitparameter #aboutBuildProperties.title= - - -############ -# Map window - -mapwindowFile.text=Datei -mapwindowFile.mnemonic=D - -mapwindowEdit.text=Bearbeiten -mapwindowEdit.mnemonic=B - -mapwindowMap.text=Karte -mapwindowMap.mnemonic=K - -mapwindowCursor.text=Cursor -mapwindowCursor.mnemonic=C Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_fr.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -34,7 +34,6 @@ # Map Properties #mapMap= -#mapBackgroundMusic= #mapOutdoor= #mapOptions= #mapNoSave= @@ -48,8 +47,6 @@ #mapInstantDeath= #mapPvP= #mapText= -#mapTilesNoMapFileNoMapTilePane.title= -#mapTilesNoMapFileNoMapTilePane.message= ##################### @@ -67,39 +64,9 @@ ####### -# Map - -map.text=Carte -map.mnemonic=C - - -####### # Help #about.title= #about= -#aboutTab.title= -#license.text= -#license.mnemonic= -#license.title= -#license.missing= - -#aboutRuntimeProperties.title= #aboutBuildProperties.title= - - -############ -# Map window - -mapwindowFile.text=Fichier -mapwindowFile.mnemonic=F - -mapwindowEdit.text=Edition -mapwindowEdit.mnemonic=E - -mapwindowMap.text=Carte -mapwindowMap.mnemonic=C - -#mapwindowCursor.text= -mapwindowCursor.mnemonic=U Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/messages_sv.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -33,7 +33,6 @@ # Map Properties mapMap=Karta -mapBackgroundMusic=Bakgrundsljud mapOutdoor=Utomhus mapOptions=Inst\xE4llningar mapNoSave=Ingen spara @@ -47,8 +46,6 @@ mapInstantDeath=Omedelbar d\xF6d mapPvP=Spelare mot Spelare mapText=Karttext -mapTilesNoMapFileNoMapTilePane.title=N\xE4rliggande kartor ej tillg\xE4ngligt -mapTilesNoMapFileNoMapTilePane.message=Kartan har inget filnamn (den \xE4r inte sparad \xE4nnu).\nEn karta utan filnamn kan inte anslutas till andra kartor.\nD\xE4rf\xF6r kan du inte v\xE4lja n\xE4rliggande kartor utan att f\xF6rst spara kartan. ##################### @@ -65,39 +62,9 @@ ####### -# Map - -map.text=Karta -map.mnemonic=K - - -####### # Help about.title=Om Gridarta for Daimonin about=<html><h1 align="center">Gridarta for Daimoin</h1><p>Editor for Daimonin MMORPG maps and arches</p><table><tr><td valign="top" align="right" width="50%">Copyright \xA9 2001-2010</td><td width="50%">Michael Toennies<br>Andreas Vogl<br>Peter Plischewsky<br>Gecko<br>Christian Hujer<br>Daniel Viegas<br>Andreas Kirschbaum</td></tr><tr><td align="right">Java version:</td><td>{0}</td></tr><tr><td align="right">Build number:</td><td>{1}</td></tr><tr><td align="right">av:</td><td>{2}</td></tr><tr><td align="right">datum:</td><td>{3}</td></tr></table></html> -aboutTab.title=Om -license.text=Licens... -license.mnemonic=L -license.title=Licens -license.missing=Kan inte hitta licensfilen. - -aboutRuntimeProperties.title=Runtime properties aboutBuildProperties.title=Build properties - - -############ -# Map window - -mapwindowFile.text=Arkiv -mapwindowFile.mnemonic=A - -mapwindowEdit.text=Redigera -mapwindowEdit.mnemonic=R - -mapwindowMap.text=Karta -mapwindowMap.mnemonic=K - -mapwindowCursor.text=Mark\xF6r -mapwindowCursor.mnemonic=M Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -58,6 +58,12 @@ goNorthWest.text=Move Cursor Northwest +####### +# Map + +map.text=Map +map.mnemonic=M + goLocation.text=Goto Location goLocation.mnemonic=L goLocation.accel=ctrl pressed L @@ -405,6 +411,7 @@ mapErrorIllegalSize.message=Map dimensions must be greater than zero. # attribute fields: mapName=Name +mapBackgroundMusic=Background music mapSwapTime=Swap Time mapFixedReset=Fixed Reset mapEnterX=Enter X @@ -426,6 +433,8 @@ mapTilesAttach.shortdescription=Automatically attach the map in all possible directions mapTilesClear.text=Clear Paths mapTilesClear.shortdescription=Clear all path names +mapTilesNoMapFileNoMapTilePane.title=Map tiles card unavailable +mapTilesNoMapFileNoMapTilePane.message=The map has no file name (it wasn''t saved yet).\nA map without filename cannot be attached to other maps.\nTherefore, the Map tiles card is unavailable. mapQueryLoaded.title=Map is loaded mapQueryLoaded.message=The map {0} is opened in the editor.\nShould I autosave & update the map? mapErrorPath2.title=Can''t find map @@ -519,9 +528,12 @@ logImageCreated=Created image "{0}" of map "{1}". logUnexpectedException=Unexpected exception: {0} logCanonIOE=IOException while canonizing path: {0} +logDuplicateAnimation=Duplicate Animation: {0} logExitWithExit=Exiting with System.exit(). logExitWithoutExit=Trying to exit without System.exit(). logFaceObjectWithoutOriginalName=No originalName for {0}! +logFoundCoordInDefArchSingleSquareOrHead=Found {0} cmd in single square or head (add it to arch text): {1} +logInventoryInDefArch=Found inventory Object in def arch: {0} # Edit undo.text=Undo @@ -744,7 +756,29 @@ about.text=About... about.mnemonic=A +aboutTab.title=About +aboutRuntimeProperties.title=Runtime properties +license.text=License... +license.mnemonic=L +license.title=License +license.missing=Cannot find License file. +license.1.title=Gridarta +license.1.file=COPYING +license.2.title=JAPI +license.2.file=japi.jar-LICENSE +license.3.title=SUN Icons +license.3.file=jlfgr-1_0.jar-LICENSE +license.4.title=BeanShell +license.4.file=bsh-LICENSE +license.5.title=Log4J +license.5.file=log4j-1.2.13.jar-LICENSE +license.6.title=JDOM +license.6.file=jdom.jar-LICENSE +license.7.title=GNU getopt +license.7.file=java-getopt-1.0.13.jar-LICENSE + + ################# # Map Arch Panel @@ -1379,3 +1413,19 @@ tabButtonMoveToBottom.text=Bottom tabButtonMoveToLeft.text=Left tabButtonMoveToRight.text=Right + + +############ +# Map window + +mapwindowFile.text=File +mapwindowFile.mnemonic=F + +mapwindowEdit.text=Edit +mapwindowEdit.mnemonic=E + +mapwindowMap.text=Map +mapwindowMap.mnemonic=M + +mapwindowCursor.text=Cursor +mapwindowCursor.mnemonic=C Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -58,6 +58,13 @@ goNorthWest.text=Cursor nach Nordwest +####### +# Map + +map.text=Karte +map.mnemonic=K + + goLocation.text=Cursor setzen goLocation.mnemonic=S @@ -383,6 +390,7 @@ mapErrorIllegalSize.message=Die Kartengr\xF6\xDFe muss positiv sein. # attribute fields: mapName=Name +mapBackgroundMusic=Hintergrundmusik mapSwapTime=Swap-Zeit mapFixedReset=Fixer Reset mapEnterX=Startpunkt X @@ -404,6 +412,8 @@ mapTilesAttach.shortdescription=Verbindet die Karte automatisch in allen Richtungen mit ihren benachbarten Karten. mapTilesClear.text=Pfade l\xF6schen mapTilesClear.shortdescription=L\xF6scht die Verbindungspfade zu den benachbarten Karten. +mapTilesNoMapFileNoMapTilePane.title=Verbindungspfade nicht verf\xFCgbar +mapTilesNoMapFileNoMapTilePane.message=Die Karte wurde noch nicht gespeichert. Daher hat sie noch keinen Dateinamen.\nEine Karte ohne Dateiname kann nicht mit anderen Karten verbunden werden.\nDaher ist der Reiter "Verbindungspfade" zur Zeit nicht verf\xFCgbar. mapQueryLoaded.title=Karte ist ge\xF6ffnet mapQueryLoaded.message=Die Karte {0} ist im Editor ge\xF6ffnet.\nSoll ich sie automatisch speichern und aktualisieren? mapErrorPath2.title=Karte nicht gefunden @@ -691,7 +701,15 @@ about.text=\xDCber... about.mnemonic=B +aboutTab.title=\xDCber +aboutRuntimeProperties.title=Laufzeitparameter +license.text=Lizenz... +license.mnemonic=L +license.title=Lizenz +license.missing=Kann Lizenzdatei nicht finden. + + ################# # Map Arch Panel @@ -1204,3 +1222,19 @@ tabButtonMoveToBottom.text=Unten tabButtonMoveToLeft.text=Links tabButtonMoveToRight.text=Rechts + + +############ +# Map window + +mapwindowFile.text=Datei +mapwindowFile.mnemonic=D + +mapwindowEdit.text=Bearbeiten +mapwindowEdit.mnemonic=B + +mapwindowMap.text=Karte +mapwindowMap.mnemonic=K + +mapwindowCursor.text=Cursor +mapwindowCursor.mnemonic=C Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -58,6 +58,12 @@ #goNorthWest.text= +####### +# Map + +map.text=Carte +map.mnemonic=C + #goLocation.text= #selectSquare.text= @@ -378,6 +384,7 @@ #mapErrorIllegalSize.message= # attribute fields: #mapName= +#mapBackgroundMusic= #mapSwapTime= #mapFixedReset= #mapEnterX= @@ -399,6 +406,8 @@ #mapTilesAttach.shortdescription= #mapTilesClear.text= #mapTilesClear.shortdescription= +#mapTilesNoMapFileNoMapTilePane.title= +#mapTilesNoMapFileNoMapTilePane.message= #mapQueryLoaded.title= #mapQueryLoaded.message= #mapErrorPath2.title= @@ -686,7 +695,15 @@ about.text=\xC0 propos... about.mnemonic=P +#aboutTab.title= +#aboutRuntimeProperties.title= +#license.text= +#license.mnemonic= +#license.title= +#license.missing= + + ################# # Map Arch Panel @@ -1194,3 +1211,19 @@ #tabButtonMoveToBottom.text= #tabButtonMoveToLeft.text= #tabButtonMoveToRight.text= + + +############ +# Map window + +mapwindowFile.text=Fichier +mapwindowFile.mnemonic=F + +mapwindowEdit.text=Edition +mapwindowEdit.mnemonic=E + +mapwindowMap.text=Carte +mapwindowMap.mnemonic=C + +#mapwindowCursor.text= +mapwindowCursor.mnemonic=U Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-18 07:30:36 UTC (rev 7837) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-18 20:05:51 UTC (rev 7838) @@ -58,6 +58,12 @@ goNorthWest.text=Flytta mark\xF6r nordv\xE4st +####### +# Map + +map.text=Karta +map.mnemonic=K + #goLocation.text= selectSquare.text=Markera ruta @@ -381,6 +387,7 @@ mapErrorIllegalSize.message=Kartdimensioner m\xE5ste vara st\xF6rre \xE4n 0. # attribute fields: mapName=Namn +mapBackgroundMusic=Bakgrundsljud mapSwapTime=Tid innan v\xE4xling mapFixedReset=Fixerad \xE5terst\xE4llning mapEnterX=Ing\xE5ng X @@ -402,6 +409,8 @@ mapTilesAttach.shortdescription=Automatiskt anslut kartan till alla n\xE4rliggande kartor i alla riktningar. mapTilesClear.text=Rensa s\xF6kv\xE4gar mapTilesClear.shortdescription=T\xF6m alla s\xF6kv\xE4gar +mapTilesNoMapFileNoMapTilePane.title=N\xE4rliggande kartor ej tillg\xE4ngligt +mapTilesNoMapFileNoMapTilePane.message=Kartan har inget filnamn (den \xE4r inte sparad \xE4nnu).\nEn karta utan filnamn kan inte anslutas till andra kartor.\nD\xE4rf\xF6r kan du inte v\xE4lja n\xE4rliggande kartor utan att f\xF6rst spara kartan. mapQueryLoaded.title=Kartan \xE4r inladdad mapQueryLoaded.message=Kartan {0} \xE4r \xF6ppen i editorn.\nSka jag autospara och uppdatera den? mapErrorPath2.title=Kan inte hitta karta @@ -690,7 +699,15 @@ about.text=Om... about.mnemonic=O +aboutTab.title=Om +aboutRuntimeProperties.title=Runtime properties +license.text=Licens... +license.mnemonic=L +license.title=Licens +license.missing=Kan inte hitta licensfilen. + + ################# # Map Arch Panel @@ -1200,3 +1217,19 @@ #tabButtonMoveToBottom.text= #tabButtonMoveToLeft.text= #tabButtonMoveToRight.text= + + +############ +# Map window + +mapwindowFile.text=Arkiv +mapwindowFile.mnemonic=A + +mapwindowEdit.text=Redigera +mapwindowEdit.mnemonic=R + +mapwindowMap.text=Karta +mapwindowMap.mnemonic=K + +mapwindowCursor.text=Mark\xF6r +mapwindowCursor.mnemonic=M This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-20 21:15:58
|
Revision: 7843 http://gridarta.svn.sourceforge.net/gridarta/?rev=7843&view=rev Author: akirschbaum Date: 2010-05-20 21:15:50 +0000 (Thu, 20 May 2010) Log Message: ----------- Implement #1644734 (Flood Fill short-cut/customizable short-cuts): add menu entry File|Configure Shortcuts... Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/ChangeLog trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/ChangeLog trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties trunk/src/app/net/sf/gridarta/utils/ActionUtils.java Added Paths: ----------- trunk/src/app/net/sf/gridarta/gui/shortcuts/ trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeDialog.java trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeField.java trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeFieldListener.java trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsDialog.java trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsManager.java Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2010-05-20 20:45:43 UTC (rev 7842) +++ trunk/atrinik/ChangeLog 2010-05-20 21:15:50 UTC (rev 7843) @@ -1,3 +1,8 @@ +2010-05-20 Andreas Kirschbaum + + * Implement #1644734 (Flood Fill short-cut/customizable + short-cuts): add menu entry File|Configure Shortcuts... + 2010-05-16 Andreas Kirschbaum * Improve UI of go location dialog: to go to coordinates (12,4) Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-20 20:45:43 UTC (rev 7842) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-20 21:15:50 UTC (rev 7843) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2010-05-20 20:45:43 UTC (rev 7842) +++ trunk/crossfire/ChangeLog 2010-05-20 21:15:50 UTC (rev 7843) @@ -1,3 +1,8 @@ +2010-05-20 Andreas Kirschbaum + + * Implement #1644734 (Flood Fill short-cut/customizable + short-cuts): add menu entry File|Configure Shortcuts... + 2010-05-16 Andreas Kirschbaum * Improve UI of go location dialog: to go to coordinates (12,4) Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-20 20:45:43 UTC (rev 7842) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-20 21:15:50 UTC (rev 7843) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes Modified: trunk/daimonin/ChangeLog =================================================================== --- trunk/daimonin/ChangeLog 2010-05-20 20:45:43 UTC (rev 7842) +++ trunk/daimonin/ChangeLog 2010-05-20 21:15:50 UTC (rev 7843) @@ -1,3 +1,8 @@ +2010-05-20 Andreas Kirschbaum + + * Implement #1644734 (Flood Fill short-cut/customizable + short-cuts): add menu entry File|Configure Shortcuts... + 2010-05-16 Andreas Kirschbaum * Improve UI of go location dialog: to go to coordinates (12,4) Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-20 20:45:43 UTC (rev 7842) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-20 21:15:50 UTC (rev 7843) @@ -25,7 +25,7 @@ ######## # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help -file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options - exit +file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes Added: trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeDialog.java (rev 0) +++ trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeDialog.java 2010-05-20 21:15:50 UTC (rev 7843) @@ -0,0 +1,260 @@ +/* + * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. + * Copyright (C) 2000-2010 The Gridarta Developers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.gridarta.gui.shortcuts; + +import java.awt.Component; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import javax.swing.Action; +import javax.swing.JButton; +import javax.swing.JComponent; +import javax.swing.JDialog; +import javax.swing.JOptionPane; +import javax.swing.JPanel; +import javax.swing.JTextArea; +import javax.swing.KeyStroke; +import javax.swing.WindowConstants; +import javax.swing.border.TitledBorder; +import net.sf.gridarta.gui.utils.GUIConstants; +import net.sf.gridarta.utils.ActionUtils; +import net.sf.japi.swing.action.ActionBuilder; +import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +/** + * A dialog that asks for a {@link KeyStroke}. + * @author Andreas Kirschbaum + */ +public class KeyStrokeDialog extends JOptionPane { + + /** + * The serial Version UID. + */ + private static final long serialVersionUID = 1L; + + /** + * The {@link ShortcutsManager} for checking conflicts. + */ + @NotNull + private final ShortcutsManager shortcutsManager; + + /** + * The {@link Action} being redefined. This action will not cause + * conflicts. + */ + @NotNull + private final Action action; + + /** + * The {@link ActionBuilder}. + */ + @NotNull + private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta"); + + /** + * The {@link JButton} for ok. + */ + @NotNull + private final JButton okButton = new JButton(ACTION_BUILDER.createAction(false, "keyStrokeOkay", this)); + + /** + * The {@link JButton} for cancel. + */ + @NotNull + private final JButton cancelButton = new JButton(ACTION_BUILDER.createAction(false, "keyStrokeCancel", this)); + + /** + * The {@link JDialog} instance. + */ + @NotNull + private final JDialog dialog; + + /** + * The key stroke input field. + */ + @NotNull + private final KeyStrokeField keyStroke; + + /** + * The text area showing conflicts between the new key stroke and assigned + * key strokes. + */ + @NotNull + private final JTextArea conflictsTextArea = new JTextArea(); + + /** + * Creates a new instance. + * @param parentComponent the parent component for the dialog + * @param shortcutsManager the shortcuts manager for checking conflicts + * @param action the action being redefined; this action will not cause + * conflicts + */ + public KeyStrokeDialog(@NotNull final Component parentComponent, @NotNull final ShortcutsManager shortcutsManager, @NotNull final Action action) { + this.shortcutsManager = shortcutsManager; + this.action = action; + okButton.setDefaultCapable(true); + setOptions(new Object[] { okButton, cancelButton, }); + + keyStroke = new KeyStrokeField(ActionUtils.getShortcut(action)); + final KeyStrokeFieldListener keyStrokeFieldListener = new KeyStrokeFieldListener() { + + @Override + public void keyStrokeChanged(@NotNull final KeyStroke keyStroke) { + updateKeyStroke(); + } + + }; + keyStroke.addKeyStrokeListener(keyStrokeFieldListener); + + conflictsTextArea.setEditable(false); + conflictsTextArea.setLineWrap(true); + conflictsTextArea.setWrapStyleWord(true); + conflictsTextArea.setFocusable(false); + conflictsTextArea.setRows(3); + + setMessage(createPanel()); + + dialog = createDialog(parentComponent, ACTION_BUILDER.getString("keyStroke.title")); + dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); + dialog.getRootPane().setDefaultButton(okButton); + dialog.setModal(true); + dialog.pack(); + } + + /** + * Opens the dialog. Returns when the dialog has been dismissed. + * @param parentComponent the parent component for the dialog + * @return whether "ok" was selected + */ + public boolean showDialog(@NotNull final Component parentComponent) { + dialog.setLocationRelativeTo(parentComponent); + updateKeyStroke(); + keyStroke.requestFocusInWindow(); + setInitialValue(keyStroke); + dialog.setVisible(true); + return getValue() == okButton; + } + + /** + * Creates the GUI. + * @return the panel containing the GUI + */ + @NotNull + private JPanel createPanel() { + final GridBagConstraints gbc = new GridBagConstraints(); + + final JComponent keyStrokePanel = new JPanel(new GridBagLayout()); + keyStrokePanel.setBorder(new TitledBorder(ACTION_BUILDER.getString("keyStroke.borderKeyStroke"))); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.weightx = 1.0; + keyStrokePanel.add(keyStroke, gbc); + + final JComponent conflictsPanel = new JPanel(new GridBagLayout()); + conflictsPanel.setBorder(new TitledBorder(ACTION_BUILDER.getString("keyStroke.borderConflicts"))); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.BOTH; + gbc.weightx = 1.0; + gbc.weighty = 1.0; + conflictsPanel.add(conflictsTextArea, gbc); + + final JPanel panel = new JPanel(new GridBagLayout()); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.weightx = 1.0; + gbc.weighty = 0.0; + panel.add(keyStrokePanel, gbc); + gbc.gridy++; + gbc.fill = GridBagConstraints.BOTH; + gbc.weighty = 1.0; + panel.add(conflictsPanel, gbc); + + panel.setBorder(GUIConstants.DIALOG_BORDER); + return panel; + } + + /** + * Action method for okay. + */ + @ActionMethod + public void keyStrokeOkay() { + setValue(okButton); + } + + /** + * Action method for cancel. + */ + @ActionMethod + public void keyStrokeCancel() { + setValue(cancelButton); + } + + /** + * {@inheritDoc} + */ + @Override + public void setValue(final Object newValue) { + super.setValue(newValue); + if (newValue != UNINITIALIZED_VALUE) { + dialog.dispose(); + } + } + + /** + * Updates the information shown for the selected action. + */ + private void updateKeyStroke() { + final KeyStroke newKeyStroke = getKeyStroke(); + Action conflictAction = null; + if (newKeyStroke != null) { + for (final Action tmp : shortcutsManager) { + if (tmp != action) { + final KeyStroke tmpKeyStroke = ActionUtils.getShortcut(tmp); + if (newKeyStroke.equals(tmpKeyStroke)) { + conflictAction = tmp; + break; + } + } + } + } + if (conflictAction == null) { + conflictsTextArea.setText(""); + okButton.setEnabled(true); + } else { + conflictsTextArea.setText(ACTION_BUILDER.format("keyStroke.borderConflictAssigned", ActionUtils.getActionName(conflictAction), ActionUtils.getActionCategory(conflictAction))); + okButton.setEnabled(false); + } + } + + /** + * Returns the currently shown key stroke. + * @return the key stroke or <code>null</code> + */ + @Nullable + public KeyStroke getKeyStroke() { + return keyStroke.getKeyStroke(); + } + +} // class KeyStrokeDialog Property changes on: trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeDialog.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Added: trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeField.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeField.java (rev 0) +++ trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeField.java 2010-05-20 21:15:50 UTC (rev 7843) @@ -0,0 +1,147 @@ +/* + * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. + * Copyright (C) 2000-2010 The Gridarta Developers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.gridarta.gui.shortcuts; + +import java.awt.event.KeyEvent; +import java.awt.event.KeyListener; +import javax.swing.JComponent; +import javax.swing.JTextField; +import javax.swing.KeyStroke; +import net.sf.gridarta.utils.EventListenerList2; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +/** + * A {@link JComponent} for selecting a {@link KeyStroke}. + * @author Andreas Kirschbaum + */ +public class KeyStrokeField extends JTextField { + + /** + * The serial version UID. + */ + private static final long serialVersionUID = 1L; + + /** + * The {@link KeyStrokeFieldListener KeyStrokeFieldListeners} to be + * notified. + */ + @NotNull + private final EventListenerList2<KeyStrokeFieldListener> listeners = new EventListenerList2<KeyStrokeFieldListener>(KeyStrokeFieldListener.class); + + /** + * The currently shown {@link KeyStroke}. + */ + @Nullable + private KeyStroke keyStroke; + + /** + * Creates a new instance. + * @param keyStroke the key stroke to show initially or <code>null</code> + */ + public KeyStrokeField(@Nullable final KeyStroke keyStroke) { + this.keyStroke = keyStroke; + + setFocusable(true); + final KeyListener keyListener = new KeyListener() { + + @Override + public void keyTyped(@NotNull final KeyEvent e) { + // ignore + } + + @Override + public void keyPressed(@NotNull final KeyEvent e) { + switch (e.getKeyCode()) { + case KeyEvent.VK_SHIFT: + case KeyEvent.VK_CONTROL: + case KeyEvent.VK_ALT: + case KeyEvent.VK_CAPS_LOCK: + case KeyEvent.VK_META: + case KeyEvent.VK_ALT_GRAPH: + // ignore modifier keys + break; + + default: + setKeyStroke(KeyStroke.getKeyStrokeForEvent(e)); + break; + } + } + + @Override + public void keyReleased(@NotNull final KeyEvent e) { + // ignore + } + + }; + addKeyListener(keyListener); + + getInputMap(WHEN_IN_FOCUSED_WINDOW).clear(); + getInputMap(WHEN_IN_FOCUSED_WINDOW).setParent(null); + getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).clear(); + getInputMap(WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).setParent(null); + getInputMap(WHEN_FOCUSED).clear(); + getInputMap(WHEN_FOCUSED).setParent(null); + + updateKeyStroke(); + } + + /** + * Adds a {@link KeyStrokeFieldListener} to be notified about changes. + * @param listener the listener + */ + public void addKeyStrokeListener(@NotNull final KeyStrokeFieldListener listener) { + listeners.add(listener); + } + + /** + * Returns the currently shown {@link KeyStroke}. + * @return the key stroke or <code>null</code> + */ + @Nullable + public KeyStroke getKeyStroke() { + return keyStroke; + } + + /** + * Updates the current key stroke. + * @param keyStroke the new key stroke + */ + private void setKeyStroke(@NotNull final KeyStroke keyStroke) { + if (this.keyStroke == keyStroke) { + return; + } + + this.keyStroke = keyStroke; + updateKeyStroke(); + for (final KeyStrokeFieldListener listener : listeners.getListeners()) { + listener.keyStrokeChanged(keyStroke); + } + } + + /** + * Updates the shown text to reflect the current value of {@link + * #keyStroke}. + */ + private void updateKeyStroke() { + setText(keyStroke == null ? "none" : keyStroke.toString()); + } + +} // class KeyStrokeField Property changes on: trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeField.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Added: trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeFieldListener.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeFieldListener.java (rev 0) +++ trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeFieldListener.java 2010-05-20 21:15:50 UTC (rev 7843) @@ -0,0 +1,38 @@ +/* + * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. + * Copyright (C) 2000-2010 The Gridarta Developers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.gridarta.gui.shortcuts; + +import java.util.EventListener; +import javax.swing.KeyStroke; +import org.jetbrains.annotations.NotNull; + +/** + * Interface for listeners interested in {@link KeyStrokeField} related events. + * @author Andreas Kirschbaum + */ +public interface KeyStrokeFieldListener extends EventListener { + + /** + * The shown {@link KeyStroke} did change. + * @param keyStroke the new key stroke + */ + void keyStrokeChanged(@NotNull KeyStroke keyStroke); + +} // interface KeyStrokeFieldListener Property changes on: trunk/src/app/net/sf/gridarta/gui/shortcuts/KeyStrokeFieldListener.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Added: trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsDialog.java (rev 0) +++ trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsDialog.java 2010-05-20 21:15:50 UTC (rev 7843) @@ -0,0 +1,620 @@ +/* + * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. + * Copyright (C) 2000-2010 The Gridarta Developers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.gridarta.gui.shortcuts; + +import java.awt.Color; +import java.awt.Component; +import java.awt.Container; +import java.awt.Dimension; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Insets; +import java.util.regex.Pattern; +import javax.swing.Action; +import javax.swing.Icon; +import javax.swing.JButton; +import javax.swing.JComponent; +import javax.swing.JDialog; +import javax.swing.JLabel; +import javax.swing.JOptionPane; +import javax.swing.JPanel; +import javax.swing.JScrollPane; +import javax.swing.JTextArea; +import javax.swing.JTree; +import javax.swing.JViewport; +import javax.swing.ScrollPaneConstants; +import javax.swing.ToolTipManager; +import javax.swing.WindowConstants; +import javax.swing.border.LineBorder; +import javax.swing.border.TitledBorder; +import javax.swing.event.TreeSelectionEvent; +import javax.swing.event.TreeSelectionListener; +import javax.swing.tree.DefaultMutableTreeNode; +import javax.swing.tree.DefaultTreeCellRenderer; +import javax.swing.tree.DefaultTreeModel; +import javax.swing.tree.MutableTreeNode; +import javax.swing.tree.TreeCellRenderer; +import javax.swing.tree.TreeNode; +import javax.swing.tree.TreeSelectionModel; +import net.sf.gridarta.gui.utils.GUIConstants; +import net.sf.gridarta.utils.ActionUtils; +import net.sf.japi.swing.action.ActionBuilder; +import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; +import net.sf.japi.swing.action.IconManager; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +public class ShortcutsDialog extends JOptionPane { + + /** + * The serial Version UID. + */ + private static final long serialVersionUID = 1L; + + /** + * Prefix for internal category names. Used only for sorting tree nodes. + */ + @NotNull + private static final String CATEGORY_PREFIX = "1"; + + /** + * Prefix for internal action names. Used only for sorting tree nodes. + */ + @NotNull + private static final String ACTION_PREFIX = "2"; + + /** + * The {@link ShortcutsManager} to affect. + */ + @NotNull + private final ShortcutsManager shortcutsManager; + + /** + * The {@link ActionBuilder}. + */ + @NotNull + private static final ActionBuilder ACTION_BUILDER = ActionBuilderFactory.getInstance().getActionBuilder("net.sf.gridarta"); + + /** + * The {@link Pattern} to split a list of action categories. + */ + @NotNull + private static final Pattern patternCategories = Pattern.compile(","); + + /** + * The {@link Pattern} to split a category into sub-categories. + */ + @NotNull + private static final Pattern patterSubnCategories = Pattern.compile("/"); + + /** + * The {@link JButton} for ok. + */ + @NotNull + private final JButton okButton = new JButton(ACTION_BUILDER.createAction(false, "shortcutsOkay", this)); + + /** + * The {@link Action} for the "set shortcut" button. + */ + @NotNull + private final Action aSetShortcut = ACTION_BUILDER.createAction(false, "shortcutsSetShortcut", this); + + /** + * The {@link Action} for the "unset shortcut" button. + */ + @NotNull + private final Action aUnsetShortcut = ACTION_BUILDER.createAction(false, "shortcutsUnsetShortcut", this); + + /** + * The {@link JDialog} instance. + */ + @NotNull + private final JDialog dialog; + + /** + * The {@link JTree} showing all actions. + */ + @NotNull + private final JTree actionsTree = new JTree() { + + /** + * The serial version UID. + */ + private static final long serialVersionUID = 1L; + + @Override + public String convertValueToText(final Object value, final boolean selected, final boolean expanded, final boolean leaf, final int row, final boolean hasFocus) { + final Action action = getAction(value); + if (action != null) { + return ActionUtils.getActionName(action); + } + + return super.convertValueToText(value, selected, expanded, leaf, row, hasFocus); + } + + }; + + + /** + * The description of the selected action. + */ + @NotNull + private final JTextArea actionDescription = new JTextArea(); + + /** + * The shortcut of the selected action. + */ + @NotNull + private final JTextArea actionShortcut = new JTextArea(); + + /** + * The selected {@link Action} or <code>null</code>. + */ + @Nullable + private Action selectedAction = null; + + /** + * Creates a new instance. + * @param parentComponent the parent component for the dialog + * @param shortcutsManager the shortcuts manager to affect + */ + public ShortcutsDialog(@NotNull final Component parentComponent, @NotNull final ShortcutsManager shortcutsManager) { + this.shortcutsManager = shortcutsManager; + okButton.setDefaultCapable(true); + final JButton defaultsButton = new JButton(ACTION_BUILDER.createAction(false, "shortcutsDefaults", this)); + setOptions(new Object[] { okButton, defaultsButton }); + + setMessage(createPanel()); + + dialog = createDialog(parentComponent, ACTION_BUILDER.getString("shortcuts.title")); + dialog.setResizable(true); + dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); + dialog.getRootPane().setDefaultButton(okButton); + dialog.setModal(true); + + dialog.setMinimumSize(new Dimension(400, 300)); + dialog.setPreferredSize(new Dimension(800, 600)); + dialog.pack(); + } + + /** + * Opens the dialog. Returns when the dialog has been dismissed. + * @param parentComponent the parent component for the dialog + */ + public void showDialog(@NotNull final Component parentComponent) { + dialog.setLocationRelativeTo(parentComponent); + dialog.setVisible(true); + setInitialValue(actionsTree); + actionsTree.setSelectionRow(0); + updateSelectedAction(); + } + + /** + * Creates the GUI. + * @return the panel containing the GUI + */ + @NotNull + private JPanel createPanel() { + final DefaultMutableTreeNode top = new DefaultMutableTreeNode(ACTION_BUILDER.getString("shortcuts.allActions")); + createNodes(top); + + actionsTree.setModel(new DefaultTreeModel(top, false)); + actionsTree.setRootVisible(false); + actionsTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); + final TreeSelectionListener treeSelectionListener = new TreeSelectionListener() { + + @Override + public void valueChanged(@NotNull final TreeSelectionEvent e) { + setSelectedAction(getAction(actionsTree.getLastSelectedPathComponent())); + } + + }; + actionsTree.addTreeSelectionListener(treeSelectionListener); + + final Icon emptyIcon = IconManager.getDefaultIconManager().getIcon(ACTION_BUILDER.getString("shortcuts.defaultIcon")); + final TreeCellRenderer treeCellRenderer = new DefaultTreeCellRenderer() { + + /** + * The serial version UID. + */ + private static final long serialVersionUID = 1L; + + /** + * The leaf icon. Set to <code>null</code> to use the default icon. + */ + @Nullable + private Icon icon = null; + + @Override + public Component getTreeCellRendererComponent(final JTree tree, final Object value, final boolean sel, final boolean expanded, final boolean leaf, final int row, final boolean hasFocus) { + if (leaf) { + final Action action = getAction(value); + if (action != null) { + final Icon tmpIcon = ActionUtils.getActionIcon(action); + icon = tmpIcon == null ? emptyIcon : tmpIcon; + setToolTipText(ActionUtils.getActionDescription(action)); + } else { + icon = emptyIcon; + } + } else { + icon = emptyIcon; + } + return super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus); + } + + /** + * {@inheritDoc} + * @noinspection RefusedBequest + */ + @Override + public Icon getLeafIcon() { + return icon; + } + + }; + actionsTree.setCellRenderer(treeCellRenderer); + + ToolTipManager.sharedInstance().registerComponent(actionsTree); + + final GridBagConstraints gbc = new GridBagConstraints(); + gbc.insets = new Insets(2, 2, 2, 2); + + final JScrollPane actionsScrollPane = new JScrollPane(); + actionsScrollPane.setViewportView(actionsTree); + actionsScrollPane.setBackground(actionsTree.getBackground()); + actionsScrollPane.getViewport().add(actionsTree); + actionsScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); + actionsScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED); + actionsScrollPane.getViewport().setScrollMode(JViewport.SIMPLE_SCROLL_MODE); + final JComponent actionsPanel = new JPanel(new GridBagLayout()); + actionsPanel.setBorder(new TitledBorder(ACTION_BUILDER.getString("shortcuts.borderAllActions"))); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.BOTH; + gbc.weightx = 1.0; + gbc.weighty = 1.0; + actionsPanel.add(actionsScrollPane, gbc); + + actionDescription.setEditable(false); + actionDescription.setColumns(20); + actionDescription.setLineWrap(true); + actionDescription.setWrapStyleWord(true); + actionDescription.setBorder(new LineBorder(Color.black)); + actionDescription.setFocusable(false); + + actionShortcut.setEditable(false); + actionShortcut.setColumns(20); + actionShortcut.setRows(3); + actionShortcut.setLineWrap(true); + actionShortcut.setWrapStyleWord(true); + actionShortcut.setBorder(new LineBorder(Color.black)); + actionShortcut.setFocusable(false); + + final Container actionDescriptionPanel = new JPanel(new GridBagLayout()); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.weightx = 1.0; + gbc.weighty = 0.0; + actionDescriptionPanel.add(new JLabel(ACTION_BUILDER.getString("shortcuts.actionDescription")), gbc); + gbc.gridy++; + gbc.fill = GridBagConstraints.BOTH; + gbc.weighty = 1.0; + actionDescriptionPanel.add(actionDescription, gbc); + + final Container actionShortcutPanel = new JPanel(new GridBagLayout()); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.weightx = 1.0; + gbc.weighty = 0.0; + actionShortcutPanel.add(new JLabel(ACTION_BUILDER.getString("shortcuts.shortcut")), gbc); + gbc.gridy++; + actionShortcutPanel.add(actionShortcut, gbc); + + final Component addShortcutButton = new JButton(aSetShortcut); + final Component removeShortcutButton = new JButton(aUnsetShortcut); + final Container actionButtonsPanel = new JPanel(); + actionButtonsPanel.setLayout(new GridBagLayout()); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.weightx = 1.0; + gbc.weighty = 0.0; + actionButtonsPanel.add(addShortcutButton, gbc); + gbc.gridy++; + actionButtonsPanel.add(removeShortcutButton, gbc); + + final JComponent selectedActionPanel = new JPanel(); + selectedActionPanel.setLayout(new GridBagLayout()); + selectedActionPanel.setBorder(new TitledBorder(ACTION_BUILDER.getString("shortcuts.selectedAction"))); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.BOTH; + gbc.weightx = 1.0; + gbc.weighty = 1.0; + selectedActionPanel.add(actionDescriptionPanel, gbc); + gbc.fill = GridBagConstraints.HORIZONTAL; + gbc.weighty = 0.0; + gbc.gridy++; + selectedActionPanel.add(actionShortcutPanel, gbc); + gbc.gridy++; + selectedActionPanel.add(actionButtonsPanel, gbc); + + final JPanel panel = new JPanel(new GridBagLayout()); + gbc.gridx = 0; + gbc.gridy = 0; + gbc.fill = GridBagConstraints.BOTH; + gbc.weightx = 1.0; + gbc.weighty = 1.0; + panel.add(actionsPanel, gbc); + gbc.gridx++; + gbc.weightx = 0.0; + panel.add(selectedActionPanel, gbc); + + panel.setBorder(GUIConstants.DIALOG_BORDER); + return panel; + } + + /** + * Action method for okay. + */ + @ActionMethod + public void shortcutsOkay() { + setValue(okButton); + } + + /** + * Action method for restore to defaults. + */ + @ActionMethod + public void shortcutsDefaults() { + if (ACTION_BUILDER.showQuestionDialog(dialog, "shortcutsRestoreDefaults")) { + shortcutsManager.revertAll(); + updateSelectedAction(); + shortcutsManager.saveShortcuts(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public void setValue(final Object newValue) { + super.setValue(newValue); + if (newValue != UNINITIALIZED_VALUE) { + dialog.dispose(); + } + } + + /** + * Creates nodes for all actions. + * @param root the root node + */ + private void createNodes(@NotNull final DefaultMutableTreeNode root) { + for (final Action action : shortcutsManager) { + final String categories = ActionUtils.getActionCategory(action); + for (final String category : patternCategories.split(categories, -1)) { + addNode(root, category, action); + } + } + } + + /** + * Adds an {@link Action} to a branch node. + * @param root the root node + * @param category the category to add to + * @param action the action to add + */ + private static void addNode(@NotNull final DefaultMutableTreeNode root, @NotNull final CharSequence category, @NotNull final Action action) { + final DefaultMutableTreeNode node = getOrCreateNodeForCategory(root, category); + final MutableTreeNode treeNode = new DefaultMutableTreeNode(action, false); + insertChildNode(node, treeNode); + } + + /** + * Returns the branch {@link DefaultMutableTreeNode} for a given category. + * @param root the root node to start from + * @param category the category + * @return the branch node for the category + */ + @NotNull + private static DefaultMutableTreeNode getOrCreateNodeForCategory(@NotNull final DefaultMutableTreeNode root, @NotNull final CharSequence category) { + DefaultMutableTreeNode node = root; + for (final String subCategory : patterSubnCategories.split(category, -1)) { + node = getOrCreateChildNode(node, subCategory); + } + return node; + } + + /** + * Returns a child node by category name. + * @param root the root node + * @param subCategory the node name + * @return the child node + */ + @NotNull + private static DefaultMutableTreeNode getOrCreateChildNode(@NotNull final MutableTreeNode root, @NotNull final String subCategory) { + final int childCount = root.getChildCount(); + for (int i = 0; i < childCount; i++) { + final TreeNode treeNode = root.getChildAt(i); + final String nodeTitle = getTitle(treeNode); + if (nodeTitle != null && nodeTitle.equals(CATEGORY_PREFIX + subCategory)) { + assert treeNode instanceof DefaultMutableTreeNode; + return (DefaultMutableTreeNode) treeNode; + } + } + + final DefaultMutableTreeNode treeNode = new DefaultMutableTreeNode(subCategory); + insertChildNode(root, treeNode); + return treeNode; + } + + /** + * Inserts a new child node into a branch node. + * @param branchNode the branch node + * @param childNode the child node + */ + private static void insertChildNode(@NotNull final MutableTreeNode branchNode, @NotNull final MutableTreeNode childNode) { + branchNode.insert(childNode, getInsertionIndex(branchNode, childNode)); + } + + /** + * Returns the index to insert a new child node into a parent node. + * @param parentNode the parent node + * @param childNode the child node + * @return the insertion index + */ + private static int getInsertionIndex(@NotNull final TreeNode parentNode, @NotNull final TreeNode childNode) { + final String childTitle = getTitle(childNode); + if (childTitle == null) { + throw new IllegalArgumentException(); + } + + final int childCount = parentNode.getChildCount(); + for (int i = 0; i < childCount; i++) { + final TreeNode treeNode = parentNode.getChildAt(i); + final String nodeTitle = getTitle(treeNode); + if (nodeTitle != null && nodeTitle.compareToIgnoreCase(childTitle) > 0) { + return i; + } + } + + return childCount; + } + + /** + * Returns the {@link Action} for a node in the action tree. + * @param node the node + * @return the action or <code>null</code> + */ + @Nullable + private static Action getAction(@Nullable final Object node) { + if (node == null || !(node instanceof DefaultMutableTreeNode)) { + return null; + } + + final DefaultMutableTreeNode defaultMutableTreeNode = (DefaultMutableTreeNode) node; + final Object userObject = defaultMutableTreeNode.getUserObject(); + if (userObject == null || !(userObject instanceof Action)) { + return null; + } + + return (Action) userObject; + } + + /** + * Returns the category for a node in the action tree. + * @param node the node + * @return the category or <code>null</code> + */ + @Nullable + private static String getTitle(@NotNull final TreeNode node) { + if (!(node instanceof DefaultMutableTreeNode)) { + return null; + } + + final DefaultMutableTreeNode defaultMutableTreeNode = (DefaultMutableTreeNode) node; + final Object userObject = defaultMutableTreeNode.getUserObject(); + if (userObject == null) { + return null; + } + + if (userObject instanceof String) { + return CATEGORY_PREFIX + userObject; + } + + if (userObject instanceof Action) { + return ACTION_PREFIX + ActionUtils.getActionName((Action) userObject); + } + + return null; + } + + /** + * Updates the selected action. + * @param selectedAction the new selected action + */ + private void setSelectedAction(@Nullable final Action selectedAction) { + if (this.selectedAction == selectedAction) { + return; + } + + this.selectedAction = selectedAction; + updateSelectedAction(); + } + + /** + * Updates the information shown for the selected action. + */ + private void updateSelectedAction() { + actionDescription.setText(selectedAction == null ? "" : ActionUtils.getActionDescription(selectedAction)); + if (selectedAction == null) { + actionShortcut.setText(""); + } else { + actionShortcut.setText(ActionUtils.getShortcutDescription(selectedAction, Action.ACCELERATOR_KEY)); + } + aSetShortcut.setEnabled(selectedAction != null); + aUnsetShortcut.setEnabled(getUnsetShortcutEnabled() != null); + } + + /** + * Returns whether "unset shortcut" is enabled. + * @return the action to affect if enabled or <code>null</code> + */ + @Nullable + private Action getUnsetShortcutEnabled() { + final Action action = selectedAction; + return action != null && ActionUtils.getShortcut(action) != null ? action : null; + } + + /** + * The action method for the "set shortcut" button. + */ + @ActionMethod + public void shortcutsSetShortcut() { + final Action action = selectedAction; + if (action == null) { + return; + } + + final KeyStrokeDialog keyStrokeDialog = new KeyStrokeDialog(dialog, shortcutsManager, action); + if (keyStrokeDialog.showDialog(dialog)) { + ActionUtils.setActionShortcut(action, keyStrokeDialog.getKeyStroke()); + updateSelectedAction(); + shortcutsManager.saveShortcuts(); + } + } + + /** + * The action method for the "set shortcut" button. + */ + @ActionMethod + public void shortcutsUnsetShortcut() { + final Action action = getUnsetShortcutEnabled(); + if (action != null) { + ActionUtils.setActionShortcut(action, null); + updateSelectedAction(); + shortcutsManager.saveShortcuts(); + } + } + +} // class ShortcutsDialog Property changes on: trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsDialog.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Added: trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsManager.java (rev 0) +++ trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsManager.java 2010-05-20 21:15:50 UTC (rev 7843) @@ -0,0 +1,258 @@ +/* + * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. + * Copyright (C) 2000-2010 The Gridarta Developers. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.gridarta.gui.shortcuts; + +import java.awt.Component; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.Iterator; +import java.util.List; +import java.util.prefs.AbstractPreferences; +import java.util.prefs.BackingStoreException; +import java.util.prefs.Preferences; +import javax.swing.Action; +import javax.swing.ActionMap; +import javax.swing.KeyStroke; +import net.sf.gridarta.MainControl; +import net.sf.gridarta.utils.ActionUtils; +import net.sf.japi.swing.action.ActionBuilder; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +/** + * Manager for shortcuts of all {@link Action Actions} in an {@link + * ActionBuilder} instance. + * @author Andreas Kirschbaum + */ +public class ShortcutsManager implements Iterable<Action> { + + /** + * The prefix for preferences keys for shortcuts. + */ + @NotNull + private static final String PREFERENCES_SHORTCUT_PREFIX = "shortcut."; + + /** + * The prefix for preferences keys for shortcut comments. + */ + @NotNull + private static final String PREFERENCES_COMMENT_PREFIX = "prefs." + PREFERENCES_SHORTCUT_PREFIX; + + /** + * A {@link Comparator} that compares {@link Action Actions} by name. + */ + @NotNull + private static final Comparator<Action> actionComparator = new Comparator<Action>() { + + @Override + public int compare(@NotNull final Action o1, @NotNull final Action o2) { + return ActionUtils.getActionName(o1).compareToIgnoreCase(ActionUtils.getActionName(o2)); + } + + }; + + /** + * The managed {@link ActionBuilder}. + */ + @NotNull + private final ActionBuilder actionBuilder; + + /** + * The {@link Preferences} for storing/restoring shortcuts. + */ + @NotNull + private final Preferences preferences = Preferences.userNodeForPackage(MainControl.class); + + /** + * Creates a new instance. + * @param actionBuilder the action builder to manage + */ + public ShortcutsManager(@NotNull final ActionBuilder actionBuilder) { + this.actionBuilder = actionBuilder; + + for (final Action action : this) { + final Object acceleratorKey = action.getValue(Action.ACCELERATOR_KEY); + if (acceleratorKey != null) { + action.putValue(ActionUtils.DEFAULT_ACCELERATOR_KEY, acceleratorKey); + } + } + + final Preferences commentPreferences = new AbstractPreferences(null, "") { + + @Override + protected void putSpi(final String key, final String value) { + throw new UnsupportedOperationException(); + } + + @Nullable + @Override + protected String getSpi(@NotNull final String key) { + if (!key.startsWith(PREFERENCES_COMMENT_PREFIX)) { + return null; + } + + final String actionKey = key.substring(PREFERENCES_COMMENT_PREFIX.length()); + final Action action = actionBuilder.getAction(actionKey); + if (action == null || !isValidAction(action)) { + return null; + } + + return actionBuilder.format("prefs.shortcut", ActionUtils.getActionName(action)); + } + + @Override + protected void removeSpi(final String key) { + throw new UnsupportedOperationException(); + } + + @Override + protected void removeNodeSpi() { + throw new UnsupportedOperationException(); + } + + @Override + protected String[] keysSpi() { + throw new UnsupportedOperationException(); + } + + @Override + protected String[] childrenNamesSpi() { + throw new UnsupportedOperationException(); + } + + @Override + protected AbstractPreferences childSpi(final String name) { + throw new UnsupportedOperationException(); + } + + @Override + protected void syncSpi() { + // ignore + } + + @Override + protected void flushSpi() { + // ignore + } + + }; + actionBuilder.addPref(commentPreferences); + } + + /** + * Restores all shortcuts from the preferences. + */ + public void loadShortcuts() { + for (final Action action : this) { + final String value = preferences.get(PREFERENCES_SHORTCUT_PREFIX + ActionUtils.getActionId(action), null); + if (value != null) { + if (value.equals(ActionUtils.NO_SHORTCUT)) { + action.putValue(Action.ACCELERATOR_KEY, null); + } else { + final Object acceleratorKey = KeyStroke.getKeyStroke(value); + if (acceleratorKey != null) { + action.putValue(Action.ACCELERATOR_KEY, acceleratorKey); + } + } + } + } + } + + /** + * Saves all shortcuts to the preferences. + */ + public void saveShortcuts() { + try { + for (final String key : preferences.keys()) { + if (key.startsWith(PREFERENCES_SHORTCUT_PREFIX)) { + preferences.remove(key); + } + } + } catch (final BackingStoreException ignored) { + // ignore: just keep excess keys + } + + for (final Action action : this) { + final String acceleratorKey = ActionUtils.getShortcutDescription(action, Action.ACCELERATOR_KEY); + final String defaultAcceleratorKey = ActionUtils.getShortcutDescription(action, ActionUtils.DEFAULT_ACCELERATOR_KEY); + final String preferencesKey = PREFERENCES_SHORTCUT_PREFIX + ActionUtils.getActionId(action); + if (acceleratorKey.equals(defaultAcceleratorKey)) { + preferences.remove(preferencesKey); + } else { + preferences.put(preferencesKey, acceleratorKey); + } + } + } + + /** + * Displays a dialog to edit shortcuts. + * @param parentComponent the parent component for the dialog + */ + public void showShortcutsDialog(@NotNull final Component parentComponent) { + final ShortcutsDialog shortcutsDialog = new ShortcutsDialog(parentComponent, this); + shortcutsDialog.showDialog(parentComponent); + } + + /** + * Reverts all shortcuts to their default values. + */ + public void revertAll() { + for (final Action action : this) { + action.putValue(Action.ACCELERATOR_KEY, action.getValue(ActionUtils.DEFAULT_ACCELERATOR_KEY)); + } + } + + /** + * Returns all {@link Action Actions}. + * @return an iterator returning the actions + */ + @Override + public Iterator<Action> iterator() { + final List<Action> result = new ArrayList<Action>(); + final ActionMap actionMap = actionBuilder.getActionMap(); + for (final Object key : actionMap.allKeys()) { + if (key instanceof String) { + final Action action = actionMap.get(key); + assert action != null; + if (isValidAction(action)) { + result.add(action); + } + } + } + Collections.sort(result, actionComparator); + return result.iterator(); + } + + /** + * Returns whether an {@link Action} is a global action. + * @param action the action to check + * @return whether the action is valid + */ + private static boolean isValidAction(@NotNull final Action action) { + try { + ActionUtils.getActionId(action); + return true; + } catch (final IllegalArgumentException ignored) { + return false; + } + } + +} // class ShortcutsManager Property changes on: trunk/src/app/net/sf/gridarta/gui/shortcuts/ShortcutsManager.java ___________________________________________________________________ Added: svn:mime-type + text/plain Added: svn:eol-style + LF Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-20 20:45:43 UTC (rev 7842) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-20 21:15:50 UTC (rev 7843) @@ -104,6 +104,7 @@ import net.sf.gridarta.gui.selectedsquare.SelectedSquareControl; import net.sf.gridarta.gui.selectedsquare.SelectedSquareModel; import net.sf.gridarta.gui.selectedsquare.SelectedSquareView; +import net.sf.gridarta.gui.shortcuts.ShortcutsManager; import net.sf.gridarta.gui.spells.SpellsUtils; import net.sf.gridarta.gui.treasurelist.CFTreasureListTree; import net.sf.gridarta.gui.undo.UndoControl; @@ -332,6 +333,12 @@ private final Exiter exiter; /** + * The {@link ShortcutsManager} instance. + */ + @NotNull + private final ShortcutsManager shortcutsManager; + + /** * Creates a new instance. * @param createDirectionPane whether the direction panel should be created * @param mapManager the map manager @@ -470,7 +477,7 @@ final HelpActions helpActions = new HelpActions(mainViewFrame); ActionUtils.newActions(ACTION_BUILDER, "Help", helpActions, "showHelp", "tipOfTheDay"); ActionUtils.newActions(ACTION_BUILDER, "Map", newMapDialogFactory, "newMap"); - ActionUtils.newActions(ACTION_BUILDER, "Tool", this, "cleanCompletelyBlockedSquares", "collectSpells", "controlClient", "controlServer", "gc", "options", "zoom"); + ActionUtils.newActions(ACTION_BUILDER, "Tool", this, "cleanCompletelyBlockedSquares", "collectSpells", "controlClient", "controlServer", "gc", "options", "shortcuts", "zoom"); new MapCursorActions<G, A, R>(gameObjectAttributesDialogFactory, mapViewManager, selectedSquareControl, selectedSquareModel); ActionUtils.newAction(ACTION_BUILDER, "Script", scriptEditControl, "newScript"); ActionUtils.newAction(ACTION_BUILDER, "Script", fileControl, "editScript"); @@ -568,6 +575,8 @@ } new AutoValidator<G, A, R>(validators, autoValidatorDefault, delayedMapModelListenerManager); mapManager.setFileControl(fileControl); + shortcutsManager = new ShortcutsManager(ACTION_BUILDER); + shortcutsManager.loadShortcuts(); delayedMapModelListenerManager.start(); } @@ -617,6 +626,14 @@ } /** + * The action method for "configure shortcuts". + */ + @ActionMethod + public void shortcuts() { + shortcutsManager.showShortcutsDialog(mainViewFrame); + } + + /** * Invoked when user wants to exit from the program. */ @ActionMethod Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-20 20:45:43 UTC (rev 7842) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-20 21:15:50 UTC (rev 7843) @@ -433,6 +433,32 @@ goLocationCoordinateOutOfRange.title=Illegal Value goLocationCoordinateOutOfRange.message=Coordinate value is invalid. +# The Configure Keyboard Shortcuts dialog +shortcuts.title=Configure Keyboard Shortcuts +shortcuts.allActions=All Actions +shortcuts.defaultIcon=EmptySmallIcon +shortcuts.borderAllActions=All Actions +shortcuts.actionDescription=Action Description: +shortcuts.shortcut=Shortcut: +shortcuts.selectedAction=Selected Action +shortcutsOkay.text=Ok +shortcutsDefaults.text=Restore All Defaults +shortcutsDefaults.shortdescription=Restore all shortcuts to their default values. +shortcutsRestoreDefaults.title=Restore Shortcuts? +shortcutsRestoreDefaults.message=Restore all shortcuts to their default values?\n\nNote that this operation cannot be reverted. +shortcutsSetShortcut.text=Set Shortcut +shortcutsSetShortcut.mnemonic=S +shortcutsUnsetShortcut.text=Unset Shortcut +shortcutsUnsetShortcut.mnemonic=U + +# The Select Key Stroke dialog (part of Configure Keyboard Shortcuts dialog) +keyStroke.title=Select Key Stroke +keyStroke.borderKeyStroke=Key Stroke +keyStroke.borderConflicts=Conflicts +keyStroke.borderConflictAssigned=Also assigned to {0} in category {1}. +keyStrokeOkay.text=Ok +keyStrokeCancel.text=Cancel + shrinkMapSizeDialogTitle=Shrink Map Size shrinkMapSizeDialogLabel=Remove empty squares from: shrinkMapSizeDialogEast.text=east border @@ -661,6 +687,10 @@ options.longdescription=Shows the options dialog for changing editor settings. options.accel=ctrl alt pressed S +shortcuts.text=Configure Shortcuts... +shortcuts.shortdescription=Shows the configure shortcuts dialog. +shortcuts.longdescription=Shows the configure shortcuts dialog for changing keyboard shortcuts. + exit.text=Exit exit.mnemonic=X exit.shortdescription=Exits the editor. @@ -1063,6 +1093,7 @@ prefs.ScriptEditWindow.width=Width of script editor. prefs.ScriptEditWindow.x=X coordinate of script editor. prefs.ScriptEditWindow.y=Y co... [truncated message content] |
From: <aki...@us...> - 2010-05-21 17:09:02
|
Revision: 7846 http://gridarta.svn.sourceforge.net/gridarta/?rev=7846&view=rev Author: akirschbaum Date: 2010-05-21 17:08:55 +0000 (Fri, 21 May 2010) Log Message: ----------- Implement File|Expand Empty Selection: includes empty map squares surrounding selected empty map squares to the selection. Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/ChangeLog trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/ChangeLog trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/mainactions/MainActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/atrinik/ChangeLog 2010-05-21 17:08:55 UTC (rev 7846) @@ -1,3 +1,8 @@ +2010-05-21 Andreas Kirschbaum + + * Implement File|Expand Empty Selection: includes empty map + squares surrounding selected empty map squares to the selection. + 2010-05-20 Andreas Kirschbaum * Implement #1644734 (Flood Fill short-cut/customizable Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-21 17:08:55 UTC (rev 7846) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/crossfire/ChangeLog 2010-05-21 17:08:55 UTC (rev 7846) @@ -1,3 +1,8 @@ +2010-05-21 Andreas Kirschbaum + + * Implement File|Expand Empty Selection: includes empty map + squares surrounding selected empty map squares to the selection. + 2010-05-20 Andreas Kirschbaum * Implement #1644734 (Flood Fill short-cut/customizable Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-21 17:08:55 UTC (rev 7846) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection mapwindowMap.menu=gridVisible smoothing enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/daimonin/ChangeLog =================================================================== --- trunk/daimonin/ChangeLog 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/daimonin/ChangeLog 2010-05-21 17:08:55 UTC (rev 7846) @@ -1,3 +1,8 @@ +2010-05-21 Andreas Kirschbaum + + * Implement File|Expand Empty Selection: includes empty map + squares surrounding selected empty map squares to the selection. + 2010-05-20 Andreas Kirschbaum * Implement #1644734 (Flood Fill short-cut/customizable Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-21 17:08:55 UTC (rev 7846) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/src/app/net/sf/gridarta/mainactions/MainActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2010-05-21 17:08:55 UTC (rev 7846) @@ -20,7 +20,11 @@ package net.sf.gridarta.mainactions; import java.awt.Component; +import java.awt.Point; import java.io.File; +import java.util.IdentityHashMap; +import java.util.List; +import java.util.Map; import java.util.Set; import javax.swing.Action; import javax.swing.JFrame; @@ -48,6 +52,7 @@ import net.sf.gridarta.model.map.grid.MapGrid; import net.sf.gridarta.model.map.grid.MapGridEvent; import net.sf.gridarta.model.map.grid.MapGridListener; +import net.sf.gridarta.model.map.grid.SelectionMode; import net.sf.gridarta.model.map.maparchobject.MapArchObject; import net.sf.gridarta.model.map.mapcontrol.MapControl; import net.sf.gridarta.model.map.mapmodel.InsertionMode; @@ -62,6 +67,7 @@ import net.sf.gridarta.utils.ActionUtils; import net.sf.gridarta.utils.Exiter; import net.sf.gridarta.utils.ExiterListener; +import net.sf.gridarta.utils.Pair; import net.sf.gridarta.utils.Size2D; import net.sf.gridarta.validation.DelegatingMapValidator; import net.sf.japi.swing.action.ActionBuilder; @@ -297,6 +303,12 @@ private final Action aSelectAll; /** + * Action called for "expand empty selection". + */ + @NotNull + private final Action aExpandEmptySelection; + + /** * Action called for "collect archetypes". */ private final Action aCollectArches; @@ -554,6 +566,7 @@ aRandFillBelow = ActionUtils.newAction(ACTION_BUILDER, "Map/Fill", this, "randFillBelow"); aFloodfill = ActionUtils.newAction(ACTION_BUILDER, "Map/Fill", this, "floodfill"); aSelectAll = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "selectAll"); + aExpandEmptySelection = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "expandEmptySelection"); aCollectArches = ActionUtils.newAction(ACTION_BUILDER, "Tool", this, "collectArches"); aReloadFaces = ActionUtils.newAction(ACTION_BUILDER, "Image,Tool", this, "reloadFaces"); aValidateMap = ActionUtils.newAction(ACTION_BUILDER, "Map,Tool", this, "validateMap"); @@ -629,6 +642,7 @@ aRandFillBelow.setEnabled(getRandFillBelowEnabled() != null); aFloodfill.setEnabled(getFloodfillEnabled() != null); aSelectAll.setEnabled(getSelectAllEnabled() != null); + aExpandEmptySelection.setEnabled(getExpandEmptySelectionEnabled() != null); aCollectArches.setEnabled(isCollectArchesEnabled()); aReloadFaces.setEnabled(!archetypeSet.isLoadedFromArchive()); aValidateMap.setEnabled(getValidateMapEnabled() != null); @@ -901,6 +915,59 @@ } /** + * Invoked when the user wants to expand the selction of empty map squares + * to surrounding empty map squares. + */ + @ActionMethod + public void expandEmptySelection() { + final Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>> selectedSquares = getExpandEmptySelectionEnabled(); + if (selectedSquares != null) { + final MapView<G, A, R> mapView = selectedSquares.getFirst(); + final MapGrid mapGrid = mapView.getMapViewBasic().getMapGrid(); + final Map<MapSquare<G, A, R>, Void> newSelection = new IdentityHashMap<MapSquare<G, A, R>, Void>(); + Map<MapSquare<G, A, R>, Void> todo = new IdentityHashMap<MapSquare<G, A, R>, Void>(); + for (final MapSquare<G, A, R> mapSquare : selectedSquares.getSecond()) { + todo.put(mapSquare, null); + newSelection.put(mapSquare, null); + } + final MapModel<G, A, R> mapModel = mapView.getMapControl().getMapModel(); + final Point point = new Point(); + while (!todo.isEmpty()) { + final Map<MapSquare<G, A, R>, Void> tmp = new IdentityHashMap<MapSquare<G, A, R>, Void>(); + for (final MapSquare<G, A, R> mapSquare : todo.keySet()) { + for (int dy = -1; dy <= 1; dy++) { + point.y = mapSquare.getMapY() + dy; + for (int dx = -1; dx <= 1; dx++) { + if (dx != 0 || dy != 0) { + point.x = mapSquare.getMapX() + dx; + if (mapModel.isPointValid(point)) { + final MapSquare<G, A, R> newMapSquare = mapModel.getMapSquare(point); + if (newMapSquare.isEmpty() && !newSelection.containsKey(newMapSquare)) { + tmp.put(newMapSquare, null); + newSelection.put(newMapSquare, null); + } + } + } + } + } + } + todo = tmp; + } + mapGrid.beginTransaction(); + try { + mapGrid.unSelect(); + for (final MapSquare<G, A, R> mapSquare : newSelection.keySet()) { + point.x = mapSquare.getMapX(); + point.y = mapSquare.getMapY(); + mapGrid.select(point, point, SelectionMode.ADD); + } + } finally { + mapGrid.endTransaction(); + } + } + } + + /** * Invoked when "collect archetypes" was selected. */ @ActionMethod @@ -1122,6 +1189,28 @@ } /** + * Determine if "expand empty selection" is enabled. + * @return the map view/selected squares to expand if "expand empty + * selection" is enabled, or <code>null</code> otherwise + */ + @Nullable + private Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>> getExpandEmptySelectionEnabled() { + final MapView<G, A, R> mapView = getSelection(); + if (mapView == null) { + return null; + } + + final List<MapSquare<G, A, R>> selectedSquares = mapView.getMapViewBasic().getSelectedSquares(); + for (final MapSquare<G, A, R> selectedSquare : selectedSquares) { + if (selectedSquare.isEmpty()) { + return new Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>>(mapView, selectedSquares); + } + } + + return null; + } + + /** * Returns whether "collect archetypes" is enabled. * @return whether "collect archetypes" is enabled */ Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-21 17:08:55 UTC (rev 7846) @@ -794,7 +794,10 @@ selectAll.shortdescription=Selects all map squares of the current map. selectAll.accel=ctrl pressed A +expandEmptySelection.text=Expand Empty Selection +expandEmptySelection.shortdescription=Includes empty map squares surrounding selected empty squares to the selection. + ############ # Resources Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-21 17:08:55 UTC (rev 7846) @@ -739,7 +739,10 @@ selectAll.mnemonic=S selectAll.shortdescription=W\xE4hlt alle Felder der aktiven Karte aus. +expandEmptySelection.text=Leere Auswahl erweitern +expandEmptySelection.shortdescription=Erweitert die Auswahl um leere Felder, die an ausgew\xE4hlte leere Felder angrenzen. + ############ # Resources Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-21 17:08:55 UTC (rev 7846) @@ -660,7 +660,10 @@ selectAll.text=Tout s\xE9lectionner selectAll.mnemonic=T +#expandEmptySelection.text= +#expandEmptySelection.shortdescription= + ############ # Resources Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-21 17:06:38 UTC (rev 7845) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-21 17:08:55 UTC (rev 7846) @@ -664,7 +664,10 @@ selectAll.text=Markera allt selectAll.mnemonic=M +#expandEmptySelection.text= +#expandEmptySelection.shortdescription= + ############ # Resources This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-22 09:48:31
|
Revision: 7848 http://gridarta.svn.sourceforge.net/gridarta/?rev=7848&view=rev Author: akirschbaum Date: 2010-05-22 09:48:24 +0000 (Sat, 22 May 2010) Log Message: ----------- Implement File|Grow Selection and File|Shrink Selection: grows/shrinks the selection by one map square. Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/ChangeLog trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/ChangeLog trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/mainactions/MainActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/atrinik/ChangeLog 2010-05-22 09:48:24 UTC (rev 7848) @@ -1,3 +1,8 @@ +2010-05-22 Andreas Kirschbaum + + * Implement File|Grow Selection and File|Shrink Selection: + grows/shrinks the selection by one map square. + 2010-05-21 Andreas Kirschbaum * Implement File|Expand Empty Selection: includes empty map Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-22 09:48:24 UTC (rev 7848) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/crossfire/ChangeLog 2010-05-22 09:48:24 UTC (rev 7848) @@ -1,3 +1,8 @@ +2010-05-22 Andreas Kirschbaum + + * Implement File|Grow Selection and File|Shrink Selection: + grows/shrinks the selection by one map square. + 2010-05-21 Andreas Kirschbaum * Implement File|Expand Empty Selection: includes empty map Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-22 09:48:24 UTC (rev 7848) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection mapwindowMap.menu=gridVisible smoothing enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/daimonin/ChangeLog =================================================================== --- trunk/daimonin/ChangeLog 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/daimonin/ChangeLog 2010-05-22 09:48:24 UTC (rev 7848) @@ -1,3 +1,8 @@ +2010-05-22 Andreas Kirschbaum + + * Implement File|Grow Selection and File|Shrink Selection: + grows/shrinks the selection by one map square. + 2010-05-21 Andreas Kirschbaum * Implement File|Expand Empty Selection: includes empty map Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-22 09:48:24 UTC (rev 7848) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/src/app/net/sf/gridarta/mainactions/MainActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2010-05-22 09:48:24 UTC (rev 7848) @@ -303,12 +303,24 @@ private final Action aSelectAll; /** - * Action called for "expand empty selection". + * Action called for "grow empty selection". */ @NotNull private final Action aExpandEmptySelection; /** + * Action called for "grow selection". + */ + @NotNull + private final Action aGrowSelection; + + /** + * Action called for "shrink selection". + */ + @NotNull + private final Action aShrinkSelection; + + /** * Action called for "collect archetypes". */ private final Action aCollectArches; @@ -567,6 +579,8 @@ aFloodfill = ActionUtils.newAction(ACTION_BUILDER, "Map/Fill", this, "floodfill"); aSelectAll = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "selectAll"); aExpandEmptySelection = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "expandEmptySelection"); + aGrowSelection = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "growSelection"); + aShrinkSelection = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "shrinkSelection"); aCollectArches = ActionUtils.newAction(ACTION_BUILDER, "Tool", this, "collectArches"); aReloadFaces = ActionUtils.newAction(ACTION_BUILDER, "Image,Tool", this, "reloadFaces"); aValidateMap = ActionUtils.newAction(ACTION_BUILDER, "Map,Tool", this, "validateMap"); @@ -643,6 +657,8 @@ aFloodfill.setEnabled(getFloodfillEnabled() != null); aSelectAll.setEnabled(getSelectAllEnabled() != null); aExpandEmptySelection.setEnabled(getExpandEmptySelectionEnabled() != null); + aGrowSelection.setEnabled(getGrowSelectionEnabled() != null); + aShrinkSelection.setEnabled(getShrinkSelectionEnabled() != null); aCollectArches.setEnabled(isCollectArchesEnabled()); aReloadFaces.setEnabled(!archetypeSet.isLoadedFromArchive()); aValidateMap.setEnabled(getValidateMapEnabled() != null); @@ -968,6 +984,80 @@ } /** + * Invoked when the user wants to grow the selection by one square. + */ + @ActionMethod + public void growSelection() { + final Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>> selectedSquares = getGrowSelectionEnabled(); + if (selectedSquares == null) { + return; + } + + final MapView<G, A, R> mapView = selectedSquares.getFirst(); + final MapGrid mapGrid = mapView.getMapViewBasic().getMapGrid(); + final MapModel<G, A, R> mapModel = mapView.getMapControl().getMapModel(); + final Point point = new Point(); + mapGrid.beginTransaction(); + try { + for (final MapSquare<G, A, R> mapSquare : selectedSquares.getSecond()) { + for (int dy = -1; dy <= 1; dy++) { + point.y = mapSquare.getMapY() + dy; + for (int dx = -1; dx <= 1; dx++) { + point.x = mapSquare.getMapX() + dx; + if (mapModel.isPointValid(point)) { + mapGrid.select(point, point, SelectionMode.ADD); + } + } + } + } + } finally { + mapGrid.endTransaction(); + } + } + + /** + * Invoked when the user wants to shrink the selection by one square. + */ + @ActionMethod + public void shrinkSelection() { + final Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>> selectedSquares = getShrinkSelectionEnabled(); + if (selectedSquares == null) { + return; + } + + final MapView<G, A, R> mapView = selectedSquares.getFirst(); + final MapGrid mapGrid = mapView.getMapViewBasic().getMapGrid(); + final MapModel<G, A, R> mapModel = mapView.getMapControl().getMapModel(); + final Point point = new Point(); + final Map<MapSquare<G, A, R>, Void> mapSquaresToShrink = new IdentityHashMap<MapSquare<G, A, R>, Void>(); + mapGrid.beginTransaction(); + try { + for (final MapSquare<G, A, R> mapSquare : selectedSquares.getSecond()) { +LOOP: + for (int dy = -1; dy <= 1; dy++) { + point.y = mapSquare.getMapY() + dy; + for (int dx = -1; dx <= 1; dx++) { + if (dx != 0 || dy != 0) { + point.x = mapSquare.getMapX() + dx; + if (mapModel.isPointValid(point) && (mapGrid.getFlags(point) & MapGrid.GRID_FLAG_SELECTION) == 0) { + mapSquaresToShrink.put(mapSquare, null); + break LOOP; + } + } + } + } + } + for (final MapSquare<G, A, R> mapSquare : mapSquaresToShrink.keySet()) { + point.x = mapSquare.getMapX(); + point.y = mapSquare.getMapY(); + mapGrid.select(point, point, SelectionMode.SUB); + } + } finally { + mapGrid.endTransaction(); + } + } + + /** * Invoked when "collect archetypes" was selected. */ @ActionMethod @@ -1211,6 +1301,38 @@ } /** + * Determines if "grow selection" is enabled. + * @return the map view/selected squares to grow if "expand selection" is + * enabled, or <code>null</code> otherwise + */ + @Nullable + private Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>> getGrowSelectionEnabled() { + final MapView<G, A, R> mapView = getSelection(); + if (mapView == null) { + return null; + } + + final List<MapSquare<G, A, R>> selectedSquares = mapView.getMapViewBasic().getSelectedSquares(); + return selectedSquares.isEmpty() ? null : new Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>>(mapView, selectedSquares); + } + + /** + * Determines if "shrink selection" is enabled. + * @return the map view/selected squares to shrink if "shrink selection" is + * enabled, or <code>null</code> otherwise + */ + @Nullable + private Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>> getShrinkSelectionEnabled() { + final MapView<G, A, R> mapView = getSelection(); + if (mapView == null) { + return null; + } + + final List<MapSquare<G, A, R>> selectedSquares = mapView.getMapViewBasic().getSelectedSquares(); + return selectedSquares.isEmpty() ? null : new Pair<MapView<G, A, R>, List<MapSquare<G, A, R>>>(mapView, selectedSquares); + } + + /** * Returns whether "collect archetypes" is enabled. * @return whether "collect archetypes" is enabled */ Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-22 09:48:24 UTC (rev 7848) @@ -795,9 +795,15 @@ selectAll.accel=ctrl pressed A expandEmptySelection.text=Expand Empty Selection -expandEmptySelection.shortdescription=Includes empty map squares surrounding selected empty squares to the selection. +expandEmptySelection.shortdescription=Includes empty map squares surrounding selected empty squares to the selection. +growSelection.text=Grow Selection +growSelection.shortdescription=Grows the selection by one square. +shrinkSelection.text=Shrink Selection +shrinkSelection.shortdescription=Shrinks the selection by one square. + + ############ # Resources Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-22 09:48:24 UTC (rev 7848) @@ -742,7 +742,13 @@ expandEmptySelection.text=Leere Auswahl erweitern expandEmptySelection.shortdescription=Erweitert die Auswahl um leere Felder, die an ausgew\xE4hlte leere Felder angrenzen. +growSelection.text=Auswahl vergr\xF6\xDFern +growSelection.shortdescription=Vergr\xF6\xDFert die Auswahl um ein Feld. +shrinkSelection.text=Auswahl verkleinern +shrinkSelection.shortdescription=Verkleinert die Auswahl um ein Feld. + + ############ # Resources Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-22 09:48:24 UTC (rev 7848) @@ -663,7 +663,13 @@ #expandEmptySelection.text= #expandEmptySelection.shortdescription= +#growSelection.text= +#growSelection.shortdescription= +#shrinkSelection.text= +#shrinkSelection.shortdescription= + + ############ # Resources Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-21 17:17:52 UTC (rev 7847) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-22 09:48:24 UTC (rev 7848) @@ -667,7 +667,13 @@ #expandEmptySelection.text= #expandEmptySelection.shortdescription= +#growSelection.text= +#growSelection.shortdescription= +#shrinkSelection.text= +#shrinkSelection.shortdescription= + + ############ # Resources This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-22 13:59:13
|
Revision: 7859 http://gridarta.svn.sourceforge.net/gridarta/?rev=7859&view=rev Author: akirschbaum Date: 2010-05-22 13:59:07 +0000 (Sat, 22 May 2010) Log Message: ----------- Remove ReplaceDialogManager.mapViewManagerListener. Modified Paths: -------------- trunk/gridarta.iml trunk/gridarta.ipr trunk/src/app/net/sf/gridarta/gui/replacedialog/ReplaceDialogManager.java Modified: trunk/gridarta.iml =================================================================== --- trunk/gridarta.iml 2010-05-22 13:57:53 UTC (rev 7858) +++ trunk/gridarta.iml 2010-05-22 13:59:07 UTC (rev 7859) @@ -9,6 +9,7 @@ <excludeFolder url="file://$MODULE_DIR$/crossfire" /> <excludeFolder url="file://$MODULE_DIR$/daimonin" /> <excludeFolder url="file://$MODULE_DIR$/dest" /> + <excludeFolder url="file://$MODULE_DIR$/doc" /> <excludeFolder url="file://$MODULE_DIR$/docs" /> <excludeFolder url="file://$MODULE_DIR$/metrics" /> <excludeFolder url="file://$MODULE_DIR$/src/screenshots" /> @@ -124,7 +125,9 @@ <root url="jar://$MODULE_DIR$/lib/japi-lib-swing-action-0.1.0.jar!/" /> </CLASSES> <JAVADOC /> - <SOURCES /> + <SOURCES> + <root url="file://$MODULE_DIR$/../../japi/libs/swing-action/trunk/src/prj" /> + </SOURCES> </library> </orderEntry> <orderEntry type="module-library"> Modified: trunk/gridarta.ipr =================================================================== --- trunk/gridarta.ipr 2010-05-22 13:57:53 UTC (rev 7858) +++ trunk/gridarta.ipr 2010-05-22 13:59:07 UTC (rev 7859) @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<project relativePaths="false" version="4"> +<project version="4"> <component name="AntConfiguration"> <defaultAnt bundledAnt="true" /> </component> @@ -52,6 +52,7 @@ <option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" /> <option name="SPACE_WITHIN_ARRAY_INITIALIZER_BRACES" value="true" /> <option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true" /> + <option name="PREFER_LONGER_NAMES" value="false" /> <option name="GENERATE_FINAL_LOCALS" value="true" /> <option name="GENERATE_FINAL_PARAMETERS" value="true" /> <option name="USE_FQ_CLASS_NAMES_IN_JAVADOC" value="false" /> @@ -62,11 +63,11 @@ </option> <option name="IMPORT_LAYOUT_TABLE"> <value> - <package name="" withSubpackages="true" /> + <package name="" withSubpackages="true" static="false" /> + <emptyLine /> + <package name="" withSubpackages="true" static="true" /> </value> </option> - <option name="OPTIMIZE_IMPORTS_ON_THE_FLY" value="true" /> - <option name="ADD_UNAMBIGIOUS_IMPORTS_ON_THE_FLY" value="true" /> <option name="RIGHT_MARGIN" value="80" /> <option name="WRAP_COMMENTS" value="true" /> <option name="IF_BRACE_FORCE" value="3" /> @@ -76,16 +77,6 @@ <option name="JD_ALIGN_PARAM_COMMENTS" value="false" /> <option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false" /> <option name="JD_ADD_BLANK_AFTER_DESCRIPTION" value="false" /> - <option name="JD_P_AT_EMPTY_LINES" value="false" /> - <ADDITIONAL_INDENT_OPTIONS fileType=""> - <option name="INDENT_SIZE" value="4" /> - <option name="CONTINUATION_INDENT_SIZE" value="8" /> - <option name="TAB_SIZE" value="4" /> - <option name="USE_TAB_CHARACTER" value="false" /> - <option name="SMART_TABS" value="false" /> - <option name="LABEL_INDENT_SIZE" value="0" /> - <option name="LABEL_INDENT_ABSOLUTE" value="false" /> - </ADDITIONAL_INDENT_OPTIONS> <ADDITIONAL_INDENT_OPTIONS fileType="groovy"> <option name="INDENT_SIZE" value="2" /> <option name="CONTINUATION_INDENT_SIZE" value="8" /> @@ -128,7 +119,6 @@ </component> <component name="CompilerConfiguration"> <option name="DEFAULT_COMPILER" value="Javac" /> - <option name="DEPLOY_AFTER_MAKE" value="0" /> <resourceExtensions> <entry name=".+\.(properties|xml|html|dtd|tld)" /> <entry name=".+\.(gif|png|jpeg|jpg)" /> @@ -153,11 +143,13 @@ <entry name="?*.jpeg" /> <entry name="?*.jpg" /> </wildcardResourcePatterns> + <annotationProcessing enabled="false" useClasspath="true" /> </component> <component name="CopyrightManager" default="Gridarta"> <copyright> <option name="notice" value="Gridarta MMORPG map editor for Crossfire, Daimonin and similar games. Copyright (C) 2000-2010 The Gridarta Developers. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA." /> <option name="keyword" value="Copyright" /> + <option name="allowReplaceKeyword" value="" /> <option name="myName" value="Gridarta" /> <option name="myLocal" value="true" /> </copyright> @@ -168,13 +160,6 @@ <component name="DependencyValidationManager"> <option name="SKIP_IMPORT_STATEMENTS" value="false" /> </component> - <component name="EclipseCompilerSettings"> - <option name="DEBUGGING_INFO" value="true" /> - <option name="GENERATE_NO_WARNINGS" value="false" /> - <option name="DEPRECATION" value="true" /> - <option name="ADDITIONAL_OPTIONS_STRING" value="" /> - <option name="MAXIMUM_HEAP_SIZE" value="128" /> - </component> <component name="EclipseEmbeddedCompilerSettings"> <option name="DEBUGGING_INFO" value="true" /> <option name="GENERATE_NO_WARNINGS" value="true" /> @@ -195,590 +180,557 @@ </component> <component name="IdProvider" IDEtalkID="334126487A954321E4EE61978AD5E372" /> <component name="InspectionProjectProfileManager"> - <option name="PROJECT_PROFILE" value="Project Default" /> - <option name="USE_PROJECT_LEVEL_SETTINGS" value="false" /> - <scopes /> <profiles> <profile version="1.0" is_locked="false"> <option name="myName" value="Project Default" /> <option name="myLocal" value="false" /> - <inspection_tool class="CssOverwrittenProperties" level="WARNING" enabled="false" /> - <inspection_tool class="InconsistentResourceBundle" level="ERROR" enabled="false"> - <option name="REPORT_MISSING_TRANSLATIONS" value="true" /> - <option name="REPORT_INCONSISTENT_PROPERTIES" value="true" /> - <option name="REPORT_DUPLICATED_PROPERTIES" value="true" /> + <inspection_tool class="AbstractClassExtendsConcreteClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AbstractClassNeverImplemented" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AbstractClassWithoutAbstractMethods" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AbstractMethodCallInConstructor" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AbstractMethodOverridesAbstractMethod" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AbstractMethodOverridesConcreteMethod" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AbstractMethodWithMissingImplementations" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AnonymousClassVariableHidesContainingMethodVariable" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ArchaicSystemPropertyAccess" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AssignmentToCatchBlockParameter" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AssignmentToForLoopParameter" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_checkForeachParameters" value="false" /> </inspection_tool> - <inspection_tool class="SimplifiableIfStatement" level="WARNING" enabled="false" /> - <inspection_tool class="InfiniteLoopStatement" level="WARNING" enabled="false" /> - <inspection_tool class="UnnecessaryLabelOnContinueStatement" level="WARNING" enabled="false" /> - <inspection_tool class="RequiredAttributes" level="WARNING" enabled="false"> - <option name="myAdditionalRequiredHtmlAttributes" value="" /> + <inspection_tool class="AssignmentToMethodParameter" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreTransformationOfOriginalParameter" value="false" /> </inspection_tool> - <inspection_tool class="UnusedMessageFormatParameter" level="WARNING" enabled="false" /> - <inspection_tool class="DefaultFileTemplate" level="WARNING" enabled="false"> - <option name="CHECK_FILE_HEADER" value="true" /> - <option name="CHECK_TRY_CATCH_SECTION" value="true" /> - <option name="CHECK_METHOD_BODY" value="true" /> + <inspection_tool class="AssignmentToNull" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AssignmentToStaticFieldFromInstanceMethod" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="AssignmentUsedAsCondition" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="BadExceptionCaught" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="exceptionsString" value="java.lang.NullPointerException,java.lang.IllegalMonitorStateException,java.lang.ArrayIndexOutOfBoundsException" /> </inspection_tool> - <inspection_tool class="UnnecessaryReturn" level="WARNING" enabled="false" /> - <inspection_tool class="BooleanMethodIsAlwaysInverted" level="WARNING" enabled="false" /> - <inspection_tool class="PointlessBitwiseExpression" level="WARNING" enabled="false"> - <option name="m_ignoreExpressionsContainingConstants" value="false" /> + <inspection_tool class="BadExceptionDeclared" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="exceptionsString" value="java.lang.Throwable,java.lang.Exception,java.lang.Error,java.lang.RuntimeException,java.lang.NullPointerException,java.lang.ClassCastException,java.lang.ArrayIndexOutOfBoundsException" /> + <option name="ignoreTestCases" value="false" /> </inspection_tool> - <inspection_tool class="SimplifiableConditionalExpression" level="WARNING" enabled="false" /> - <inspection_tool class="CssUnitlessNumber" level="WARNING" enabled="false" /> - <inspection_tool class="ConstantIfStatement" level="WARNING" enabled="false" /> - <inspection_tool class="CheckValidXmlInScriptTagBody" level="ERROR" enabled="false" /> - <inspection_tool class="UnnecessaryLocalVariable" level="WARNING" enabled="false"> - <option name="m_ignoreImmediatelyReturnedVariables" value="false" /> - <option name="m_ignoreAnnotatedVariables" value="false" /> + <inspection_tool class="BadExceptionThrown" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="exceptionsString" value="java.lang.Throwable,java.lang.Exception,java.lang.Error,java.lang.RuntimeException,java.lang.NullPointerException,java.lang.ClassCastException,java.lang.ArrayIndexOutOfBoundsException" /> </inspection_tool> - <inspection_tool class="SynchronizeOnNonFinalField" level="WARNING" enabled="false" /> - <inspection_tool class="UnnecessaryLabelOnBreakStatement" level="WARNING" enabled="false" /> - <inspection_tool class="ConstantConditionalExpression" level="WARNING" enabled="false" /> - <inspection_tool class="CssNoGenericFontName" level="WARNING" enabled="false" /> - <inspection_tool class="LoopStatementsThatDontLoop" level="WARNING" enabled="false" /> - <inspection_tool class="CheckImageSize" level="WARNING" enabled="false" /> - <inspection_tool class="UnresolvedPropertyKey" level="ERROR" enabled="false" /> - <inspection_tool class="CloneCallsSuperClone" level="WARNING" enabled="false" /> - <inspection_tool class="CloneDeclaresCloneNotSupported" level="WARNING" enabled="false" /> - <inspection_tool class="CheckEmptyScriptTag" level="WARNING" enabled="false" /> - <inspection_tool class="UnnecessaryContinue" level="WARNING" enabled="false" /> - <inspection_tool class="InstanceofChain" level="WARNING" enabled="true" /> - <inspection_tool class="InstanceofThis" level="WARNING" enabled="true" /> - <inspection_tool class="TypeMayBeWeakened" level="WARNING" enabled="true"> - <option name="useRighthandTypeAsWeakestTypeInAssignments" value="true" /> - <option name="useParameterizedTypeForCollectionMethods" value="true" /> + <inspection_tool class="BadOddness" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="BigDecimalEquals" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="BooleanMethodIsAlwaysInverted" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="CStyleArrayDeclaration" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CachedNumberConstructorCall" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CallToSimpleGetterInClass" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreGetterCallsOnOtherObjects" value="false" /> </inspection_tool> - <inspection_tool class="ReplaceAssignmentWithOperatorAssignment" level="WARNING" enabled="true"> - <option name="ignoreLazyOperators" value="true" /> - <option name="ignoreObscureOperators" value="false" /> + <inspection_tool class="CallToSimpleSetterInClass" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreSetterCallsOnOtherObjects" value="false" /> </inspection_tool> - <inspection_tool class="AssignmentToForLoopParameter" level="WARNING" enabled="true"> - <option name="m_checkForeachParameters" value="false" /> + <inspection_tool class="CallToStringConcatCanBeReplacedByOperator" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CastConflictsWithInstanceof" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CastThatLosesPrecision" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreIntegerCharCasts" value="false" /> </inspection_tool> - <inspection_tool class="AssignmentToNull" level="WARNING" enabled="true" /> - <inspection_tool class="AssignmentToCatchBlockParameter" level="WARNING" enabled="true" /> - <inspection_tool class="AssignmentToMethodParameter" level="WARNING" enabled="true"> - <option name="ignoreTransformationOfOriginalParameter" value="false" /> + <inspection_tool class="CastToIncompatibleInterface" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CatchGenericClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ChainedEquality" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ChannelResource" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CheckDtdRefs" enabled="false" level="ERROR" enabled_by_default="false" /> + <inspection_tool class="CheckEmptyScriptTag" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="CheckImageSize" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="CheckValidXmlInScriptTagBody" enabled="false" level="ERROR" enabled_by_default="false" /> + <inspection_tool class="ClassEscapesItsScope" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ClassInTopLevelPackage" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ClassNameDiffersFromFileName" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CloneCallsSuperClone" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="CloneDeclaresCloneNotSupported" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="CollectionAddedToSelf" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CollectionContainsUrl" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ComparableImplementedButEqualsNotOverridden" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ComparatorNotSerializable" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CompareToUsesNonFinalVariable" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ComparisonOfShortAndChar" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ComparisonToNaN" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ConditionalExpressionWithIdenticalBranches" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ConfusingElse" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ConfusingFloatingPointLiteral" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ConfusingOctalEscape" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ConstantConditionalExpression" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="ConstantIfStatement" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="ConstantMathCall" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ControlFlowStatementWithoutBraces" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CovariantCompareTo" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CovariantEquals" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="CssNoGenericFontName" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="CssOverwrittenProperties" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="CssUnitlessNumber" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="DefaultFileTemplate" enabled="false" level="WARNING" enabled_by_default="false"> + <option name="CHECK_FILE_HEADER" value="true" /> + <option name="CHECK_TRY_CATCH_SECTION" value="true" /> + <option name="CHECK_METHOD_BODY" value="true" /> </inspection_tool> - <inspection_tool class="AssignmentToStaticFieldFromInstanceMethod" level="WARNING" enabled="true" /> - <inspection_tool class="AssignmentUsedAsCondition" level="WARNING" enabled="true" /> - <inspection_tool class="NestedAssignment" level="WARNING" enabled="true" /> - <inspection_tool class="ClassComplexity" level="WARNING" enabled="true"> - <option name="m_limit" value="80" /> + <inspection_tool class="DivideByZero" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="EmptyClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="EmptyInitializer" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="EnumSwitchStatementWhichMissesCases" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreSwitchStatementsWithDefault" value="false" /> </inspection_tool> - <inspection_tool class="ClassNameDiffersFromFileName" level="WARNING" enabled="true" /> - <inspection_tool class="ClassInTopLevelPackage" level="WARNING" enabled="true" /> - <inspection_tool class="EmptyClass" level="WARNING" enabled="true" /> - <inspection_tool class="FinalMethodInFinalClass" level="WARNING" enabled="true" /> - <inspection_tool class="MarkerInterface" level="WARNING" enabled="true" /> - <inspection_tool class="MissingDeprecatedAnnotation" level="WARNING" enabled="true" /> - <inspection_tool class="MissingOverrideAnnotation" level="WARNING" enabled="true" /> - <inspection_tool class="MultipleTopLevelClassesInFile" level="WARNING" enabled="true" /> - <inspection_tool class="NoopMethodInAbstractClass" level="WARNING" enabled="true" /> - <inspection_tool class="ProtectedMemberInFinalClass" level="WARNING" enabled="true" /> - <inspection_tool class="PublicConstructorInNonPublicClass" level="WARNING" enabled="true" /> - <inspection_tool class="Singleton" level="WARNING" enabled="true" /> - <inspection_tool class="UtilityClassWithPublicConstructor" level="WARNING" enabled="true" /> - <inspection_tool class="UtilityClassWithoutPrivateConstructor" level="WARNING" enabled="true"> - <option name="ignoreClassesWithOnlyMain" value="false" /> + <inspection_tool class="EqualsAndHashcode" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="EqualsHashCodeCalledOnUrl" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="EqualsUsesNonFinalVariable" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ErrorRethrown" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ExceptionFromCatchWhichDoesntWrap" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreGetMessage" value="false" /> </inspection_tool> - <inspection_tool class="ThrowablePrintStackTrace" level="WARNING" enabled="true" /> - <inspection_tool class="ThreadDumpStack" level="WARNING" enabled="true" /> - <inspection_tool class="CStyleArrayDeclaration" level="WARNING" enabled="true" /> - <inspection_tool class="CallToStringConcatCanBeReplacedByOperator" level="WARNING" enabled="true" /> - <inspection_tool class="ChainedEquality" level="WARNING" enabled="true" /> - <inspection_tool class="ChainedMethodCall" level="WARNING" enabled="true"> - <option name="m_ignoreFieldInitializations" value="true" /> + <inspection_tool class="ExtendsConcreteCollection" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ExtendsUtilityClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="FieldHidesSuperclassField" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_ignoreInvisibleFields" value="true" /> </inspection_tool> - <inspection_tool class="ConfusingOctalEscape" level="WARNING" enabled="true" /> - <inspection_tool class="ControlFlowStatementWithoutBraces" level="WARNING" enabled="true" /> - <inspection_tool class="ListIndexOfReplaceableByContains" level="WARNING" enabled="true" /> - <inspection_tool class="LocalCanBeFinal" level="WARNING" enabled="true"> - <option name="REPORT_VARIABLES" value="true" /> - <option name="REPORT_PARAMETERS" value="true" /> + <inspection_tool class="FieldMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="FinalMethodInFinalClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="Finalize" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreTrivialFinalizers" value="true" /> </inspection_tool> - <inspection_tool class="MissortedModifiers" level="WARNING" enabled="true"> - <option name="m_requireAnnotationsFirst" value="true" /> + <inspection_tool class="FinalizeNotProtected" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="FloatingPointEquality" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ForLoopThatDoesntUseLoopVariable" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="HashCodeUsesNonFinalVariable" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="IOResource" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoredTypesString" value="java.io.ByteArrayOutputStream,java.io.ByteArrayInputStream,java.io.StringBufferInputStream,java.io.CharArrayWriter,java.io.CharArrayReader,java.io.StringWriter,java.io.StringReader" /> </inspection_tool> - <inspection_tool class="MultipleDeclaration" level="WARNING" enabled="true" /> - <inspection_tool class="RedundantImplements" level="WARNING" enabled="true" /> - <inspection_tool class="ReturnThis" level="WARNING" enabled="true" /> - <inspection_tool class="UnnecessarilyQualifiedStaticUsage" level="WARNING" enabled="true"> - <option name="m_ignoreStaticFieldAccesses" value="false" /> - <option name="m_ignoreStaticMethodCalls" value="false" /> - <option name="m_ignoreStaticAccessFromStaticContext" value="false" /> + <inspection_tool class="IfStatementWithIdenticalBranches" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ImplicitNumericConversion" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreWideningConversions" value="false" /> + <option name="ignoreCharConversions" value="false" /> + <option name="ignoreConstantConversions" value="false" /> </inspection_tool> - <inspection_tool class="UnnecessaryThis" level="WARNING" enabled="true" /> - <inspection_tool class="UnnecessarySuperConstructor" level="WARNING" enabled="true" /> - <inspection_tool class="UnnecessaryBlockStatement" level="WARNING" enabled="true" /> - <inspection_tool class="UnnecessaryEnumModifier" level="WARNING" enabled="true" /> - <inspection_tool class="UnnecessaryFullyQualifiedName" level="WARNING" enabled="true"> - <option name="m_ignoreJavadoc" value="false" /> + <inspection_tool class="InconsistentResourceBundle" enabled="false" level="ERROR" enabled_by_default="false"> + <option name="REPORT_MISSING_TRANSLATIONS" value="true" /> + <option name="REPORT_INCONSISTENT_PROPERTIES" value="true" /> + <option name="REPORT_DUPLICATED_PROPERTIES" value="true" /> </inspection_tool> - <inspection_tool class="UnnecessaryInterfaceModifier" level="WARNING" enabled="true" /> - <inspection_tool class="UnnecessaryParentheses" level="WARNING" enabled="true"> - <option name="ignoreClarifyingParentheses" value="false" /> - <option name="ignoreParenthesesOnConditionals" value="false" /> + <inspection_tool class="IndexOfReplaceableByContains" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="InfiniteLoopStatement" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="InnerClassMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="InnerClassVariableHidesOuterClassVariable" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_ignoreInvisibleFields" value="true" /> </inspection_tool> - <inspection_tool class="UnnecessaryQualifierForThis" level="WARNING" enabled="true" /> - <inspection_tool class="MultipleTypedDeclaration" level="WARNING" enabled="true" /> - <inspection_tool class="ConditionalExpressionWithIdenticalBranches" level="WARNING" enabled="true" /> - <inspection_tool class="ConfusingElse" level="WARNING" enabled="true" /> - <inspection_tool class="EnumSwitchStatementWhichMissesCases" level="WARNING" enabled="true"> - <option name="ignoreSwitchStatementsWithDefault" value="false" /> + <inspection_tool class="InstanceVariableInitialization" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_ignorePrimitives" value="false" /> </inspection_tool> - <inspection_tool class="ForLoopReplaceableByWhile" level="WARNING" enabled="true"> - <option name="m_ignoreLoopsWithoutConditions" value="false" /> + <inspection_tool class="InstanceVariableUninitializedUse" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_ignorePrimitives" value="false" /> </inspection_tool> - <inspection_tool class="IfStatementWithIdenticalBranches" level="WARNING" enabled="true" /> - <inspection_tool class="SwitchStatementWithConfusingDeclaration" level="WARNING" enabled="true" /> - <inspection_tool class="PointlessIndexOfComparison" level="WARNING" enabled="true" /> - <inspection_tool class="LawOfDemeter" level="WARNING" enabled="true"> - <option name="ignoreLibraryCalls" value="true" /> + <inspection_tool class="InstanceofCatchParameter" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="InstanceofChain" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="InstanceofIncompatibleInterface" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="InstanceofThis" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="InstantiationOfUtilityClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="IntegerDivisionInFloatingPointContext" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="IntegerMultiplicationImplicitCastToLong" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="InterfaceNeverImplemented" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreInterfacesThatOnlyDeclareConstants" value="false" /> </inspection_tool> - <inspection_tool class="ReuseOfLocalVariable" level="WARNING" enabled="true" /> - <inspection_tool class="TooBroadScope" level="WARNING" enabled="true"> - <option name="m_allowConstructorAsInitializer" value="false" /> - <option name="m_onlyLookAtBlocks" value="false" /> + <inspection_tool class="IteratorHasNextCallsIteratorNext" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="IteratorNextDoesNotThrowNoSuchElementException" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="JavaDoc" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="TOP_LEVEL_CLASS_OPTIONS"> + <value> + <option name="ACCESS_JAVADOC_REQUIRED_FOR" value="package" /> + <option name="REQUIRED_TAGS" value="@author" /> + </value> + </option> + <option name="INNER_CLASS_OPTIONS"> + <value> + <option name="ACCESS_JAVADOC_REQUIRED_FOR" value="private" /> + <option name="REQUIRED_TAGS" value="" /> + </value> + </option> + <option name="METHOD_OPTIONS"> + <value> + <option name="ACCESS_JAVADOC_REQUIRED_FOR" value="private" /> + <option name="REQUIRED_TAGS" value="@return@param@throws or @exception" /> + </value> + </option> + <option name="FIELD_OPTIONS"> + <value> + <option name="ACCESS_JAVADOC_REQUIRED_FOR" value="private" /> + <option name="REQUIRED_TAGS" value="" /> + </value> + </option> + <option name="IGNORE_DEPRECATED" value="true" /> + <option name="IGNORE_JAVADOC_PERIOD" value="false" /> + <option name="IGNORE_DUPLICATED_THROWS" value="false" /> + <option name="myAdditionalJavadocTags" value="fixme invariant note todo val warning" /> </inspection_tool> - <inspection_tool class="RedundantSuppression" level="WARNING" enabled="true" /> - <inspection_tool class="RedundantThrowsDeclaration" level="WARNING" enabled="true" /> - <inspection_tool class="UnusedLibrary" level="WARNING" enabled="true" /> - <inspection_tool class="PackageVisibleField" level="WARNING" enabled="true" /> - <inspection_tool class="PackageVisibleInnerClass" level="WARNING" enabled="true" /> - <inspection_tool class="ProtectedField" level="WARNING" enabled="true" /> - <inspection_tool class="ProtectedInnerClass" level="WARNING" enabled="true" /> - <inspection_tool class="PublicField" level="WARNING" enabled="true"> - <option name="ignoreEnums" value="false" /> + <inspection_tool class="JavaLangImport" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="LengthOneStringInIndexOf" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ListIndexOfReplaceableByContains" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="LocalCanBeFinal" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="REPORT_VARIABLES" value="true" /> + <option name="REPORT_PARAMETERS" value="true" /> </inspection_tool> - <inspection_tool class="PublicInnerClass" level="WARNING" enabled="true"> - <option name="ignoreEnums" value="false" /> + <inspection_tool class="LocalVariableHidingMemberVariable" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_ignoreInvisibleFields" value="true" /> + <option name="m_ignoreStaticMethods" value="true" /> </inspection_tool> - <inspection_tool class="CatchGenericClass" level="WARNING" enabled="true" /> - <inspection_tool class="InstanceofCatchParameter" level="WARNING" enabled="true" /> - <inspection_tool class="ErrorRethrown" level="WARNING" enabled="true" /> - <inspection_tool class="ThreadDeathRethrown" level="WARNING" enabled="true" /> - <inspection_tool class="NonFinalFieldOfException" level="WARNING" enabled="true" /> - <inspection_tool class="TooBroadCatch" level="WARNING" enabled="true"> - <option name="onlyWarnOnRootExceptions" value="false" /> + <inspection_tool class="LongLiteralsEndingWithLowercaseL" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="LoopStatementsThatDontLoop" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="MapReplaceableByEnumMap" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MarkerInterface" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MethodMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_onlyPrivateOrFinal" value="false" /> + <option name="m_ignoreEmptyMethods" value="true" /> </inspection_tool> - <inspection_tool class="BadExceptionCaught" level="WARNING" enabled="true"> - <option name="exceptionsString" value="java.lang.NullPointerException,java.lang.IllegalMonitorStateException,java.lang.ArrayIndexOutOfBoundsException" /> + <inspection_tool class="MethodOverloadsParentMethod" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MethodOverridesPackageLocalMethod" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MethodOverridesPrivateMethod" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MethodOverridesStaticMethod" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MissingDeprecatedAnnotation" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MissingOverrideAnnotation" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MissortedModifiers" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_requireAnnotationsFirst" value="true" /> </inspection_tool> - <inspection_tool class="BadExceptionDeclared" level="WARNING" enabled="true"> - <option name="exceptionsString" value="java.lang.Throwable,java.lang.Exception,java.lang.Error,java.lang.RuntimeException,java.lang.NullPointerException,java.lang.ClassCastException,java.lang.ArrayIndexOutOfBoundsException" /> - <option name="ignoreTestCases" value="false" /> - </inspection_tool> - <inspection_tool class="BadExceptionThrown" level="WARNING" enabled="true"> - <option name="exceptionsString" value="java.lang.Throwable,java.lang.Exception,java.lang.Error,java.lang.RuntimeException,java.lang.NullPointerException,java.lang.ClassCastException,java.lang.ArrayIndexOutOfBoundsException" /> - </inspection_tool> - <inspection_tool class="ExceptionFromCatchWhichDoesntWrap" level="WARNING" enabled="true"> - <option name="ignoreGetMessage" value="false" /> - </inspection_tool> - <inspection_tool class="UncheckedExceptionClass" level="WARNING" enabled="true" /> - <inspection_tool class="UnusedCatchParameter" level="WARNING" enabled="true"> - <option name="m_ignoreCatchBlocksWithComments" value="false" /> - <option name="m_ignoreTestCases" value="false" /> - </inspection_tool> - <inspection_tool class="Finalize" level="WARNING" enabled="true" /> - <inspection_tool class="FinalizeNotProtected" level="WARNING" enabled="true" /> - <inspection_tool class="EqualsAndHashcode" level="WARNING" enabled="true" /> - <inspection_tool class="OnDemandImport" level="WARNING" enabled="true" /> - <inspection_tool class="SamePackageImport" level="WARNING" enabled="true" /> - <inspection_tool class="JavaLangImport" level="WARNING" enabled="true" /> - <inspection_tool class="RedundantImport" level="WARNING" enabled="true" /> - <inspection_tool class="StaticImport" level="WARNING" enabled="true" /> - <inspection_tool class="UnusedImport" level="WARNING" enabled="true" /> - <inspection_tool class="AbstractClassExtendsConcreteClass" level="WARNING" enabled="true" /> - <inspection_tool class="AbstractClassNeverImplemented" level="WARNING" enabled="true" /> - <inspection_tool class="AbstractClassWithoutAbstractMethods" level="WARNING" enabled="true" /> - <inspection_tool class="AbstractMethodOverridesAbstractMethod" level="WARNING" enabled="true" /> - <inspection_tool class="AbstractMethodOverridesConcreteMethod" level="WARNING" enabled="true" /> - <inspection_tool class="AbstractMethodWithMissingImplementations" level="WARNING" enabled="true" /> - <inspection_tool class="ExtendsConcreteCollection" level="WARNING" enabled="true" /> - <inspection_tool class="ExtendsUtilityClass" level="WARNING" enabled="true" /> - <inspection_tool class="NonProtectedConstructorInAbstractClass" level="WARNING" enabled="true"> + <inspection_tool class="MisspelledCompareTo" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MisspelledEquals" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MisspelledHashcode" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MisspelledToString" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MultipleDeclaration" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MultipleTopLevelClassesInFile" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="MultipleTypedDeclaration" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NestedAssignment" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NonFinalFieldOfException" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NonFinalStaticVariableUsedInClassInitialization" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NonProtectedConstructorInAbstractClass" enabled="true" level="WARNING" enabled_by_default="true"> <option name="m_ignoreNonPublicClasses" value="false" /> </inspection_tool> - <inspection_tool class="InterfaceNeverImplemented" level="WARNING" enabled="true"> - <option name="ignoreInterfacesThatOnlyDeclareConstants" value="false" /> + <inspection_tool class="NonReproducibleMathCall" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NonSerializableFieldInSerializableClass" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="superClassString" value="java.awt.Component" /> </inspection_tool> - <inspection_tool class="RedundantMethodOverride" level="WARNING" enabled="true" /> - <inspection_tool class="RefusedBequest" level="WARNING" enabled="true"> - <option name="ignoreEmptySuperMethods" value="false" /> + <inspection_tool class="NonSerializableObjectPassedToObjectStream" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NonSerializableWithSerialVersionUIDField" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NonShortCircuitBoolean" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NonThreadSafeLazyInitialization" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="NoopMethodInAbstractClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ObjectToString" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="OctalAndDecimalIntegersMixed" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="OnDemandImport" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="OverridableMethodCallDuringObjectConstruction" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="OverriddenMethodCallDuringObjectConstruction" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="PackageVisibleField" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="PackageVisibleInnerClass" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreEnums" value="false" /> </inspection_tool> - <inspection_tool class="StaticInheritance" level="WARNING" enabled="true" /> - <inspection_tool class="TypeParameterExtendsFinalClass" level="WARNING" enabled="true" /> - <inspection_tool class="AbstractMethodCallInConstructor" level="WARNING" enabled="true" /> - <inspection_tool class="InstanceVariableInitialization" level="WARNING" enabled="true"> - <option name="m_ignorePrimitives" value="false" /> + <inspection_tool class="PointlessBitwiseExpression" enabled="false" level="WARNING" enabled_by_default="false"> + <option name="m_ignoreExpressionsContainingConstants" value="false" /> </inspection_tool> - <inspection_tool class="InstanceVariableUninitializedUse" level="WARNING" enabled="true"> - <option name="m_ignorePrimitives" value="false" /> + <inspection_tool class="PointlessIndexOfComparison" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ProtectedField" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ProtectedInnerClass" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreEnums" value="false" /> </inspection_tool> - <inspection_tool class="NonFinalStaticVariableUsedInClassInitialization" level="WARNING" enabled="true" /> - <inspection_tool class="OverridableMethodCallDuringObjectConstruction" level="WARNING" enabled="true" /> - <inspection_tool class="OverriddenMethodCallDuringObjectConstruction" level="WARNING" enabled="true" /> - <inspection_tool class="StaticVariableInitialization" level="WARNING" enabled="true"> - <option name="m_ignorePrimitives" value="false" /> + <inspection_tool class="ProtectedMemberInFinalClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="PublicConstructorInNonPublicClass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="PublicField" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreEnums" value="false" /> </inspection_tool> - <inspection_tool class="StaticVariableUninitializedUse" level="WARNING" enabled="true"> - <option name="m_ignorePrimitives" value="false" /> + <inspection_tool class="PublicInnerClass" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreEnums" value="false" /> </inspection_tool> - <inspection_tool class="ThisEscapedInConstructor" level="WARNING" enabled="true" /> - <inspection_tool class="NonThreadSafeLazyInitialization" level="WARNING" enabled="true" /> - <inspection_tool class="IndexOfReplaceableByContains" level="WARNING" enabled="true" /> - <inspection_tool class="RawUseOfParameterizedType" level="WARNING" enabled="true"> + <inspection_tool class="RandomDoubleForRandomInteger" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="RawUseOfParameterizedType" enabled="true" level="WARNING" enabled_by_default="true"> <option name="ignoreObjectConstruction" value="true" /> <option name="ignoreTypeCasts" value="false" /> </inspection_tool> - <inspection_tool class="ZeroLengthArrayInitialization" level="WARNING" enabled="true" /> - <inspection_tool class="ComparisonOfShortAndChar" level="WARNING" enabled="true" /> - <inspection_tool class="ComparisonToNaN" level="WARNING" enabled="true" /> - <inspection_tool class="ConfusingFloatingPointLiteral" level="WARNING" enabled="true" /> - <inspection_tool class="ConstantMathCall" level="WARNING" enabled="true" /> - <inspection_tool class="DivideByZero" level="WARNING" enabled="true" /> - <inspection_tool class="BigDecimalEquals" level="WARNING" enabled="true" /> - <inspection_tool class="FloatingPointEquality" level="WARNING" enabled="true" /> - <inspection_tool class="ImplicitNumericConversion" level="WARNING" enabled="true"> - <option name="ignoreWideningConversions" value="false" /> - <option name="ignoreCharConversions" value="false" /> + <inspection_tool class="RedundantImplements" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreSerializable" value="false" /> + <option name="ignoreCloneable" value="false" /> </inspection_tool> - <inspection_tool class="IntegerDivisionInFloatingPointContext" level="WARNING" enabled="true" /> - <inspection_tool class="IntegerMultiplicationImplicitCastToLong" level="WARNING" enabled="true" /> - <inspection_tool class="LongLiteralsEndingWithLowercaseL" level="WARNING" enabled="true" /> - <inspection_tool class="NonReproducibleMathCall" level="WARNING" enabled="true" /> - <inspection_tool class="CachedNumberConstructorCall" level="WARNING" enabled="true" /> - <inspection_tool class="CastThatLosesPrecision" level="WARNING" enabled="true"> - <option name="ignoreIntegerCharCasts" value="false" /> + <inspection_tool class="RedundantImport" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="RedundantMethodOverride" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="RedundantSuppression" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="RedundantThrowsDeclaration" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="RefusedBequest" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreEmptySuperMethods" value="false" /> </inspection_tool> - <inspection_tool class="OctalAndDecimalIntegersMixed" level="WARNING" enabled="true" /> - <inspection_tool class="OverlyComplexArithmeticExpression" level="WARNING" enabled="true"> - <option name="m_limit" value="6" /> + <inspection_tool class="ReplaceAllDot" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ReplaceAssignmentWithOperatorAssignment" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="ignoreLazyOperators" value="true" /> + <option name="ignoreObscureOperators" value="false" /> </inspection_tool> - <inspection_tool class="BadOddness" level="WARNING" enabled="true" /> - <inspection_tool class="UnaryPlus" level="WARNING" enabled="true" /> - <inspection_tool class="UnnecessaryUnaryMinus" level="WARNING" enabled="true" /> - <inspection_tool class="UnpredictableBigDecimalConstructorCall" level="WARNING" enabled="true" /> - <inspection_tool class="CallToSimpleGetterInClass" level="WARNING" enabled="true"> - <option name="ignoreGetterCallsOnOtherObjects" value="false" /> + <inspection_tool class="RequiredAttributes" enabled="false" level="WARNING" enabled_by_default="false"> + <option name="myAdditionalRequiredHtmlAttributes" value="" /> </inspection_tool> - <inspection_tool class="CallToSimpleSetterInClass" level="WARNING" enabled="true"> - <option name="ignoreSetterCallsOnOtherObjects" value="false" /> + <inspection_tool class="ResultOfObjectAllocationIgnored" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ResultSetIndexZero" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="ReturnNull" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_reportObjectMethods" value="true" /> + <option name="m_reportArrayMethods" value="true" /> + <option name="m_reportCollectionMethods" value="true" /> </inspection_tool> - <inspection_tool class="TrivialStringConcatenation" level="WARNING" enabled="true" /> - <inspection_tool class="StringBufferReplaceableByString" level="WARNING" enabled="true" /> - <inspection_tool class="EqualsHashCodeCalledOnUrl" level="WARNING" enabled="true" /> - <inspection_tool class="FieldMayBeStatic" level="WARNING" enabled="true" /> - <inspection_tool class="InnerClassMayBeStatic" level="WARNING" enabled="true" /> - <inspection_tool class="CollectionContainsUrl" level="WARNING" enabled="true" /> - <inspection_tool class="MapReplaceableByEnumMap" level="WARNING" enabled="true" /> - <inspection_tool class="MethodMayBeStatic" level="WARNING" enabled="true"> - <option name="m_onlyPrivateOrFinal" value="false" /> - <option name="m_ignoreEmptyMethods" value="true" /> + <inspection_tool class="ReuseOfLocalVariable" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="SamePackageImport" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="SerialPersistentFieldsWithWrongSignature" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="SerialVersionUIDNotStaticFinal" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="SerializableHasSerialVersionUIDField" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="superClassString" value="java.awt.Component" /> </inspection_tool> - <inspection_tool class="StringReplaceableByStringBuffer" level="WARNING" enabled="true"> - <option name="onlyWarnOnLoop" value="true" /> + <inspection_tool class="SerializableInnerClassHasSerialVersionUIDField" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="superClassString" value="java.awt.Component" /> </inspection_tool> - <inspection_tool class="SubstringZero" level="WARNING" enabled="true" /> - <inspection_tool class="SetReplaceableByEnumSet" level="WARNING" enabled="true" /> - <inspection_tool class="LengthOneStringInIndexOf" level="WARNING" enabled="true" /> - <inspection_tool class="SizeReplaceableByIsEmpty" level="WARNING" enabled="true"> + <inspection_tool class="SetReplaceableByEnumSet" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="SimplifiableConditionalExpression" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="SimplifiableIfStatement" enabled="false" level="WARNING" enabled_by_default="false" /> + <inspection_tool class="Singleton" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="SizeReplaceableByIsEmpty" enabled="true" level="WARNING" enabled_by_default="true"> <option name="ignoreNegations" value="false" /> </inspection_tool> - <inspection_tool class="StringEqualsEmptyString" level="WARNING" enabled="true" /> - <inspection_tool class="StringBufferReplaceableByStringBuilder" level="WARNING" enabled="true" /> - <inspection_tool class="StringBufferToStringInConcatenation" level="WARNING" enabled="true" /> - <inspection_tool class="RandomDoubleForRandomInteger" level="WARNING" enabled="true" /> - <inspection_tool class="ObjectToString" level="WARNING" enabled="true" /> - <inspection_tool class="ReplaceAllDot" level="WARNING" enabled="true" /> - <inspection_tool class="CastConflictsWithInstanceof" level="WARNING" enabled="true" /> - <inspection_tool class="CastToIncompatibleInterface" level="WARNING" enabled="true" /> - <inspection_tool class="CollectionAddedToSelf" level="WARNING" enabled="true" /> - <inspection_tool class="ComparableImplementedButEqualsNotOverridden" level="WARNING" enabled="true" /> - <inspection_tool class="MisspelledCompareTo" level="WARNING" enabled="true" /> - <inspection_tool class="CovariantCompareTo" level="WARNING" enabled="true" /> - <inspection_tool class="CovariantEquals" level="WARNING" enabled="true" /> - <inspection_tool class="EmptyInitializer" level="WARNING" enabled="true" /> - <inspection_tool class="MisspelledEquals" level="WARNING" enabled="true" /> - <inspection_tool class="ForLoopThatDoesntUseLoopVariable" level="WARNING" enabled="true" /> - <inspection_tool class="MisspelledHashcode" level="WARNING" enabled="true" /> - <inspection_tool class="InstanceofIncompatibleInterface" level="WARNING" enabled="true" /> - <inspection_tool class="InstantiationOfUtilityClass" level="WARNING" enabled="true" /> - <inspection_tool class="IteratorHasNextCallsIteratorNext" level="WARNING" enabled="true" /> - <inspection_tool class="IteratorNextDoesNotThrowNoSuchElementException" level="WARNING" enabled="true" /> - <inspection_tool class="CompareToUsesNonFinalVariable" level="WARNING" enabled="true" /> - <inspection_tool class="EqualsUsesNonFinalVariable" level="WARNING" enabled="true" /> - <inspection_tool class="HashCodeUsesNonFinalVariable" level="WARNING" enabled="true" /> - <inspection_tool class="NonShortCircuitBoolean" level="WARNING" enabled="true" /> - <inspection_tool class="ObjectEquality" level="WARNING" enabled="true"> - <option name="m_ignoreEnums" value="true" /> - <option name="m_ignoreClassObjects" value="false" /> - <option name="m_ignorePrivateConstructors" value="false" /> + <inspection_tool class="SocketResource" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="SpellCheckingInspection" enabled="true" level="INFO" enabled_by_default="true"> + <option name="processCode" value="true" /> + <option name="processLiterals" value="true" /> + <option name="processComments" value="true" /> </inspection_tool> - <inspection_tool class="ResultOfObjectAllocationIgnored" level="WARNING" enabled="true" /> - <inspection_tool class="ReturnNull" level="WARNING" enabled="true"> - <option name="m_reportObjectMethods" value="true" /> - <option name="m_reportArrayMethods" value="true" /> - <option name="m_reportCollectionMethods" value="true" /> + <inspection_tool class="StaticCallOnSubclass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="StaticFieldReferenceOnSubclass" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="StaticImport" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="StaticInheritance" enabled="true" level="WARNING" enabled_by_default="true" /> + <inspection_tool class="StaticVariableInitialization" enabled="true" level="WARNING" enabled_by_default="true"> + <option name="m_ignorePrimitives" value="false" /> </inspection_tool> - <inspection_tool class="StaticFieldReferenceOnSubclass" level="WARNING" enabled="true" /> - <inspection_tool class="StaticCallOnSubclass" level="WARNING" enabled="true" /> - <inspection_tool class="SubtractionInCompareTo" level="WARNING" enabled="true" /> - <inspection_tool class="SuspiciousIndentAfterControlStatement" level="WARNING" enabled="true" /> - <inspection_tool class="TextLabelInSwitchStatement" level="WARNING" enabled="true" /> - <inspection_tool class="MisspelledToString" level="WARNING" enabled="true" /> - <inspection_tool class="ArchaicSystemPropertyAccess" level="WARNING" enabled="true" /> - <inspection_tool class="ResultSetIndexZero" level="WARNING" enabled="true" /> - <inspection_tool class="UseOfPropertiesAsHashtable" level="WARNING" enabled="true" /> - <inspection_tool class="ChannelResource" level="WARNING" enabled="true" /> - <inspection_tool class="IOR... [truncated message content] |
From: <aki...@us...> - 2010-05-22 19:07:22
|
Revision: 7875 http://gridarta.svn.sourceforge.net/gridarta/?rev=7875&view=rev Author: akirschbaum Date: 2010-05-22 19:07:16 +0000 (Sat, 22 May 2010) Log Message: ----------- Fix typos. Modified Paths: -------------- trunk/gridarta.ipr trunk/src/app/net/sf/gridarta/model/map/mapmodel/DefaultMapModel.java trunk/src/app/net/sf/gridarta/model/map/mapmodel/MapModel.java Modified: trunk/gridarta.ipr =================================================================== --- trunk/gridarta.ipr 2010-05-22 19:03:17 UTC (rev 7874) +++ trunk/gridarta.ipr 2010-05-22 19:07:16 UTC (rev 7875) @@ -1120,6 +1120,7 @@ <w>autojoining</w> <w>backbuffer</w> <w>beanshell</w> + <w>bitmask</w> <w>daimonin</w> <w>filter<?, ?></w> <w>goto</w> Modified: trunk/src/app/net/sf/gridarta/model/map/mapmodel/DefaultMapModel.java =================================================================== --- trunk/src/app/net/sf/gridarta/model/map/mapmodel/DefaultMapModel.java 2010-05-22 19:03:17 UTC (rev 7874) +++ trunk/src/app/net/sf/gridarta/model/map/mapmodel/DefaultMapModel.java 2010-05-22 19:07:16 UTC (rev 7875) @@ -332,10 +332,10 @@ final Collection<GameObject<G, A, R>> objectsToDelete = new HashSet<GameObject<G, A, R>>(); - // no other thread may access this mapmodel while resizing + // no other thread may access this map model while resizing synchronized (syncLock) { // first delete all arches in the area that will get cut off - // (this is especially important to remove all multipart-objects + // (this is especially important to remove all multi-part objects // reaching into that area) if (mapSize.getWidth() > newSize.getWidth()) { // clear out the right stripe (as far as being cut off) @@ -850,7 +850,7 @@ BaseObject<G, A, R, ?> baseObjectPart = baseObject; for (R archetypePart = effectiveArchetype; archetypePart != null; archetypePart = archetypePart.getMultiNext(), baseObjectPart = baseObjectPart.getMultiNext()) { if (baseObjectPart == null) { - throw new AssertionError("mutlt-parts of base object " + baseObject.getBestName() + " and archetype " + effectiveArchetype.getBestName() + " do not match"); + throw new AssertionError("multi-parts of base object " + baseObject.getBestName() + " and archetype " + effectiveArchetype.getBestName() + " do not match"); } final G part = baseObjectPart.newInstance(gameObjectFactory); part.setArchetype(archetypePart); @@ -865,12 +865,12 @@ } for (final G part : parts) { - final int mapx = pos.x + part.getMultiX(); - final int mapy = pos.y + part.getMultiY(); - part.setMapX(mapx); - part.setMapY(mapy); + final int mapX = pos.x + part.getMultiX(); + final int mapY = pos.y + part.getMultiY(); + part.setMapX(mapX); + part.setMapY(mapY); gameObjectMatchers.updateEditType(part, activeEditType); - insertionMode.insert(part, mapGrid.getMapSquare(mapx, mapy)); + insertionMode.insert(part, mapGrid.getMapSquare(mapX, mapY)); } final G head = parts.get(0); @@ -886,15 +886,15 @@ */ @Override public void addGameObjectToMap(@NotNull final G gameObject, @NotNull final InsertionMode<G, A, R> insertionMode) { - final int mapx = gameObject.getMapX(); - final int mapy = gameObject.getMapY(); - if (!isPointValid(new Point(mapx, mapy))) { - log.error("addGameObjectToMap: trying to insert game object out of map bounds at " + mapx + "/" + mapy + ", map bounds is " + mapSize); + final int mapX = gameObject.getMapX(); + final int mapY = gameObject.getMapY(); + if (!isPointValid(new Point(mapX, mapY))) { + log.error("addGameObjectToMap: trying to insert game object out of map bounds at " + mapX + "/" + mapY + ", map bounds is " + mapSize); return; } gameObjectMatchers.updateEditType(gameObject, activeEditType); - insertionMode.insert(gameObject, mapGrid.getMapSquare(mapx, mapy)); + insertionMode.insert(gameObject, mapGrid.getMapSquare(mapX, mapY)); } /** Modified: trunk/src/app/net/sf/gridarta/model/map/mapmodel/MapModel.java =================================================================== --- trunk/src/app/net/sf/gridarta/model/map/mapmodel/MapModel.java 2010-05-22 19:03:17 UTC (rev 7874) +++ trunk/src/app/net/sf/gridarta/model/map/mapmodel/MapModel.java 2010-05-22 19:07:16 UTC (rev 7875) @@ -39,14 +39,14 @@ * is to allow several subsequent changes to the model to be collected as a * single big change before the registered listeners (usually the user * interface) gets notified. This prevents the user interface from performing - * hundrets of updates when a single one would be enough. The transaction system + * hundreds of updates when a single one would be enough. The transaction system * will also be used for implementing undo / redo. <h3>Concurrency</h3> It's not * purpose of the transaction system to provide concurrent transactions for * concurrent threads. A MapModel will protect itself against concurrent * modification. <h3>Performance</h3> <p/> The transaction system is * efficient-safe. The following operations are very cheap: <ul> <li>Beginning a * nested transaction</li> <li>Ending a nested transaction</li> <li>Ending an - * outmost transaction without having changed something</li> </ul> Whether + * outermost transaction without having changed something</li> </ul> Whether * beginning the outermost transaction will be a cheap operation is not yet * decided. <p/> Transactions are recorded. <p/> It is not (yet?) the purpose of * the transaction system to provide real transactions (ACID). Queries to the @@ -119,7 +119,7 @@ /** * Unregister a map listener. - * @param listener MapModelListener to unregsiter + * @param listener MapModelListener to unregister */ void removeMapModelListener(@NotNull MapModelListener<G, A, R> listener); @@ -131,7 +131,7 @@ /** * Unregister a map transaction listener. - * @param listener MapTransactionListener to unregsiter + * @param listener MapTransactionListener to unregister */ void removeMapTransactionListener(@NotNull MapTransactionListener<G, A, R> listener); @@ -213,7 +213,7 @@ * transaction is ended, the changes are committed. <p/> An example where * setting <var>fireEvent</var> to <code>true</code> is useful even though * the outermost transaction is not ended is when during painting the UI - * should be updated though painting is not finnished. + * should be updated though painting is not finished. * @param fireEvent <code>true</code> if an event should be fired even in * case this doesn't end the outermost transaction. * @note If the outermost transaction is ended, <var>fireEvent</var> is This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-22 21:09:29
|
Revision: 7884 http://gridarta.svn.sourceforge.net/gridarta/?rev=7884&view=rev Author: akirschbaum Date: 2010-05-22 21:09:22 +0000 (Sat, 22 May 2010) Log Message: ----------- Fix "Generate Preview" to regenerate previews for all selected files. Modified Paths: -------------- trunk/atrinik/ChangeLog trunk/crossfire/ChangeLog trunk/daimonin/ChangeLog trunk/src/app/net/sf/gridarta/gui/map/MapPreviewAccessory.java Modified: trunk/atrinik/ChangeLog =================================================================== --- trunk/atrinik/ChangeLog 2010-05-22 20:59:39 UTC (rev 7883) +++ trunk/atrinik/ChangeLog 2010-05-22 21:09:22 UTC (rev 7884) @@ -1,5 +1,8 @@ 2010-05-22 Andreas Kirschbaum + * Fix "Generate Preview" to regenerate previews for all selected + files. + * Implement File|Grow Selection and File|Shrink Selection: grows/shrinks the selection by one map square. Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2010-05-22 20:59:39 UTC (rev 7883) +++ trunk/crossfire/ChangeLog 2010-05-22 21:09:22 UTC (rev 7884) @@ -1,5 +1,8 @@ 2010-05-22 Andreas Kirschbaum + * Fix "Generate Preview" to regenerate previews for all selected + files. + * Implement File|Grow Selection and File|Shrink Selection: grows/shrinks the selection by one map square. Modified: trunk/daimonin/ChangeLog =================================================================== --- trunk/daimonin/ChangeLog 2010-05-22 20:59:39 UTC (rev 7883) +++ trunk/daimonin/ChangeLog 2010-05-22 21:09:22 UTC (rev 7884) @@ -1,5 +1,8 @@ 2010-05-22 Andreas Kirschbaum + * Fix "Generate Preview" to regenerate previews for all selected + files. + * Implement File|Grow Selection and File|Shrink Selection: grows/shrinks the selection by one map square. Modified: trunk/src/app/net/sf/gridarta/gui/map/MapPreviewAccessory.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/MapPreviewAccessory.java 2010-05-22 20:59:39 UTC (rev 7883) +++ trunk/src/app/net/sf/gridarta/gui/map/MapPreviewAccessory.java 2010-05-22 21:09:22 UTC (rev 7884) @@ -105,11 +105,11 @@ private final JFileChooser fileChooser; /** - * The currently selected file, or <code>null</code> if no file is + * The currently selected files, or <code>null</code> if no file is * selected. */ @Nullable - private File selectedFile = null; + private File[] selectedFiles = null; /** * Whether previews should be auto-generated. @@ -136,7 +136,7 @@ if (JFileChooser.DIRECTORY_CHANGED_PROPERTY.equals(prop)) { setPreview("No Preview available"); } else if (JFileChooser.SELECTED_FILE_CHANGED_PROPERTY.equals(prop)) { - selectedFile = (File) evt.getNewValue(); + final File selectedFile = (File) evt.getNewValue(); if (selectedFile != null) { final Image previewImage = getMapPreview(selectedFile); if (previewImage != null) { @@ -147,6 +147,8 @@ } else { setPreview("No Preview available"); } + } else if (JFileChooser.SELECTED_FILES_CHANGED_PROPERTY.equals(prop)) { + selectedFiles = (File[]) evt.getNewValue(); } } @@ -217,15 +219,17 @@ */ @ActionMethod public void genPreview() { - final File file = selectedFile; - if (file == null) { + final File[] files = selectedFiles; + if (files == null || files.length == 0) { return; } - mapImageCache.flush(file); + for (final File file : files) { + mapImageCache.flush(file); - final Image image = mapImageCache.getOrCreatePreview(file); - setPreview(image); + final Image image = mapImageCache.getOrCreatePreview(file); + setPreview(image); + } fileChooser.validate(); fileChooser.repaint(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-22 21:26:47
|
Revision: 7885 http://gridarta.svn.sourceforge.net/gridarta/?rev=7885&view=rev Author: akirschbaum Date: 2010-05-22 21:26:41 +0000 (Sat, 22 May 2010) Log Message: ----------- Fix typos. Modified Paths: -------------- trunk/gridarta.ipr trunk/src/app/net/sf/gridarta/model/map/mapmodel/MapSquareGrid.java Modified: trunk/gridarta.ipr =================================================================== --- trunk/gridarta.ipr 2010-05-22 21:09:22 UTC (rev 7884) +++ trunk/gridarta.ipr 2010-05-22 21:26:41 UTC (rev 7885) @@ -1138,6 +1138,7 @@ <w>pickmaps</w> <w>plugins</w> <w>resize</w> + <w>resizes</w> <w>shortdescription</w> <w>startup</w> <w>teleporter</w> Modified: trunk/src/app/net/sf/gridarta/model/map/mapmodel/MapSquareGrid.java =================================================================== --- trunk/src/app/net/sf/gridarta/model/map/mapmodel/MapSquareGrid.java 2010-05-22 21:09:22 UTC (rev 7884) +++ trunk/src/app/net/sf/gridarta/model/map/mapmodel/MapSquareGrid.java 2010-05-22 21:26:41 UTC (rev 7885) @@ -87,9 +87,9 @@ /** * {@inheritDoc} This implementation is very safe by recreating every single * MapSquare as new empty square with the trade-off of some strain of the - * garbage-collector. An alternative implemenation would manually clean + * garbage-collector. An alternative implementation would manually clean * every existing MapSquare but that probably wouldn't really be faster - * until we have reusage of GameObject instances similar to J2EE. + * until we have reuse of GameObject instances similar to J2EE. */ public void clearMap() { for (int x = 0; x < mapSize.getWidth(); x++) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-22 22:02:34
|
Revision: 7892 http://gridarta.svn.sourceforge.net/gridarta/?rev=7892&view=rev Author: akirschbaum Date: 2010-05-22 22:02:27 +0000 (Sat, 22 May 2010) Log Message: ----------- Add private modifiers. Modified Paths: -------------- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/model/smoothface/SmoothFacesLoader.java trunk/src/app/net/sf/gridarta/delayedmapmodel/DelayedMapModelListenerManager.java trunk/src/app/net/sf/gridarta/gui/spells/SpellsUtils.java trunk/src/app/net/sf/gridarta/gui/utils/tristate/TristateCheckBox.java trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java trunk/src/app/net/sf/gridarta/model/face/ColourFilter.java trunk/src/app/net/sf/gridarta/model/gameobject/MultiPositionData.java trunk/src/app/net/sf/gridarta/model/settings/DefaultGlobalSettings.java trunk/src/app/net/sf/gridarta/textedit/scripteditor/CFPythonPopup.java trunk/src/app/net/sf/gridarta/textedit/textarea/DefaultInputHandler.java trunk/src/app/net/sf/gridarta/utils/ActionUtils.java trunk/src/app/net/sf/gridarta/utils/SystemIcons.java Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/model/smoothface/SmoothFacesLoader.java =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/model/smoothface/SmoothFacesLoader.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/model/smoothface/SmoothFacesLoader.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -91,7 +91,7 @@ * @param errorViewCollector the error view collector for reporting errors * @throws IOException if loadings fails */ - public static void load(@NotNull final String readerName, @NotNull final Reader reader, @NotNull final SmoothFaces smoothFaces, @NotNull final ErrorViewCollector errorViewCollector) throws IOException { + private static void load(@NotNull final String readerName, @NotNull final Reader reader, @NotNull final SmoothFaces smoothFaces, @NotNull final ErrorViewCollector errorViewCollector) throws IOException { int smoothEntries = 0; final BufferedReader bufferedReader = new BufferedReader(reader); try { Modified: trunk/src/app/net/sf/gridarta/delayedmapmodel/DelayedMapModelListenerManager.java =================================================================== --- trunk/src/app/net/sf/gridarta/delayedmapmodel/DelayedMapModelListenerManager.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/delayedmapmodel/DelayedMapModelListenerManager.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -59,7 +59,7 @@ * Notification delay in milliseconds. All listeners will be notified this * delay after the last map change has happened. */ - public static final long DELAY = 500L; + private static final long DELAY = 500L; /** * The {@link MapManager} to track. Modified: trunk/src/app/net/sf/gridarta/gui/spells/SpellsUtils.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/spells/SpellsUtils.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/gui/spells/SpellsUtils.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -274,7 +274,7 @@ * @throws IOException an I/O-error occurred while reading the file * @throws EOFException the end of file was reached */ - public static String readUntil(@NotNull final BufferedReader stream, @NotNull final CharSequence tag) throws IOException { + private static String readUntil(@NotNull final BufferedReader stream, @NotNull final CharSequence tag) throws IOException { final StringBuilder sb = new StringBuilder(); int c; // character value, read from the stream int t = 0; // index Modified: trunk/src/app/net/sf/gridarta/gui/utils/tristate/TristateCheckBox.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/utils/tristate/TristateCheckBox.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/gui/utils/tristate/TristateCheckBox.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -86,7 +86,7 @@ * @param icon the icon to display * @param initialState the initial state */ - public TristateCheckBox(@NotNull final String text, @Nullable final Icon icon, @NotNull final TristateState initialState) { + private TristateCheckBox(@NotNull final String text, @Nullable final Icon icon, @NotNull final TristateState initialState) { this(text, icon, new TristateButtonModel(initialState)); } @@ -96,7 +96,7 @@ * @param icon the icon to display * @param buttonModel the button model to use */ - public TristateCheckBox(@NotNull final String text, @Nullable final Icon icon, @NotNull final ButtonModel buttonModel) { + private TristateCheckBox(@NotNull final String text, @Nullable final Icon icon, @NotNull final ButtonModel buttonModel) { super(text, icon); acceptMouseListeners = true; setModel(buttonModel); Modified: trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java =================================================================== --- trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/maincontrol/GUIMainControl.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -207,7 +207,7 @@ /** * Preferences. */ - protected static final Preferences prefs = Preferences.userNodeForPackage(MainControl.class); + private static final Preferences prefs = Preferences.userNodeForPackage(MainControl.class); /** * The status bar instance. Modified: trunk/src/app/net/sf/gridarta/model/face/ColourFilter.java =================================================================== --- trunk/src/app/net/sf/gridarta/model/face/ColourFilter.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/model/face/ColourFilter.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -50,22 +50,22 @@ /** * The mask for selecting the alpha bits. */ - public static final int ALPHA_MASK = 0xFF000000; + private static final int ALPHA_MASK = 0xFF000000; /** * The bit-offset for the red bits. */ - public static final int RED_SHIFT = 16; + private static final int RED_SHIFT = 16; /** * The bit-offset for the green bits. */ - public static final int GREEN_SHIFT = 8; + private static final int GREEN_SHIFT = 8; /** * The bit-offset for the blue bits. */ - public static final int BLUE_SHIFT = 0; + private static final int BLUE_SHIFT = 0; /** * The positive mask to apply. Modified: trunk/src/app/net/sf/gridarta/model/gameobject/MultiPositionData.java =================================================================== --- trunk/src/app/net/sf/gridarta/model/gameobject/MultiPositionData.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/model/gameobject/MultiPositionData.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -52,7 +52,7 @@ /** * Number of columns in the array. */ - public static final int X_DIM = 34; + private static final int X_DIM = 34; /** * Number of rows in the array. Modified: trunk/src/app/net/sf/gridarta/model/settings/DefaultGlobalSettings.java =================================================================== --- trunk/src/app/net/sf/gridarta/model/settings/DefaultGlobalSettings.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/model/settings/DefaultGlobalSettings.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -54,7 +54,7 @@ * The preferences key for the media directory. */ @NotNull - public static final String MEDIA_DIRECTORY_KEY = "mediaDirectory"; + private static final String MEDIA_DIRECTORY_KEY = "mediaDirectory"; /** * The preferences key for the selected image set. @@ -90,7 +90,7 @@ /** * Preferences. */ - protected static final Preferences prefs = Preferences.userNodeForPackage(MainControl.class); + private static final Preferences prefs = Preferences.userNodeForPackage(MainControl.class); /** * The default value for the maps directory. Modified: trunk/src/app/net/sf/gridarta/textedit/scripteditor/CFPythonPopup.java =================================================================== --- trunk/src/app/net/sf/gridarta/textedit/scripteditor/CFPythonPopup.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/textedit/scripteditor/CFPythonPopup.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -56,7 +56,7 @@ /** * Python menu definitions. */ - public static final String PYTHONMENU_FILE = "cfpython_menu.def"; + private static final String PYTHONMENU_FILE = "cfpython_menu.def"; /** * The Logger for printing log messages. Modified: trunk/src/app/net/sf/gridarta/textedit/textarea/DefaultInputHandler.java =================================================================== --- trunk/src/app/net/sf/gridarta/textedit/textarea/DefaultInputHandler.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/textedit/textarea/DefaultInputHandler.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -218,7 +218,7 @@ * @return the key stroke or <code>null</code> if invalid */ @Nullable - public static KeyStroke parseKeyStroke(final String keyStroke) { + private static KeyStroke parseKeyStroke(final String keyStroke) { if (keyStroke == null) { return null; } Modified: trunk/src/app/net/sf/gridarta/utils/ActionUtils.java =================================================================== --- trunk/src/app/net/sf/gridarta/utils/ActionUtils.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/utils/ActionUtils.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -36,7 +36,7 @@ * Action key for the action's category. */ @NotNull - public static final String CATEGORY = "Category"; + private static final String CATEGORY = "Category"; /** * Category value for {@link Action Actions} not defining a {@link @@ -136,7 +136,7 @@ * @return the shortcut or <code>null</code> */ @Nullable - public static KeyStroke getShortcut(@NotNull final Action action, @NotNull final String key) { + private static KeyStroke getShortcut(@NotNull final Action action, @NotNull final String key) { final Object acceleratorKey = action.getValue(key); return acceleratorKey instanceof KeyStroke ? (KeyStroke) acceleratorKey : null; } Modified: trunk/src/app/net/sf/gridarta/utils/SystemIcons.java =================================================================== --- trunk/src/app/net/sf/gridarta/utils/SystemIcons.java 2010-05-22 21:50:42 UTC (rev 7891) +++ trunk/src/app/net/sf/gridarta/utils/SystemIcons.java 2010-05-22 22:02:27 UTC (rev 7892) @@ -65,13 +65,13 @@ public static final String SQUARE_NOARCH = SYSTEM_DIR + "noarch.png"; - public static final String TREASURE_LIST = SYSTEM_DIR + "treasure_list.png"; + private static final String TREASURE_LIST = SYSTEM_DIR + "treasure_list.png"; - public static final String TREASUREONE_LIST = SYSTEM_DIR + "treasureone_list.png"; + private static final String TREASUREONE_LIST = SYSTEM_DIR + "treasureone_list.png"; - public static final String TREASURE_YES = SYSTEM_DIR + "treasure_yes.png"; + private static final String TREASURE_YES = SYSTEM_DIR + "treasure_yes.png"; - public static final String TREASURE_NO = SYSTEM_DIR + "treasure_no.png"; + private static final String TREASURE_NO = SYSTEM_DIR + "treasure_no.png"; /** The default map icon to use if no icon can be created. */ public static final String DEFAULT_ICON = SYSTEM_DIR + "default_icon.png"; @@ -83,11 +83,11 @@ private static final String CLOSE_TAB_SMALLICON = ICON_DIR + "CloseTabSmallIcon.gif"; - public static final String AUTORUN_SMALLICON = ICON_DIR + "AutorunSmallIcon.gif"; + private static final String AUTORUN_SMALLICON = ICON_DIR + "AutorunSmallIcon.gif"; - public static final String FILTER_SMALLICON = ICON_DIR + "FilterSmallIcon.gif"; + private static final String FILTER_SMALLICON = ICON_DIR + "FilterSmallIcon.gif"; - public static final String RUN_PLUGIN_SMALLICON = ICON_DIR + "RunPluginSmallIcon.gif"; + private static final String RUN_PLUGIN_SMALLICON = ICON_DIR + "RunPluginSmallIcon.gif"; /** * Application icon definitions (icon-dir). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-22 22:29:09
|
Revision: 7896 http://gridarta.svn.sourceforge.net/gridarta/?rev=7896&view=rev Author: akirschbaum Date: 2010-05-22 22:29:02 +0000 (Sat, 22 May 2010) Log Message: ----------- Add @ActionMethod annotations. Modified Paths: -------------- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/MapPropertiesDialog.java trunk/src/app/net/sf/gridarta/gui/findarchetypes/FindArchetypesDialog.java trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/GameObjectAttributesDialog.java trunk/src/app/net/sf/gridarta/gui/map/mapactions/DefaultMapActions.java trunk/src/app/net/sf/gridarta/gui/map/maptilepane/AbstractMapTilePane.java trunk/src/app/net/sf/gridarta/gui/map/tools/DeletionTool.java trunk/src/app/net/sf/gridarta/gui/map/tools/SelectionTool.java trunk/src/app/net/sf/gridarta/gui/newmap/AbstractNewMapDialog.java trunk/src/app/net/sf/gridarta/gui/prefs/UpdatePrefs.java trunk/src/app/net/sf/gridarta/gui/shrinkmapsizedialog/ShrinkMapSizeDialog.java trunk/src/app/net/sf/gridarta/textedit/textarea/actions/Replace.java trunk/src/app/net/sf/gridarta/utils/ProcessRunner.java Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/MapPropertiesDialog.java =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/MapPropertiesDialog.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/gui/mappropertiesdialog/MapPropertiesDialog.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -63,6 +63,7 @@ import net.sf.gridarta.var.daimonin.model.maparchobject.MapArchObject; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import net.sf.japi.swing.misc.JFileChooserButton; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -399,6 +400,7 @@ /** * Action method for help. */ + @ActionMethod public void mapHelp() { new Help(helpParent, "tut_mapattr.html").setVisible(true); } @@ -406,6 +408,7 @@ /** * Action method for okay. */ + @ActionMethod public void mapOkay() { if (modifyMapProperties()) { setValue(okButton); @@ -415,6 +418,7 @@ /** * Action method for restore. */ + @ActionMethod public void mapRestore() { restoreMapProperties(); } @@ -422,6 +426,7 @@ /** * Action method for cancel. */ + @ActionMethod public void mapCancel() { setValue(cancelButton); } Modified: trunk/src/app/net/sf/gridarta/gui/findarchetypes/FindArchetypesDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/findarchetypes/FindArchetypesDialog.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/findarchetypes/FindArchetypesDialog.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -52,6 +52,7 @@ import net.sf.gridarta.model.map.maparchobject.MapArchObject; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -238,6 +239,7 @@ /** * Action method for "search" button. */ + @ActionMethod public void findArchetypesSearch() { previousSearch = ""; doSearch(true); @@ -343,6 +345,7 @@ /** * Action method to scroll up one line in the result table. */ + @ActionMethod public void findArchetypesScrollUp() { final int index = resultTable.getSelectedRow(); if (index > 0) { @@ -353,6 +356,7 @@ /** * Action method to scroll down one line in the result table. */ + @ActionMethod public void findArchetypesScrollDown() { final int index = resultTable.getSelectedRow(); if (index != -1 && index + 1 < resultTableModel.getRowCount()) { Modified: trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/GameObjectAttributesDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/GameObjectAttributesDialog.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/gameobjectattributesdialog/GameObjectAttributesDialog.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -137,6 +137,7 @@ import net.sf.gridarta.utils.SystemIcons; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import org.apache.log4j.Category; import org.apache.log4j.Logger; import org.jetbrains.annotations.NotNull; @@ -1141,6 +1142,7 @@ /** * Action method for help. */ + @ActionMethod public void attribHelp() { new Help(/* XXX */ parent, archetypeType.createHtmlDocu()).setVisible(true); } @@ -1148,6 +1150,7 @@ /** * Action method for ok. */ + @ActionMethod public void attribOk() { if (applySettings()) { setValue(okButton); @@ -1157,6 +1160,7 @@ /** * Action method for apply. */ + @ActionMethod public void attribApply() { applySettings(); } @@ -1164,6 +1168,7 @@ /** * Action method for cancel. */ + @ActionMethod public void attribCancel() { setValue(cancelButton); } @@ -1172,6 +1177,7 @@ * Action method for summary. Switches the cardlayout to the summary list of * all nonzero attributes. */ + @ActionMethod public void attribSummary() { // interface is displayed, switch to summary final Document doc = summaryTextPane.getDocument(); @@ -1199,6 +1205,7 @@ * Turns the summary off. Switches to the input-interface for all attributes * and the summary list of all nonzero attributes. */ + @ActionMethod public void attribEdit() { summaryEditButton.setAction(summaryAction); cardLayout.show(centerPanel, "edit"); Modified: trunk/src/app/net/sf/gridarta/gui/map/mapactions/DefaultMapActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/mapactions/DefaultMapActions.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/map/mapactions/DefaultMapActions.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -436,6 +436,7 @@ * @return <code>true</code> if the grid is visible, or <code>false</code> * if the grid is invisible */ + @ActionMethod public boolean isGridVisible() { return isGridVisibleEnabled() && mapViewSettings.isGridVisible(); } @@ -447,6 +448,7 @@ * invisible * @see #isGridVisible() */ + @ActionMethod public void setGridVisible(final boolean gridVisible) { if (isGridVisibleEnabled()) { mapViewSettings.setGridVisible(gridVisible); @@ -458,6 +460,7 @@ * @return <code>true</code> if smoothing is active, or <code>false</code> * if smoothing is disabled */ + @ActionMethod public boolean isSmoothing() { return isSmoothingEnabled() && mapViewSettings.isSmoothing(); } @@ -468,6 +471,7 @@ * smoothing should be active, <code>false</code> if deactivated * @see #isSmoothing() () */ + @ActionMethod public void setSmoothing(final boolean smoothing) { if (isSmoothingEnabled()) { mapViewSettings.setSmoothing(smoothing); @@ -479,6 +483,7 @@ * @return <code>true</code> if double faces are shwon, or * <code>false</code> if not */ + @ActionMethod public boolean isDoubleFaces() { return isDoubleFacesEnabled() && mapViewSettings.isDoubleFaces(); } @@ -488,6 +493,7 @@ * @param doubleFaces new value * @see #isDoubleFaces() */ + @ActionMethod public void setDoubleFaces(final boolean doubleFaces) { if (isDoubleFacesEnabled()) { mapViewSettings.setDoubleFaces(doubleFaces); @@ -499,6 +505,7 @@ * @return <code>true</code> if adjacent tiles are shown, or * <code>false</code> if adjacent tiles are not shown */ + @ActionMethod public boolean isTileShow() { return false; } @@ -507,6 +514,7 @@ * Action method for "tile show". * @param tileShow if set, show adjacent tiles */ + @ActionMethod public void setTileShow(final boolean tileShow) { // not yet implemented } Modified: trunk/src/app/net/sf/gridarta/gui/map/maptilepane/AbstractMapTilePane.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/maptilepane/AbstractMapTilePane.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/map/maptilepane/AbstractMapTilePane.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -48,6 +48,7 @@ import net.sf.gridarta.utils.CommonConstants; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import org.jetbrains.annotations.NotNull; /** @@ -238,6 +239,7 @@ /** * Action method for tiles attaching automatically. */ + @ActionMethod public void mapTilesAttach() { final String[] tmpTilePaths = new String[tilePaths.length]; for (int i = 0; i < tmpTilePaths.length; i++) { @@ -267,6 +269,7 @@ /** * Action method for tiles clearing paths. */ + @ActionMethod public void mapTilesClear() { for (final MapTilePanel tilePath : tilePaths) { tilePath.getTilePanel().setText("", true); Modified: trunk/src/app/net/sf/gridarta/gui/map/tools/DeletionTool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/DeletionTool.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/map/tools/DeletionTool.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -43,6 +43,7 @@ import net.sf.gridarta.model.match.GameObjectMatcher; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import net.sf.japi.swing.action.ToggleAction; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -411,6 +412,7 @@ * Returns whether walls should not be deleted. * @return whether walls should not be deleted */ + @ActionMethod public boolean isDeletionToolExceptionsIgnoreWalls() { return deletionToolExceptionsIgnoreWalls; } @@ -420,6 +422,7 @@ * @param deletionToolExceptionsIgnoreWalls whether walls should not be * deleted */ + @ActionMethod public void setDeletionToolExceptionsIgnoreWalls(final boolean deletionToolExceptionsIgnoreWalls) { this.deletionToolExceptionsIgnoreWalls = deletionToolExceptionsIgnoreWalls; } @@ -428,6 +431,7 @@ * Returns whether floors should not be deleted. * @return whether floors should not be deleted */ + @ActionMethod public boolean isDeletionToolExceptionsIgnoreFloors() { return deletionToolExceptionsIgnoreFloors; } @@ -437,6 +441,7 @@ * @param deletionToolExceptionsIgnoreFloors whether floors should not be * deleted */ + @ActionMethod public void setDeletionToolExceptionsIgnoreFloors(final boolean deletionToolExceptionsIgnoreFloors) { this.deletionToolExceptionsIgnoreFloors = deletionToolExceptionsIgnoreFloors; } @@ -445,6 +450,7 @@ * Returns whether monsters should not be deleted. * @return whether monsters should not be deleted */ + @ActionMethod public boolean isDeletionToolExceptionsIgnoreMonsters() { return deletionToolExceptionsIgnoreMonsters; } @@ -454,6 +460,7 @@ * @param deletionToolExceptionsIgnoreMonsters whether monsters should not * be deleted */ + @ActionMethod public void setDeletionToolExceptionsIgnoreMonsters(final boolean deletionToolExceptionsIgnoreMonsters) { this.deletionToolExceptionsIgnoreMonsters = deletionToolExceptionsIgnoreMonsters; } Modified: trunk/src/app/net/sf/gridarta/gui/map/tools/SelectionTool.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/map/tools/SelectionTool.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/map/tools/SelectionTool.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -41,6 +41,7 @@ import net.sf.gridarta.model.map.mapmodel.InsertionModeSet; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import net.sf.japi.swing.action.ToggleAction; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -248,6 +249,7 @@ * Returns whether auto-fill is enabled. * @return whether auto-fill is enabled */ + @ActionMethod public boolean isSelectionToolAutoFill() { return selectionToolAutoFill; } @@ -256,6 +258,7 @@ * Sets whether auto-fill is enabled. * @param selectionToolAutoFill whether auto-fill is enabled */ + @ActionMethod public void setSelectionToolAutoFill(final boolean selectionToolAutoFill) { if (this.selectionToolAutoFill == selectionToolAutoFill) { return; Modified: trunk/src/app/net/sf/gridarta/gui/newmap/AbstractNewMapDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/newmap/AbstractNewMapDialog.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/newmap/AbstractNewMapDialog.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -46,6 +46,7 @@ import net.sf.gridarta.model.map.maparchobject.MapArchObject; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -197,6 +198,7 @@ /** * Action method for okay. */ + @ActionMethod public void mapOkay() { if (isOkButtonEnabled() && createNew()) { setValue(okButton); @@ -206,6 +208,7 @@ /** * Action method for cancel. */ + @ActionMethod public void mapCancel() { setValue(cancelButton); } Modified: trunk/src/app/net/sf/gridarta/gui/prefs/UpdatePrefs.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/prefs/UpdatePrefs.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/prefs/UpdatePrefs.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -36,6 +36,7 @@ import net.sf.gridarta.updater.UpdaterManager; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import net.sf.japi.swing.prefs.AbstractPrefs; /** @@ -144,6 +145,7 @@ * Set AutoUpdate state. * @param autoUpdate autoupdate state */ + @ActionMethod public void setAutoUpdate(final boolean autoUpdate) { interval.setEnabled(autoUpdate); } @@ -152,6 +154,7 @@ * Get AutoUpdate state. * @return autoupdate state */ + @ActionMethod public boolean isAutoUpdate() { return interval.isEnabled(); } Modified: trunk/src/app/net/sf/gridarta/gui/shrinkmapsizedialog/ShrinkMapSizeDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/shrinkmapsizedialog/ShrinkMapSizeDialog.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/gui/shrinkmapsizedialog/ShrinkMapSizeDialog.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -39,6 +39,7 @@ import net.sf.gridarta.utils.CommonConstants; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -204,6 +205,7 @@ /** * Action method for ok. */ + @ActionMethod public void shrinkMapSizeDialogOk() { shrinkMapSize(); setValue(okButton); @@ -212,6 +214,7 @@ /** * Action method for cancel. */ + @ActionMethod public void shrinkMapSizeDialogCancel() { setValue(cancelButton); } @@ -253,6 +256,7 @@ /** * Action method for "shrinkMapSizeDialogEast". */ + @ActionMethod public boolean isShrinkMapSizeDialogEast() { return eastCheckBox.isSelected(); } @@ -260,6 +264,7 @@ /** * Action method for "shrinkMapSizeDialogEast". */ + @ActionMethod public void setShrinkMapSizeDialogEast(final boolean flag) { eastCheckBox.setSelected(!flag); updateWarnings(); @@ -268,6 +273,7 @@ /** * Action method for "shrinkMapSizeDialogSouth". */ + @ActionMethod public boolean isShrinkMapSizeDialogSouth() { return southCheckBox.isSelected(); } @@ -275,6 +281,7 @@ /** * Action method for "shrinkMapSizeDialogSouth". */ + @ActionMethod public void setShrinkMapSizeDialogSouth(final boolean flag) { southCheckBox.setSelected(!flag); updateWarnings(); Modified: trunk/src/app/net/sf/gridarta/textedit/textarea/actions/Replace.java =================================================================== --- trunk/src/app/net/sf/gridarta/textedit/textarea/actions/Replace.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/textedit/textarea/actions/Replace.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -39,6 +39,7 @@ import net.sf.gridarta.textedit.textarea.SyntaxDocument; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import org.jetbrains.annotations.NotNull; /** @@ -159,6 +160,7 @@ /** * Action method for okay. */ + @ActionMethod public void replaceButton() { textToFind = findTextField.getText(); textToReplace = replaceTextField.getText(); @@ -171,6 +173,7 @@ /** * Action method for cancel. */ + @ActionMethod public void cancelButton() { setValue(cancelButton); dialog.dispose(); Modified: trunk/src/app/net/sf/gridarta/utils/ProcessRunner.java =================================================================== --- trunk/src/app/net/sf/gridarta/utils/ProcessRunner.java 2010-05-22 22:15:52 UTC (rev 7895) +++ trunk/src/app/net/sf/gridarta/utils/ProcessRunner.java 2010-05-22 22:29:02 UTC (rev 7896) @@ -40,6 +40,7 @@ import javax.swing.SwingUtilities; import net.sf.japi.swing.action.ActionBuilder; import net.sf.japi.swing.action.ActionBuilderFactory; +import net.sf.japi.swing.action.ActionMethod; import org.apache.log4j.Category; import org.apache.log4j.Logger; import org.jetbrains.annotations.NotNull; @@ -253,6 +254,7 @@ /** * Action method for starting. */ + @ActionMethod public void controlStart() { synchronized (lock) { if (process != null) { @@ -293,6 +295,7 @@ /** * Action method for stopping. */ + @ActionMethod public void controlStop() { if (process != null) { process.destroy(); @@ -304,6 +307,7 @@ /** * Action method for clearing the log. */ + @ActionMethod public void controlClear() { stdtxt.setText(""); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-23 09:08:32
|
Revision: 7897 http://gridarta.svn.sourceforge.net/gridarta/?rev=7897&view=rev Author: akirschbaum Date: 2010-05-23 09:08:24 +0000 (Sun, 23 May 2010) Log Message: ----------- Reformat .html and .xml files. Modified Paths: -------------- trunk/atrinik/resource/HelpFiles/credits.html trunk/atrinik/resource/HelpFiles/faq.html trunk/atrinik/resource/HelpFiles/guide.html trunk/atrinik/resource/HelpFiles/pycredits.html trunk/atrinik/resource/HelpFiles/pyfaq.html trunk/atrinik/resource/HelpFiles/pyguide.html trunk/atrinik/resource/HelpFiles/pystart.html trunk/atrinik/resource/HelpFiles/start.html trunk/atrinik/resource/HelpFiles/treasure_multi.html trunk/atrinik/resource/HelpFiles/treasure_one.html trunk/atrinik/resource/HelpFiles/treasure_special.html trunk/atrinik/resource/HelpFiles/treasurelists.html trunk/atrinik/resource/HelpFiles/tut_DScript.html trunk/atrinik/resource/HelpFiles/tut_copypaste.html trunk/atrinik/resource/HelpFiles/tut_frames.html trunk/atrinik/resource/HelpFiles/tut_intro.html trunk/atrinik/resource/HelpFiles/tut_loading.html trunk/atrinik/resource/HelpFiles/tut_map.html trunk/atrinik/resource/HelpFiles/tut_mapattr.html trunk/atrinik/resource/HelpFiles/tut_objects.html trunk/atrinik/resource/HelpFiles/tut_scriptev.html trunk/atrinik/resource/HelpFiles/tut_view.html trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/maincontrol/overview.html trunk/crossfire/resource/HelpFiles/credits.html trunk/crossfire/resource/HelpFiles/faq.html trunk/crossfire/resource/HelpFiles/guide.html trunk/crossfire/resource/HelpFiles/map_basic.html trunk/crossfire/resource/HelpFiles/map_otcs.html trunk/crossfire/resource/HelpFiles/map_quests.html trunk/crossfire/resource/HelpFiles/map_start.html trunk/crossfire/resource/HelpFiles/start.html trunk/crossfire/resource/HelpFiles/treasure_multi.html trunk/crossfire/resource/HelpFiles/treasure_one.html trunk/crossfire/resource/HelpFiles/treasure_special.html trunk/crossfire/resource/HelpFiles/treasurelists.html trunk/crossfire/resource/HelpFiles/tut_copypaste.html trunk/crossfire/resource/HelpFiles/tut_frames.html trunk/crossfire/resource/HelpFiles/tut_loading.html trunk/crossfire/resource/HelpFiles/tut_map.html trunk/crossfire/resource/HelpFiles/tut_mapattr.html trunk/crossfire/resource/HelpFiles/tut_objects.html trunk/crossfire/resource/HelpFiles/tut_pickmaps.html trunk/crossfire/resource/HelpFiles/tut_view.html trunk/crossfire.iml trunk/daimonin/resource/HelpFiles/credits.html trunk/daimonin/resource/HelpFiles/faq.html trunk/daimonin/resource/HelpFiles/guide.html trunk/daimonin/resource/HelpFiles/pycredits.html trunk/daimonin/resource/HelpFiles/pyfaq.html trunk/daimonin/resource/HelpFiles/pyguide.html trunk/daimonin/resource/HelpFiles/pystart.html trunk/daimonin/resource/HelpFiles/start.html trunk/daimonin/resource/HelpFiles/treasure_multi.html trunk/daimonin/resource/HelpFiles/treasure_one.html trunk/daimonin/resource/HelpFiles/treasure_special.html trunk/daimonin/resource/HelpFiles/treasurelists.html trunk/daimonin/resource/HelpFiles/tut_DScript.html trunk/daimonin/resource/HelpFiles/tut_copypaste.html trunk/daimonin/resource/HelpFiles/tut_frames.html trunk/daimonin/resource/HelpFiles/tut_intro.html trunk/daimonin/resource/HelpFiles/tut_loading.html trunk/daimonin/resource/HelpFiles/tut_map.html trunk/daimonin/resource/HelpFiles/tut_mapattr.html trunk/daimonin/resource/HelpFiles/tut_objects.html trunk/daimonin/resource/HelpFiles/tut_scriptev.html trunk/daimonin/resource/HelpFiles/tut_view.html trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/maincontrol/overview.html trunk/gridarta.ipr Modified: trunk/atrinik/resource/HelpFiles/credits.html =================================================================== --- trunk/atrinik/resource/HelpFiles/credits.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/credits.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,22 +19,22 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Credits</TITLE> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Credits</TITLE> </HEAD> <BODY> -<P><A HREF="start.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="start.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> <H1 align=center>Daimonin Java Editor Credits</H1> <P>The Daimonin Java Editor team:</P> <UL> - <LI>Michael Toennies - <LI>Andreas Vogl + <LI>Michael Toennies + <LI>Andreas Vogl </UL> - </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/faq.html =================================================================== --- trunk/atrinik/resource/HelpFiles/faq.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/faq.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,69 +19,71 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Help FAQ</TITLE> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Help FAQ</TITLE> </HEAD> <BODY> -<P><A HREF="start.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="start.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> <H1 align=center>Daimonin Java Editor FAQ</H1> <P><B>The map is displayed in a weird wrong shape. Is this a bug?</B></P> -<P> No certainly not. Under the menu "Map->Map Properties", you have to adjust the -setting of the checkbox "Show Isometric". It must be disabled for rectangular -arches, and enabled for iso arches. You should also adjust the global iso -setting under "File->Options..." accordingly. -</P> +<P> No certainly not. Under the menu "Map->Map Properties", you have to adjust + the setting of the checkbox "Show Isometric". It must be disabled for + rectangular arches, and enabled for iso arches. You should also adjust the + global iso setting under "File->Options..." accordingly.</P> + <P><B>Where can I get the latest version of the JavaEditor?</B></P> + <P>The best source is <http://mids.student.utwente.nl/~avogl/CFJavaEditor>. -This is my personal page and I usually care about it. You'll find notes about -recent updates and the changes being made. Anyways, please keep in mind that -I'm only a student. I don't always have time, nor do I own that domain. -So it certainly could happen that it is down sometimes or not perfectly up-to-date. -</P> -<P>Another good (and the most reliable) source is Daimonin's CVS repository. Go to -<http://sourceforge.net/projects/daimonin/> and try to figure out -how to do an anonymous checkout. The package is called "CFJavaEditor". -</P> + This is my personal page and I usually care about it. You'll find notes + about recent updates and the changes being made. Anyways, please keep in + mind that I'm only a student. I don't always have time, nor do I own that + domain. So it certainly could happen that it is down sometimes or not + perfectly up-to-date.</P> + +<P>Another good (and the most reliable) source is Daimonin's CVS repository. Go + to <http://sourceforge.net/projects/daimonin/> and try to figure out + how to do an anonymous checkout. The package is called "CFJavaEditor".</P> + <P> -The third possibility is you get an official release version. For that you -can either look on Sourceforge or <http://daimonin.real-time.com>. -</P> + The third possibility is you get an official release version. For that you + can either look on Sourceforge or <http://daimonin.real-time.com>.</P> <P><B>The editor has successfully loaded the arches, but all the images are -missing. WTF?</B></P> + missing. WTF?</B></P> <UL> -<LI><P>If you are using up-to-date Daimonin arches, these support -multiple image sets. Select menu "File->Options" and make sure -the entry "Use Image Set" is set to "Base". -If you are using old arches, or iso arches, make sure the entry -"Use Image Set" is set to "Disabled". -If your settings were wrong then restart the editor after correction. -</P> -<LI><P>Another possibility is that you have compiled the editor in a weird -wrong way, missing to include the files of the sixlegs png library "png.jar". -</P> + <LI><P>If you are using up-to-date Daimonin arches, these support multiple + image sets. Select menu "File->Options" and make sure the entry "Use + Image Set" is set to "Base". If you are using old arches, or iso arches, + make sure the entry "Use Image Set" is set to "Disabled". If your + settings were wrong then restart the editor after correction.</P> + <LI><P>Another possibility is that you have compiled the editor in a weird + wrong way, missing to include the files of the sixlegs png library + "png.jar".</P> </UL> -<P><B>Whenever I start the JavaEditor, I get a bunch of errormessages -concerning some missing font. What does that mean?</B></P> -<P>That appears to happen with several Linux distributions. -The messages might be annoying, but it's completely harmless. -Simply ignore it. If using Java SDK version 1.3, upgrading to 1.4 might -resolve the problem and maybe even get you a better-looking default font. +<P><B>Whenever I start the JavaEditor, I get a bunch of errormessages concerning + some missing font. What does that mean?</B></P> + +<P>That appears to happen with several Linux distributions. The messages might + be annoying, but it's completely harmless. Simply ignore it. If using Java + SDK version 1.3, upgrading to 1.4 might resolve the problem and maybe even + get you a better-looking default font.</P> + +<P><B>My CPU is too slow for this program, and my memory doesn't suffice... and + my display has only 256 colors. What can I do?</B></P> + +<P>Let's see... Buy a new computer? :-) + <br> + Now seriously, I'm sorry that this program requires a certain level of + system performance - But I can't help it. I have invested big amounts of + time to make everything run as fast as possible and with least Memory + consumption. </P> -<P><B>My CPU is too slow for this program, and my memory doesn't suffice... -and my display has only 256 colors. What can I do?</B></P> -<P>Let's see... Buy a new computer? :-)<br> -Now seriously, I'm sorry that this program requires a certain level of -system performance - But I can't help it. I have invested big amounts of -time to make everything run as fast as possible and with least -Memory consumption. -<br> -</P> </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/guide.html =================================================================== --- trunk/atrinik/resource/HelpFiles/guide.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/guide.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,68 +19,78 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Guidelines for Map-making</TITLE> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Guidelines for Map-making</TITLE> </HEAD> <BODY> -<P><A HREF="start.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="start.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> <H1 align=center>General Guidelines for Map-making</H1> -<H2 align=center><IMG SRC="landscape.jpg" WIDTH="176" HEIGHT="132" ALIGN="MIDDLE" NATURALSIZEFLAG="3"></H2> + +<H2 align=center> + <IMG SRC="landscape.jpg" WIDTH="176" HEIGHT="132" ALIGN="MIDDLE" NATURALSIZEFLAG="3"> +</H2> <table border=2> -Of course you have total creative freedom at building your maps. But if you'd -like to have your maps included in the official Daimonin distribution, you -should keep the following "golden rules" in your mind. Actually it's more -guidelines than rules. However, if you've played Daimonin for a while, I bet -you'll find them quite reasonable anyways. + Of course you have total creative freedom at building your maps. But if + you'd like to have your maps included in the official Daimonin distribution, + you should keep the following "golden rules" in your mind. Actually it's + more guidelines than rules. However, if you've played Daimonin for a while, + I bet you'll find them quite reasonable anyways. </table> <H2 align=center>Guidelines for map-layout and -concept:</H2> <UL> - <LI>Pure hack'n'slash maps are boring. <B>Your maps should contain a - storyline</B>, or at least a "theme". Put NPCs (non-player-characters), - books and magic_mouths into your maps to present your stories. - <LI><B>Places with high level monsters should not be easy to reach.</B> I know there - are several maps breaking with this rule, but that doesn't mean it's okay. - If you intend to use monsters like Jessies/Demonlords/Ancient Dragons, put - them at the end of a quest, not at the beginning. - <LI><B>Put secrets into your maps.</B> Places that can only be reached after - investigating libraries, talking to NPCs and the likes. Make your maps non-linear. - It is nice to have more than one way to solve a quest. Maybe one obvious way with - brute fighting, and one clever way that needs more questing. - <LI><B>Make sure that everything works as you intended</B>, especially check all - your exit paths. Avoid one-way paths, trapping the player. And keep in mind - - Maps do reset! Example: When a player disconnects behind an opened (formerly - locked) door, he will be trapped when he rejoins the game later. Eventually place - "emergency exits" for such cases. - <LI><B>Motivate the player to use</B> as <B>many skills</B> as possible to solve - your quests. Make him fight, think, disarm traps, cast spells, fly over pits, ... - possibilities are great - make use of them. - <LI><B>Treat the player in a fair way.</B> If you surprise him with instant death, - he will hate your maps. A player should be aware of dangers, so that he has at - least the *possibility* to react. Besides, don't plunge players into frustration. - When you create puzzles, try to keep them at a level where they are solvable by - mortal beings.<br> - (That doesn't mean all puzzles have to be short and small, just "solvable".) - Players could look at your maps via editor at any time. Don't force them doing - this. Support the "honorable" players. - <LI>If you plan to create a big mapset, <B>include maps of all difficulty levels.</B> - It's absolutely okay and reasonable to have areas where a certain difficulty - level dominates. Just try not to overdo it. + <LI>Pure hack'n'slash maps are boring. <B>Your maps should contain a + storyline</B>, or at least a "theme". Put NPCs (non-player-characters), + books and magic_mouths into your maps to present your stories. + <LI><B>Places with high level monsters should not be easy to reach.</B> I + know there are several maps breaking with this rule, but that doesn't + mean it's okay. If you intend to use monsters like + Jessies/Demonlords/Ancient Dragons, put them at the end of a quest, not + at the beginning. + <LI><B>Put secrets into your maps.</B> Places that can only be reached after + investigating libraries, talking to NPCs and the likes. Make your maps + non-linear. It is nice to have more than one way to solve a quest. Maybe + one obvious way with brute fighting, and one clever way that needs more + questing. + <LI><B>Make sure that everything works as you intended</B>, especially check + all your exit paths. Avoid one-way paths, trapping the player. And keep + in mind - Maps do reset! Example: When a player disconnects behind an + opened (formerly locked) door, he will be trapped when he rejoins the + game later. Eventually place "emergency exits" for such cases. + <LI><B>Motivate the player to use</B> as <B>many skills</B> as possible to + solve your quests. Make him fight, think, disarm traps, cast spells, fly + over pits, ... possibilities are great - make use of them. + <LI><B>Treat the player in a fair way.</B> If you surprise him with instant + death, he will hate your maps. A player should be aware of dangers, so + that he has at least the *possibility* to react. Besides, don't plunge + players into frustration. When you create puzzles, try to keep them at a + level where they are solvable by mortal beings. + <br> + (That doesn't mean all puzzles have to be short and small, just + "solvable".) Players could look at your maps via editor at any time. + Don't force them doing this. Support the "honorable" players. + <LI>If you plan to create a big mapset, <B>include maps of all difficulty + levels.</B> It's absolutely okay and reasonable to have areas where a + certain difficulty level dominates. Just try not to overdo it. </UL> <H2 align=center>Guidlines for creating Artifacts:</H2> <UL> - <LI><B>Don't rely on artifacts to make your maps interesting for players.</B> - <LI>When you create a new artifact (weapon, armor, etc), <B>always keep an eye - on playbalance.</B> Powerful items must NOT be reachable without hard fighting - AND questing. Look at other maps. Try to adopt the average taste of "difficulty". - Make sure the artifact is always hard to get, not only for the first time. - A hidden location, for instance, does not suffice. - <LI><B>Every good artifact should have negative attributes as well.</B> - There should be no "perfect set of equipment". - <LI><B>Don't ruin existing quests</B> by inserting identical (or even better) - items at easier places. There is enough room for new kinds of artifacts/treasure. + <LI><B>Don't rely on artifacts to make your maps interesting for + players.</B> + <LI>When you create a new artifact (weapon, armor, etc), <B>always keep an + eye on playbalance.</B> Powerful items must NOT be reachable without + hard fighting AND questing. Look at other maps. Try to adopt the average + taste of "difficulty". Make sure the artifact is always hard to get, not + only for the first time. A hidden location, for instance, does not + suffice. + <LI><B>Every good artifact should have negative attributes as well.</B> + There should be no "perfect set of equipment". + <LI><B>Don't ruin existing quests</B> by inserting identical (or even + better) items at easier places. There is enough room for new kinds of + artifacts/treasure. </UL> </BODY> Modified: trunk/atrinik/resource/HelpFiles/pycredits.html =================================================================== --- trunk/atrinik/resource/HelpFiles/pycredits.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/pycredits.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,23 +19,24 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Credits</TITLE> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Credits</TITLE> </HEAD> <BODY> -<P><A HREF="pystart.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="pystart.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> + <H1 align=center>Daimonin Java Script Editor Credits</H1> <P>The Daimonin Java Script Editor team:</P> <UL> - <LI>Michael Toennies - <LI>Andreas Vogl - <LI>Peter Plischewsky (Rustyblade) - <LI>Björn Axelsson (Gecko) + <LI>Michael Toennies + <LI>Andreas Vogl + <LI>Peter Plischewsky (Rustyblade) + <LI>Björn Axelsson (Gecko) </UL> - </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/pyfaq.html =================================================================== --- trunk/atrinik/resource/HelpFiles/pyfaq.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/pyfaq.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,15 +19,19 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Help FAQ</TITLE> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Help FAQ</TITLE> </HEAD> <BODY> -<P><A HREF="pystart.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="pystart.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> + <H1 align=center>Daimonin Java Script Editor FAQ</H1> <P> </P> + <P align="center">Comming Soon!</P> + </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/pyguide.html =================================================================== --- trunk/atrinik/resource/HelpFiles/pyguide.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/pyguide.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,14 +19,19 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Guidelines for Map-making</TITLE> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Guidelines for Map-making</TITLE> </HEAD> <BODY> -<P><A HREF="pystart.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="pystart.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> + <H1 align=center>General Guidelines for Script-making</H1> + <H2 align=center> </H2> + <H2 align=center>comming soon!</H2> + </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/pystart.html =================================================================== --- trunk/atrinik/resource/HelpFiles/pystart.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/pystart.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,33 +19,41 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Daimonin Editor Help</TITLE> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Daimonin Editor Help</TITLE> </HEAD> <BODY> -<H1 align=center><IMG SRC="cflogo.gif" WIDTH="378" HEIGHT="125" ALIGN="MIDDLE" NATURALSIZEFLAG="3"></H1> +<H1 align=center> + <IMG SRC="cflogo.gif" WIDTH="378" HEIGHT="125" ALIGN="MIDDLE" NATURALSIZEFLAG="3"> +</H1> + <H1 align=center>Daimonin Script Editor Help</H1> -<P><font size="+1">Welcome to the Daimonin Script Editor online Help.<br> - This document was designed to explain how to use the Script Editor.</font></P> +<P><font size="+1">Welcome to the Daimonin Script Editor online Help. + <br> + This document was designed to explain how to use the Script Editor.</font> +</P> <H3>Contents:</H3> <UL> - <LI><A HREF="pycredits.html">Credits</A> - <LI>Tutorial - <ol> - <LI><A HREF="tut_intro.html">Introduction to python</A> - <LI><A HREF="tut_DScript.html">Daimonin scripting commands</A> - </ol> + <LI><A HREF="pycredits.html">Credits</A> + <LI>Tutorial + <ol> + <LI><A HREF="tut_intro.html">Introduction to python</A> + <LI><A HREF="tut_DScript.html">Daimonin scripting commands</A> + </ol> - <LI><A HREF="pyguide.html">General Guidelines for Script-making</A> - <LI><A HREF="pyfaq.html">Daimonin Script Editor Help FAQ</A> + <LI><A HREF="pyguide.html">General Guidelines for Script-making</A> + <LI><A HREF="pyfaq.html">Daimonin Script Editor Help FAQ</A> </UL> <p>We hope you enjoy using the Daimonin Java Script Editor!</p> -<p><font size="-1">--Michael Toennies / Andreas Vogl / Peter Plischewsky / 'Bjorn - Axelson' </font></p> + +<p><font size="-1">--Michael Toennies / Andreas Vogl / Peter Plischewsky / + 'Bjorn Axelson'</font></p> + <p><font size="-1"> aka's : Michtoen / Andreas / Rustyblade / Gecko</font></p> + </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/start.html =================================================================== --- trunk/atrinik/resource/HelpFiles/start.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/start.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,40 +19,46 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Daimonin Editor Help</TITLE> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Daimonin Editor Help</TITLE> </HEAD> <BODY> -<H1 align=center><IMG SRC="cflogo.gif" WIDTH="378" HEIGHT="125" ALIGN="MIDDLE" NATURALSIZEFLAG="3"></H1> +<H1 align=center> + <IMG SRC="cflogo.gif" WIDTH="378" HEIGHT="125" ALIGN="MIDDLE" NATURALSIZEFLAG="3"> +</H1> + <H1 align=center>Daimonin Editor Help</H1> -<P>Welcome to the Daimonin Editor online Help.<br> -This document was designed to explain how to use the Editor.</P> +<P>Welcome to the Daimonin Editor online Help. + <br> + This document was designed to explain how to use the Editor. +</P> <H3>Contents:</H3> <UL> - <LI><A HREF="credits.html">Credits</A> + <LI><A HREF="credits.html">Credits</A> - <LI>Tutorial - <ol> - <LI><A HREF="tut_loading.html">Loading Arches and Maps</A> - <LI><A HREF="tut_frames.html">The different Frames and their Purpose</A> - <LI><A HREF="tut_map.html">Basics for Designing a Map</A> - <LI><A HREF="tut_copypaste.html">Cut/Copy/Paste and Fill</A> - <LI><A HREF="tut_mapattr.html">Modifying the Map Properties</A> - <LI><A HREF="tut_objects.html">Manipulating Objects</A> - <LI><A HREF="tut_view.html">The View Settings</A> - <LI><A HREF="treasurelists.html">Treasurelists</A> - <LI><a href="tut_scriptev.html">Script Events</a> - </ol> + <LI>Tutorial + <ol> + <LI><A HREF="tut_loading.html">Loading Arches and Maps</A> + <LI><A HREF="tut_frames.html">The different Frames and their + Purpose</A> + <LI><A HREF="tut_map.html">Basics for Designing a Map</A> + <LI><A HREF="tut_copypaste.html">Cut/Copy/Paste and Fill</A> + <LI><A HREF="tut_mapattr.html">Modifying the Map Properties</A> + <LI><A HREF="tut_objects.html">Manipulating Objects</A> + <LI><A HREF="tut_view.html">The View Settings</A> + <LI><A HREF="treasurelists.html">Treasurelists</A> + <LI><a href="tut_scriptev.html">Script Events</a> + </ol> - <LI><A HREF="guide.html">General Guidelines for Map-making</A> + <LI><A HREF="guide.html">General Guidelines for Map-making</A> - <LI><A HREF="faq.html">Daimonin Editor Help FAQ</A> + <LI><A HREF="faq.html">Daimonin Editor Help FAQ</A> </UL> -I hope you enjoy using the Daimonin Java Editor. ---Andreas Vogl +I hope you enjoy using the Daimonin Java Editor. --Andreas Vogl + </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/treasure_multi.html =================================================================== --- trunk/atrinik/resource/HelpFiles/treasure_multi.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/treasure_multi.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,39 +19,47 @@ <HTML> <HEAD> - <TITLE>Treasurelists Multi</TITLE> + <TITLE>Treasurelists Multi</TITLE> </HEAD> <BODY> -<P><A HREF="treasurelists.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="treasurelists.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> <H1 align=center>Treasurelists producing multiple items</H1> -<P>You can recognize this type of treasurelist by the icon: <IMG SRC="treasure_list.png" WIDTH="32" HEIGHT="20" ALIGN="BOTTOM">. -Such a treasurelist can produce multiple items from the list. Objects with no chance set -are always generated - Others are only generated when they succeed a random-roll -at the given chance.</P> +<P>You can recognize this type of treasurelist by the icon: + <IMG SRC="treasure_list.png" WIDTH="32" HEIGHT="20" ALIGN="BOTTOM">. Such a + treasurelist can produce multiple items from the list. Objects with no + chance set are always generated - Others are only generated when they + succeed a random-roll at the given chance.</P> + <P> -Look at the example below, the "giant" treasurelist:<br> -Club, throwing skill and boulders will always be generated. -Gold coins have a chance of 65% to be generated, and there -is only a 10% chance that one item out of the giant_parts list -is generated. -Numbers like in "<b>80</b> goldcoin" indicate that if chance succeeds, -a stack of 1-80 gold coins can appear.<br> + Look at the example below, the "giant" treasurelist: + <br> + Club, throwing skill and boulders will always be generated. Gold coins have + a chance of 65% to be generated, and there is only a 10% chance that one + item out of the giant_parts list is generated. Numbers like in "<b>80</b> + goldcoin" indicate that if chance succeeds, a stack of 1-80 gold coins can + appear. + <br> </P> <IMG SRC="treasure3.jpg" WIDTH="242" HEIGHT="202" ALIGN="CENTER"> + <P> -Note that chances of different items do not influence each other in any way. -However, the YES/NO option allows to set dependencies between items. -Look at the example below, the "goblin" treasurelist:<br> -There is a 10% chance for the bow to be generated. Now <b>if</b> the bow -is generated, automatically arrows are generated too.<br> -There is a 5% chance for the sword to be generated. If that fails, the -shortsword has a 10% chance to be generated. If that fails again, there -is a 15% chance for the dagger. -<br></P> + Note that chances of different items do not influence each other in any way. + However, the YES/NO option allows to set dependencies between items. Look at + the example below, the "goblin" treasurelist: + <br> + There is a 10% chance for the bow to be generated. Now <b>if</b> the bow is + generated, automatically arrows are generated too. + <br> + There is a 5% chance for the sword to be generated. If that fails, the + shortsword has a 10% chance to be generated. If that fails again, there is a + 15% chance for the dagger. + <br> +</P> <IMG SRC="treasure4.jpg" WIDTH="277" HEIGHT="366" ALIGN="CENTER"> -<br> + </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/treasure_one.html =================================================================== --- trunk/atrinik/resource/HelpFiles/treasure_one.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/treasure_one.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,31 +19,38 @@ <HTML> <HEAD> - <TITLE>Treasurelists One</TITLE> + <TITLE>Treasurelists One</TITLE> </HEAD> <BODY> -<P><A HREF="treasurelists.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="treasurelists.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> <H1 align=center>Treasurelists producing one item</H1> -<P>You can recognize this type of treasurelist by the icon: <IMG SRC="treasureone_list.png" WIDTH="32" HEIGHT="20" ALIGN="BOTTOM">, -as well as the name ending with "[one]". Such a treasurelist produces always -exactly one item from the list. The objects on the list can have different chances set -(the %-values in brackets), which indicate that some items are more likely to -get chosen, and other less likely. +<P>You can recognize this type of treasurelist by the icon: + <IMG SRC="treasureone_list.png" WIDTH="32" HEIGHT="20" ALIGN="BOTTOM">, as + well as the name ending with "[one]". Such a treasurelist produces always + exactly one item from the list. The objects on the list can have different + chances set (the %-values in brackets), which indicate that some items are + more likely to get chosen, and other less likely.</P> + +<P><b>Examples for treasurelists producing one item:</b> + + <br> </P> -<P><b>Examples for treasurelists producing one item:</b> -<br></P> <table border="1"> -<tr> -<td><IMG SRC="treasure1.jpg" WIDTH="219" HEIGHT="155" ALIGN="CENTER"></td> -<td><IMG SRC="treasure2.jpg" WIDTH="257" HEIGHT="87" ALIGN="CENTER"></td> -</tr> + <tr> + <td><IMG SRC="treasure1.jpg" WIDTH="219" HEIGHT="155" ALIGN="CENTER"> + </td> + <td><IMG SRC="treasure2.jpg" WIDTH="257" HEIGHT="87" ALIGN="CENTER"> + </td> + </tr> </table> <P>As you can see in the right hand side example, treasurelists may contain yet -other treasurelists. If chosen, such sub-lists get processed in recursive fashion. -You can view the contents of each sub-list by clicking on the expand-mark. -</P> + other treasurelists. If chosen, such sub-lists get processed in recursive + fashion. You can view the contents of each sub-list by clicking on the + expand-mark.</P> + </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/treasure_special.html =================================================================== --- trunk/atrinik/resource/HelpFiles/treasure_special.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/treasure_special.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,29 +19,31 @@ <HTML> <HEAD> - <TITLE>Special Treasurelists</TITLE> + <TITLE>Special Treasurelists</TITLE> </HEAD> <BODY> -<P><A HREF="treasurelists.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="treasurelists.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> <H1 align=center>Special Treasurelists</H1> -<P>Some treasurelists are used for special purposes. These can be found in -the sub-folders "God Intervention", "Dragon Player Evolution" and "Player Creation". -They cannot be used in maps. -</P> +<P>Some treasurelists are used for special purposes. These can be found in the + sub-folders "God Intervention", "Dragon Player Evolution" and "Player + Creation". They cannot be used in maps.</P> + <P> -The "God Intervention" lists are of special importance. They define which -bonuses the Daimonin gods donate to their worshippers. These lists are -traversed from top to bottom and the grace_limit objects are only passed -when the worshipping player has a certain amount of grace. + The "God Intervention" lists are of special importance. They define which + bonuses the Daimonin gods donate to their worshippers. These lists are + traversed from top to bottom and the grace_limit objects are only passed + when the worshipping player has a certain amount of grace.</P> + +<P> + Below you see the treasurelist of the god Gnarg (as of 24.10.2002, the list + might have changed in the meantime). + <br> </P> -<P> -Below you see the treasurelist of the god Gnarg (as of 24.10.2002, -the list might have changed in the meantime). -<br></P> <IMG SRC="treasure5.jpg" WIDTH="310" HEIGHT="602" ALIGN="CENTER"> -<br> + </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/treasurelists.html =================================================================== --- trunk/atrinik/resource/HelpFiles/treasurelists.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/treasurelists.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,32 +19,38 @@ <HTML> <HEAD> - <TITLE>Treasurelists</TITLE> + <TITLE>Treasurelists</TITLE> </HEAD> <BODY> -<P><A HREF="start.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> +<P> + <A HREF="start.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> + <H1 align=center>Treasurelists</H1> <H3>What are Treasurelists?</H3> -<P>Whenever a monster is generated or loaded in the world of Daimonin, -items are placed in it's inventory according to the monster's -treasurelist.<br> -Hence, treasurelists define what items get dropped when the monster -is killed. Even more importantly, they define which skills and spells the -monster has at it's disposal.</P> + +<P>Whenever a monster is generated or loaded in the world of Daimonin, items are + placed in it's inventory according to the monster's treasurelist. + <br> + Hence, treasurelists define what items get dropped when the monster is + killed. Even more importantly, they define which skills and spells the + monster has at it's disposal. +</P> <P> -You can view the treasurelists by selecting menu "Resources->View Treasurelists", -or from the <A HREF="tut_objects.html">attribute dialog</A>. -<br></P> + You can view the treasurelists by selecting menu "Resources->View + Treasurelists", or from the <A HREF="tut_objects.html">attribute dialog</A>. + <br> +</P> <H3>Contents:</H3> <ol> - <LI><A HREF="treasure_one.html">Treasurelists producing one item</A> - <LI><A HREF="treasure_multi.html">Treasurelists producing multiple items</A> - <LI><A HREF="treasure_special.html">Special Treasurelists</A> + <LI><A HREF="treasure_one.html">Treasurelists producing one item</A> + <LI><A HREF="treasure_multi.html">Treasurelists producing multiple items</A> + <LI><A HREF="treasure_special.html">Special Treasurelists</A> </ol> To read more, select one of the links above. + </BODY> </HTML> Modified: trunk/atrinik/resource/HelpFiles/tut_DScript.html =================================================================== --- trunk/atrinik/resource/HelpFiles/tut_DScript.html 2010-05-22 22:29:02 UTC (rev 7896) +++ trunk/atrinik/resource/HelpFiles/tut_DScript.html 2010-05-23 09:08:24 UTC (rev 7897) @@ -19,874 +19,1726 @@ <HTML> <HEAD> - <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> - <TITLE>Daimonin Script Commands</TITLE> -<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></HEAD> + <META NAME="GENERATOR" CONTENT="Adobe PageMill 2.0 Mac"> + <TITLE>Daimonin Script Commands</TITLE> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> +</HEAD> <BODY> -<P><A HREF="pystart.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> -<H1 align=center><font size="+4">Daimonin Scripting Commands<a name="DSC"></a><a></a></font></H1> +<P> + <A HREF="pystart.html"><IMG SRC="back.gif" WIDTH="42" HEIGHT="22" ALIGN="BOTTOM" NATURALSIZEFLAG="3" BORDER="0">Back</A> + +<H1 align=center><font size="+4">Daimonin Scripting + Commands<a name="DSC"></a><a></a></font></H1> + <H1 align=center><font size="+1">There are three different types or groups of - Daimonin Scripting Commands. They are:</font></H1> + Daimonin Scripting Commands. They are:</font></H1> + <H1 align=center><font color="#000000" size="+2"><strong><a href="#DFunc">Daimonin - Functions</a>, <a href="#MMeth">Map Methods</a> & <a href="#OMeth">Object - Methods</a></strong></font></H1> -<H1 align=center><font color="#000000" size="+1">Click on one of the above topics - to be taken to that subject.</font></H1> + Functions</a>, <a href="#MMeth">Map Methods</a> & <a href="#OMeth">Object + Methods</a></strong></font></H1> -<P><strong><font size="+2">Daimonin Functions:<a name="DFunc"></a> </font></strong><a href="#DSC">back - to the top</a></P> -<P>LoadObject<br> - ------------------------------------------------------------<br> - Daimonin.LoadObject(string)<br> - Parameter types:<br> - string string<br> - Possible return types:<br> - object<br> - Status:<br> - Untested</P> -<p>MatchString<br> - ------------------------------------------------------------<br> - Daimonin.MatchString(firststr,secondstr)<br> - Case insensitive string comparison. Returns 1 if the two<br> - strings are the same, or 0 if they differ.<br> - second string can contain regular expressions.<br> - Parameter types:<br> - string firststr<br> - string secondstr<br> - Possible return types:<br> - integer<br> - Status:<br> - Stable</p> -<p>ReadyMap<br> - ------------------------------------------------------------<br> - Daimonin.ReadyMap(name, unique)<br> - Make sure the named map is loaded into memory. unique _must_ be<br> - 1 if the map is unique (f_unique = 1).<br> - Default value for unique is 0<br> - Parameter types:<br> - string name<br> - (optional) integer unique<br> - Possible return types:<br> - map<br> - Status:<br> - Stable<br> - TODO:<br> - Don't crash if unique is wrong</p> -<p>CheckMap<br> - ------------------------------------------------------------<br> - Daimonin.CheckMap(arch, map_path, x, y)<br> - <br> - Parameter types:<br> - string arch<br> - string map_path<br> - integer x<br> - integer y<br> - Possible return types:<br> - object<br> - Status:<br> - Unfinished!! Do Not Use!</p> -<p>FindPlayer<br> - ------------------------------------------------------------<br> - Daimonin.FindPlayer(name)<br> - Parameter types:<br> - string name<br> - Possible return types:<br> - object<br> - Status:<br> - Tested</p> -<p>WhoAmI<br> - ------------------------------------------------------------<br> - Daimonin.WhoAmI()<br> - Get the owner of the active script (the object that has the<br> - event handler)<br> - Parameter types:<br> - Possible return types:<br> - object<br> - Status:<br> - Stable</p> -<p>WhoIsActivator<br> - ------------------------------------------------------------<br> - Daimonin.WhoIsActivator()<br> - Gets the object that activated the current event<br> - Parameter types:<br> - Possible return types:<br> - object<br> - Status:<br> - Stable</p> -<p>WhoIsOther<br> - ------------------------------------------------------------<br> - Daimonin.WhoIsOther()<br> - Parameter types:<br> - Possible return types:<br> - object<br> - Status:<br> - Untested</p> -<p>WhatIsMessage<br> - ------------------------------------------------------------<br> - Daimonin.WhatIsMessage()<br> - Gets the actual message in SAY events.<br> - Parameter types:<br> - Possible return types:<br> - string<br> - Status:<br> - Stable</p> -<p>GetOptions <br> - -------------------------------------------------------------<br> - Gets the script options (as passed in the event's slaying field)<br> - Parameter types: None<br> - Return types: String<br> - Status: Stable</p> -<p>GetReturnValue<br> - ------------------------------------------------------------<br> - Daimonin.GetReturnValue()<br> - Parameter types:<br> - Possible return types:<br> - integer<br> - Status:<br> - Untested</p> -<p>SetReturnValue<br> - ------------------------------------------------------------<br> - Daimonin.SetReturnValue(value)<br> - Parameter types:<br> - integer value<br> - Possible return types:<br> - None<br> - Status:<br> - Untested</p> -<p>GetSpellNr<br> - ------------------------------------------------------------<br> - Daimonin.GetSpellNr(name)<br> - Gets the number of the named spell. -1 if no such spell exists<br> - Parameter types:<br> - string name<br> - Possible return types:<br> - integer<br> - Status:<br> - Tested</p> -<p>GetSkillNr<br> - ------------------------------------------------------------<br> - Daimonin.GetSkillNr(name)<br> - Gets the number of the named skill. -1 if no such skill exists<br> - Parameter types:<br> - string name<br> - Possible return types:<br> - integer<br> - Status:<br> - Tested</p> -<p>RegisterCommand<br> - ------------------------------------------------------------<br> - Daimonin.RegisterCommand(cmdname,scriptname,speed)<br> - Parameter types:<br> - string cmdname<br> - string scriptname<br> - integer speed<br> - Possible return types:<br> - None<br> - Status:<br> - Untested<br> - pretty untested...</p> +<H1 align=center><font color="#000000" size="+1">Click on one of the above + topics to be taken to that subject.</font></H1> + +<P><strong><font size="+2">Daimonin Functions:<a name="DFunc"></a> +</font></strong><a href="#DSC">back to the top</a></P> + +<P>LoadObject + <br> + ------------------------------------------------------------ + <br> + Daimonin.LoadObject(string) + <br> + Parameter types: + <br> + string string + <br> + Possible return types: + <br> + object + <br> + Status: + <br> + Untested +</P> +<p>MatchString + <br> + ------------------------------------------------------------ + <br> + Daimonin.MatchString(firststr,secondstr) + <br> + Case insensitive string comparison. Returns 1 if the two + <br> + strings are the same, or 0 if they differ. + <br> + second string can contain regular expressions. + <br> + Parameter types: + <br> + string firststr + <br> + string secondstr + <br> + Possible return types: + <br> + integer + <br> + Status: + <br> + Stable +</p> +<p>ReadyMap + <br> + ------------------------------------------------------------ + <br> + Daimonin.ReadyMap(name, unique) + <br> + Make sure the named map is loaded into memory. unique _must_ be + <br> + 1 if the map is unique (f_unique = 1). + <br> + Default value for unique is 0 + <br> + Parameter types: + <br> + string name + <br> + (optional) integer unique + <br> + Possible return types: + <br> + map + <br> + Status: + <br> + Stable + <br> + TODO: + <br> + Don't crash if unique is wrong +</p> +<p>CheckMap + <br> + ------------------------------------------------------------ + <br> + Daimonin.CheckMap(arch, map_path, x, y) + <br> + <br> + Parameter types: + <br> + string arch + <br> + string map_path + <br> + integer x + <br> + integer y + <br> + Possible return types: + <br> + object + <br> + Status: + <br> + Unfinished!! Do Not Use! +</p> +<p>FindPlayer + <br> + ------------------------------------------------------------ + <br> + Daimonin.FindPlayer(name) + <br> + Parameter types: + <br> + string name + <br> + Possible return types: + <br> + object + <br> + Status: + <br> + Tested +</p> +<p>WhoAmI + <br> + ------------------------------------------------------------ + <br> + Daimonin.WhoAmI() + <br> + Get the owner of the active script (the object that has the + <br> + event handler) + <br> + Parameter types: + <br> + Possible return types: + <br> + object + <br> + Status: + <br> + Stable +</p> +<p>WhoIsActivator + <br> + ------------------------------------------------------------ + <br> + Daimonin.WhoIsActivator() + <br> + Gets the object that activated the current event + <br> + Parameter types: + <br> + Possible return types: + <br> + object + <br> + Status: + <br> + Stable +</p> +<p>WhoIsOther + <br> + ------------------------------------------------------------ + <br> + Daimonin.WhoIsOther() + <br> + Parameter types: + <br> + Possible return types: + <br> + object + <br> + Status: + <br> + Untested +</p> +<p>WhatIsMessage + <br> + ------------------------------------------------------------ + <br> + Daimonin.WhatIsMessage() + <br> + Gets the actual message in SAY events. + <br> + Parameter types: + <br> + Possible return types: + <br> + string + <br> + Status: + <br> + Stable +</p> +<p>GetOptions + <br> + ------------------------------------------------------------- + <br> + Gets the script options (as passed in the event's slaying field) + <br> + Parameter types: None + <br> + Return types: String + <br> + Status: Stable +</p> +<p>GetReturnValue + <br> + ------------------------------------------------------------ + <br> + Daimonin.GetReturnValue() + <br> + Parameter types: + <br> + Possible return types: + <br> + integer + <br> + Status: + <br> + Untested +</p> +<p>SetReturnValue + <br> + ------------------------------------------------------------ + <br> + Daimonin.SetReturnValue(value) + <br> + Parameter types: + <br> + integer value + <br> + Possible return types: + <br> + None + <br> + Status: + <br> + Untested +</p> +<p>GetSpellNr + <br> + ------------------------------------------------------------ + <br> + Daimonin.GetSpellNr(name) + <br> + Gets the number of the named spell. -1 if no such spell exists + <br> + Parameter types: + <br> + string name + <br> + Possible return types: + <br> + integer + <br> + Status: + <br> + Tested +</p> +<p>GetSkillNr + <br> + ------------------------------------------------------------ + <br> + Daimonin.GetSkillNr(name) + <br> + Gets the number of the named skill. -1 if no such skill exists + <br> + Parameter types: + <br> + string name + <br> + Possible return types: + <br> + integer + <br> + Status: + <br> + Tested +</p> +<p>RegisterCommand + <br> + ------------------------------------------------------------ + <br> + Daimonin.RegisterCommand(cmdname,scriptname,speed) + <br> + Parameter types: + <br> + string cmdname + <br> + string scriptname + <br> + integer speed + <br> + Possible return types: + <br> + None + <br> + Status: + <br> + Untested + <br> + pretty untested... +</p> <p> </p> -<p><strong><font size="+2">Map Methods<a name="MMeth"></a> </font></strong><a href="#DSC">back - to the top</a></p> -<p>GetFirstObjectOnSquare<br> - ------------------------------------------------------------<br> - map.GetFirstObjectOnSquare(x,y)<br> - Gets the bottom object on the tile. Use obj.above to browse objs<br> - Parameter types:<br> - integer x<br> - integer y<br> - Possible return types:<br> - object<br> - Status:<br> - Stable</p> -<p>MapTileAt<br> - ------------------------------------------------------------<br> - map.MapTileAt(x,y)<br> - Parameter types:<br> - integer x<br> - integer y<br> - Possible return types:<br> - map<br> - Status:<br> - untested<br> - TODO:<br> - do something about the new modified coordinates too?</p> -<p>PlaySound<br> - ------------------------------------------------------------<br> - map.PlaySound(x, y, soundnumber, soundtype)<br> - Parameter types:<br> - integer x<br> - integer y<br> - integer soundnumber<br> - integer soundtype<br> - Possible return types:<br> - None<br> - Status:<br> - Tested<br> - TODO:<br> - supply constants for the sounds</p> -<p>Message<br> - ------------------------------------------------------------<br> - map.Message(message, color)<br> - Writes a message to all players on a map<br> - default color is NDI_BLUE|NDI_UNIQUE<br> - Parameter types:<br> - string message<br> - (optional) integer color<br> - Possible return types:<br> - None<br> - Status:<br> - Tested<br> - TODO:<br> - Add constants for colors</p> -<p>CreateObject<br> - ------------------------------------------------------------<br> - map.CreateObject(arch_name, x, y)<br> - <br> - Parameter types:<br> - string arch_name<br> - integer x<br> - integer y<br> - Possible return types:<br> - object<br> - Status:<br> - Untested</p> + +<p><strong><font size="+2">Map Methods<a name="MMeth"></a> +</font></strong><a href="#DSC">back to the top</a></p> + +<p>GetFirstObjectOnSquare + <br> + ------------------------------------------------------------ + <br> + map.GetFirstObjectOnSquare(x,y) + <br> + Gets the bottom object on the tile. Use obj.above to browse objs + <br> + Parameter types: + <br> + integer x + <br> + integer y + <br> + Possible return types: + <br> + object + <br> + Status: + <br> + Stable +</p> +<p>MapTileAt + <br> + ------------------------------------------------------------ + <br> + map.MapTileAt(x,y) + <br> + Parameter types: + <br> + integer x + <br> + integer y + <br> + Possible return types: + <br> + map + <br> + Status: + <br> + untested + <br> + TODO: + <br> + do something about the new modified coordinates too? +</p> +<p>PlaySound + <br> + ------------------------------------------------------------ + <br> + map.PlaySound(x, y, soundnumber, soundtype) + <br> + Parameter types: + <br> + integer x + <br> + integer y + <br> + integer soundnumber + <br> + integer soundtype + <br> + Possible return types: + <br> + None + <br> + Status: + <br> + Tested + <br> + TODO: + <br> + supply constants for the sounds +</p> +<p>Message + <br> + ------------------------------------------------------------ + <br> + map.Message(message, color) + <br> + Writes a message to all players on a map + <br> + default color is NDI_BLUE|NDI_UNIQUE + <br> + Parameter types: + <br> + string message + <br> + (optional) integer color + <br> + Possible return types: + <br> + None + <br> + Status: + <br> + Tested + <br> + TODO: + <br> + Add constants for colors +</p> +<p>CreateObject + <br> + ------------------------------------------------------------ + <br> + map.CreateObject(arch_name, x, y) + <br> + <br> + Parameter types: + <br> + string arch_name + <br> + integer x + <br> + integer y + <br> + Possible return types: + <br> + object + <br> + Status: + <br> + Untested +</p> <p></p> -<p><font size="+2"><strong>Object Methods<a name="OMeth"></a> </strong></font><a href="#DSC">back - to the top</a></p> -<p>GetSkill<br> - ------------------------------------------------------------<br> - object.GetSkill(type, id) <br> - This function will fetch a skill or the exp of the skill<br> - Parameter types:<br> - integer skill<br> - integer type<br> - Possible return types:<br> - integer<br> - Status:<br> - Stable</p> -<p>SetSkill<br> - ------------------------------------------------------------<br> - object.SetSkill(skillid,value) <br> - Sets object's experience in the skill skillid as close to value<br> - as permitted. There is currently a limit of 1/4 of a level.<br> - There's no limit on exp reduction<br> - FIXME overall experience is not changed (should it be?) <br> - Parameter types:<br> - integer skillid<br> - integer value<br> - Possible return types:<br> - None<br> - Status:<br> - Tested</p> -<p>ActivateRune<br> - ------------------------------------------------------------<br> - object.ActivateRune(what)<br> - Parameter types:<br> - object what<br> - Possible return types:<br> - None<br> - Status:<br> - Untested</p> -<p>CheckTrigger<br> - ------------------------------------------------------------<br> - object.CheckTrigger(what)<br> - Parameter types:<br> - object what<br> - Possible return types:<br> - None<br> - Status:<br> - Unfinished<br> - MUST DO THE HOOK HERE !</p> -<p>GetGod<br> - ------------------------------------------------------------<br> - object.GetGod()<br> - Parameter types:<br> - Possible return types:<br> - string<br> - Status:<br> - Stable</p> -<p>SetGod<br> - ------------------------------------------------------------<br> - object.SetGod(godname)<br> - Parameter types:<br> - string godname<br> - Possible return types:<br> - None<br> - Status:<br> - Unfinished!</p> -<p>TeleportTo<br> - ------------------------------------------------------------<br> - object.TeleportTo(map, x, y, unique)<br> - Teleports object to the given position of map.<br> - Parameter types:<br> - string map<br> - integer x<br> - integer y<br> - (optional) integer unique<br> - Possible return types:<br> - None<br> - Status:<br> - Tested</p> -<p>InsertInside<br> - ------------------------------------------------------------<br> - object.InsertInside(where)<br> - Inserts object into where.<br> - Parameter types:<br> - object where<br> - Possible return types:<br> - None<br> - Status:<br> - Stable</p> -<p>Apply<br> - ------------------------------------------------------------<br> - object.Apply(what, flags)<br> - forces object to apply what.<br> - flags should be a reasonable combination of the following:<br> - Daimonin.APPLY_TOGGLE - normal apply (toggle)<br> - Daimonin.APPLY_ALWAYS - always apply (never unapply)<br> - Daimonin.UNAPPLY_ALWAYS - always unapply (never apply)<br> - Daimonin.UNAPPLY_NOMERGE - don't merge unapplied items<br> - Daimonin.UNAPPLY_IGNORE_CURSE - unapply cursed items<br> - returns: 0 - object cannot apply objects of that type.<br> - 1 - object was applied, or not...<br> - 2 - object must be in inventory to be applied<br> - Parameter types:<br> - object what<br> - integer flags<br> - Possible return types:<br> - integer<br> - Status:<br> - Tested</p> -<p>PickUp<br> - ------------------------------------------------------------<br> - object.PickUp(what)<br> - Parameter types:<br> - object what<br> - Possible return types:<br> - None<br> - Status:<br> - Tested</p> -<p>Drop<br> - ------------------------------------------------------------<br> - object.Drop(what)<br> - Equivalent to the player command "drop" (name is an object name,<br> - "all", "unpaid", "cursed", "unlocked" - or a count + object name :<br> - "<nnn> <object name>", or a base name, or a short name...)<br> - Parameter types:<br> - string what<br> - Possible return types:<br> - None<br> - Status:<br> - Tested</p> -<p>Take<br> - ------------------------------------------------------------<br> - object.Take(name)<br> - Parameter types:<br> - string name<br> - Possible return types:<br> - None<br> - Status:<br> - Temporary disabled (see commands.c)</p> -<p>Communicate<br> - ------------------------------------------------------------<br> - object.Communicate(message)<br> - object says message to everybody on its map<br> - but instead of CFSay it is parsed for other npc or magic mouth<br> - Parameter types:<br> - string message<br> - Possible return types:<br> - None<br> - Status:<br> - Stable</p> -<p>Say<br> - ------------------------------------------------------------<br> - object.Say(message)<br> - object says message to everybody on its map<br> - Parameter types:<br> - string message<br> - Possible return types:<br> - None<br> - Status:<br> - Stable</p> -<p>SayTo<br> - ------------------------------------------------------------<br> - object.SayTo(target, message)<br> - NPC talks only to player but map get a "xx talks to" msg too.<br> - Parameter types:<br> - object target<br> - string message<br> - Possible return types:<br> - None<br> - Status:<br> - Stable</p> -<p>Write<br> - ------------------------------------------------------------<br> - who.Write(message , color)<br> - Writes a message to a specific player.<br> - Parameter types:<br> - string message<br> - (optional) integer color<br> - Possible return types:<br> - None<br> - Status:<br> - Tested</p> -<p>SetGender<br> - ------------------------------------------------------------<br> - object.SetGender(gender)<br> - Changes the gender of object. gender_string should be one of<br> - Daimonin.NEUTER, Daimonin.MALE, Daimonin.GENDER_FEMALE or<br> - Daimonin.HERMAPHRODITE<br> - Parameter types:<br> - integer gender<br> - Possible return types:<br> - None<br> - Status:<br> - Stable</p> -<p>SetRank<br> - ------------------------------------------------------------<br> - object.SetRank(rank_string)<br> - Set the rank of an object to rank_string<br> - Rank string 'Mr' is special for no rank<br> - Parameter types:<br> - string rank_string<br> - Possible return types:<br> - object<br> - None<br> - Status... [truncated message content] |
From: <aki...@us...> - 2010-05-23 11:44:22
|
Revision: 7911 http://gridarta.svn.sourceforge.net/gridarta/?rev=7911&view=rev Author: akirschbaum Date: 2010-05-23 11:44:15 +0000 (Sun, 23 May 2010) Log Message: ----------- Rename action 'floodfill' to 'floodFill'. Modified Paths: -------------- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties trunk/src/app/net/sf/gridarta/action.properties trunk/src/app/net/sf/gridarta/mainactions/MainActions.java trunk/src/app/net/sf/gridarta/messages.properties trunk/src/app/net/sf/gridarta/messages_de.properties trunk/src/app/net/sf/gridarta/messages_fr.properties trunk/src/app/net/sf/gridarta/messages_sv.properties trunk/src/app/net/sf/gridarta/model/floodfill/FillUtils.java Modified: trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties =================================================================== --- trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/atrinik/src/app/net/sf/gridarta/var/atrinik/action.properties 2010-05-23 11:44:15 UTC (rev 7911) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodFill - selectAll expandEmptySelection growSelection shrinkSelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodFill - selectAll expandEmptySelection growSelection shrinkSelection mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties =================================================================== --- trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/crossfire/src/app/net/sf/gridarta/var/crossfire/action.properties 2010-05-23 11:44:15 UTC (rev 7911) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodFill - selectAll expandEmptySelection growSelection shrinkSelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodFill - selectAll expandEmptySelection growSelection shrinkSelection mapwindowMap.menu=gridVisible smoothing enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap tileShow - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties =================================================================== --- trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/daimonin/src/app/net/sf/gridarta/var/daimonin/action.properties 2010-05-23 11:44:15 UTC (rev 7911) @@ -26,7 +26,7 @@ # Menus main.menubar=file edit map archetypes pickmaps resources tools analyze view plugins window help file.menu=newMap openFile recent closeMap - saveMap saveMapAs closeAllMaps revertMap createImage - options shortcuts - exit -edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection +edit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodFill - selectAll expandEmptySelection growSelection shrinkSelection map.menu=autoJoin - enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects - gameObjectTextEditor archetypes.menu=displayGameObjectNames displayArchetypeNames displayIconsOnly - findArchetypes #pickmaps.menu: See gridarta @@ -41,7 +41,7 @@ mapwindow.menubar=mapwindowFile mapwindowEdit mapwindowMap mapwindowCursor mapwindowFile.menu=saveMap saveMapAs createImage - revertMap - closeMap -mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodfill - selectAll expandEmptySelection growSelection shrinkSelection +mapwindowEdit.menu=undo redo - clear cut copy paste - shift - replace fillAuto fillAbove fillBelow randFillAuto randFillAbove randFillBelow floodFill - selectAll expandEmptySelection growSelection shrinkSelection mapwindowMap.menu=gridVisible enterExit nextExit prevExit enterNorthMap enterEastMap enterSouthMap enterWestMap enterNorthEastMap enterSouthEastMap enterSouthWestMap enterNorthWestMap - mapCreateView mapProperties shrinkMapSize deleteUnknownObjects mapwindowCursor.menu=moveCursor - exitConnector - selectSquare startStopDrag addToSelection subFromSelection releaseDrag - insertArch deleteArch - selectArchAbove selectArchBelow - archAttributes Modified: trunk/src/app/net/sf/gridarta/action.properties =================================================================== --- trunk/src/app/net/sf/gridarta/action.properties 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/src/app/net/sf/gridarta/action.properties 2010-05-23 11:44:15 UTC (rev 7911) @@ -75,7 +75,7 @@ randFillBelow.icon=EmptySmallIcon -floodfill.icon=EmptySmallIcon +floodFill.icon=EmptySmallIcon selectAll.icon=EmptySmallIcon Modified: trunk/src/app/net/sf/gridarta/mainactions/MainActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2010-05-23 11:44:15 UTC (rev 7911) @@ -286,10 +286,10 @@ private final Action aRandFillBelow; /** - * Action called for "floodfill". + * Action called for "flood fill". */ @NotNull - private final Action aFloodfill; + private final Action aFloodFill; /** * Action called for "select all". @@ -569,7 +569,7 @@ aRandFillAuto = ActionUtils.newAction(ACTION_BUILDER, "Map/Fill", this, "randFillAuto"); aRandFillAbove = ActionUtils.newAction(ACTION_BUILDER, "Map/Fill", this, "randFillAbove"); aRandFillBelow = ActionUtils.newAction(ACTION_BUILDER, "Map/Fill", this, "randFillBelow"); - aFloodfill = ActionUtils.newAction(ACTION_BUILDER, "Map/Fill", this, "floodfill"); + aFloodFill = ActionUtils.newAction(ACTION_BUILDER, "Map/Fill", this, "floodFill"); aSelectAll = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "selectAll"); aExpandEmptySelection = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "expandEmptySelection"); aGrowSelection = ActionUtils.newAction(ACTION_BUILDER, "Map/Selection", this, "growSelection"); @@ -810,10 +810,10 @@ } /** - * "Floodfill" was selected from the Edit menu. + * "Flood fill" was selected from the Edit menu. */ @ActionMethod - public void floodfill() { + public void floodFill() { doFloodFill(true); } @@ -1094,7 +1094,7 @@ } if (performAction) { - FillUtils.floodfill(mapView.getMapControl().getMapModel(), mapCursorLocation, objectChooser.getSelections(), insertionModeSet); + FillUtils.floodFill(mapView.getMapControl().getMapModel(), mapCursorLocation, objectChooser.getSelections(), insertionModeSet); } return true; Modified: trunk/src/app/net/sf/gridarta/messages.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages.properties 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/src/app/net/sf/gridarta/messages.properties 2010-05-23 11:44:15 UTC (rev 7911) @@ -785,9 +785,9 @@ randFillBelow.longdescription=Randomly fills the selected squares below existing game objects. New game objects are added regardless of already existing game objects. randFillBelow.accel=ctrl shift pressed D -floodfill.text=Flood Fill -floodfill.shortdescription=Fills empty squares. -floodfill.longdescription=Fills empty squares starting from the map cursor square. +floodFill.text=Flood Fill +floodFill.shortdescription=Fills empty squares. +floodFill.longdescription=Fills empty squares starting from the map cursor square. selectAll.text=Select All selectAll.mnemonic=S Modified: trunk/src/app/net/sf/gridarta/messages_de.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/src/app/net/sf/gridarta/messages_de.properties 2010-05-23 11:44:15 UTC (rev 7911) @@ -735,9 +735,9 @@ randFillBelow.shortdescription=F\xFCllt die ausgew\xE4hlten Felder zuf\xE4llig. Neu eingef\xFCgte Objekte werden unter bereits existierenden Objekten eingef\xFCgt. randFillBelow.longdescription=F\xFCllt die ausgew\xE4hlten Felder zuf\xE4llig. Neu eingef\xFCgte Objekte werden unter bereits existierenden Objekten eingef\xFCgt und ersetzen niemals bereits existierende Objekte. -floodfill.text=Freien Bereich f\xFCllen -floodfill.shortdescription=F\xFCllt freie Felder. -floodfill.longdescription=F\xFCllt freie Felder. Der F\xFCllvorgang beginnt im Cursor-Feld. +floodFill.text=Freien Bereich f\xFCllen +floodFill.shortdescription=F\xFCllt freie Felder. +floodFill.longdescription=F\xFCllt freie Felder. Der F\xFCllvorgang beginnt im Cursor-Feld. selectAll.text=Alles ausw\xE4hlen selectAll.mnemonic=S Modified: trunk/src/app/net/sf/gridarta/messages_fr.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/src/app/net/sf/gridarta/messages_fr.properties 2010-05-23 11:44:15 UTC (rev 7911) @@ -727,9 +727,9 @@ #randFillBelow.shortdescription= #randFillBelow.longdescription= -#floodfill.text= -#floodfill.shortdescription= -#floodfill.longdescription= +#floodFill.text= +#floodFill.shortdescription= +#floodFill.longdescription= selectAll.text=Tout s\xE9lectionner selectAll.mnemonic=T Modified: trunk/src/app/net/sf/gridarta/messages_sv.properties =================================================================== --- trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/src/app/net/sf/gridarta/messages_sv.properties 2010-05-23 11:44:15 UTC (rev 7911) @@ -733,9 +733,9 @@ #randFillBelow.shortdescription= #randFillBelow.longdescription= -#floodfill.text= -#floodfill.shortdescription= -#floodfill.longdescription= +#floodFill.text= +#floodFill.shortdescription= +#floodFill.longdescription= selectAll.text=Markera allt selectAll.mnemonic=M Modified: trunk/src/app/net/sf/gridarta/model/floodfill/FillUtils.java =================================================================== --- trunk/src/app/net/sf/gridarta/model/floodfill/FillUtils.java 2010-05-23 11:40:43 UTC (rev 7910) +++ trunk/src/app/net/sf/gridarta/model/floodfill/FillUtils.java 2010-05-23 11:44:15 UTC (rev 7911) @@ -81,7 +81,7 @@ * @param gameObjects the game objects to fill with * @param insertionModeSet the insertion mode set to use */ - public static <G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> void floodfill(@NotNull final MapModel<G, A, R> mapModel, @NotNull final Point start, @NotNull final List<? extends BaseObject<G, A, R, ?>> gameObjects, @NotNull final InsertionModeSet<G, A, R> insertionModeSet) { + public static <G extends GameObject<G, A, R>, A extends MapArchObject<A>, R extends Archetype<G, A, R>> void floodFill(@NotNull final MapModel<G, A, R> mapModel, @NotNull final Point start, @NotNull final List<? extends BaseObject<G, A, R, ?>> gameObjects, @NotNull final InsertionModeSet<G, A, R> insertionModeSet) { if (gameObjects.isEmpty()) { return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <aki...@us...> - 2010-05-23 12:06:16
|
Revision: 7915 http://gridarta.svn.sourceforge.net/gridarta/?rev=7915&view=rev Author: akirschbaum Date: 2010-05-23 12:06:10 +0000 (Sun, 23 May 2010) Log Message: ----------- Fix typos. Modified Paths: -------------- trunk/gridarta.ipr trunk/src/app/net/sf/gridarta/mainactions/MainActions.java Modified: trunk/gridarta.ipr =================================================================== --- trunk/gridarta.ipr 2010-05-23 12:04:35 UTC (rev 7914) +++ trunk/gridarta.ipr 2010-05-23 12:06:10 UTC (rev 7915) @@ -1135,6 +1135,7 @@ <w>beanshell</w> <w>bitmask</w> <w>daimonin</w> + <w>exiter</w> <w>filter<?, ?></w> <w>goto</w> <w>gridarta</w> @@ -1149,6 +1150,7 @@ <w>pickmaps</w> <w>plugins</w> <w>resize</w> + <w>resized</w> <w>resizes</w> <w>shortdescription</w> <w>startup</w> Modified: trunk/src/app/net/sf/gridarta/mainactions/MainActions.java =================================================================== --- trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2010-05-23 12:04:35 UTC (rev 7914) +++ trunk/src/app/net/sf/gridarta/mainactions/MainActions.java 2010-05-23 12:06:10 UTC (rev 7915) @@ -858,7 +858,7 @@ } /** - * Invoked when the user wants to expand the selction of empty map squares + * Invoked when the user wants to expand the selection of empty map squares * to surrounding empty map squares. */ @ActionMethod This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |