X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROGUI%2FHYDROGUI_Operation.h;h=11e38511912cecd5891e3c36fc093089bd6e61b2;hb=6ba63abdcb5832a1773cb33cf67d6b34aee4139d;hp=04613a05f559ab4c3f486475e56e025752d6ede1;hpb=2cf9e838e652ae811d9b3931914771ad1836c6b8;p=modules%2Fhydro.git diff --git a/src/HYDROGUI/HYDROGUI_Operation.h b/src/HYDROGUI/HYDROGUI_Operation.h index 04613a05..11e38511 100644 --- a/src/HYDROGUI/HYDROGUI_Operation.h +++ b/src/HYDROGUI/HYDROGUI_Operation.h @@ -20,6 +20,8 @@ #define HYDROGUI_OPERATION_H #include +#include +#include class HYDROGUI_Module; class HYDROGUI_InputPanel; @@ -28,8 +30,8 @@ class HYDROGUI_Shape; class SUIT_SelectionMgr; class OCCViewer_ViewManager; -class Handle_HYDROData_Document; -class Handle_HYDROData_Object; +class HYDROData_Document; +class HYDROData_Object; class HYDROGUI_Operation : public LightApp_Operation { @@ -75,17 +77,19 @@ protected: void abortDocOperation(); void commitDocOperation(); - Handle_HYDROData_Document doc() const; + Handle(HYDROData_Document) doc() const; virtual bool isToAbortOnApply() const { return true; } void printErrorMessage( const QString& theErrorMsg ); void setPrintErrorMessage( const bool theIsPrint ); - void browseObjects( const QStringList& theBrowseObjectsEntries ); + void browseObjects( const QStringList& theBrowseObjectsEntries, + const bool theIsApplyAndClose = true ); protected slots: + virtual void onApplyAndClose(); virtual void onApply(); virtual void onCancel(); virtual void onHelp(); @@ -101,6 +105,31 @@ protected: OCCViewer_ViewManager* getPreviewManager(); void setPreviewManager( OCCViewer_ViewManager* theManager ); + /** + * Set specific cursor chosen in preferences for edition operations. + */ + virtual void setCursor(); + /** + * Restore the default cursor. + */ + virtual void restoreCursor(); + + /** + * Set flag indicating, if 'Apply and Close' button is clicked on input panel. + * @param theFlag a flag value to be set + */ + virtual void setIsApplyAndClose( const bool theFlag ); + /** + * Get flag indicating, if 'Apply and Close' button is clicked on input panel. + * \return a flag value + */ + virtual bool isApplyAndClose() const; + + /** + * Apply changes done by this operation. + */ + virtual void apply(); + private: HYDROGUI_Module* myModule; @@ -110,6 +139,10 @@ private: bool myIsPrintErrorMessage; bool myIsTransactionOpened; int myPreviewZLayer; + + QCursor myCursor; + + bool myIsApplyAndClose; }; #endif