]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchPlugin/SketchPlugin_Line.h
Salome HOME
Issue #1652 Add a real widget displaying the length of the line in the panel: correct...
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Line.h
index 0ff8e6b71ec3e2a2f3069733735df538eb35ed1a..e24e90e5444c0f52762a57e99e576f89258db299 100644 (file)
@@ -12,7 +12,6 @@
 #include <SketchPlugin_Sketch.h>
 #include <list>
 
-#define LINE_LENGHT_BLOCKED
 class GeomAPI_Pnt2d;
 
 /**\class SketchPlugin_Line
@@ -42,19 +41,21 @@ class SketchPlugin_Line : public SketchPlugin_SketchEntity
   }
 
   /// Line length.
-#ifndef LINE_LENGHT_BLOCKED
   static const std::string& LENGTH_ID()
   {
     static const std::string MY_LENGTH("LineLength");
     return MY_LENGTH;
   }
-#endif
+
   /// Returns the kind of a feature
   SKETCHPLUGIN_EXPORT virtual const std::string& getKind();
 
   /// Returns true is sketch element is under the rigid constraint
   SKETCHPLUGIN_EXPORT virtual bool isFixed();
 
+  /// Request for initialization of data model of the feature: adding all attributes
+  virtual void initAttributes();
+
   /// Creates a new part document if needed
   SKETCHPLUGIN_EXPORT virtual void execute();