X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_OperationFeatureCreate.h;h=fcd92be95f000acdbf4cb17ef4cd5c9fd1d5609d;hb=87c2d038fe6feaae3951850cbfb43313015aa1f7;hp=f254b713a0f7c21ee5ab0f5bfc6a0b2e1c680235;hpb=34debd261300370b62fe9097dd90931c6344c9c1;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_OperationFeatureCreate.h b/src/PartSet/PartSet_OperationFeatureCreate.h index f254b713a..fcd92be95 100644 --- a/src/PartSet/PartSet_OperationFeatureCreate.h +++ b/src/PartSet/PartSet_OperationFeatureCreate.h @@ -60,8 +60,13 @@ Q_OBJECT /// \param theKey a key value virtual void keyReleased(const int theKey); - /// alias for activateNextWidget(myActiveWidget); - virtual void activateNextToCurrentWidget(); + /// Initializes the operation with previously created feature. It is used in sequental operations + void initFeature(FeaturePtr theFeature) { myInitFeature = theFeature; } + + public slots: + /// Slots which listen the mode widget activation + /// \param theWidget the model widget + virtual void onWidgetActivated(ModuleBase_ModelWidget* theWidget); protected: /// \brief Virtual method called when operation is started @@ -90,6 +95,10 @@ Q_OBJECT /// Verifies whether this operator can be commited. /// \return Returns TRUE if current operation can be committed, e.g. all parameters are filled virtual bool canBeCommitted() const; + +protected: + /// Feature of previous operation (for sequintal operations) + FeaturePtr myInitFeature; }; #endif