Bug IPAL19361 - Qt4 porting. It is impossible showing ID of elements in 3D Viewer because corresponding string is missing in the pop-up menu

This commit is contained in:
ouv 2008-03-28 11:23:48 +00:00
parent edbbbf562b
commit d96b6b8f74
4 changed files with 25 additions and 14 deletions

View File

@ -3055,9 +3055,9 @@ QString SMESHGUI::engineIOR() const
return QString( anIOR.in() );
}
LightApp_Selection* SMESHGUI::createSelection( const QString& client, LightApp_SelectionMgr* mgr ) const
LightApp_Selection* SMESHGUI::createSelection() const
{
return new SMESHGUI_Selection( client, mgr );
return new SMESHGUI_Selection();
}
void SMESHGUI::windows( QMap<int, int>& aMap ) const

View File

@ -93,7 +93,7 @@ public :
virtual bool OnMouseMove( QMouseEvent*, SUIT_ViewWindow* );
virtual bool OnKeyPress( QKeyEvent*, SUIT_ViewWindow* );
virtual LightApp_Selection* createSelection( const QString&, LightApp_SelectionMgr* ) const;
virtual LightApp_Selection* createSelection() const;
virtual void BuildPresentation ( const Handle(SALOME_InteractiveObject)&,
SUIT_ViewWindow* = 0 );

View File

@ -48,9 +48,27 @@
//function : SMESHGUI_Selection
//purpose :
//=======================================================================
SMESHGUI_Selection::SMESHGUI_Selection( const QString& client, LightApp_SelectionMgr* mgr )
: LightApp_Selection( client, mgr )
SMESHGUI_Selection::SMESHGUI_Selection()
: LightApp_Selection()
{
}
//=======================================================================
//function : ~SMESHGUI_Selection
//purpose :
//=======================================================================
SMESHGUI_Selection::~SMESHGUI_Selection()
{
}
//=======================================================================
//function : init
//purpose :
//=======================================================================
void SMESHGUI_Selection::init( const QString& client, LightApp_SelectionMgr* mgr )
{
LightApp_Selection::init( client, mgr );
if( mgr && study() )
{
SalomeApp_Study* aSStudy = dynamic_cast<SalomeApp_Study*>(study());
@ -63,14 +81,6 @@ SMESHGUI_Selection::SMESHGUI_Selection( const QString& client, LightApp_Selectio
}
}
//=======================================================================
//function : ~SMESHGUI_Selection
//purpose :
//=======================================================================
SMESHGUI_Selection::~SMESHGUI_Selection()
{
}
//=======================================================================
//function : processOwner
//purpose :

View File

@ -43,9 +43,10 @@ class SMESH_Actor;
class SMESHGUI_EXPORT SMESHGUI_Selection : public LightApp_Selection
{
public:
SMESHGUI_Selection( const QString&, LightApp_SelectionMgr* );
SMESHGUI_Selection();
virtual ~SMESHGUI_Selection();
virtual void init( const QString&, LightApp_SelectionMgr* );
virtual QVariant parameter( const int, const QString& ) const;
virtual void processOwner( const LightApp_DataOwner* );