Salome HOME
Using files from package LightApp instead of files from package SalomeApp
authornds <nds@opencascade.com>
Thu, 3 Nov 2005 08:38:17 +0000 (08:38 +0000)
committernds <nds@opencascade.com>
Thu, 3 Nov 2005 08:38:17 +0000 (08:38 +0000)
63 files changed:
src/SMESHGUI/SMESHGUI.cxx
src/SMESHGUI/SMESHGUI.h
src/SMESHGUI/SMESHGUI_AddMeshElementDlg.h
src/SMESHGUI/SMESHGUI_ClippingDlg.cxx
src/SMESHGUI/SMESHGUI_ClippingDlg.h
src/SMESHGUI/SMESHGUI_CreatePatternDlg.cxx
src/SMESHGUI/SMESHGUI_CreatePatternDlg.h
src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.cxx
src/SMESHGUI/SMESHGUI_CreatePolyhedralVolumeDlg.h
src/SMESHGUI/SMESHGUI_DeleteGroupDlg.cxx
src/SMESHGUI/SMESHGUI_DeleteGroupDlg.h
src/SMESHGUI/SMESHGUI_Dialog.cxx
src/SMESHGUI/SMESHGUI_Dialog.h
src/SMESHGUI/SMESHGUI_Displayer.cxx
src/SMESHGUI/SMESHGUI_Displayer.h
src/SMESHGUI/SMESHGUI_EditHypothesesDlg.h
src/SMESHGUI/SMESHGUI_EditMeshDlg.h
src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.h
src/SMESHGUI/SMESHGUI_ExtrusionDlg.h
src/SMESHGUI/SMESHGUI_FilterDlg.h
src/SMESHGUI/SMESHGUI_GroupDlg.h
src/SMESHGUI/SMESHGUI_GroupOpDlg.cxx
src/SMESHGUI/SMESHGUI_GroupOpDlg.h
src/SMESHGUI/SMESHGUI_MergeNodesDlg.h
src/SMESHGUI/SMESHGUI_MeshInfosDlg.cxx
src/SMESHGUI/SMESHGUI_MeshInfosDlg.h
src/SMESHGUI/SMESHGUI_MeshOp.cxx
src/SMESHGUI/SMESHGUI_MeshOp.h
src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx
src/SMESHGUI/SMESHGUI_MeshPatternDlg.h
src/SMESHGUI/SMESHGUI_MoveNodesDlg.cxx
src/SMESHGUI/SMESHGUI_MoveNodesDlg.h
src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx
src/SMESHGUI/SMESHGUI_MultiEditDlg.h
src/SMESHGUI/SMESHGUI_NodesDlg.cxx
src/SMESHGUI/SMESHGUI_NodesDlg.h
src/SMESHGUI/SMESHGUI_Operation.cxx
src/SMESHGUI/SMESHGUI_Operation.h
src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx
src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.h
src/SMESHGUI/SMESHGUI_RemoveElementsDlg.h
src/SMESHGUI/SMESHGUI_RemoveNodesDlg.h
src/SMESHGUI/SMESHGUI_RenumberingDlg.h
src/SMESHGUI/SMESHGUI_RevolutionDlg.h
src/SMESHGUI/SMESHGUI_RotationDlg.h
src/SMESHGUI/SMESHGUI_Selection.cxx
src/SMESHGUI/SMESHGUI_Selection.h
src/SMESHGUI/SMESHGUI_SelectionOp.cxx
src/SMESHGUI/SMESHGUI_SelectionOp.h
src/SMESHGUI/SMESHGUI_SewingDlg.h
src/SMESHGUI/SMESHGUI_SingleEditDlg.cxx
src/SMESHGUI/SMESHGUI_SingleEditDlg.h
src/SMESHGUI/SMESHGUI_SmoothingDlg.h
src/SMESHGUI/SMESHGUI_StandardMeshInfosDlg.cxx
src/SMESHGUI/SMESHGUI_StandardMeshInfosDlg.h
src/SMESHGUI/SMESHGUI_SymmetryDlg.h
src/SMESHGUI/SMESHGUI_TranslationDlg.h
src/SMESHGUI/SMESHGUI_TransparencyDlg.cxx
src/SMESHGUI/SMESHGUI_TransparencyDlg.h
src/SMESHGUI/SMESHGUI_Utils.cxx
src/SMESHGUI/SMESHGUI_Utils.h
src/SMESHGUI/SMESHGUI_VTKUtils.cxx
src/SMESHGUI/SMESHGUI_VTKUtils.h

index c8a76665754cdcd87240d1224b5ff9535d1ad0af..4d9cb4fcd46a2f72a60d9b9e1cac10c1edb1eaf4 100644 (file)
 
 #include "SalomeApp_Tools.h"
 #include "SalomeApp_Study.h"
-#include "SalomeApp_NameDlg.h"
-#include "SalomeApp_DataOwner.h"
+#include "LightApp_NameDlg.h"
+#include "LightApp_DataOwner.h"
 #include "SalomeApp_Application.h"
-#include "SalomeApp_Preferences.h"
-#include "SalomeApp_VTKSelector.h"
-#include "SalomeApp_Operation.h"
-#include "SalomeApp_UpdateFlags.h"
+#include "LightApp_Preferences.h"
+#include "LightApp_VTKSelector.h"
+#include "LightApp_Operation.h"
+#include "LightApp_UpdateFlags.h"
 
 #include "SalomeApp_ImportOperation.h"
 
