X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_TwoImagesOp.h;h=274224a19c3d721fed166549fb86451be2a64558;hb=7810759dad7d7f4552ad1008af73112509256813;hp=8940d854e12ecdf33b4a102600746acd237a0047;hpb=3769dbcedaa689e15ad79a619acd6f8bc21f47c6;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_TwoImagesOp.h b/src/HYDROGUI/HYDROGUI_TwoImagesOp.h index 8940d854..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 ); + 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