X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_TwoImagesOp.h;h=274224a19c3d721fed166549fb86451be2a64558;hb=7810759dad7d7f4552ad1008af73112509256813;hp=d5b3306d87a8390b2eadf9f90dc8778b988616a2;hpb=b475ac9f5ce7ab52045e70fec0c8e6f8ffb51432;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_TwoImagesOp.h b/src/HYDROGUI/HYDROGUI_TwoImagesOp.h index d5b3306d..274224a1 100644 --- a/src/HYDROGUI/HYDROGUI_TwoImagesOp.h +++ b/src/HYDROGUI/HYDROGUI_TwoImagesOp.h @@ -25,24 +25,38 @@ #include "HYDROGUI_Operation.h" +#include + class HYDROGUI_TwoImagesOp : public HYDROGUI_Operation { Q_OBJECT public: - enum OperationType { Fuse, Cut }; + enum OperationType { Fuse, Cut, Split }; public: - HYDROGUI_TwoImagesOp( HYDROGUI_Module* theModule, const int theType ); + HYDROGUI_TwoImagesOp( HYDROGUI_Module* theModule, const int theType, const bool theIsEdit ); virtual ~HYDROGUI_TwoImagesOp(); protected: + virtual void startOperation(); + virtual HYDROGUI_InputPanel* createInputPanel() const; - virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg ); + virtual bool processApply( int& theUpdateFlags, QString& theErrorMsg, + QStringList& theBrowseObjectsEntries ); + +protected slots: + /** Show warning if the name has already been selected + * in other selector of the same parent widget. + * @param theName the selected object name + */ + void onAlreadySelected( const QString& theName ); private: - int myType; + int myType; + bool myIsEdit; + Handle(HYDROData_Image) myEditedObject; }; #endif