- QAD_Desktop* GetDesktop() ;
- QAD_Study* GetActiveStudy() ;
- bool ActiveStudyLocked();
-
- QDialog* GetActiveDialogBox() ;
- void SetActiveDialogBox(QDialog* aDlg) ;
-
- void ResetState() ;
- void SetState(int aState) ;
- bool DefineDlgPosition(QWidget* aDlg, int& x, int& y) ;
-
- virtual bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
- virtual bool OnMousePress (QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
- virtual bool OnMouseMove (QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
- virtual bool OnKeyPress (QKeyEvent* pe, QAD_Desktop* parent, QAD_StudyFrame* studyFrame);
- virtual bool ActiveStudyChanged( QAD_Desktop* parent );
- virtual bool SetSettings ( QAD_Desktop* parent );
- virtual void DefinePopup ( QString & theContext, QString & theParent, QString & theObject );
- virtual bool CustomPopup ( QAD_Desktop* parent, QPopupMenu* popup, const QString & theContext,
- const QString & theParent, const QString & theObject );
- virtual void BuildPresentation ( const Handle(SALOME_InteractiveObject)& theIO,
- QAD_ViewFrame* = 0 );
- virtual void SupportedViewType (int* buffer, int bufferSize);
- virtual void Deactivate ();
-
- /* Non modal dialog boxes magement */
- void EmitSignalDeactivateDialog() ;
- void EmitSignalStudyFrameChanged() ;
- void EmitSignalCloseAllDialogs() ;
+ static SMESH::SMESH_Gen_var GetSMESHGen();
+ static SMESHGUI* GetSMESHGUI();
+ static LightApp_SelectionMgr* selectionMgr();
+ static SUIT_ResourceMgr* resourceMgr();
+ static SUIT_Desktop* desktop();
+ static SalomeApp_Study* activeStudy();
+
+ bool isActiveStudyLocked();
+
+ static bool automaticUpdate(unsigned int requestedSize = 0, bool* limitExceeded = 0);
+ static bool automaticUpdate( SMESH::SMESH_IDSource_ptr, int*, bool*, int*, long* );
+
+ static void Modified( bool = true );
+
+ virtual LightApp_Displayer* displayer();
+ virtual QString engineIOR() const;
+ virtual void initialize( CAM_Application* );
+ virtual void windows( QMap<int, int>& ) const;
+ virtual void viewManagers( QStringList& ) const;
+
+ QDialog* GetActiveDialogBox();
+ void SetActiveDialogBox( QDialog* );
+
+ void ResetState();
+ void SetState( int );
+ bool DefineDlgPosition( QWidget*, int&, int& );
+ void switchToOperation( int );
+
+ virtual bool OnGUIEvent( int );
+ virtual bool OnMousePress( QMouseEvent*, SUIT_ViewWindow* );
+ virtual bool OnMouseMove( QMouseEvent*, SUIT_ViewWindow* );
+ virtual bool OnKeyPress( QKeyEvent*, SUIT_ViewWindow* );
+
+ virtual LightApp_Selection* createSelection() const;
+
+ virtual void BuildPresentation ( const Handle(SALOME_InteractiveObject)&,
+ SUIT_ViewWindow* = 0 );
+
+ /* Non modal dialog boxes management */
+ void EmitSignalDeactivateDialog();
+ void EmitSignalStudyFrameChanged();
+ void EmitSignalCloseAllDialogs();
+ void EmitSignalVisibilityChanged();
+
+ virtual void contextMenuPopup( const QString&, QMenu*, QString& );
+ virtual void createPreferences();
+ virtual void preferencesChanged( const QString&, const QString& );
+
+ virtual void message( const QString& );
+
+ virtual void update( const int );
+
+ static SALOMEDS::Color getUniqueColor( const QList<SALOMEDS::Color>& );
+ static SALOMEDS::Color getPredefinedUniqueColor();
+
+ virtual void storeVisualParameters (int savePoint);
+ virtual void restoreVisualParameters(int savePoint);
+
+ virtual void addActorAsObserver( SMESH_Actor* theActor );
+
+ virtual bool renameAllowed( const QString& ) const;
+ virtual bool renameObject( const QString&, const QString& );
+
+
+ SMESHGUI_ClippingPlaneInfoMap& getClippingPlaneInfoMap() { return myClippingPlaneInfoMap; }
+
+public slots:
+ virtual bool deactivateModule( SUIT_Study* );
+ virtual bool activateModule( SUIT_Study* );
+ virtual void studyClosed( SUIT_Study* );
+ void onViewClosed( SUIT_ViewWindow* );
+
+private slots:
+ void OnGUIEvent();
+ void onViewManagerActivated( SUIT_ViewManager* );
+ void onViewManagerRemoved( SUIT_ViewManager* );
+ void onOperationCommited( SUIT_Operation* );
+ void onOperationAborted( SUIT_Operation* );
+ void onHypothesisEdit( int result );