diff layer/Layer.h @ 1459:42c87368287c

Merge from branch single-point
author Chris Cannam
date Fri, 17 May 2019 10:02:52 +0100
parents 98157ea8a3d2
children 11a150e65ee1
line wrap: on
line diff
--- a/layer/Layer.h	Wed Apr 24 11:29:53 2019 +0100
+++ b/layer/Layer.h	Fri May 17 10:02:52 2019 +0100
@@ -161,7 +161,6 @@
     enum SnapType {
         SnapLeft,
         SnapRight,
-        SnapNearest,
         SnapNeighbouring
     };
 
@@ -171,13 +170,12 @@
      *
      * If snap is SnapLeft or SnapRight, adjust the frame to match
      * that of the nearest feature in the given direction regardless
-     * of how far away it is.  If snap is SnapNearest, adjust the
-     * frame to that of the nearest feature in either direction.  If
-     * snap is SnapNeighbouring, adjust the frame to that of the
-     * nearest feature if it is close, and leave it alone (returning
-     * false) otherwise.  SnapNeighbouring should always choose the
-     * same feature that would be used in an editing operation through
-     * calls to editStart etc.
+     * of how far away it is. If snap is SnapNeighbouring, adjust the
+     * frame to that of the nearest feature in either direction if it
+     * is close, and leave it alone (returning false) otherwise.
+     * SnapNeighbouring should always choose the same feature that
+     * would be used in an editing operation through calls to
+     * editStart etc.
      *
      * Return true if a suitable feature was found and frame adjusted
      * accordingly.  Return false if no suitable feature was available
@@ -551,6 +549,10 @@
     virtual bool canExistWithoutModel() const { return false; }
 
 public slots:
+    /**
+     * Change the visibility status (dormancy) of the layer in the
+     * given view.
+     */
     void showLayer(LayerGeometryProvider *, bool show);
 
 signals: