update() and updateControls() methods added

This commit is contained in:
sln 2005-07-01 08:25:10 +00:00
parent 949d8df2c5
commit a59476897e
2 changed files with 77 additions and 47 deletions

View File

@ -100,6 +100,7 @@
#include "SalomeApp_Preferences.h"
#include "SalomeApp_VTKSelector.h"
#include "SalomeApp_Operation.h"
#include "SalomeApp_UpdateFlags.h"
#include "SalomeApp_ImportOperation.h"
@ -3277,9 +3278,26 @@ SalomeApp_Operation* SMESHGUI::getOperation( const int theId )
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
}

View File

@ -60,7 +60,7 @@ class SMESHGUI : public SalomeApp_Module
public :
SMESHGUI();
~SMESHGUI();
virtual ~SMESHGUI();
static SMESH::SMESH_Gen_var GetSMESHGen();
static SMESHGUI* GetSMESHGUI();
@ -103,11 +103,15 @@ public :
virtual void createPreferences();
virtual void preferencesChanged( const QString&, const QString& );
virtual void update( const int );
public slots:
virtual bool deactivateModule( SUIT_Study* );
virtual bool activateModule( SUIT_Study* );
private slots:
void OnGUIEvent();
void onViewManagerAdded( SUIT_ViewManager* );
void onOperationCommited( SUIT_Operation* );
@ -119,12 +123,20 @@ signals:
void SignalCloseAllDialogs();
protected:
void createSMESHAction( const int, const QString&, const QString& = QString(""),
const int = 0, const bool = false );
void createPopupItem( const int, const QString&, const QString&,
const QString& = QString::null, const int = -1 );
void createSMESHAction( const int,
const QString&,
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 );
virtual void updateControls();
private :
static SMESH::SMESH_Gen_var myComponentSMESH;