mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 10:08:35 +05:00
IPAL21558 In Group creation dialog, selection of sub-shapes in OB, viewer and dialog is not well syncronized
This commit is contained in:
parent
b7e3214ee5
commit
7f1598797a
@ -30,6 +30,8 @@
|
||||
#include <SalomeApp_Application.h>
|
||||
#include <SalomeApp_Study.h>
|
||||
|
||||
#include "LightApp_DataOwner.h"
|
||||
|
||||
#include <SUIT_Desktop.h>
|
||||
#include <SUIT_Session.h>
|
||||
#include <SUIT_ViewWindow.h>
|
||||
@ -99,6 +101,13 @@ QVariant GEOMGUI_Selection::parameter( const int ind, const QString& p ) const
|
||||
return LightApp_Selection::parameter( ind, p );
|
||||
}
|
||||
|
||||
// the method to skip temporary objects from selection (called from LightApp)
|
||||
|
||||
bool GEOMGUI_Selection::processOwner( const LightApp_DataOwner* theOwner)
|
||||
{
|
||||
return !theOwner->entry().contains("_");
|
||||
}
|
||||
|
||||
QString GEOMGUI_Selection::typeName( const int index ) const
|
||||
{
|
||||
if ( isComponent( index ) )
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include CORBA_SERVER_HEADER(GEOM_Gen)
|
||||
|
||||
class LightApp_SelectionMgr;
|
||||
class LightApp_DataOwner;
|
||||
|
||||
class GEOMGUI_EXPORT GEOMGUI_Selection : public LightApp_Selection
|
||||
{
|
||||
@ -44,6 +45,8 @@ public:
|
||||
virtual QVariant parameter( const int, const QString& ) const;
|
||||
virtual QVariant parameter( const QString& ) const;
|
||||
|
||||
virtual bool processOwner( const LightApp_DataOwner* );
|
||||
|
||||
private:
|
||||
bool isVisible( const int ) const;
|
||||
bool isAutoColor( const int ) const;
|
||||
|
@ -1530,6 +1530,8 @@ void GeometryGUI::contextMenuPopup( const QString& client, QMenu* menu, QString&
|
||||
GEOM::GEOM_Object_var aGeomObj = GEOM::GEOM_Object::_narrow(anObj);
|
||||
if (CORBA::is_nil(aGeomObj) || aGeomObj->GetType() != GEOM_IMPORT)
|
||||
isImported = false;
|
||||
} else {
|
||||
isImported = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user