]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Some classes from library SalomeApp moved to library LightApp. Replace its. BR_LightConf_dev
authornds <nds@opencascade.com>
Wed, 28 Sep 2005 08:03:13 +0000 (08:03 +0000)
committernds <nds@opencascade.com>
Wed, 28 Sep 2005 08:03:13 +0000 (08:03 +0000)
14 files changed:
src/VISUGUI/VisuGUI.cxx
src/VISUGUI/VisuGUI.h
src/VISUGUI/VisuGUI_ClippingDlg.cxx
src/VISUGUI/VisuGUI_ClippingDlg.h
src/VISUGUI/VisuGUI_NonIsometricDlg.cxx
src/VISUGUI/VisuGUI_PopupTools.cxx
src/VISUGUI/VisuGUI_PopupTools.h
src/VISUGUI/VisuGUI_Selection.cxx
src/VISUGUI/VisuGUI_Selection.h
src/VISUGUI/VisuGUI_StreamLinesDlg.cxx
src/VISUGUI/VisuGUI_Tools.cxx
src/VISUGUI/VisuGUI_Tools.h
src/VISU_I/VISU_Gen_i.cc
src/VISU_I/VISU_ViewManager_i.cc

index fe36604aec67195832af678f88d9e715fe60ae9e..4025f6cf9d6135d47a7a3c7e93ef1b4dfa56e654 100644 (file)
@@ -71,9 +71,9 @@
 #include "SalomeApp_Application.h"
 #include "SalomeApp_DataModel.h"
 #include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
-#include "SalomeApp_Selection.h"
-#include "SalomeApp_Preferences.h"
+#include "LightApp_SelectionMgr.h"
+#include "LightApp_Selection.h"
+#include "LightApp_Preferences.h"
 
 #include "VISUConfig.hh"
 #include "VISU_Gen_i.hh"
@@ -292,7 +292,7 @@ OnExportTableToFile()
 
   _PTR(Study) aCStudy = GetCStudy(GetAppStudy(this));
 
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
 
@@ -396,7 +396,7 @@ OnImportMedField()
     return;
   SALOMEDS::Study_var aStudy = GetDSStudy(aCStudy);
 
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
 
@@ -516,7 +516,7 @@ OnCreateManyMesh()
   GetViewWindow( this, /*create=*/true );
 
   // Get selected SObject
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
   SALOME_ListIteratorOfListIO anIter (aListIO);
@@ -605,7 +605,7 @@ OnDisplayPrs()
   
   QApplication::setOverrideCursor(Qt::waitCursor);
   SALOME_ListIO aList;
-  SalomeApp_SelectionMgr* mgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* mgr = GetSelectionMgr(this);
   mgr->selectedObjects(aList);
 
   Handle(SALOME_InteractiveObject) anIO;
@@ -674,7 +674,7 @@ OnErasePrs()
     vw->unHighlightAll();
 
   SALOME_ListIO aList;
-  SalomeApp_SelectionMgr* mgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* mgr = GetSelectionMgr(this);
   mgr->selectedObjects(aList);
 
   Handle(SALOME_InteractiveObject) anIO;
@@ -1114,7 +1114,7 @@ OnDeleteObjects()
     return;
 
   SALOME_ListIO aList;
-  SalomeApp_SelectionMgr* mgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* mgr = GetSelectionMgr(this);
   mgr->selectedObjects(aList);
   int i = 0, nbSelected = aList.Extent();
   if (nbSelected < 1) return;
