mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-07 03:34:16 +05:00
update() and updateControls() methods added
This commit is contained in:
parent
949d8df2c5
commit
a59476897e
@ -100,6 +100,7 @@
|
|||||||
#include "SalomeApp_Preferences.h"
|
#include "SalomeApp_Preferences.h"
|
||||||
#include "SalomeApp_VTKSelector.h"
|
#include "SalomeApp_VTKSelector.h"
|
||||||
#include "SalomeApp_Operation.h"
|
#include "SalomeApp_Operation.h"
|
||||||
|
#include "SalomeApp_UpdateFlags.h"
|
||||||
|
|
||||||
#include "SalomeApp_ImportOperation.h"
|
#include "SalomeApp_ImportOperation.h"
|
||||||
|
|
||||||
@ -3277,9 +3278,26 @@ SalomeApp_Operation* SMESHGUI::getOperation( const int theId )
|
|||||||
return anOp;
|
return anOp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
// function : update
|
||||||
|
// purpose : Update something
|
||||||
|
//=======================================================================
|
||||||
|
void SMESHGUI::update( const int flags )
|
||||||
|
{
|
||||||
|
if ( flags & UF_Viewer | flag & UF_Forced )
|
||||||
|
SMESH::UpdateView();
|
||||||
|
else
|
||||||
|
SalomeApp_Module::update( flags );
|
||||||
|
}
|
||||||
|
|
||||||
|
//=======================================================================
|
||||||
|
// function : updateControls
|
||||||
|
// purpose : Update state of controls
|
||||||
|
//=======================================================================
|
||||||
|
void SMESHGUI::updateControls()
|
||||||
|
{
|
||||||
|
// to do
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,13 +60,13 @@ class SMESHGUI : public SalomeApp_Module
|
|||||||
|
|
||||||
public :
|
public :
|
||||||
SMESHGUI();
|
SMESHGUI();
|
||||||
~SMESHGUI();
|
virtual ~SMESHGUI();
|
||||||
|
|
||||||
static SMESH::SMESH_Gen_var GetSMESHGen();
|
static SMESH::SMESH_Gen_var GetSMESHGen();
|
||||||
static SMESHGUI* GetSMESHGUI();
|
static SMESHGUI* GetSMESHGUI();
|
||||||
static SalomeApp_SelectionMgr* selectionMgr();
|
static SalomeApp_SelectionMgr* selectionMgr();
|
||||||
static SUIT_ResourceMgr* resourceMgr();
|
static SUIT_ResourceMgr* resourceMgr();
|
||||||
static SUIT_Desktop* desktop() ;
|
static SUIT_Desktop* desktop();
|
||||||
static SalomeApp_Study* activeStudy();
|
static SalomeApp_Study* activeStudy();
|
||||||
bool isActiveStudyLocked();
|
bool isActiveStudyLocked();
|
||||||
|
|
||||||
@ -77,54 +77,66 @@ public :
|
|||||||
virtual void windows( QMap<int, int>& ) const;
|
virtual void windows( QMap<int, int>& ) const;
|
||||||
virtual void viewManagers( QStringList& ) const;
|
virtual void viewManagers( QStringList& ) const;
|
||||||
|
|
||||||
QDialog* GetActiveDialogBox() ;
|
QDialog* GetActiveDialogBox();
|
||||||
void SetActiveDialogBox(QDialog* aDlg) ;
|
void SetActiveDialogBox(QDialog* aDlg);
|
||||||
|
|
||||||
void ResetState() ;
|
void ResetState();
|
||||||
void SetState(int aState) ;
|
void SetState( int aState );
|
||||||
bool DefineDlgPosition(QWidget* aDlg, int& x, int& y) ;
|
bool DefineDlgPosition( QWidget* aDlg, int& x, int& y);
|
||||||
|
|
||||||
virtual bool OnGUIEvent ( int id );
|
virtual bool OnGUIEvent( int id );
|
||||||
virtual bool OnMousePress ( QMouseEvent*, SUIT_ViewWindow* );
|
virtual bool OnMousePress( QMouseEvent*, SUIT_ViewWindow* );
|
||||||
virtual bool OnMouseMove ( QMouseEvent*, SUIT_ViewWindow* );
|
virtual bool OnMouseMove( QMouseEvent*, SUIT_ViewWindow* );
|
||||||
virtual bool OnKeyPress ( QKeyEvent*, SUIT_ViewWindow* );
|
virtual bool OnKeyPress( QKeyEvent*, SUIT_ViewWindow* );
|
||||||
|
|
||||||
virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& );
|
virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& );
|
||||||
|
|
||||||
virtual bool SetSettings ( SUIT_Desktop* );
|
virtual bool SetSettings( SUIT_Desktop* );
|
||||||
virtual void BuildPresentation ( const Handle(SALOME_InteractiveObject)&,
|
virtual void BuildPresentation( const Handle(SALOME_InteractiveObject)&,
|
||||||
SUIT_ViewWindow* = 0 );
|
SUIT_ViewWindow* = 0 );
|
||||||
|
|
||||||
/* Non modal dialog boxes management */
|
/* Non modal dialog boxes management */
|
||||||
void EmitSignalDeactivateDialog() ;
|
void EmitSignalDeactivateDialog();
|
||||||
void EmitSignalStudyFrameChanged() ;
|
void EmitSignalStudyFrameChanged();
|
||||||
void EmitSignalCloseAllDialogs() ;
|
void EmitSignalCloseAllDialogs();
|
||||||
|
|
||||||
virtual void createPreferences();
|
virtual void createPreferences();
|
||||||
virtual void preferencesChanged( const QString&, const QString& );
|
virtual void preferencesChanged( const QString&, const QString& );
|
||||||
|
|
||||||
|
virtual void update( const int );
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
virtual bool deactivateModule( SUIT_Study* );
|
virtual bool deactivateModule( SUIT_Study* );
|
||||||
virtual bool activateModule( SUIT_Study* );
|
virtual bool activateModule( SUIT_Study* );
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
void OnGUIEvent();
|
void OnGUIEvent();
|
||||||
void onViewManagerAdded( SUIT_ViewManager* );
|
void onViewManagerAdded( SUIT_ViewManager* );
|
||||||
void onOperationCommited( SUIT_Operation* );
|
void onOperationCommited( SUIT_Operation* );
|
||||||
void onOperationAborted( SUIT_Operation* );
|
void onOperationAborted( SUIT_Operation* );
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void SignalDeactivateActiveDialog() ;
|
void SignalDeactivateActiveDialog();
|
||||||
void SignalStudyFrameChanged() ;
|
void SignalStudyFrameChanged();
|
||||||
void SignalCloseAllDialogs() ;
|
void SignalCloseAllDialogs();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void createSMESHAction( const int, const QString&, const QString& = QString(""),
|
|
||||||
const int = 0, const bool = false );
|
void createSMESHAction( const int,
|
||||||
void createPopupItem( const int, const QString&, const QString&,
|
const QString&,
|
||||||
const QString& = QString::null, const int = -1 );
|
const QString& = "",
|
||||||
|
const int = 0,
|
||||||
|
const bool = false );
|
||||||
|
void createPopupItem( const int,
|
||||||
|
const QString&,
|
||||||
|
const QString&,
|
||||||
|
const QString& = QString::null,
|
||||||
|
const int = -1 );
|
||||||
|
|
||||||
SalomeApp_Operation* getOperation( const int );
|
SalomeApp_Operation* getOperation( const int );
|
||||||
|
virtual void updateControls();
|
||||||
|
|
||||||
private :
|
private :
|
||||||
static SMESH::SMESH_Gen_var myComponentSMESH;
|
static SMESH::SMESH_Gen_var myComponentSMESH;
|
||||||
|
Loading…
Reference in New Issue
Block a user