X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_TwoImagesOp.h;h=274224a19c3d721fed166549fb86451be2a64558;hb=7810759dad7d7f4552ad1008af73112509256813;hp=2fc1e0cc74a478bed870cf593b2d7132d434044a;hpb=ea51c1575cfdc7e3ad0b8cc1db55d9d83626b12d;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_TwoImagesOp.h b/src/HYDROGUI/HYDROGUI_TwoImagesOp.h index 2fc1e0cc..274224a1 100644 --- a/src/HYDROGUI/HYDROGUI_TwoImagesOp.h +++ b/src/HYDROGUI/HYDROGUI_TwoImagesOp.h @@ -25,25 +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, + QStringList& theBrowseObjectsEntries ); + protected slots: - virtual void onApply(); + /** 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