34 #include <SalomeApp_Module.h>
35 #include <VTKViewer_MarkerDef.h>
36 #include <SALOME_InteractiveObject.hxx>
39 #include <SALOMEconfig.h>
40 #include CORBA_SERVER_HEADER(SMESH_Gen)
43 #include <vtkSmartPointer.h>
47 class vtkCallbackCommand;
54 class SUIT_ViewWindow;
55 class SUIT_ResourceMgr;
56 class SUIT_ViewManager;
59 class SalomeApp_Study;
61 class LightApp_SelectionMgr;
93 static SMESH::SMESH_Gen_var GetSMESHGen();
95 static LightApp_SelectionMgr* selectionMgr();
96 static SUIT_ResourceMgr* resourceMgr();
97 static SUIT_Desktop* desktop();
98 static SalomeApp_Study* activeStudy();
100 bool isActiveStudyLocked();
102 static bool automaticUpdate(
unsigned int requestedSize = 0,
bool* limitExceeded = 0);
103 static bool automaticUpdate( SMESH::SMESH_IDSource_ptr,
int*,
bool*,
int*,
long* );
105 static void Modified(
bool =
true );
108 virtual QString engineIOR()
const;
109 virtual void initialize( CAM_Application* );
110 virtual void windows( QMap<int, int>& )
const;
111 virtual void viewManagers( QStringList& )
const;
114 void SetActiveDialogBox(
QDialog* );
117 void SetState(
int );
119 bool DefineDlgPosition(
QWidget*,
int&,
int& );
120 void switchToOperation(
int );
122 virtual bool OnGUIEvent(
int );
123 virtual bool OnMousePress( QMouseEvent*, SUIT_ViewWindow* );
124 virtual bool OnMouseMove( QMouseEvent*, SUIT_ViewWindow* );
125 virtual bool OnKeyPress( QKeyEvent*, SUIT_ViewWindow* );
129 virtual void BuildPresentation (
const Handle(SALOME_InteractiveObject)&,
130 SUIT_ViewWindow* = 0 );
133 void EmitSignalDeactivateDialog();
134 void EmitSignalStudyFrameChanged();
135 void EmitSignalCloseAllDialogs();
136 void EmitSignalVisibilityChanged();
137 void EmitSignalCloseView();
138 void EmitSignalActivatedViewManager();
140 virtual void contextMenuPopup(
const QString&, QMenu*, QString& );
141 virtual void createPreferences();
142 virtual void preferencesChanged(
const QString&,
const QString& );
144 virtual void message(
const QString& );
146 virtual void update(
const int );
148 static SALOMEDS::Color
getUniqueColor(
const QList<SALOMEDS::Color>& );
149 static SALOMEDS::Color getPredefinedUniqueColor();
151 virtual void storeVisualParameters (
int savePoint);
152 virtual void restoreVisualParameters(
int savePoint);
154 virtual void addActorAsObserver(
SMESH_Actor* theActor );
156 virtual bool renameAllowed(
const QString& )
const;
157 virtual bool renameObject(
const QString&,
const QString& );
163 virtual bool deactivateModule( SUIT_Study* );
164 virtual bool activateModule( SUIT_Study* );
165 virtual void studyClosed( SUIT_Study* );
166 void onViewClosed( SUIT_ViewWindow* );
170 void onViewManagerActivated( SUIT_ViewManager* );
171 void onViewManagerRemoved( SUIT_ViewManager* );
172 void onOperationCommited( SUIT_Operation* );
173 void onOperationAborted( SUIT_Operation* );
174 void onHypothesisEdit(
int result );
175 void onUpdateControlActions();
178 void SignalDeactivateActiveDialog();
179 void SignalStudyFrameChanged();
180 void SignalCloseAllDialogs();
181 void SignalVisibilityChanged();
182 void SignalCloseView();
183 void SignalActivatedViewManager();
186 void createSMESHAction(
const int,
188 const QString& = QString(),
191 const QString& = QString() );
192 void createPopupItem(
const int,
195 const QString& = QString(),
200 virtual bool isSelectionCompatible();
202 virtual bool reusableOperation(
const int id );
204 static void ProcessEvents( vtkObject* theObject,
205 unsigned long theEvent,
211 int addVtkFontPref(
const QString&,
216 void connectView(
const SUIT_ViewWindow* );