Salome HOME
Copyright update 2022
[modules/geom.git] / src / CurveCreator / CurveCreator_Widget.h
index 94ba453b41e32ee2bdf8762e9f206623b1aa1c7d..849a88ab1830176d23ae4796fae18c5ae1a20405 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2019  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -56,7 +56,8 @@ public:
     NoFlags              = 0x00000000,
     DisableDetectionMode = 0x00000001,
     DisableNewSection    = 0x00000002,
-    DisableClosedSection = 0x00000004
+    DisableClosedSection = 0x00000004,
+    DisableSetColor      = 0x00000008
   };
 
   enum ActionMode {
@@ -119,6 +120,7 @@ public slots:
   void     onJoin();
   void     onBringTogether();
   void     onRemove();
+  void     onSetColor();
   void     onClearAll();
   void     onJoinAll();
   void     onSetSpline();
@@ -146,23 +148,24 @@ protected:
 
 protected:
   enum ActionId{ NONE_ID,
-                 UNDO_ID, 
-                 REDO_ID, 
-                 NEW_SECTION_ID, 
-                 ADDITION_MODE_ID, 
-                 REMOVE_ID, 
-                 REMOVE_ALL_ID, 
+                 UNDO_ID,
+                 REDO_ID,
+                 NEW_SECTION_ID,
+                 ADDITION_MODE_ID,
+                 REMOVE_ID,
+                 REMOVE_ALL_ID,
                  JOIN_ID,
-                 JOIN_ALL_ID, 
-                 CLOSE_SECTIONS_ID, 
+                 JOIN_ALL_ID,
+                 CLOSE_SECTIONS_ID,
                  UNCLOSE_SECTIONS_ID,
-                 SET_SECTIONS_POLYLINE_ID, 
-                 SET_SECTIONS_SPLINE_ID, 
-                 CLEAR_ALL_ID, 
-                 SEPARATOR_ID, 
-                 MODIFICATION_MODE_ID, 
+                 SET_SECTIONS_POLYLINE_ID,
+                 SET_SECTIONS_SPLINE_ID,
+                 CLEAR_ALL_ID,
+                 SEPARATOR_ID,
+                 MODIFICATION_MODE_ID,
                  DETECTION_MODE_ID,
-                 BRING_TOGETHER_ID
+                 BRING_TOGETHER_ID,
+                 SETCOLOR_ID
   };
 
 public:
@@ -193,7 +196,7 @@ private:
 
   void startCurveModification( CurveCreator_ICurve::SectionToPointList& thePoints,
                                const bool theFillPoints = true );
-  void finishCurveModification( const CurveCreator_ICurve::SectionToPointList& thePoints = 
+  void finishCurveModification( const CurveCreator_ICurve::SectionToPointList& thePoints =
                                       CurveCreator_ICurve::SectionToPointList() );
 
   // curve algorithm