3 // Copyright (C) 2005 CEA/DEN, EDF R&D
7 // File : SalomeApp_Operation.h
8 // Author : Sergey LITONIN
12 #ifndef SalomeApp_Operation_H
13 #define SalomeApp_Operation_H
15 #include <SUIT_Operation.h>
17 class SalomeApp_Module;
18 class SalomeApp_Application;
19 class SalomeApp_Operation;
20 class SalomeApp_SelectionMgr;
21 class SalomeApp_Dialog;
25 Class : SalomeApp_Operation
26 Description : Base class for all operations
30 * \brief Base class for all salome operations
32 * Base class for all salome operations (see SUIT_Operation for more description)
34 class SalomeApp_Operation : public SUIT_Operation
39 SalomeApp_Operation();
40 virtual ~SalomeApp_Operation();
42 virtual void setModule( SalomeApp_Module* );
43 SalomeApp_Module* module() const;
45 bool isAutoResumed() const;
47 virtual SalomeApp_Dialog* dlg() const;
51 // Methods redefined from base class
53 virtual void startOperation();
54 virtual void suspendOperation();
55 virtual void resumeOperation();
56 virtual void abortOperation();
57 virtual void commitOperation();
59 // Additional virtual methods may be redefined by derived classes
61 virtual void setDialogActive( const bool );
62 virtual void activateSelection();
63 virtual void selectionDone();
68 SUIT_Desktop* desktop() const;
69 SUIT_Operation* activeOperation() const;
70 SalomeApp_SelectionMgr* selectionMgr() const;
71 void update( const int );
72 void setAutoResumed( const bool );
76 virtual void onSelectionDone();
80 SalomeApp_Module* myModule;