Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef SMESHGUI_OPERATION_H
00028 #define SMESHGUI_OPERATION_H
00029
00030
00031 #include "SMESH_SMESHGUI.hxx"
00032
00033
00034 #include <LightApp_Operation.h>
00035
00036
00037 #include <SALOMEDSClient.hxx>
00038
00039 class SMESHGUI;
00040
00041
00042
00043
00044
00045
00046 class SMESHGUI_EXPORT SMESHGUI_Operation : public LightApp_Operation
00047 {
00048 Q_OBJECT
00049
00050 public:
00051 SMESHGUI_Operation();
00052 virtual ~SMESHGUI_Operation();
00053
00054 protected:
00056 virtual void initDialog();
00057
00058 virtual void startOperation();
00059 virtual bool isReadyToStart() const;
00060
00061 virtual void setIsApplyAndClose( const bool theFlag );
00062 virtual bool isApplyAndClose() const;
00063
00065 virtual void setDialogActive( const bool );
00066
00067 SMESHGUI* getSMESHGUI() const;
00068 bool isStudyLocked( const bool = true ) const;
00069
00070 _PTR(Study) studyDS() const;
00071
00072 virtual bool isValid( SUIT_Operation* ) const;
00073
00074 QString myHelpFileName;
00075 bool myIsApplyAndClose;
00076
00077 protected slots:
00078 virtual void onOk();
00079 virtual bool onApply();
00080 virtual void onCancel();
00081 void onHelp();
00082 };
00083
00084 #endif // SMESHGUI_OPERATION_H