X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FPartSet%2FPartSet_OperationSketchBase.h;h=c7d639348f858daae620f6403558e1f81e3f17a6;hb=43780ffac779af7f061513b0f6243f2edb73602c;hp=9b43039eaeff0754ec8f71daee153722f56a92f8;hpb=cc532e129fefef094f3d3a082aaacfbf494d0c95;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationSketchBase.h b/src/PartSet/PartSet_OperationSketchBase.h index 9b43039ea..c7d639348 100644 --- a/src/PartSet/PartSet_OperationSketchBase.h +++ b/src/PartSet/PartSet_OperationSketchBase.h @@ -60,27 +60,9 @@ Q_OBJECT /// \return the list of subfeatures virtual std::list subFeatures() const; - /// Returns the operation local selection mode - /// \param theFeature the feature object to get the selection mode - /// \return the selection mode - virtual std::list getSelectionModes(ObjectPtr theFeature) const; - - /// Initializes the operation with previously created feature. It is used in sequental operations - virtual void initFeature(FeaturePtr theFeature) - { - } - - /// Initialisation of operation with preliminary selection - /// \param theSelected the list of selected presentations - /// \param theHighlighted the list of highlighted presentations - virtual void initSelection(const std::list& theSelected, - const std::list& theHighlighted) - { - } - /// Returns the operation sketch feature /// \returns the sketch instance - virtual FeaturePtr sketch() const = 0; + virtual CompositeFeaturePtr sketch() const = 0; /// Processes the mouse pressed in the point /// \param theEvent the mouse event @@ -152,9 +134,6 @@ signals: /// \param theFeatures a list of features to be disabled void setSelection(const QList& theFeatures); - /// signal to close the operation local context if it is opened - void closeLocalContext(); - protected: /// Creates an operation new feature /// In addition to the default realization it appends the created line feature to @@ -162,6 +141,9 @@ signals: /// \param theFlushMessage the flag whether the create message should be flushed /// \returns the created feature virtual FeaturePtr createFeature(const bool theFlushMessage = true); + + /// Activates widgets by preselection if it is accepted + virtual void activateByPreselection(); }; #endif