@@ -1307,7 +1307,7 @@ void
 VisuGUI::
 OnCurveProperties()
 {
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
   if (aListIO.Extent() != 1) return;
@@ -1405,7 +1405,7 @@ OnSaveViewParams()
   if (aViewMgr->getType() != SVTK_Viewer::Type())
     return;
 
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
   if (aListIO.Extent() > 1)
@@ -1428,7 +1428,7 @@ OnRestoreViewParams()
   if (aViewMgr->getType() != SVTK_Viewer::Type())
     return;
 
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
   if (aListIO.Extent() != 1)
@@ -1588,7 +1588,7 @@ OnTimeAnimation()
 //    new VisuGUI_TimeAnimationDlg(GetDesktop(this), aCStudy);
     new VisuGUI_TimeAnimationDlg (this, aCStudy);
 
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
 
@@ -1620,7 +1620,7 @@ void
 VisuGUI::
 OnShowAnimation()
 {
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
 
@@ -1782,7 +1782,7 @@ void
 VisuGUI::
 OnMergeScalarBars()
 {
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
 
@@ -1845,7 +1845,7 @@ void
 VisuGUI::
 OnFreeScalarBars()
 {
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
 
@@ -1889,7 +1889,7 @@ OnTranslatePrs()
 
   _PTR(Study) aCStudy = GetCStudy(GetAppStudy(this));
 
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
 
@@ -2569,7 +2569,7 @@ void VisuGUI::contextMenuPopup( const QString& theClient, QPopupMenu* theMenu, Q
   OB_Browser* ob = getApp()->objectBrowser();
   bool isOBClient = (ob && theClient == ob->popupClientType());
 
-  SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
+  LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
   SALOME_ListIO aListIO;
   aSelectionMgr->selectedObjects(aListIO);
 
@@ -2726,7 +2726,7 @@ deactivateModule( SUIT_Study* theStudy )
   return true;
 }
 
-SalomeApp_Selection*
+LightApp_Selection*
 VisuGUI::
 createSelection() const
 {
@@ -2753,10 +2753,10 @@ void VisuGUI::createPreferences()
   int sbarTab = addPreference( tr( "VISU_SCALAR_BAR" ) );
 
   int fontGr = addPreference( tr( "VISU_FONT" ), sbarTab );
-  int tfont = addPreference( tr( "VISU_TITLE" ), fontGr, SalomeApp_Preferences::Font, "VISU", "scalar_bar_title_font" );
-  addPreference( tr( "VISU_TITLE" ), fontGr, SalomeApp_Preferences::Color, "VISU", "scalar_bar_title_color" );
-  int lfont = addPreference( tr( "VISU_LABELS" ), fontGr, SalomeApp_Preferences::Font, "VISU", "scalar_bar_label_font" );
-  addPreference( tr( "VISU_LABELS" ), fontGr, SalomeApp_Preferences::Color, "VISU", "scalar_bar_label_color" );
+  int tfont = addPreference( tr( "VISU_TITLE" ), fontGr, LightApp_Preferences::Font, "VISU", "scalar_bar_title_font" );
+  addPreference( tr( "VISU_TITLE" ), fontGr, LightApp_Preferences::Color, "VISU", "scalar_bar_title_color" );
+  int lfont = addPreference( tr( "VISU_LABELS" ), fontGr, LightApp_Preferences::Font, "VISU", "scalar_bar_label_font" );
+  addPreference( tr( "VISU_LABELS" ), fontGr, LightApp_Preferences::Color, "VISU", "scalar_bar_label_color" );
 
   QStringList fam;
   fam.append( tr( "VISU_FONT_ARIAL" ) );
@@ -2773,16 +2773,16 @@ void VisuGUI::createPreferences()
 
   int colorsLabelsGr = addPreference( tr( "VISU_COLORS_AND_LABELS" ), sbarTab );
 
-  int numcol = addPreference( tr( "VISU_NB_COLORS" ), colorsLabelsGr, SalomeApp_Preferences::IntSpin, "VISU", "scalar_bar_num_colors" );
+  int numcol = addPreference( tr( "VISU_NB_COLORS" ), colorsLabelsGr, LightApp_Preferences::IntSpin, "VISU", "scalar_bar_num_colors" );
   setPreferenceProperty( numcol, "min", 2 );
   setPreferenceProperty( numcol, "max", 64 );
 
-  int numlab = addPreference( tr( "VISU_NB_LABELS" ), colorsLabelsGr, SalomeApp_Preferences::IntSpin, "VISU", "scalar_bar_num_labels" );
+  int numlab = addPreference( tr( "VISU_NB_LABELS" ), colorsLabelsGr, LightApp_Preferences::IntSpin, "VISU", "scalar_bar_num_labels" );
   setPreferenceProperty( numlab, "min", 2 );
   setPreferenceProperty( numlab, "max", 65 );
 
   int orientGr = addPreference( tr( "VISU_ORIENTATION" ), sbarTab );
-  int orient = addPreference( tr( "VISU_ORIENTATION" ), orientGr, SalomeApp_Preferences::Selector, "VISU", "scalar_bar_orientation" );
+  int orient = addPreference( tr( "VISU_ORIENTATION" ), orientGr, LightApp_Preferences::Selector, "VISU", "scalar_bar_orientation" );
   QStringList orients;
   orients.append( tr( "VISU_VERTICAL" ) );
   orients.append( tr( "VISU_HORIZONTAL" ) );
@@ -2793,10 +2793,10 @@ void VisuGUI::createPreferences()
   setPreferenceProperty( orient, "indexes", indices );
 
   int posVSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_VERTICAL" ), sbarTab );
-  int xv = addPreference( tr( "VISU_X" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_x" );
-  int yv = addPreference( tr( "VISU_Y" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_y" );
-  int wv = addPreference( tr( "VISU_WIDTH" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_width" );
-  int hv = addPreference( tr( "VISU_HEIGHT" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_height" );
+  int xv = addPreference( tr( "VISU_X" ), posVSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_x" );
+  int yv = addPreference( tr( "VISU_Y" ), posVSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_y" );
+  int wv = addPreference( tr( "VISU_WIDTH" ), posVSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_width" );
+  int hv = addPreference( tr( "VISU_HEIGHT" ), posVSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_vertical_height" );
   setPreferenceProperty( xv, "step", 0.1 );
   setPreferenceProperty( yv, "step", 0.1 );
   setPreferenceProperty( wv, "step", 0.1 );
@@ -2811,10 +2811,10 @@ void VisuGUI::createPreferences()
   setPreferenceProperty( hv, "max", 1.0 );
 
   int posHSizeGr = addPreference( tr( "VISU_ORIGIN_AND_SIZE" ) + " " + tr( "VISU_HORIZONTAL" ), sbarTab );
-  int xh = addPreference( tr( "VISU_X" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_bar_horizontal_x" );
-  int yh = addPreference( tr( "VISU_Y" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_bar_horizontal_y" );
-  int wh = addPreference( tr( "VISU_WIDTH" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_bar_horizontal_width" );
-  int hh = addPreference( tr( "VISU_HEIGHT" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_bar_horizontal_height" );
+  int xh = addPreference( tr( "VISU_X" ), posHSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_horizontal_x" );
+  int yh = addPreference( tr( "VISU_Y" ), posHSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_horizontal_y" );
+  int wh = addPreference( tr( "VISU_WIDTH" ), posHSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_horizontal_width" );
+  int hh = addPreference( tr( "VISU_HEIGHT" ), posHSizeGr, LightApp_Preferences::DblSpin, "VISU", "scalar_bar_horizontal_height" );
   setPreferenceProperty( xh, "step", 0.1 );
   setPreferenceProperty( yh, "step", 0.1 );
   setPreferenceProperty( wh, "step", 0.1 );
@@ -2833,7 +2833,7 @@ void VisuGUI::createPreferences()
   int rangeGr = addPreference( tr( "VISU_SCALAR_RANGE" ), srangeTab );
   setPreferenceProperty( rangeGr, "columns", 1 );
 
-  int mode = addPreference( tr( "VISU_SCALAR_MODE" ), rangeGr, SalomeApp_Preferences::Selector, "VISU", "scalar_bar_mode" );
+  int mode = addPreference( tr( "VISU_SCALAR_MODE" ), rangeGr, LightApp_Preferences::Selector, "VISU", "scalar_bar_mode" );
   QStringList modes;
   modes.append( tr( "VISU_MODULUS" ) );
   modes.append( tr( "VISU_COMPONENT" ) + tr("1") );
@@ -2847,9 +2847,9 @@ void VisuGUI::createPreferences()
   setPreferenceProperty( mode, "strings", modes );
   setPreferenceProperty( mode, "indexes", indices );
 
-  addPreference( tr( "VISU_LOGARITHMIC_SCALING" ), rangeGr, SalomeApp_Preferences::Bool, "VISU", "scalar_bar_logarithmic" );
+  addPreference( tr( "VISU_LOGARITHMIC_SCALING" ), rangeGr, LightApp_Preferences::Bool, "VISU", "scalar_bar_logarithmic" );
 
-  int rangetype = addPreference( tr( "VISU_RANGE_TO_USE" ), rangeGr, SalomeApp_Preferences::Selector, "VISU", "scalar_range_type" );
+  int rangetype = addPreference( tr( "VISU_RANGE_TO_USE" ), rangeGr, LightApp_Preferences::Selector, "VISU", "scalar_range_type" );
   QStringList types;
   types.append( tr( "VISU_FIELD_RANGE" ) );
   types.append( tr( "VISU_IMPOSED_RANGE" ) );
@@ -2861,17 +2861,17 @@ void VisuGUI::createPreferences()
 
   int imposedGr = addPreference( tr( "VISU_MINMAX_IMPOSED_RANGE" ), srangeTab );
 
-  int min = addPreference( tr( "VISU_MIN" ), imposedGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_range_min" );
-  int max = addPreference( tr( "VISU_MAX" ), imposedGr, SalomeApp_Preferences::DblSpin, "VISU", "scalar_range_max" );
+  int min = addPreference( tr( "VISU_MIN" ), imposedGr, LightApp_Preferences::DblSpin, "VISU", "scalar_range_min" );
+  int max = addPreference( tr( "VISU_MAX" ), imposedGr, LightApp_Preferences::DblSpin, "VISU", "scalar_range_max" );
   setPreferenceProperty( min, "step", 0.1 );
   setPreferenceProperty( max, "step", 0.1 );
 
   int sweepGr = addPreference( tr( "VISU_SWEEPING_PREF" ), srangeTab );
   setPreferenceProperty( sweepGr, "columns", 1 );
 
-  int timestep   = addPreference( tr( "VISU_TIME_STEP" ), sweepGr, SalomeApp_Preferences::DblSpin, "VISU", "sweeping_time_step" );
-  int nbcycles   = addPreference( tr( "VISU_NB_CYCLES" ), sweepGr, SalomeApp_Preferences::IntSpin, "VISU", "sweeping_number_cycles" );
-  int nbsteps    = addPreference( tr( "VISU_NB_STEPS" ),  sweepGr, SalomeApp_Preferences::IntSpin, "VISU", "sweeping_number_steps" );
+  int timestep   = addPreference( tr( "VISU_TIME_STEP" ), sweepGr, LightApp_Preferences::DblSpin, "VISU", "sweeping_time_step" );
+  int nbcycles   = addPreference( tr( "VISU_NB_CYCLES" ), sweepGr, LightApp_Preferences::IntSpin, "VISU", "sweeping_number_cycles" );
+  int nbsteps    = addPreference( tr( "VISU_NB_STEPS" ),  sweepGr, LightApp_Preferences::IntSpin, "VISU", "sweeping_number_steps" );
   setPreferenceProperty( timestep, "min",  0.1 );
   setPreferenceProperty( timestep, "step", 0.1 );
   setPreferenceProperty( timestep, "max",  1000 );
@@ -2879,7 +2879,7 @@ void VisuGUI::createPreferences()
   setPreferenceProperty( nbsteps,  "max",  200  );
 
   int importGr = addPreference( tr( "MED files import" ), srangeTab );
-  addPreference( tr( "Full MED loading" ), importGr, SalomeApp_Preferences::Bool, "VISU", "full_med_loading" );
+  addPreference( tr( "Full MED loading" ), importGr, LightApp_Preferences::Bool, "VISU", "full_med_loading" );
 }
 
 void VisuGUI::preferencesChanged( const QString&, const QString& )
index adef19954444de15e23e157886a71857040febf9..f0c612167412c74e1afa6b504eea33bd0d50c360 100644 (file)
@@ -133,7 +133,7 @@ protected slots:
   void OnCubeAxes();
 
 protected:
-  virtual SalomeApp_Selection* createSelection() const;
+  virtual LightApp_Selection* createSelection() const;
 
 private:
   void createActions();
index e8c5c0a7138bb5d4ebb220fb3cf29eb08caf0a0b..418fc8d141b4eab9e18d1ffeef25065d7a0f1194 100644 (file)
@@ -9,7 +9,7 @@
 
 #include "VISU_PipeLine.hxx"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SVTK_ViewWindow.h"
 
index b7f7fc5c3a3b001010f3b3c578f0089e7ce70330..9c5c9ca14a12ad0352e2b23e3b0c81749ac075cc 100644 (file)
@@ -28,7 +28,7 @@ class QTabWidget;
 
 class QtxDblSpinBox;
 
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 
 class VisuGUI;
 
@@ -68,7 +68,7 @@ public:
 
 private:
 
-    SalomeApp_SelectionMgr* mySelectionMgr;
+    LightApp_SelectionMgr* mySelectionMgr;
     Handle(SALOME_InteractiveObject) myIO;
 
     VisuGUI       * myVisuGUI;
index beca47aa231b2b3a181733ecba45988610a2cf1a..323c384f777d1618af16afabe44db95b951bb404 100644 (file)
@@ -17,7 +17,7 @@
 #include "VISU_PipeLine.hxx"
 
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SVTK_ViewWindow.h"
 #include "SVTK_RenderWindowInteractor.h"
@@ -158,7 +158,7 @@ void VisuGUI_NonIsometricDlg::onClickApply()
 {
   SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>
     (SUIT_Session::session()->activeApplication());
-  SalomeApp_SelectionMgr* mgr = anApp->selectionMgr();
+  LightApp_SelectionMgr* mgr = anApp->selectionMgr();
 
   SVTK_ViewWindow* vf = VISU::GetViewWindow();
   if (!vf)
index 74175dffb0c8d2ba83ab84cde7e5d6b161a9a476..e82ec8f751d7f138c76c1c9eb229d9137f7e8ccf 100644 (file)
@@ -38,7 +38,7 @@ using namespace VISU;
 
 QtxValue VisuGUI_Selection::param( const int ind, const QString& p ) const
 {
-  QtxValue val( SalomeApp_Selection::param( ind, p ) );
+  QtxValue val( LightApp_Selection::param( ind, p ) );
   if ( !val.isValid() ) {
     if      ( p == "type"           ) val = QtxValue( type( ind ) );
     else if ( p == "nbComponents"   ) val = QtxValue( nbComponents( ind ) );
@@ -62,9 +62,10 @@ QtxValue VisuGUI_Selection::param( const int ind, const QString& p ) const
 
 QString VisuGUI_Selection::type( const int ind ) const
 {
-  QString aResStr;
+  QString aResStr = "";
   VISU::Storable::TRestoringMap aMap;
-  CORBA::Object_var anObject = GetSelectedObj( study(), entry( ind ), &aMap );  
+  const SalomeApp_Study* SStudy = (SalomeApp_Study*)study();
+  CORBA::Object_var anObject = GetSelectedObj( SStudy, entry( ind ), &aMap );  
   bool isExist;
   const QString& aVal = VISU::Storable::FindValue(aMap,"myComment",&isExist);
   if ( isExist )
@@ -100,7 +101,8 @@ QString VisuGUI_Selection::nbComponents( const int ind ) const
 {
   QString aResStr;
   VISU::Storable::TRestoringMap aMap;
-  GetSelectedObj( study(), entry( ind ), &aMap );  
+  const SalomeApp_Study* SStudy = (SalomeApp_Study*)study();
+  GetSelectedObj( SStudy, entry( ind ), &aMap );  
   bool isExist;
   const QString& aVal = VISU::Storable::FindValue(aMap,"myNumComponent",&isExist);
   if ( isExist )
@@ -112,7 +114,8 @@ QString VisuGUI_Selection::nbTimeStamps( const int ind ) const
 {
   QString aResStr;
   VISU::Storable::TRestoringMap aMap;
-  GetSelectedObj( study(), entry( ind ), &aMap );  
+  const SalomeApp_Study* SStudy = (SalomeApp_Study*)study();
+  GetSelectedObj( SStudy, entry( ind ), &aMap );  
   bool isExist;
   const QString& aVal = VISU::Storable::FindValue(aMap,"myNbTimeStamps",&isExist);
   if ( isExist )
@@ -143,7 +146,8 @@ QString VisuGUI_Selection::representation( const int ind ) const
 int VisuGUI_Selection::nbChild( const int ind, const bool named ) const
 {
   int cnt = 0;
-  _PTR(Study) aStudy =  GetCStudy( study() );
+  const SalomeApp_Study* SStudy = (SalomeApp_Study*)study();
+  _PTR(Study) aStudy =  GetCStudy( SStudy );
   if ( aStudy ){
     _PTR(SObject) SO = aStudy->FindObjectID( entry( ind ).latin1() );
     if ( SO ){
index f93d8810b3444d13d3683812724632a9d01127c1..a69c871c6ee282cf0ae351407bcfa2a6bb3a489e 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef VisuGUI_PopupTools_HeaderFile
 #define VisuGUI_PopupTools_HeaderFile
 
-#include <SalomeApp_Selection.h>
+#include <LightApp_Selection.h>
 
 //////////////////////////////////////////////////
 // Class: VisuGUI_Selection
@@ -36,7 +36,7 @@
 
 class SalomeApp_Module;
 
-class VisuGUI_Selection : public SalomeApp_Selection
+class VisuGUI_Selection : public LightApp_Selection
 {
 public:
   VisuGUI_Selection( SalomeApp_Module* theModule ) : myModule( theModule ) {};
index 433b64673207b693712e618506d3698e472d3397..7b0bf293add1a75d26156df1a4a51dd022f7624d 100644 (file)
@@ -38,8 +38,8 @@
 
 #include "SalomeApp_Study.h"
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-#include "SalomeApp_VTKSelector.h"
+#include "LightApp_SelectionMgr.h"
+#include "LightApp_VTKSelector.h"
 
 #include "SUIT_MessageBox.h"
 #include "SUIT_ViewWindow.h"
@@ -511,7 +511,7 @@ typedef  vtkIdType (vtkDataSet::* TDataSetMethod)();
 bool onIdEdit (const QString& theText,
                TDataSetMethod theMethod,
                bool theIsCell,
-               SalomeApp_SelectionMgr* theSelectionMgr,
+               LightApp_SelectionMgr* theSelectionMgr,
                QLabel* theMeshName,
                QString theValue,
                QLabel* theFieldName)
index c1976404996449c2e7bc899a31adb688d0d1cbe6..4fc4f265b450de8c506f9ec923f9b1463cc613b4 100644 (file)
@@ -36,7 +36,7 @@ class QWidgetStack;
 class QVBox;
 class QLineEdit;
 class QTable;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SalomeApp_Application;
 
 class VisuGUI_SelectionDlg: public QDialog {
@@ -85,7 +85,7 @@ private slots:
   QLabel* myDYLbl;
   QLabel* myDZLbl;
 
-  SalomeApp_SelectionMgr* mySelectionMgr;
+  LightApp_SelectionMgr* mySelectionMgr;
   bool myFl;
 };
 
index 904f438dcc34caa4fb152907c73685f6191b9b2c..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"
 
@@ -85,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) {
index 246590070e6f1abe50e8c1f0f4533251c3e1964d..2e01c468d037916c790f1b4c726d305cf3663688 100644 (file)
@@ -40,7 +40,7 @@
 #include "SalomeApp_Module.h"
 #include "SalomeApp_Study.h"
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SALOME_ListIO.hxx"
 #include "SALOME_ListIteratorOfListIO.hxx"
@@ -70,7 +70,7 @@ namespace VISU
     return theModule->application()->desktop();
   }
 
-  SalomeApp_SelectionMgr*
+  LightApp_SelectionMgr*
   GetSelectionMgr(const SalomeApp_Module* theModule)
   {
     return theModule->getApp()->selectionMgr();
@@ -192,7 +192,7 @@ namespace VISU
                 Handle(SALOME_InteractiveObject)* theIO,
                 VISU::Storable::TRestoringMap* theMap)
   {
-    SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(theModule);
+    LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(theModule);
     SALOME_ListIO aListIO;
     aSelectionMgr->selectedObjects(aListIO);
     SALOME_ListIteratorOfListIO anIter(aListIO);
@@ -226,7 +226,7 @@ namespace VISU
   }
 
   void
-  Add(SalomeApp_SelectionMgr* theSelectionMgr,
+  Add(LightApp_SelectionMgr* theSelectionMgr,
       const Handle(SALOME_InteractiveObject)& theIO)
   {
     SALOME_ListIO aListIO;
@@ -236,7 +236,7 @@ namespace VISU
   }
 
   void
-  Remove(SalomeApp_SelectionMgr* theSelectionMgr,
+  Remove(LightApp_SelectionMgr* theSelectionMgr,
         const Handle(SALOME_InteractiveObject)& theIO)
   {
     if (theIO.IsNull()) return;
@@ -261,7 +261,7 @@ namespace VISU
   bool
   IsRemovableSelected (const SalomeApp_Module* theModule)
   {
-    SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(theModule);
+    LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(theModule);
     SALOME_ListIO aListIO;
     aSelectionMgr->selectedObjects(aListIO);
 
@@ -430,7 +430,7 @@ namespace VISU
       return;
     SALOMEDS::SObject_var aSObject = thePrs->GetSObject();
     CORBA::String_var anEntry = aSObject->GetID();
-    SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(theModule);
+    LightApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(theModule);
     Remove(aSelectionMgr,theIO);
     TViewWindows aViewWindows = GetViews(theModule);
     for(int i = 0, iEnd = aViewWindows.size(); i < iEnd; i++){
index 63a767f41f5d341bfdc591d39330bd9afd17fb15..bbc4a68844051cf800f07818b366dd1c01335e53 100644 (file)
@@ -46,7 +46,7 @@ class VISU_Actor;
 class SVTK_ViewWindow;
 class SPlot2d_Viewer;
 class CAM_Module;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SalomeApp_Study;
 
 namespace VISU {
@@ -75,7 +75,7 @@ namespace VISU {
   QString                              getValue(_PTR(SObject) theSObject, QString theKey);
 
   // Selection
-  SalomeApp_SelectionMgr*              GetSelectionMgr(const SalomeApp_Module* theModule);
+  LightApp_SelectionMgr*               GetSelectionMgr(const SalomeApp_Module* theModule);
   CORBA::Object_var                    GetSelectedObj(const SalomeApp_Study* theStudy,
                                                      const QString& theEntry,
                                                      VISU::Storable::TRestoringMap* theMap = NULL);
@@ -86,9 +86,9 @@ namespace VISU {
                                                      Handle(SALOME_InteractiveObject)* theIO = NULL,
                                                      VISU::Storable::TRestoringMap* theMap = NULL);
 
-  void                                 Add(SalomeApp_SelectionMgr* theSelectionMgr,
+  void                                 Add(LightApp_SelectionMgr* theSelectionMgr,
                                           const Handle(SALOME_InteractiveObject)& theIO);
-  void                                 Remove(SalomeApp_SelectionMgr* theSelectionMgr,
+  void                                 Remove(LightApp_SelectionMgr* theSelectionMgr,
                                              const Handle(SALOME_InteractiveObject)& theIO);
 
   bool                                 IsRemovableSelected(const SalomeApp_Module* theModule);
index d1b47cf3e84d14dc8a6711170f10b3b6d0acf92d..4801ceeef3c7abd026389d9abb8ae7f135e36580 100644 (file)
@@ -53,7 +53,7 @@
 #include "SUIT_Session.h"
 #include "SalomeApp_Study.h"
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SVTK_ViewModel.h"
 #include "SVTK_ViewWindow.h"
 #include "SALOME_Event.hxx"
index 4c6c97e06d45de956e9b5243c267cdbea97ca233..5d4f626a7e38c0f2cee1e0f00dde78f60f38667c 100644 (file)
@@ -46,7 +46,7 @@
 
 #include "SalomeApp_Study.h"
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SALOME_Event.hxx"
 #include "SALOME_ListIO.hxx"
@@ -503,7 +503,7 @@ namespace VISU {
       SALOMEDS::SObject_var aSObject = myPrs->GetSObject();
       CORBA::String_var anEntry = aSObject->GetID();
 
-      SalomeApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
+      LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
       SALOME_ListIO aListIO, aNewListIO;
       aSelectionMgr->selectedObjects(aListIO);
 
@@ -581,7 +581,7 @@ namespace VISU {
     SALOMEDS::SObject_var aSObject = thePrs->GetSObject();
     CORBA::String_var anEntry = aSObject->GetID();
 
-    SalomeApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
+    LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
     SALOME_ListIO aListIO, aNewListIO;
     aSelectionMgr->selectedObjects(aListIO);
 
@@ -657,7 +657,7 @@ namespace VISU {
     SALOMEDS::SObject_var aSObject = thePrs->GetSObject();
     CORBA::String_var anEntry = aSObject->GetID();
 
-    SalomeApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
+    LightApp_SelectionMgr* aSelectionMgr = anApp->selectionMgr();
     SALOME_ListIO aListIO, aNewListIO;
     aSelectionMgr->selectedObjects(aListIO);