From: nds Date: Thu, 24 Dec 2015 12:28:33 +0000 (+0300) Subject: Issue #1111 Sketch invisible X-Git-Tag: V_2.1.0~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d9d10f97e7cf04e4d5b4ef0b3ae9a215c36c9006;p=modules%2Fshaper.git Issue #1111 Sketch invisible It is not enough to create selector on initialize(). The problem still exists in the second study because it is not called there. So, it is decided to perform this in connectToStudy() of module. An alternative is to do this in NewGEOM_DataModel before Mgr->load(). The problem is in this place because it causes redisplay signals flush. The viewer should be initialized before this case. --- diff --git a/src/NewGeom/NewGeom_Module.h b/src/NewGeom/NewGeom_Module.h index 3a2875dde..4920b1bee 100644 --- a/src/NewGeom/NewGeom_Module.h +++ b/src/NewGeom/NewGeom_Module.h @@ -18,6 +18,7 @@ class XGUI_Workshop; class NewGeom_OCCSelector; class OCCViewer_Viewer; +class CAM_Study; /** * \ingroup Salome @@ -141,6 +142,11 @@ Q_OBJECT void inspectSalomeModules(); public slots: + /// \brief The method is redefined to connect to the study viewer before the data + /// model is filled by opened file. This file open will flush redisplay signals for, + /// objects which should be visualized + virtual void connectToStudy(CAM_Study* theStudy); + /// \brief The method is called on the module activation /// \param theStudy current study virtual bool activateModule(SUIT_Study* theStudy);