2005-08-23 14:54:21 +06:00
|
|
|
// SALOME SMESHGUI
|
|
|
|
//
|
|
|
|
// Copyright (C) 2005 CEA/DEN, EDF R&D
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// File : SMESHGUI_Operation.h
|
|
|
|
// Author : Sergey LITONIN
|
|
|
|
// Module : SALOME
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SMESHGUI_Operation_H
|
|
|
|
#define SMESHGUI_Operation_H
|
|
|
|
|
2005-11-03 13:38:17 +05:00
|
|
|
#include <LightApp_Operation.h>
|
2005-08-23 14:54:21 +06:00
|
|
|
#include <SALOMEDSClient.hxx>
|
|
|
|
|
|
|
|
class SMESHGUI;
|
|
|
|
|
|
|
|
/*
|
|
|
|
Class : SMESHGUI_Operation
|
|
|
|
Description : Base class for all SMESH operations
|
|
|
|
*/
|
|
|
|
|
2005-11-03 13:38:17 +05:00
|
|
|
class SMESHGUI_Operation : public LightApp_Operation
|
2005-08-23 14:54:21 +06:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
SMESHGUI_Operation();
|
|
|
|
virtual ~SMESHGUI_Operation();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
//! sets the dialog widgets to state just after operation start
|
|
|
|
virtual void initDialog();
|
|
|
|
|
|
|
|
virtual void startOperation();
|
|
|
|
virtual bool isReadyToStart() const;
|
|
|
|
|
|
|
|
//! Set according dialog active or inactive
|
|
|
|
virtual void setDialogActive( const bool );
|
|
|
|
|
|
|
|
SMESHGUI* getSMESHGUI() const;
|
|
|
|
bool isStudyLocked( const bool = true ) const;
|
|
|
|
|
|
|
|
_PTR(Study) studyDS() const;
|
|
|
|
|
|
|
|
virtual bool isValid( SUIT_Operation* ) const;
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
virtual void onOk();
|
|
|
|
virtual bool onApply();
|
|
|
|
virtual void onCancel();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|