Salome HOME
Update Help for VISU module.
[modules/visu.git] / src / VISUGUI / VisuGUI_StreamLinesDlg.cxx
index 9f554b33098244fffa231514c6d565486206eae3..e5bf1e2c78ca28738ef4bfe8847ca39a9b3fd5c2 100644 (file)
@@ -20,7 +20,7 @@
 #include "VISU_Actor.h"
 
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SVTK_ViewWindow.h"
 
@@ -31,7 +31,6 @@
 #include "SALOME_ListIO.hxx"
 
 #include <SALOMEDSClient_SObject.hxx>
-#include <SALOMEDS_SObject.hxx>
 
 #include <limits.h>
 #include <qlayout.h>
@@ -86,7 +85,7 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule)
   // Find All prs obj
   //SUIT_Study* aActiveStudy = VISU::(myVisuGUI);
   _PTR(Study) aActiveStudy = VISU::GetCStudy(VISU::GetAppStudy(myVisuGUI));
-  SalomeApp_SelectionMgr* aSel = VISU::GetSelectionMgr(myVisuGUI);
+  LightApp_SelectionMgr* aSel = VISU::GetSelectionMgr(myVisuGUI);
   SALOME_ListIO selected;
   aSel->selectedObjects(selected);
   if (selected.Extent() > 0) {
@@ -117,7 +116,7 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule)
              _PTR(GenericAttribute) anAttr;
              if (aChildSObj->FindAttribute(anAttr, "AttributeName")) {
                _PTR(AttributeName) aName (anAttr);
-               myPrsLst += QString(aName->Value());
+               myPrsLst += QString(aName->Value().c_str());
                myPrsList.append(aPrsObj);
                continue;
              }
@@ -142,15 +141,15 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (SalomeApp_Module* theModule)
                VISU::Prs3d_var aPrsObj = VISU::Prs3d::_narrow(aChildObject);
                switch (aType) {
                case VISU::TFAMILY:
-                 myFamilisLst += QString(aName->Value());
+                 myFamilisLst += QString(aName->Value().c_str());
                  myFamilyList.append(aPrsObj);
                  break;
                case VISU::TGROUP:
-                 myGroupsLst += QString(aName->Value());
+                 myGroupsLst += QString(aName->Value().c_str());
                  myGroupList.append(aPrsObj);
                  break;
                case VISU::TENTITY:
-                 myEntitiesLst += QString(aName->Value());
+                 myEntitiesLst += QString(aName->Value().c_str());
                  myEntityList.append(aPrsObj);
                  break;
                }