mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
added icon for snap
renamed snap to objects
This commit is contained in:
@@ -80,7 +80,7 @@ public interface IPlugInPort extends ISelectionProcessor, IMouseProcessor, IKeyP
|
||||
|
||||
public static final String SNAP_TO_NONE = "None";
|
||||
public static final String SNAP_TO_GRID = "Grid";
|
||||
public static final String SNAP_TO_OBJECTS = "Objects";
|
||||
public static final String SNAP_TO_COMPONENTS = "Components";
|
||||
public static final String SNAP_TO_DEFAULT = SNAP_TO_GRID;
|
||||
|
||||
public static final int DND_TOGGLE_STICKY = 0x1;
|
||||
|
||||
@@ -745,7 +745,7 @@ public class Presenter implements IPlugInPort {
|
||||
snapTo = IPlugInPort.SNAP_TO_NONE;
|
||||
}
|
||||
boolean snapToGrid = snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_GRID);
|
||||
boolean snapToObjects = snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_OBJECTS);
|
||||
boolean snapToObjects = snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_COMPONENTS);
|
||||
|
||||
if (altDown) {
|
||||
Project oldProject = null;
|
||||
@@ -1183,7 +1183,7 @@ public class Presenter implements IPlugInPort {
|
||||
String snapTo = ConfigurationManager.getInstance().readString(IPlugInPort.SNAP_TO_KEY, IPlugInPort.SNAP_TO_DEFAULT);
|
||||
if (this.dragAction == IPlugInPort.DND_TOGGLE_SNAP)
|
||||
return false;
|
||||
return snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_OBJECTS);
|
||||
return snapTo.equalsIgnoreCase(IPlugInPort.SNAP_TO_COMPONENTS);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -2716,7 +2716,7 @@
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>NEW_FEATURE</changeType>
|
||||
<description>Added "Snap To Objects" feature that snaps control points to control points of the nearest components</description>
|
||||
<description>Added "Snap To Components" feature that snaps control points to control points of the nearest components</description>
|
||||
</org.diylc.appframework.update.Change>
|
||||
<org.diylc.appframework.update.Change>
|
||||
<changeType>NEW_FEATURE</changeType>
|
||||
|
||||
Reference in New Issue
Block a user