@@ -247,7 +247,7 @@ namespace{
 
   void ExportMeshToFile( int theCommandID )
   {
-    SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+    LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
     SALOME_ListIO selected;
     if( aSel )
       aSel->selectedObjects( selected );
@@ -361,7 +361,7 @@ namespace{
   }
 
   void SetDisplayEntity(int theCommandID){
-    SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+    LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
     SALOME_ListIO selected;
     if( aSel )
       aSel->selectedObjects( selected );
@@ -396,7 +396,7 @@ namespace{
   }
 
   void SetDisplayMode(int theCommandID){
-    SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+    LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
     SALOME_ListIO selected;
     if( aSel )
       aSel->selectedObjects( selected );
@@ -519,7 +519,7 @@ namespace{
 
   void Control( int theCommandID )
   {
-    SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+    LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
     SALOME_ListIO selected;
     if( aSel )
       aSel->selectedObjects( selected );
@@ -607,7 +607,7 @@ namespace{
     if( !theIO.IsNull() )
     {
       entry = theIO->getEntry();
-      SalomeApp_DataOwner owner( entry );
+      LightApp_DataOwner owner( entry );
       if ( aTypeFilter.isOk( &owner )) {
         theOutTypeName = theInTypeName;
         return true;
@@ -645,7 +645,7 @@ namespace{
   QString CheckHomogeneousSelection()
   {
     //SUIT_Study* aStudy = SMESH::GetActiveStudy();
-    SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+    LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
     SALOME_ListIO selected;
     if( aSel )
       aSel->selectedObjects( selected );
@@ -667,7 +667,7 @@ namespace{
   void SMESHGUI::OnEditDelete()
   {
     // VSR 17/11/04: check if all objects selected belong to SMESH component --> start
-    SalomeApp_SelectionMgr* aSel = SMESHGUI::selectionMgr();
+    LightApp_SelectionMgr* aSel = SMESHGUI::selectionMgr();
     SALOME_ListIO selected; aSel->selectedObjects( selected, QString::null, false );
 
     QString aParentComponent = QString::null;
@@ -836,11 +836,11 @@ SMESHGUI::~SMESHGUI()
  *
  */
 //=============================================================================
-SalomeApp_SelectionMgr* SMESHGUI::selectionMgr()
+LightApp_SelectionMgr* SMESHGUI::selectionMgr()
 {
   SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>( SUIT_Session::session()->activeApplication() );
   if( anApp )
-    return dynamic_cast<SalomeApp_SelectionMgr*>( anApp->selectionMgr() );
+    return dynamic_cast<LightApp_SelectionMgr*>( anApp->selectionMgr() );
   else
     return 0;
 }
@@ -1100,7 +1100,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
 
   case 200:                                    // SCALAR BAR
     {
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected );
@@ -1147,7 +1147,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       SMESH::UpdateView();
 
       SALOME_ListIO l;
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       aSel->setSelectedObjects( l );
       break;
     }
@@ -1163,7 +1163,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       case 302:        anAction = SMESH::eDisplayOnly; break;
       }
 
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO sel_objects, to_process;
       if (aSel)
         aSel->selectedObjects( sel_objects );
@@ -1269,7 +1269,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
     {
       if(checkLock(aStudy)) break;
       if ( vtkwnd ) {
-       SalomeApp_SelectionMgr *Sel = selectionMgr();
+       LightApp_SelectionMgr *Sel = selectionMgr();
        SALOME_ListIO selected; Sel->selectedObjects( selected );
 
        int nbSel = selected.Extent();
@@ -1517,7 +1517,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       EmitSignalDeactivateDialog();
       SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_nil();
 
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected );
@@ -1544,7 +1544,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       if(checkLock(aStudy)) break;
       EmitSignalDeactivateDialog();
 
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected );
@@ -1607,7 +1607,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       if(checkLock(aStudy)) break;
       EmitSignalDeactivateDialog();
 
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected );
@@ -1698,7 +1698,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
   case 900:                                    // MESH INFOS
     {
       EmitSignalDeactivateDialog();
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected );
@@ -1722,7 +1722,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
   case 902:                                    // STANDARD MESH INFOS
     {
       EmitSignalDeactivateDialog();
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected );
@@ -1748,7 +1748,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
     {
       if(checkLock(aStudy)) break;
 
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected );
@@ -1784,7 +1784,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       if ( checkLock( aStudy ) )
         break;
 
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected );
@@ -1802,7 +1802,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
           {
             aName = anAttr;
             QString newName = QString(aName->Value().c_str());
-            newName = SalomeApp_NameDlg::getName( desktop(), newName );
+            newName = LightApp_NameDlg::getName( desktop(), newName );
             if ( !newName.isEmpty() )
             {
               //old source: aStudy->renameIObject( IObject, newName );
@@ -1827,7 +1827,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       if(checkLock(aStudy)) break;
       SUIT_OverrideCursor wc;
 
-      SalomeApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr *aSel = SMESHGUI::selectionMgr();
       SALOME_ListIO selected;
       if( aSel )
         aSel->selectedObjects( selected, QString::null, false );
@@ -2069,7 +2069,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
   case 6009:
     if ( vtkwnd ) {
 
-      SalomeApp_SelectionMgr* mgr = selectionMgr();
+      LightApp_SelectionMgr* mgr = selectionMgr();
       SALOME_ListIO selected; mgr->selectedObjects( selected );
 
       if ( selected.Extent() == 1 && selected.First()->hasEntry() ) {
@@ -2100,7 +2100,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
     break;
   case 9010:
     {
-      SalomeApp_SelectionMgr* mgr = selectionMgr();
+      LightApp_SelectionMgr* mgr = selectionMgr();
       SALOME_ListIO selected; mgr->selectedObjects( selected );
 
       if (selected.Extent() == 1)      {
@@ -2114,7 +2114,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
     }
   case 9011:
     {
-      SalomeApp_SelectionMgr* mgr = selectionMgr();
+      LightApp_SelectionMgr* mgr = selectionMgr();
       SALOME_ListIO selected; mgr->selectedObjects( selected );
 
       if (selected.Extent() == 1)      {
@@ -2863,22 +2863,22 @@ void SMESHGUI::createPreferences()
   int genTab = addPreference( tr( "PREF_TAB_GENERAL" ) );
 
   int updateGroup = addPreference( tr( "PREF_GROUP_UPDATE" ), genTab );
-  addPreference( tr( "PREF_AUTO_UPDATE" ), updateGroup, SalomeApp_Preferences::Bool, "SMESH", "auto_update" );
+  addPreference( tr( "PREF_AUTO_UPDATE" ), updateGroup, LightApp_Preferences::Bool, "SMESH", "auto_update" );
 
   int qaGroup = addPreference( tr( "PREF_GROUP_QUALITY" ), genTab );
-  addPreference( tr( "PREF_DISPLAY_ENTITY" ), qaGroup, SalomeApp_Preferences::Bool, "SMESH", "display_entity" );
-  addPreference( tr( "PREF_PRECISION_USE" ), qaGroup, SalomeApp_Preferences::Bool, "SMESH", "use_precision" );
+  addPreference( tr( "PREF_DISPLAY_ENTITY" ), qaGroup, LightApp_Preferences::Bool, "SMESH", "display_entity" );
+  addPreference( tr( "PREF_PRECISION_USE" ), qaGroup, LightApp_Preferences::Bool, "SMESH", "use_precision" );
 
   int precGroup = addPreference( tr( "PREF_GROUP_PRECISION" ), genTab );
   setPreferenceProperty( precGroup, "columns", 1 );
 
-  int prec = addPreference( tr( "PREF_PRECISION_VALUE" ), precGroup, SalomeApp_Preferences::IntSpin, "SMESH", "controls_precision" );
+  int prec = addPreference( tr( "PREF_PRECISION_VALUE" ), precGroup, LightApp_Preferences::IntSpin, "SMESH", "controls_precision" );
 
   setPreferenceProperty( prec, "min", 0 );
   setPreferenceProperty( prec, "max", 16 );
 
   int dispgroup = addPreference( tr( "PREF_DISPLAY_MODE" ), genTab );
-  int dispmode = addPreference( tr( "PREF_DISPLAY_MODE" ), dispgroup, SalomeApp_Preferences::Selector, "SMESH", "display_mode" );
+  int dispmode = addPreference( tr( "PREF_DISPLAY_MODE" ), dispgroup, LightApp_Preferences::Selector, "SMESH", "display_mode" );
   QStringList modes;
   modes.append( "Wireframe" );
   modes.append( "Shading" );
@@ -2895,21 +2895,21 @@ void SMESHGUI::createPreferences()
   int meshTab = addPreference( tr( "PREF_TAB_MESH" ) );
   int nodeGroup = addPreference( tr( "PREF_GROUP_NODES" ), meshTab );
 
-  addPreference( tr( "PREF_COLOR" ), nodeGroup, SalomeApp_Preferences::Color, "SMESH", "node_color" );
-  int nodeSz = addPreference( tr( "PREF_SIZE" ), nodeGroup, SalomeApp_Preferences::IntSpin, "SMESH", "node_size" );
+  addPreference( tr( "PREF_COLOR" ), nodeGroup, LightApp_Preferences::Color, "SMESH", "node_color" );
+  int nodeSz = addPreference( tr( "PREF_SIZE" ), nodeGroup, LightApp_Preferences::IntSpin, "SMESH", "node_size" );
 
   setPreferenceProperty( nodeSz, "min", 1 );
   setPreferenceProperty( nodeSz, "max", 5 );
 
   int elemGroup = addPreference( tr( "PREF_GROUP_ELEMENTS" ), meshTab );
 
-  addPreference( tr( "PREF_FILL" ), elemGroup, SalomeApp_Preferences::Color, "SMESH", "fill_color" );
-  addPreference( tr( "PREF_OUTLINE" ), elemGroup, SalomeApp_Preferences::Color, "SMESH", "outline_color" );
-  addPreference( tr( "PREF_BACKFACE" ), elemGroup, SalomeApp_Preferences::Color, "SMESH", "backface_color" );
-  addPreference( "", elemGroup, SalomeApp_Preferences::Space );
+  addPreference( tr( "PREF_FILL" ), elemGroup, LightApp_Preferences::Color, "SMESH", "fill_color" );
+  addPreference( tr( "PREF_OUTLINE" ), elemGroup, LightApp_Preferences::Color, "SMESH", "outline_color" );
+  addPreference( tr( "PREF_BACKFACE" ), elemGroup, LightApp_Preferences::Color, "SMESH", "backface_color" );
+  addPreference( "", elemGroup, LightApp_Preferences::Space );
 
-  int elemW = addPreference( tr( "PREF_WIDTH" ), elemGroup, SalomeApp_Preferences::IntSpin, "SMESH", "element_width" );
-  int shrink = addPreference( tr( "PREF_SHRINK_COEFF" ), elemGroup, SalomeApp_Preferences::IntSpin, "SMESH", "shrink_coeff" );
+  int elemW = addPreference( tr( "PREF_WIDTH" ), elemGroup, LightApp_Preferences::IntSpin, "SMESH", "element_width" );
+  int shrink = addPreference( tr( "PREF_SHRINK_COEFF" ), elemGroup, LightApp_Preferences::IntSpin, "SMESH", "shrink_coeff" );
 
   setPreferenceProperty( elemW, "min", 1 );
   setPreferenceProperty( elemW, "max", 5 );
@@ -2921,33 +2921,33 @@ void SMESHGUI::createPreferences()
 
   int selGroup = addPreference( tr( "PREF_GROUP_SELECTION" ), selTab );
 
-  addPreference( tr( "PREF_OBJECT_COLOR" ), selGroup, SalomeApp_Preferences::Color, "SMESH", "selection_object_color" );
-  addPreference( tr( "PREF_ELEMENT_COLOR" ), selGroup, SalomeApp_Preferences::Color, "SMESH", "selection_element_color" );
-  int selW = addPreference( tr( "PREF_WIDTH" ), selGroup, SalomeApp_Preferences::IntSpin, "SMESH", "selection_width" );
+  addPreference( tr( "PREF_OBJECT_COLOR" ), selGroup, LightApp_Preferences::Color, "SMESH", "selection_object_color" );
+  addPreference( tr( "PREF_ELEMENT_COLOR" ), selGroup, LightApp_Preferences::Color, "SMESH", "selection_element_color" );
+  int selW = addPreference( tr( "PREF_WIDTH" ), selGroup, LightApp_Preferences::IntSpin, "SMESH", "selection_width" );
 
   setPreferenceProperty( selW, "min", 1 );
   setPreferenceProperty( selW, "max", 5 );
 
   int preGroup = addPreference( tr( "PREF_GROUP_PRESELECTION" ), selTab );
 
-  addPreference( tr( "PREF_HIGHLIGHT_COLOR" ), preGroup, SalomeApp_Preferences::Color, "SMESH", "highlight_color" );
-  int preW = addPreference( tr( "PREF_WIDTH" ), preGroup, SalomeApp_Preferences::IntSpin, "SMESH", "highlight_width" );
+  addPreference( tr( "PREF_HIGHLIGHT_COLOR" ), preGroup, LightApp_Preferences::Color, "SMESH", "highlight_color" );
+  int preW = addPreference( tr( "PREF_WIDTH" ), preGroup, LightApp_Preferences::IntSpin, "SMESH", "highlight_width" );
 
   setPreferenceProperty( preW, "min", 1 );
   setPreferenceProperty( preW, "max", 5 );
 
   int precSelGroup = addPreference( tr( "PREF_GROUP_PRECISION" ), selTab );
 
-  addPreference( tr( "PREF_NODES" ), precSelGroup, SalomeApp_Preferences::Double, "SMESH", "selection_precision_node" );
-  addPreference( tr( "PREF_ELEMENTS" ), precSelGroup, SalomeApp_Preferences::Double, "SMESH", "selection_precision_element" );
+  addPreference( tr( "PREF_NODES" ), precSelGroup, LightApp_Preferences::Double, "SMESH", "selection_precision_node" );
+  addPreference( tr( "PREF_ELEMENTS" ), precSelGroup, LightApp_Preferences::Double, "SMESH", "selection_precision_element" );
 
   int sbarTab = addPreference( tr( "SMESH_SCALARBAR" ) );
   int fontGr = addPreference( tr( "SMESH_FONT_SCALARBAR" ), sbarTab );
 
-  int tfont = addPreference( tr( "SMESH_TITLE" ), fontGr, SalomeApp_Preferences::Font, "SMESH", "scalar_bar_title_font" );
-  addPreference( tr( "SMESH_TITLE" ), fontGr, SalomeApp_Preferences::Color, "SMESH", "scalar_bar_title_color" );
-  int lfont = addPreference( tr( "SMESH_LABELS" ), fontGr, SalomeApp_Preferences::Font, "SMESH", "scalar_bar_label_font" );
-  addPreference( tr( "SMESH_LABELS" ), fontGr, SalomeApp_Preferences::Color, "SMESH", "scalar_bar_label_color" );
+  int tfont = addPreference( tr( "SMESH_TITLE" ), fontGr, LightApp_Preferences::Font, "SMESH", "scalar_bar_title_font" );
+  addPreference( tr( "SMESH_TITLE" ), fontGr, LightApp_Preferences::Color, "SMESH", "scalar_bar_title_color" );
+  int lfont = addPreference( tr( "SMESH_LABELS" ), fontGr, LightApp_Preferences::Font, "SMESH", "scalar_bar_label_font" );
+  addPreference( tr( "SMESH_LABELS" ), fontGr, LightApp_Preferences::Color, "SMESH", "scalar_bar_label_color" );
 
   QStringList fam;
   fam.append( tr( "SMESH_FONT_ARIAL" ) );
@@ -2964,16 +2964,16 @@ void SMESHGUI::createPreferences()
 
   int colorsLabelsGr = addPreference( tr( "SMESH_LABELS_COLORS_SCALARBAR" ), sbarTab );
 
-  int numcol = addPreference( tr( "SMESH_NUMBEROFCOLORS" ), colorsLabelsGr, SalomeApp_Preferences::IntSpin, "SMESH", "scalar_bar_num_colors" );
+  int numcol = addPreference( tr( "SMESH_NUMBEROFCOLORS" ), colorsLabelsGr, LightApp_Preferences::IntSpin, "SMESH", "scalar_bar_num_colors" );
   setPreferenceProperty( numcol, "min", 2 );
   setPreferenceProperty( numcol, "max", 256 );
 
-  int numlab = addPreference( tr( "SMESH_NUMBEROFLABELS" ), colorsLabelsGr, SalomeApp_Preferences::IntSpin, "SMESH", "scalar_bar_num_labels" );
+  int numlab = addPreference( tr( "SMESH_NUMBEROFLABELS" ), colorsLabelsGr, LightApp_Preferences::IntSpin, "SMESH", "scalar_bar_num_labels" );
   setPreferenceProperty( numlab, "min", 2 );
   setPreferenceProperty( numlab, "max", 65 );
 
   int orientGr = addPreference( tr( "SMESH_ORIENTATION" ), sbarTab );
-  int orient = addPreference( tr( "SMESH_ORIENTATION" ), orientGr, SalomeApp_Preferences::Selector, "SMESH", "scalar_bar_orientation" );
+  int orient = addPreference( tr( "SMESH_ORIENTATION" ), orientGr, LightApp_Preferences::Selector, "SMESH", "scalar_bar_orientation" );
   QStringList orients;
   orients.append( tr( "SMESH_VERTICAL" ) );
   orients.append( tr( "SMESH_HORIZONTAL" ) );
@@ -2982,10 +2982,10 @@ void SMESHGUI::createPreferences()
   setPreferenceProperty( orient, "indexes", indices );
 
   int posVSizeGr = addPreference( tr( "SMESH_POSITION_SIZE_SCALARBAR" ) + " " + tr( "SMESH_VERTICAL" ), sbarTab );
-  int xv = addPreference( tr( "SMESH_X_SCALARBAR" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_x" );
-  int yv = addPreference( tr( "SMESH_Y_SCALARBAR" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_y" );
-  int wv = addPreference( tr( "SMESH_WIDTH" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_width" );
-  int hv = addPreference( tr( "SMESH_HEIGHT" ), posVSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_height" );
+  int xv = addPreference( tr( "SMESH_X_SCALARBAR" ), posVSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_x" );
+  int yv = addPreference( tr( "SMESH_Y_SCALARBAR" ), posVSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_y" );
+  int wv = addPreference( tr( "SMESH_WIDTH" ), posVSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_width" );
+  int hv = addPreference( tr( "SMESH_HEIGHT" ), posVSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_vertical_height" );
   setPreferenceProperty( xv, "step", 0.1 );
   setPreferenceProperty( xv, "min", 0.0 );
   setPreferenceProperty( xv, "max", 1.0 );
@@ -3000,10 +3000,10 @@ void SMESHGUI::createPreferences()
   setPreferenceProperty( hv, "step", 0.1 );
 
   int posHSizeGr = addPreference( tr( "SMESH_POSITION_SIZE_SCALARBAR" ) + " " + tr( "SMESH_HORIZONTAL" ), sbarTab );
-  int xh = addPreference( tr( "SMESH_X_SCALARBAR" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_x" );
-  int yh = addPreference( tr( "SMESH_Y_SCALARBAR" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_y" );
-  int wh = addPreference( tr( "SMESH_WIDTH" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_width" );
-  int hh = addPreference( tr( "SMESH_HEIGHT" ), posHSizeGr, SalomeApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_height" );
+  int xh = addPreference( tr( "SMESH_X_SCALARBAR" ), posHSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_x" );
+  int yh = addPreference( tr( "SMESH_Y_SCALARBAR" ), posHSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_y" );
+  int wh = addPreference( tr( "SMESH_WIDTH" ), posHSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_width" );
+  int hh = addPreference( tr( "SMESH_HEIGHT" ), posHSizeGr, LightApp_Preferences::DblSpin, "SMESH", "scalar_bar_horizontal_height" );
   setPreferenceProperty( xv, "min", 0.0 );
   setPreferenceProperty( xv, "max", 1.0 );
   setPreferenceProperty( xv, "step", 0.1 );
@@ -3036,7 +3036,7 @@ void SMESHGUI::preferencesChanged( const QString& sect, const QString& name )
   * \param theFlags - update flags
 *
 * Update viewer or/and object browser etc. in accordance with update flags ( see
-* SalomeApp_UpdateFlags enumeration ).
+* LightApp_UpdateFlags enumeration ).
 */
 //================================================================================
 void SMESHGUI::update( const int flags )
@@ -3087,9 +3087,9 @@ void SMESHGUI::onOperationAborted( SUIT_Operation* )
 * It is called called automatically from startOperation method of base class.
 */
 //================================================================================
-SalomeApp_Operation* SMESHGUI::createOperation( const int id ) const
+LightApp_Operation* SMESHGUI::createOperation( const int id ) const
 {
-  SalomeApp_Operation* op = 0;
+  LightApp_Operation* op = 0;
   // to do : create operation here
   switch( id )
   {
@@ -3111,7 +3111,7 @@ SalomeApp_Operation* SMESHGUI::createOperation( const int id ) const
   return op;
 }
 
-SalomeApp_Displayer* SMESHGUI::displayer()
+LightApp_Displayer* SMESHGUI::displayer()
 {
   if( !myDisplayer )
     myDisplayer = new SMESHGUI_Displayer( dynamic_cast<SalomeApp_Study*>( getApp()->activeStudy() ) );
index 4efe43dfa26df22bbdf100a6386eaea410c571b0..595d831e731b7974ca902a2a457a40b98f22489f 100644 (file)
@@ -44,9 +44,9 @@ class SUIT_ViewWindow;
 class SUIT_ResourceMgr;
 class SUIT_ViewManager;
 
-class SalomeApp_Operation;
+class LightApp_Operation;
 class SalomeApp_Study;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 
 
 //=================================================================================
@@ -63,7 +63,7 @@ public :
 
   static SMESH::SMESH_Gen_var     GetSMESHGen();
   static SMESHGUI*                GetSMESHGUI();
-  static SalomeApp_SelectionMgr*  selectionMgr();
+  static LightApp_SelectionMgr*   selectionMgr();
   static SUIT_ResourceMgr*        resourceMgr();
   static SUIT_Desktop*            desktop() ;
   static SalomeApp_Study*         activeStudy();
@@ -71,7 +71,7 @@ public :
 
   static bool                     automaticUpdate();
 
-  virtual SalomeApp_Displayer*    displayer();
+  virtual LightApp_Displayer*     displayer();
   virtual QString     engineIOR() const;
   virtual void        initialize( CAM_Application* );
   virtual void        windows( QMap<int, int>& ) const;
@@ -126,7 +126,7 @@ protected:
   void createPopupItem( const int, const QString&, const QString&,
                         const QString& = QString::null, const int = -1 );
   
-  virtual SalomeApp_Operation*      createOperation( const int ) const;
+  virtual LightApp_Operation*      createOperation( const int ) const;
 
 private:
   void OnEditDelete();
@@ -136,7 +136,7 @@ private :
   QDialog*                         myActiveDialogBox;
   int                              myState;
   QMap<int,QString>                myRules;
-  SalomeApp_Displayer*             myDisplayer;
+  LightApp_Displayer*              myDisplayer;
 };
 
 #endif
index e6149a33ef2efc4e80cb1a876cc12219866f769c..33f8a3d3ab6b745713a7febfda6f88bb980e802e 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_ADD_FACE_H
 #define DIALOGBOX_ADD_FACE_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SMDSAbs_ElementType.hxx"
 
@@ -85,7 +85,7 @@ private:
     void displaySimulation();
 
     SMESHGUI*                   mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*     mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*      mySelectionMgr;          /* User shape selection */
     int                         myNbOkNodes;               /* to check when arguments is defined */
     bool                        myBusy;
     SVTK_Selector*              mySelector;
index bdc7b83af001521d526ef4c1e4f11a6ff4655f98..4fe87b62a74e4fc8ac1a48040b1d230d5ee39258 100644 (file)
@@ -43,7 +43,7 @@
 #include "SALOME_ListIteratorOfListIO.hxx"
 
 #include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SVTK_Selector.h"
 #include "SVTK_ViewWindow.h"
index 28872443402c3745bdc63155a2bf030bd13c74a1..bc4bab595580c113f268a30aa5964826cef552c2 100644 (file)
@@ -46,7 +46,7 @@ class QTable;
 class QCheckBox;
 class QComboBox;
 
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SVTK_Selector;
 
 class SMESHGUI;
@@ -89,7 +89,7 @@ public:
 
 private:
 
-    SalomeApp_SelectionMgr* mySelectionMgr;
+    LightApp_SelectionMgr*  mySelectionMgr;
     SVTK_Selector*          mySelector;
     SMESHGUI*               mySMESHGUI;
     SMESH_Actor*            myActor;
index 6b1f20e1287f6a4d3fcc29085ff6ff2aab22c77c..fdf604ae7bc73a13b865078ff1b1f4508536d489 100755 (executable)
@@ -42,8 +42,8 @@
 #include "SUIT_FileDlg.h"\r
 \r
 #include "SalomeApp_Study.h"\r
-#include "SalomeApp_DataOwner.h"\r
-#include "SalomeApp_SelectionMgr.h"\r
+#include "LightApp_DataOwner.h"\r
+#include "LightApp_SelectionMgr.h"\r
 #include "SalomeApp_Tools.h"\r
 \r
 #include "SALOMEDS_SObject.hxx"\r
@@ -290,7 +290,7 @@ void SMESHGUI_CreatePatternDlg::SetMesh (SMESH::SMESH_Mesh_ptr thePtr)
     _PTR(SObject) aSobj = SMESH::FindSObject(myMesh.in());\r
     //Handle(SALOME_InteractiveObject) anIObj =\r
     //  new SALOME_InteractiveObject(aSobj->GetID().c_str(), "SMESH");\r
-    SUIT_DataOwnerPtr anIObj (new SalomeApp_DataOwner(aSobj->GetID().c_str()));\r
+    SUIT_DataOwnerPtr anIObj (new LightApp_DataOwner(aSobj->GetID().c_str()));\r
 \r
     isValidMesh = mySelectionMgr->isOk(anIObj);\r
   }\r
index 2e2555c55d5be743f736d58de86784cfde9fa3fc..84a0cbd34ea1cbf9e60efa2a6442580cfe34c8c7 100755 (executable)
@@ -43,7 +43,7 @@ class QFrame;
 class QLineEdit;
 class SMESHGUI_SpinBox;
 class QPushButton;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class QRadioButton;
 class QCheckBox;
 class QButtonGroup;
@@ -131,7 +131,7 @@ private:
 
   SMESHGUI*                mySMESHGUI;
   SVTK_Selector*           mySelector;
-  SalomeApp_SelectionMgr*  mySelectionMgr;
+  LightApp_SelectionMgr*   mySelectionMgr;
   int                      myNbPoints;
   int                      myType;
 
index d32bd78d7a74281c06db05dbcd80c3ee7208cf8e..ed4acc2598eb63ef5fb0225f76204a18b5666ed0 100644 (file)
@@ -45,7 +45,7 @@
 #include "SalomeApp_Study.h"
 #include "SUIT_Desktop.h"
 #include "SUIT_MessageBox.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "utilities.h"
 
 #include "SVTK_ViewWindow.h"
index 8ba99e3ba0bf5bffca385c0dfdfc66c97c56f60e..5070b44718a7307cfff2be486575a86119d1a9ac 100644 (file)
@@ -45,7 +45,7 @@ class SMESHGUI;
 class SMESH_Actor;
 class SVTK_Selector;
 class SVTK_ViewWindow;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 
 namespace SMESH{
   struct TPolySimulation;
@@ -77,7 +77,7 @@ private:
     void displaySimulation();
     
     SMESHGUI*                     mySMESHGUI ;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr ;             /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr ;             /* User shape selection */
     SVTK_Selector*                mySelector;
     QString                       myIDs;
     int                           myNbOkElements ;            /* to check when elements are defined */
index cd6afe1c1989ad2b7835c147510e3aca5adc6abc..90f42d96ab702073ce87a1f798e7d30781dd10db 100644 (file)
@@ -36,7 +36,7 @@
 #include "SUIT_Desktop.h"
 
 #include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SALOME_ListIO.hxx"
 #include "SALOME_ListIteratorOfListIO.hxx"
index 320f411b563532574a3a390ae69fda42c4e9e1ff..f944b302040573dfa0217c238bdf4d954841f94d 100644 (file)
@@ -40,7 +40,7 @@ class QListBox;
 
 class SMESHGUI;
 class SVTK_ViewWindow;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 
 /*!
  *  Class       : SMESHGUI_DeleteGroupDlg
@@ -86,7 +86,7 @@ private:
   QListBox*               myListBox;
 
   SMESHGUI*               mySMESHGUI;
-  SalomeApp_SelectionMgr* mySelectionMgr;
+  LightApp_SelectionMgr*  mySelectionMgr;
 
   QValueList<SMESH::SMESH_GroupBase_var> myListGrp;
   bool                                   myBlockSelection;
index 1e1df649ca0cfa9a3b89ee5ae19f7e75c51df25c..a3277e0a756be3d53c2fa808ead7e4b2f3e23f0e 100644 (file)
@@ -37,7 +37,7 @@
 //=================================================================================
 SMESHGUI_Dialog::SMESHGUI_Dialog( QWidget* parent, const bool modal,
                                   const bool allowResize, const int flags )
-: SalomeApp_Dialog( parent == 0 ? desktop() : parent, "", modal, allowResize, flags )
+: LightApp_Dialog( parent == 0 ? desktop() : parent, "", modal, allowResize, flags )
 {
   int pr = prefix( "SMESH" );
   typeName( pr + MESH ) = tr( "DLG_MESH" );
@@ -66,7 +66,7 @@ void SMESHGUI_Dialog::show()
   int x = abs( PP->x() + PP->size().width() - size().width() - 10 ),
       y = abs( PP->y() + PP->size().height() - size().height() - 10 );
   move(x, y);
-  SalomeApp_Dialog::show();
+  LightApp_Dialog::show();
 }
 
 //=================================================================================
index 66f61c6d38727e14d0c47efd7ac2b1ba7c82f816..73c92abe2aeb1baf463d9a564c19b5ec26dc3f14 100644 (file)
@@ -30,7 +30,7 @@
 #ifndef SMESHGUI_DIALOG_H
 #define SMESHGUI_DIALOG_H
 
-#include <SalomeApp_Dialog.h>
+#include <LightApp_Dialog.h>
 
 class SUIT_Desktop;
 class SUIT_ResourceMgr;
@@ -39,7 +39,7 @@ class SUIT_ResourceMgr;
 // class    : SMESHGUI_Dialog
 // purpose  : Base dialog for all SMESHGUI dialogs
 //=================================================================================
-class SMESHGUI_Dialog : public SalomeApp_Dialog
+class SMESHGUI_Dialog : public LightApp_Dialog
 {
   Q_OBJECT
   
index f1ddb5b2ded3269ac299aa0c5f5a60ecbd6bad7f..386b54bbc7f0fc2527ebffe682420072b2226dc7 100644 (file)
@@ -34,7 +34,7 @@
 #include <SVTK_ViewWindow.h>
 
 SMESHGUI_Displayer::SMESHGUI_Displayer( SalomeApp_Study* st )
-: SalomeApp_Displayer(),
+: LightApp_Displayer(),
   myStudy( st )
 {
 }
@@ -61,7 +61,7 @@ SALOME_Prs* SMESHGUI_Displayer::buildPresentation( const QString& entry, SALOME_
       if( anActor )
       {
        SMESH::DisplayActor( wnd, anActor );
-        prs = SalomeApp_Displayer::buildPresentation( entry.latin1(), aViewFrame );
+        prs = LightApp_Displayer::buildPresentation( entry.latin1(), aViewFrame );
       }
       if( prs )
        UpdatePrs( prs );
index b8458e6c7cf437dcebbc4aab3b91eea074d2e6a0..e4be5fdde6f986af3645fe24342f8e6aac105049 100644 (file)
 #ifndef SMESHGUI_DISPLAYER_HEADER
 #define SMESHGUI_DISPLAYER_HEADER
 
-#include <SalomeApp_Displayer.h>
+#include <LightApp_Displayer.h>
 
 class SalomeApp_Study;
 
-class SMESHGUI_Displayer : public SalomeApp_Displayer
+class SMESHGUI_Displayer : public LightApp_Displayer
 {
 public:
   SMESHGUI_Displayer( SalomeApp_Study* );
index 6c40460e51d335347f1e978d335548e8bfdb8d14..6fe085dc6cb59be8f014be75fabe64dc05965122 100644 (file)
@@ -31,7 +31,7 @@
 
 //#include "SMESH_TypeFilter.hxx"
 #include "SUIT_SelectionFilter.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 // QT Includes
 #include <qdialog.h>
@@ -92,7 +92,7 @@ private:
 
 private:
     SMESHGUI*                     mySMESHGUI;
-    SalomeApp_SelectionMgr*       mySelectionMgr;
+    LightApp_SelectionMgr*        mySelectionMgr;
 
     GEOM::GEOM_Object_var         myGeomShape;
     QLineEdit*                    myEditCurrentArgument; 
index 20cf71080574d0793b2f9b8fb3885e23c76e926f..7d7ff0615349b406519b5c9b703ab0f0ba6cf14a 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef DIALOGBOX_GETMESH_H
 #define DIALOGBOX_GETMESH_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SUIT_SelectionFilter.h"
 
 // QT Includes
@@ -46,7 +46,7 @@ class SMESHGUI_EditMeshDlg : public QDialog
 
  private:
   SMESHGUI*               mySMESHGUI;     /* Current SMESHGUI object */
-  SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+  LightApp_SelectionMgr*  mySelectionMgr; /* User shape selection */
 
   SMESH::SMESH_Mesh_var   myMesh;
   SUIT_SelectionFilter*   myMeshFilter;
index 91ba5084c74f96f4238097420720dff5bead94f3..57f7be3b7f22b17474be87d974f9be3fd0a2ec2f 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_EXTRUSION_PATH_H
 #define DIALOGBOX_EXTRUSION_PATH_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SUIT_SelectionFilter.h"
 
 // QT Includes
@@ -87,7 +87,7 @@ private:
   void SetEditCurrentArgument (QToolButton* button);
 
   SMESHGUI*                     mySMESHGUI;            /* Current SMESHGUI object */
-  SalomeApp_SelectionMgr*       mySelectionMgr;        /* User shape selection */
+  LightApp_SelectionMgr*        mySelectionMgr;        /* User shape selection */
   SVTK_Selector*                mySelector;
 
   QWidget*                      myEditCurrentArgument; /* Current  argument */
index cebdaefb78232321cd01d818f8b733df4e35c146..935a2716c81d2ff44b06fb35a8711d6564dc5693 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_EXTRUSION_H
 #define DIALOGBOX_EXTRUSION_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SUIT_SelectionFilter.h"
 
 // QT Includes
@@ -76,7 +76,7 @@ private:
   //void hideEvent (QHideEvent*);                        /* ESC key */
 
   SMESHGUI*                     mySMESHGUI;            /* Current SMESHGUI object */
-  SalomeApp_SelectionMgr*       mySelectionMgr;        /* User shape selection */
+  LightApp_SelectionMgr*        mySelectionMgr;        /* User shape selection */
   QLineEdit*                    myEditCurrentArgument; /* Current  LineEdit */
   QString                       myElementsId;
   int                           myNbOkElements;        /* to check when elements are defined */
index 7427fe7be1ed296af42b299e150602fac76e2424..04dfc4a5e75d9d8f0e7981e3aa3931663545aa2d 100755 (executable)
@@ -34,7 +34,7 @@
 #include <qmap.h>
 #include <qvaluelist.h>
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SALOME_InteractiveObject.hxx"
 #include "SALOME_DataMapOfIOMapOfInteger.hxx"
 #include "SVTK_Selection.h"
@@ -56,7 +56,7 @@ class QStringList;
 class QTable;
 class QTableItem;
 class QWidgetStack;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SMESHGUI;
 class SMESHGUI_FilterLibraryDlg;
 class SVTK_Selector;
@@ -291,7 +291,7 @@ private:
   // initial fields
   QValueList<int>           myTypes;
   SMESHGUI*                 mySMESHGUI;
-  SalomeApp_SelectionMgr*   mySelectionMgr;
+  LightApp_SelectionMgr*    mySelectionMgr;
   SVTK_Selector*            mySelector;
   SMESH::SMESH_Mesh_ptr     myMesh;
   QWidget*                  mySourceWg;
index 112738099a4d6009baf7118abe6532e04bd8145e..af101fcff616ff15cad0dce323e0096c718ce40d 100644 (file)
@@ -28,7 +28,7 @@
 #ifndef DIALOGBOX_GROUP_H
 #define DIALOGBOX_GROUP_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 //#include "SMESH_TypeFilter.hxx"
 #include "SUIT_SelectionFilter.h"
 
@@ -114,7 +114,7 @@ private:
     void updateButtons();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     SMESH_Actor*                  myActor;                 /* Current mesh actor */
     int                           myGrpTypeId; /* Current group type id : standalone or group on geometry */
     int                           myTypeId;                /* Current type id = radio button id */
index 5cff77713d51db9abd158bd4c9a069f8f96a5293..cdefc1e42d5397f93e13f391324842e76ec6f6de 100644 (file)
@@ -36,7 +36,7 @@
 #include "SUIT_ResourceMgr.h"
 #include "SUIT_Desktop.h"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SVTK_Selection.h"
 #include "SVTK_ViewWindow.h"
 #include "SVTK_Selector.h"
index 774455d4ee03c9bf04539421af687687c556a28f..7a62a35b31bb2ba2d0e3524c38b045cce633423b 100644 (file)
@@ -36,7 +36,7 @@ class QCloseEvent;
 class QLabel;
 class QFrame;
 class QPushButton;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class QLineEdit;
 class SMESHGUI;
 class SVTK_ViewWindow;
@@ -95,7 +95,7 @@ private:
   QPushButton*              myBtn2;
   
   SMESHGUI*                 mySMESHGUI;
-  SalomeApp_SelectionMgr*   mySelectionMgr;
+  LightApp_SelectionMgr*    mySelectionMgr;
   int                       myMode;
   SVTK_Selector*            mySelector;
   
index 3eaf68acbe3e59dba7f0ab04d03ff00cf1377ba7..457259574062e0f0a27e5c72957650ca1cf582f0 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_MERGENODES_H
 #define DIALOGBOX_MERGENODES_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 //#include "SMESH_TypeFilter.hxx"
 #include "SUIT_SelectionFilter.h"
 
@@ -82,7 +82,7 @@ private:
     void onEditNodesGroup();
 
     SMESHGUI*                     mySMESHGUI;               /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;           /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;           /* User shape selection */
     SVTK_Selector*                mySelector;
 
     QWidget*                      myEditCurrentArgument;
index 3584bae23b4e0ac1f2718af76da2be7b7da2c499..58fc131792dc2a05ed39fa2f45a13f6f8ac94425 100644 (file)
@@ -35,7 +35,7 @@
 #include "SUIT_ResourceMgr.h"
 #include "SUIT_OverrideCursor.h"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SALOMEDSClient_Study.hxx"
 #include "SALOME_ListIO.hxx"
 
index 49db8c13a5224a250d1869e63307a3367a47b7b4..4ff11f1d9c3ea6789eff61fcd9af904c04d656b4 100644 (file)
@@ -37,7 +37,7 @@ class QLabel;
 class QPushButton;
 class QWidgetStack;
 
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SMESHGUI;
 
 class SMESHGUI_MeshInfosDlg : public QDialog
@@ -64,7 +64,7 @@ private slots:
 
 private:
     SMESHGUI*               mySMESHGUI;
-    SalomeApp_SelectionMgr* mySelectionMgr; 
+    LightApp_SelectionMgr*  mySelectionMgr; 
     bool                    myStartSelection;
     bool                    myIsActiveWindow;
 
index f7d370d9e880a3ca668902f65341d209838e018e..c5b03f9b08076bbef387363b18d8a88ab1861f4a 100644 (file)
@@ -33,8 +33,8 @@
 #include "SALOMEDS_SObject.hxx"
 
 
-#include "SalomeApp_SelectionMgr.h"
-#include "SalomeApp_UpdateFlags.h"
+#include "LightApp_SelectionMgr.h"
+#include "LightApp_UpdateFlags.h"
 #include "SUIT_MessageBox.h"
 #include "SUIT_Desktop.h"
 #include "SUIT_OverrideCursor.h"
@@ -80,10 +80,10 @@ SMESHGUI_MeshOp::~SMESHGUI_MeshOp()
 //================================================================================
 /*!
  * \brief Gets dialog of this operation
-  * \retval SalomeApp_Dialog* - pointer to dialog of this operation
+  * \retval LightApp_Dialog* - pointer to dialog of this operation
 */
 //================================================================================
-SalomeApp_Dialog* SMESHGUI_MeshOp::dlg() const
+LightApp_Dialog* SMESHGUI_MeshOp::dlg() const
 {
   return myDlg;
 }
index 9fd854e4c8acc3ebdf98859ec169b458e18bb0bf..b79f676437ab7f2d8e4a12935d21ce131ed51ceb 100644 (file)
@@ -40,7 +40,7 @@ public:
   SMESHGUI_MeshOp( const bool theToCreate, const bool theIsMesh = true );
   virtual ~SMESHGUI_MeshOp();
   
-  virtual SalomeApp_Dialog*      dlg() const;  
+  virtual LightApp_Dialog*       dlg() const;  
 
 protected:
   virtual void                   startOperation();
index 8279690189978e54ab23682037eec908084f9c58..21db972aa9133cef0f3edcf4d446a1d5410b22bf 100755 (executable)
@@ -47,7 +47,7 @@
 #include "SUIT_Desktop.h"
 #include "SUIT_FileDlg.h"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SalomeApp_Tools.h"
 #include "SalomeApp_Study.h"
 
index c09ab443c1316808b8980d95a38a9eb160e91a23..106dc8b27717173f069e4ced20608d7013c439e5 100755 (executable)
@@ -40,7 +40,7 @@ class QFrame;
 class QLineEdit;
 class SMESHGUI_SpinBox;
 class QPushButton;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class QRadioButton;
 class QCheckBox;
 class QButtonGroup;
@@ -157,7 +157,7 @@ private:
 
   SMESHGUI*                           mySMESHGUI;
   SVTK_Selector*                      mySelector;
-  SalomeApp_SelectionMgr*             mySelectionMgr;
+  LightApp_SelectionMgr*              mySelectionMgr;
   int                                 mySelInput;
   int                                 myNbPoints;
   int                                 myType;
index 1a366bd09f94de9526f3c78314549333691fb38b..cc1be069716b21e1e66ec3b158ac734484f68b72 100644 (file)
@@ -39,7 +39,7 @@
 #include "SMDS_Mesh.hxx"
 #include "SMDS_MeshNode.hxx"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SUIT_ResourceMgr.h"
 #include "SUIT_Desktop.h"
 
index aa4d51d96655673b70241b136673cb1b4af8e5ed..d115e52ff8e222d38108c3beeb25bee6fbb429bb 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_MOVE_NODES_H
 #define DIALOGBOX_MOVE_NODES_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include <qdialog.h>
 
@@ -96,7 +96,7 @@ private:
   SMESHGUI_SpinBox*             myY;
   SMESHGUI_SpinBox*             myZ;
 
-  SalomeApp_SelectionMgr*       mySelectionMgr;
+  LightApp_SelectionMgr*        mySelectionMgr;
   SVTK_Selector*                mySelector;
   SMESHGUI*                     mySMESHGUI;
   
index 2887e3c592a1ba96eb12fbe264bb06f0fa56cbcd..ac7e5969bbd767e5b411e46d910f81883b9d870a 100755 (executable)
@@ -44,7 +44,7 @@
 #include "SUIT_ResourceMgr.h"
 #include "SUIT_Desktop.h"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SALOME_ListIO.hxx"
 #include "SALOME_ListIteratorOfListIO.hxx"
 
index e66ebc0f24c20b330f8863b423306e7f80397be5..5e6c663268867ea8e5c1bd2bb7c19bd9a97b8c02 100755 (executable)
@@ -43,7 +43,7 @@ class SMESHGUI_SpinBox;
 
 class SMESH_Actor;
 
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SALOME_Actor;
 class SVTK_Selector;
 class SVTK_ViewWindow;
@@ -124,7 +124,7 @@ protected:
   SMESH_Actor*              myActor;
   SMESH::SMESH_Mesh_var     myMesh;
 
-  SalomeApp_SelectionMgr*   mySelectionMgr;
+  LightApp_SelectionMgr*    mySelectionMgr;
   SVTK_Selector*            mySelector;
   SMESHGUI*                 mySMESHGUI;
 
index 3f20596c5afcc88d9693e344c939456d0a73d884..55b31e524992ad655dae41f74183e459bf5d2f75 100644 (file)
@@ -49,7 +49,7 @@
 #include "SUIT_Desktop.h"
 
 #include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SVTK_Selector.h"
 #include "SVTK_ViewWindow.h"
index e7da8a68631df014c59333bcb8daad6beb99a963..4ec0005a093285e5cfddc84e873c673d7afe90a6 100644 (file)
@@ -47,7 +47,7 @@ class SMESHGUI;
 class SVTK_Selector;
 class SVTK_ViewWindow;
 class SMESHGUI_SpinBox;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 
 namespace SMESH{
   struct TNodeSimulation;
@@ -74,7 +74,7 @@ public:
     ~SMESHGUI_NodesDlg();
 
 private:
-    SalomeApp_SelectionMgr* mySelectionMgr;
+    LightApp_SelectionMgr*  mySelectionMgr;
     SVTK_Selector*                mySelector;
     SMESHGUI*               mySMESHGUI;
 
index c26f5f69ee5d7139fb9a09ab0e9c225601f1f142..562f4da80b4f97eb8b8a912d71adbf01a7830b33 100755 (executable)
@@ -29,7 +29,7 @@
 // Purpose : Constructor
 //=======================================================================
 SMESHGUI_Operation::SMESHGUI_Operation()
-: SalomeApp_Operation()
+: LightApp_Operation()
 {
 }
 
@@ -79,7 +79,7 @@ void SMESHGUI_Operation::startOperation()
     initDialog();
   }
 
-  SalomeApp_Operation::startOperation();
+  LightApp_Operation::startOperation();
 }
 
 //=======================================================================
@@ -88,7 +88,7 @@ void SMESHGUI_Operation::startOperation()
 //=======================================================================
 bool SMESHGUI_Operation::isReadyToStart() const
 {
-  if ( !SalomeApp_Operation::isReadyToStart() )
+  if ( !LightApp_Operation::isReadyToStart() )
     return false;
   else if ( getSMESHGUI() == 0 )
   {
@@ -108,7 +108,7 @@ bool SMESHGUI_Operation::isReadyToStart() const
 //=======================================================================
 void SMESHGUI_Operation::setDialogActive( const bool active )
 {
-  SalomeApp_Operation::setDialogActive( active );
+  LightApp_Operation::setDialogActive( active );
 
   SMESHGUI_Dialog* d = dynamic_cast<SMESHGUI_Dialog*>( dlg() );
   if( d )
index 3bc76d4f2a5a4c8109cd1d3e9ccc8fa5377e34df..181cb2cc7caeddaeef95fcfd63fd1f879d032ad4 100755 (executable)
@@ -12,7 +12,7 @@
 #ifndef SMESHGUI_Operation_H
 #define SMESHGUI_Operation_H
 
-#include <SalomeApp_Operation.h>
+#include <LightApp_Operation.h>
 #include <SALOMEDSClient.hxx>
 
 class SMESHGUI;
@@ -22,7 +22,7 @@ class SMESHGUI;
   Description : Base class for all SMESH operations
 */
 
-class SMESHGUI_Operation : public SalomeApp_Operation
+class SMESHGUI_Operation : public LightApp_Operation
 {
   Q_OBJECT
 
index d9ca05180d3eda82a3fa1131ff4c2798682cd325..e06f880b94ada68ddb67d27394eecd8f70e2501b 100644 (file)
@@ -37,7 +37,7 @@
 #include "SUIT_Desktop.h"
 #include "SUIT_ResourceMgr.h"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SALOME_ListIO.hxx"
 
 #include <QtxDblSpinBox.h>
index 75fb1e4e44a7fdc2ef556e974c121c45e5e779b1..5d4dce8a91be309103cbebeb11139ff23116bbc3 100644 (file)
@@ -45,7 +45,7 @@ class SMESHGUI;
 
 class QtxDblSpinBox;
 
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 
 class SMESH_Actor;
 
@@ -76,7 +76,7 @@ protected slots:
 
 private:
   SMESHGUI*                mySMESHGUI;
-  SalomeApp_SelectionMgr*  mySelectionMgr;
+  LightApp_SelectionMgr*   mySelectionMgr;
   SMESH_Actor*             myActor;
   double                   myIniX, myIniY, myIniW, myIniH;
   int                      myIniOrientation;
index 4c9b62b1ba238ccc6cfcde99de146394125c3ff9..8300d124c65633fefd9e2483bb83e0a3ed62a38b 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_REMOVE_ELEMENTS_H
 #define DIALOGBOX_REMOVE_ELEMENTS_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 // QT Includes
 #include <qvariant.h>
@@ -76,7 +76,7 @@ private:
     void enterEvent ( QEvent * ) ;                          /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                        /* ESC key */
 
-    SalomeApp_SelectionMgr*       mySelectionMgr;
+    LightApp_SelectionMgr*        mySelectionMgr;
     SVTK_Selector*                mySelector;
     SMESHGUI*                     mySMESHGUI;
 
index e0a89b00d81a372d66ee1afc1b30e8a32d344dba..68fb7817f2f00e4539a782683c3df5fa5e5a5c1c 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_REMOVE_NODES_H
 #define DIALOGBOX_REMOVE_NODES_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 // QT Includes
 #include <qvariant.h>
@@ -79,7 +79,7 @@ private:
     void enterEvent ( QEvent * ) ;                         /* mouse enter the QWidget */
     void hideEvent ( QHideEvent * );                       /* ESC key */
 
-    SalomeApp_SelectionMgr*       mySelectionMgr;
+    LightApp_SelectionMgr*        mySelectionMgr;
     SVTK_Selector*                mySelector;
     SMESHGUI*                     mySMESHGUI;
 
index 22e5fc6172d8d85859a3d6cf9950dffa166fa4a2..50932fdbc650bcac7826408ad56086c33ce78d11 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_RENUMBERING_H
 #define DIALOGBOX_RENUMBERING_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 //#include "SMESH_TypeFilter.hxx"
 #include "SUIT_SelectionFilter.h"
 
@@ -74,7 +74,7 @@ private:
     void hideEvent ( QHideEvent * );                       /* ESC key */
     
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     int                           myConstructorId;         /* Current constructor id = radio button id */
     QLineEdit*                    myEditCurrentArgument;   /* Current  LineEdit */
 
index 31912fa8a0910c2732bdcf589a1b825fd648b750..dc1da869d41c7b294aa76f351d2c80c60be4c434 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_REVOLUTION_H
 #define DIALOGBOX_REVOLUTION_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SMESH_LogicalFilter.hxx"
 
@@ -82,7 +82,7 @@ private:
     bool IsAxisOk();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     int                           myNbOkElements;          /* to check when elements are defined */
     QString                       myElementsId;
     QWidget*                      myEditCurrentArgument;   /* Current  argument */
index 7e71856d17266e66da6f77d26fe6c8ca201c205f..75a263154773231b4f4ab56389813972ec278796 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_ROTATION_H
 #define DIALOGBOX_ROTATION_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SMESH_LogicalFilter.hxx"
 
@@ -80,7 +80,7 @@ private:
     bool IsAxisOk();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     int                           myNbOkElements;          /* to check when elements are defined */
     QString                       myElementsId;
     SVTK_Selector*                mySelector;
index 1b281d27f2fbe22edd697f66034c1d1b247bd84f..df576fdabc957ee322671dfd54549e2b0a0edce0 100644 (file)
@@ -8,9 +8,9 @@
 #include "SMESH_Type.h"
 #include "SMESH_Actor.h"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SalomeApp_Study.h"
-#include "SalomeApp_VTKSelector.h"
+#include "LightApp_VTKSelector.h"
 
 #include "SUIT_Session.h"
 
@@ -25,7 +25,7 @@
 //purpose  : 
 //=======================================================================
 SMESHGUI_Selection::SMESHGUI_Selection()
-: SalomeApp_Selection()
+: LightApp_Selection()
 {
 }
 
@@ -41,13 +41,16 @@ SMESHGUI_Selection::~SMESHGUI_Selection()
 //function : init
 //purpose  : 
 //=======================================================================
-void SMESHGUI_Selection::init( const QString& client, SalomeApp_SelectionMgr* mgr )
+void SMESHGUI_Selection::init( const QString& client, LightApp_SelectionMgr* mgr )
 {
-  SalomeApp_Selection::init( client, mgr );
+  LightApp_Selection::init( client, mgr );
 
   if( mgr && study() )
   {
-    _PTR(Study) aStudy = study()->studyDS();
+    SalomeApp_Study* aSStudy = dynamic_cast<SalomeApp_Study*>(study());
+    if (!aSStudy)
+      return;
+    _PTR(Study) aStudy = aSStudy->studyDS();
 
     for( int i=0, n=count(); i<n; i++ )
       myTypes.append( typeName( type( entry( i ), aStudy ) ) );
@@ -58,10 +61,10 @@ void SMESHGUI_Selection::init( const QString& client, SalomeApp_SelectionMgr* mg
 //function : processOwner
 //purpose  : 
 //=======================================================================
-void SMESHGUI_Selection::processOwner( const SalomeApp_DataOwner* ow )
+void SMESHGUI_Selection::processOwner( const LightApp_DataOwner* ow )
 {
-  const SalomeApp_SVTKDataOwner* owner = 
-    dynamic_cast<const SalomeApp_SVTKDataOwner*> ( ow );
+  const LightApp_SVTKDataOwner* owner = 
+    dynamic_cast<const LightApp_SVTKDataOwner*> ( ow );
   if( owner )
     myActors.append( dynamic_cast<SMESH_Actor*>( owner->GetActor() ) );
   else
@@ -95,7 +98,7 @@ QtxValue SMESHGUI_Selection::param( const int ind, const QString& p ) const
   if( val.isValid() )
     return val;
   else
-    return SalomeApp_Selection::param( ind, p );
+    return LightApp_Selection::param( ind, p );
 }
 
 //=======================================================================
@@ -267,7 +270,7 @@ QVariant SMESHGUI_Selection::isComputable( int ind ) const
   if ( ind >= 0 && ind < myTypes.count() && myTypes[ind] != "Unknown" )
   {
 /*    Handle(SALOME_InteractiveObject) io =
-      static_cast<SalomeApp_DataOwner*>( myDataOwners[ ind ].get() )->IO();
+      static_cast<LightApp_DataOwner*>( myDataOwners[ ind ].get() )->IO();
     if ( !io.IsNull() ) {
       SMESH::SMESH_Mesh_var mesh = SMESH::GetMeshByIO(io) ; // m,sm,gr->m
       if ( !mesh->_is_nil() ) {*/
index 833dde674e894f4a5277ee2c0ef549945f8de30b..5f2e05fb6000dca218bb480bf0105acc353135ff 100644 (file)
 #ifndef SMESHGUI_SELECTION_HeaderFile
 #define SMESHGUI_SELECTION_HeaderFile
 
-#include "SalomeApp_Selection.h"
+#include "LightApp_Selection.h"
 #include "SALOMEDSClient_definitions.hxx"
 
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SALOMEDSClient_Study;
-class SalomeApp_DataOwner;
+class LightApp_DataOwner;
 class SMESH_Actor;
 
-class SMESHGUI_Selection : public SalomeApp_Selection
+class SMESHGUI_Selection : public LightApp_Selection
 {
 public:
   SMESHGUI_Selection();
   virtual ~SMESHGUI_Selection();
 
-  virtual void     init( const QString&, SalomeApp_SelectionMgr* );
+  virtual void     init( const QString&, LightApp_SelectionMgr* );
   virtual QtxValue param( const int , const QString& paramName ) const;
-  virtual void     processOwner( const SalomeApp_DataOwner* );
+  virtual void     processOwner( const LightApp_DataOwner* );
 
   // got from object, not from actor
   virtual int numberOfNodes( int ind ) const;
index ec170a047a62f69df7d969b28b4ecc00a1cafe90..b43fcb120c73b3b9e38753bb49064c0bf3e9857d 100644 (file)
@@ -29,9 +29,9 @@
 #include <SMESHGUI_Selection.h>
 #include <SMESHGUI.h>
 #include <SUIT_SelectionFilter.h>
-#include <SalomeApp_SelectionMgr.h>
+#include <LightApp_SelectionMgr.h>
 #include <SalomeApp_Study.h>
-#include <SalomeApp_VTKSelector.h>
+#include <LightApp_VTKSelector.h>
 #include <SVTK_ViewWindow.h>
 #include <SVTK_ViewModel.h>
 #include <SVTK_Selector.h>
@@ -48,7 +48,7 @@
 /*
   Class       : SMESHGUI_SelectionOp
   Description : Base operation for all operations using object selection in viewer or objectbrowser
-                through common widgets created by SalomeApp_Dialog::createObject
+                through common widgets created by LightApp_Dialog::createObject
 */
 
 //=================================================================================
@@ -101,7 +101,7 @@ void SMESHGUI_SelectionOp::startOperation()
 //=================================================================================
 void SMESHGUI_SelectionOp::removeCustomFilters() const
 {
-  SalomeApp_SelectionMgr* mgr = selectionMgr();
+  LightApp_SelectionMgr* mgr = selectionMgr();
   if( !mgr )
     return;
     
@@ -156,7 +156,7 @@ void SMESHGUI_SelectionOp::selectionDone()
   }
     
   QStringList names, ids;
-  SalomeApp_Dialog::TypesList types;
+  LightApp_Dialog::TypesList types;
   selected( names, types, ids );
   dlg()->selectObject( names, types, ids );
 }
@@ -176,7 +176,7 @@ SUIT_SelectionFilter* SMESHGUI_SelectionOp::createFilter( const int ) const
 //=================================================================================
 void SMESHGUI_SelectionOp::onActivateObject( int id )
 {
-  SalomeApp_SelectionMgr* mgr = selectionMgr();
+  LightApp_SelectionMgr* mgr = selectionMgr();
   if( !mgr )
     return;
     
@@ -195,7 +195,7 @@ void SMESHGUI_SelectionOp::onActivateObject( int id )
 //=================================================================================
 void SMESHGUI_SelectionOp::onDeactivateObject( int id )
 {
-  SalomeApp_SelectionMgr* mgr = selectionMgr();
+  LightApp_SelectionMgr* mgr = selectionMgr();
   if( mgr && myFilters.contains( id ) && myFilters[ id ] )
     mgr->removeFilter( myFilters[ id ] );
 }
@@ -356,7 +356,7 @@ int SMESHGUI_SelectionOp::typeById( const QString& str, const EntityType objtype
 // Purpose : Get names, types and ids of selected objects
 //=======================================================================
 void SMESHGUI_SelectionOp::selected( QStringList& names,
-                                     SalomeApp_Dialog::TypesList& types,
+                                     LightApp_Dialog::TypesList& types,
                                      QStringList& ids ) const
 {
 /*  SUIT_DataOwnerPtrList list; selectionMgr()->selected( list );
@@ -364,8 +364,8 @@ void SMESHGUI_SelectionOp::selected( QStringList& names,
                                         aLast = list.end();
   for( ; anIt!=aLast; anIt++ )
   {
-    SalomeApp_DataOwner* owner = dynamic_cast<SalomeApp_DataOwner*>( (*anIt).operator->() );
-    SalomeApp_SVTKDataOwner* vtkowner = dynamic_cast<SalomeApp_SVTKDataOwner*>( (*anIt).operator->() );
+    LightApp_DataOwner* owner = dynamic_cast<LightApp_DataOwner*>( (*anIt).operator->() );
+    LightApp_SVTKDataOwner* vtkowner = dynamic_cast<LightApp_SVTKDataOwner*>( (*anIt).operator->() );
 
     if( vtkowner )
     {
@@ -491,7 +491,7 @@ void SMESHGUI_SelectionOp::onTextChanged( int, const QStringList& list )
     selector()->AddOrRemoveIndex( sel.First(), newIndices, false );
     highlight( sel.First(), true, true );
 
-    QStringList names, _ids; SalomeApp_Dialog::TypesList types;
+    QStringList names, _ids; LightApp_Dialog::TypesList types;
     selected( names, types, _ids );
     dlg()->selectObject( names, types, _ids, false );
 }
index 5dde0a05933ce789052c709e4ff86c562be83372..bb1a05b6619340ea877b4e2271fc85ea9578035b 100644 (file)
@@ -45,7 +45,7 @@ class SMESH_Actor;
 /*
   Class       : SMESHGUI_SelectionOp
   Description : Base operation for all operations using object selection in viewer or objectbrowser
-                through common widgets created by SalomeApp_Dialog::createObject
+                through common widgets created by LightApp_Dialog::createObject
 */
 class SMESHGUI_SelectionOp : public SMESHGUI_Operation
 { 
index 6a800d6acb1562c6f3c23813df06a4ac93df7c63..425a928532ca81408375d89bacef893487fb6f0b 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_SEWING_H
 #define DIALOGBOX_SEWING_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 // QT Includes
 #include <qdialog.h>
@@ -76,7 +76,7 @@ private:
     bool IsValid();
     
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     int                           myOk1, myOk2, myOk3, myOk4, myOk5, myOk6;    
     QLineEdit*                    myEditCurrentArgument;   /* Current  LineEdit */
     SVTK_Selector*                mySelector;
index 11b9a66ba84ea765fccc6fb0a5cab8586da7cb89..2787ba3cb24105c1af33a687ad8f0892aeb654c8 100755 (executable)
@@ -36,7 +36,7 @@
 #include "SMESH_Actor.h"
 #include "SMDS_Mesh.hxx"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SUIT_ResourceMgr.h"
 #include "SUIT_MessageBox.h"
 #include "SUIT_Desktop.h"
index 01f724a4c135ef3480ddfbebd1f7697bddb543f0..6a1ddc7d275890585b112ac9f3791dea2cd24b2f 100755 (executable)
@@ -42,7 +42,7 @@ class SMESHGUI;
 class SMESH_Actor;
 class SVTK_Selector;
 class SVTK_ViewWindow;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 
 /*!
  *  Class       : SMESHGUI_SingleEditDlg
@@ -88,7 +88,7 @@ protected:
   QLineEdit*              myEdge;
   SMESH_Actor*            myActor;
 
-  SalomeApp_SelectionMgr* mySelectionMgr;
+  LightApp_SelectionMgr*  mySelectionMgr;
   SVTK_Selector*          mySelector;
   SMESHGUI*               mySMESHGUI;
 };
index 32dc80513c93a60bb930bc5f3ac21b3a2955f54e..5cccb1b223fff9357bd06ca35d704e6b71ec9da1 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_SMOOTHING_H
 #define DIALOGBOX_SMOOTHING_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SMESH_LogicalFilter.hxx"
 
@@ -81,7 +81,7 @@ private:
     void hideEvent (QHideEvent*);                          /* ESC key */
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     QString                       myElementsId;
     int                           myNbOkElements;          /* to check when elements are defined */
     int                           myNbOkNodes;             /* to check when fixed nodes are defined */
index 8960524b3d909d19d37506fff201b059d381bc6a..30b5eb0ea49ff523b5c9c8cb4cf7a2d5e8ac73bb 100644 (file)
@@ -42,7 +42,7 @@
 #include "SUIT_Session.h"
 #include "SUIT_OverrideCursor.h"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SALOME_ListIO.hxx"
 
 #include "utilities.h"
index 7fcbdc239b3e4c238f8ee1c2d8580b7fbbbb0287..28a6dfbc71eb40808fd7433223df8514f4b7a1c7 100644 (file)
@@ -40,7 +40,7 @@ class QLabel;
 class QPushButton;
 class QLineEdit;
 class QTextBrowser;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SMESHGUI;
 
 
@@ -65,7 +65,7 @@ private slots:
 
 private:
     SMESHGUI*                mySMESHGUI;
-    SalomeApp_SelectionMgr*  mySelectionMgr; 
+    LightApp_SelectionMgr*   mySelectionMgr; 
     bool                     myStartSelection;
     bool                     myIsActiveWindow;
     
index b09ad5e46a7486cac9bad979863ec8a3957316ce..ba49ca860fd63dca2e54c3d264242d6d164ee647 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_SYMMETRY_H
 #define DIALOGBOX_SYMMETRY_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SMESH_LogicalFilter.hxx"
 
@@ -80,7 +80,7 @@ private:
     bool IsMirrorOk();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     int                           myNbOkElements;          /* to check when elements are defined */
     QString                       myElementsId;
     SVTK_Selector*                mySelector;
index 117a71b428efb5cbeaacdcebd194cfb2b5aae233..a101c7182a5e2ddf86cc510f1977187d0545c5a9 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef DIALOGBOX_TRANSLATION_H
 #define DIALOGBOX_TRANSLATION_H
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SMESH_LogicalFilter.hxx"
 
@@ -78,7 +78,7 @@ private:
     int GetConstructorId();
 
     SMESHGUI*                     mySMESHGUI;              /* Current SMESHGUI object */
-    SalomeApp_SelectionMgr*       mySelectionMgr;          /* User shape selection */
+    LightApp_SelectionMgr*        mySelectionMgr;          /* User shape selection */
     QString                       myElementsId;
     int                           myNbOkElements;          /* to check when elements are defined */
 
index 283306aa4e90479e82792f8ed42ebaaacd63bac8..b390e717a07e21c9bd6cd8fe1bed05ed776d215f 100644 (file)
@@ -41,7 +41,7 @@
 #include "SALOME_InteractiveObject.hxx"
 
 #include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SVTK_ViewWindow.h"
 
index c1cced61e43939e055f4a7aeee712b0dc6ec535a..d41385430ee75b7fcea946bc92d4adc8b62bbb4d 100644 (file)
@@ -35,7 +35,7 @@
 class QLabel;
 class QPushButton;
 class QSlider;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SVTK_Selector;
 class SVTK_ViewWindow;
 class SMESHGUI;
@@ -59,7 +59,7 @@ public:
 private :
 
   SMESHGUI*               mySMESHGUI;
-  SalomeApp_SelectionMgr* mySelectionMgr;
+  LightApp_SelectionMgr*  mySelectionMgr;
   SVTK_ViewWindow*        myViewWindow;
 
   QPushButton*      buttonOk;
index 78b99746048d2eec7d9af961e425f9035fb68ec2..94714bcd7aabd3cae95a7ded77c6adf0f6d266db 100644 (file)
@@ -28,7 +28,7 @@
 #include "SUIT_Application.h"
 #include "SUIT_Session.h"
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 #include "SalomeApp_Application.h"
 #include "SalomeApp_Module.h"
 #include "SalomeApp_Study.h"
@@ -50,7 +50,7 @@ namespace SMESH{
     return theModule->application()->desktop();
   }
 
-  SalomeApp_SelectionMgr*
+  LightApp_SelectionMgr*
   GetSelectionMgr(const SalomeApp_Module* theModule)
   {
     return theModule->getApp()->selectionMgr();
@@ -69,7 +69,7 @@ namespace SMESH{
   }
 
   CORBA::Object_var 
-  DataOwnerToObject(const SalomeApp_DataOwnerPtr& theOwner)
+  DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner)
   {
     CORBA::Object_var anObj;
     if(theOwner){
@@ -195,7 +195,7 @@ namespace SMESH{
     return app->orb()->string_to_object(theIOR);
   }
 
-  int GetNameOfSelectedIObjects(SalomeApp_SelectionMgr* theMgr, QString& theName)
+  int GetNameOfSelectedIObjects(LightApp_SelectionMgr* theMgr, QString& theName)
   {
     if (!theMgr)
       return 0;
index 69e1f61604e0e3f1559fbe426e041536177e9825..83278e4a5018a462ff05cfb44c8ac68f385c0ecd 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "SALOMEDSClient_definitions.hxx"
 #include "SALOME_InteractiveObject.hxx"
-#include "SalomeApp_DataOwner.h"
+#include "LightApp_DataOwner.h"
 
 class QString;
 
@@ -40,14 +40,14 @@ class SALOMEDSClient_SObject;
 
 class SalomeApp_Study;
 class SalomeApp_Module;
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 
 namespace SMESH {
 
   SUIT_Desktop*
   GetDesktop(const CAM_Module* theModule);
 
-  SalomeApp_SelectionMgr*
+  LightApp_SelectionMgr*
   GetSelectionMgr(const SalomeApp_Module* theModule);
 
   SalomeApp_Study*
@@ -59,10 +59,10 @@ namespace SMESH {
   _PTR(Study)
   GetCStudy(const SalomeApp_Study* theStudy);
 
-  CORBA::Object_var DataOwnerToObject(const SalomeApp_DataOwnerPtr& theOwner);
+  CORBA::Object_var DataOwnerToObject(const LightApp_DataOwnerPtr& theOwner);
 
   template<class TInterface> typename TInterface::_var_type
-    DataOwnerToInterface(const SalomeApp_DataOwnerPtr& theDataOwner)
+    DataOwnerToInterface(const LightApp_DataOwnerPtr& theDataOwner)
     {
       CORBA::Object_var anObj = DataOwnerToObject(theDataOwner);
       if(!CORBA::is_nil(anObj))
@@ -118,7 +118,7 @@ namespace SMESH {
       return TInterface::_nil();
     }
 
-  int GetNameOfSelectedIObjects (SalomeApp_SelectionMgr*, QString& theName);
+  int GetNameOfSelectedIObjects (LightApp_SelectionMgr*, QString& theName);
 
   _PTR(SObject) GetMeshOrSubmesh (_PTR(SObject) theSObject);
 
index c9141ec82f7b93eda661ae60c9d11522313002c1..01cf071d8ee77cda2c44b4345fc2246bd886be09 100644 (file)
@@ -31,7 +31,7 @@
 #include <SUIT_Session.h>
 #include <SUIT_Study.h>
 
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
 
 #include "SVTK_Selector.h"
 #include "SVTK_ViewModel.h"
@@ -53,7 +53,7 @@
 #include "SMESH_ObjectDef.h"
 
 #include <SalomeApp_Application.h>
-#include <SalomeApp_SelectionMgr.h>
+#include <LightApp_SelectionMgr.h>
 #include <SalomeApp_Study.h>
 
 #include <SALOMEDSClient_Study.hxx>
@@ -373,7 +373,7 @@ namespace SMESH{
 
   void UpdateView(){
     if(SVTK_ViewWindow* aWnd = SMESH::GetCurrentVtkView()){
-      SalomeApp_SelectionMgr* mgr = SMESHGUI::selectionMgr();
+      LightApp_SelectionMgr* mgr = SMESHGUI::selectionMgr();
       SALOME_ListIO selected; mgr->selectedObjects( selected );
 
       if( selected.Extent() == 0){
@@ -639,7 +639,7 @@ namespace SMESH{
   }
 
   //----------------------------------------------------------------------------
-  int GetNameOfSelectedNodes(SalomeApp_SelectionMgr *theMgr,
+  int GetNameOfSelectedNodes(LightApp_SelectionMgr *theMgr,
                             const Handle(SALOME_InteractiveObject)& theIO,
                             QString& theName)
   {
@@ -657,7 +657,7 @@ namespace SMESH{
     return -1;
   }
 
-  int GetNameOfSelectedNodes(SalomeApp_SelectionMgr *theMgr, QString& theName){
+  int GetNameOfSelectedNodes(LightApp_SelectionMgr *theMgr, QString& theName){
     theName = "";
     SALOME_ListIO selected; theMgr->selectedObjects( selected );
     if(selected.Extent() == 1){
@@ -668,7 +668,7 @@ namespace SMESH{
   }
 
 
-  int GetNameOfSelectedElements(SalomeApp_SelectionMgr *theMgr,
+  int GetNameOfSelectedElements(LightApp_SelectionMgr *theMgr,
                                const Handle(SALOME_InteractiveObject)& theIO,
                                QString& theName)
   {
@@ -692,7 +692,7 @@ namespace SMESH{
   }
 
 
-  int GetNameOfSelectedElements(SalomeApp_SelectionMgr *theMgr, QString& theName)
+  int GetNameOfSelectedElements(LightApp_SelectionMgr *theMgr, QString& theName)
   {
     theName = "";
     SALOME_ListIO selected; theMgr->selectedObjects( selected );
@@ -704,7 +704,7 @@ namespace SMESH{
     return -1;
   }
 
-  int GetSelected(SalomeApp_SelectionMgr*      theMgr,
+  int GetSelected(LightApp_SelectionMgr*       theMgr,
                  TColStd_IndexedMapOfInteger& theMap,
                  const bool                   theIsElement)
   {
@@ -722,7 +722,7 @@ namespace SMESH{
   }
 
 
-  int GetEdgeNodes( SalomeApp_SelectionMgr* theMgr, int& theId1, int& theId2 )
+  int GetEdgeNodes( LightApp_SelectionMgr* theMgr, int& theId1, int& theId2 )
   {
     SALOME_ListIO selected; theMgr->selectedObjects( selected );
 
index f94695cd58bd313e827965d3afc549aae22e2922..53754a31319517c2674148345d5c42928c8bd193 100644 (file)
@@ -38,7 +38,7 @@ class SVTK_InteractorStyle;
 class SVTK_ViewWindow;
 class SVTK_Selector;
 
-class SalomeApp_SelectionMgr;
+class LightApp_SelectionMgr;
 class SMESHGUI;
 
 #include <CORBA.h>
@@ -154,25 +154,25 @@ namespace SMESH{
                   int& theId2);
 
   //----------------------------------------------------------------------------
-  int GetNameOfSelectedNodes (SalomeApp_SelectionMgr*, 
+  int GetNameOfSelectedNodes (LightApp_SelectionMgr*, 
                              const Handle(SALOME_InteractiveObject)& theIO, 
                              QString& theName);
 
-  int GetNameOfSelectedNodes (SalomeApp_SelectionMgr*, 
+  int GetNameOfSelectedNodes (LightApp_SelectionMgr*, 
                              QString& aName);
 
-  int GetNameOfSelectedElements (SalomeApp_SelectionMgr*, 
+  int GetNameOfSelectedElements (LightApp_SelectionMgr*, 
                                 const Handle(SALOME_InteractiveObject)& theIO, 
                                 QString& theName);
 
-  int GetNameOfSelectedElements (SalomeApp_SelectionMgr*, 
+  int GetNameOfSelectedElements (LightApp_SelectionMgr*, 
                                 QString& aName);
 
-  int GetSelected (SalomeApp_SelectionMgr*, 
+  int GetSelected (LightApp_SelectionMgr*, 
                   TColStd_IndexedMapOfInteger& theMap, 
                   const bool theIsElement = true );
 
-  int GetEdgeNodes (SalomeApp_SelectionMgr*, int& theId1, int& theId2);
+  int GetEdgeNodes (LightApp_SelectionMgr*, int& theId1, int& theId2);
 
   void SetControlsPrecision (const long theVal);
 };