Use LightApp_SelectionMgr instead of SalomeApp_SelectionMgr.

This commit is contained in:
nds 2005-09-19 06:41:49 +00:00
parent 5438e91926
commit 7334408f37
37 changed files with 43 additions and 43 deletions

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <GeomFill_SectionGenerator.hxx> #include <GeomFill_SectionGenerator.hxx>
#include <GeomFill_Line.hxx> #include <GeomFill_Line.hxx>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <BRepPrimAPI_MakePrism.hxx> #include <BRepPrimAPI_MakePrism.hxx>
#include <BRepAdaptor_Curve.hxx> #include <BRepAdaptor_Curve.hxx>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <gp_Lin.hxx> #include <gp_Lin.hxx>
#include <BRepAdaptor_Curve.hxx> #include <BRepAdaptor_Curve.hxx>

View File

@ -36,7 +36,7 @@
#include "SUIT_MessageBox.h" #include "SUIT_MessageBox.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_Study.h" #include "SalomeApp_Study.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
GroupGUI* GroupGUI::myGUIObject = 0; GroupGUI* GroupGUI::myGUIObject = 0;
@ -105,7 +105,7 @@ bool GroupGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() ); SalomeApp_Application* app = dynamic_cast< SalomeApp_Application* >( SUIT_Session::session()->activeApplication() );
if ( app ) { if ( app ) {
SalomeApp_SelectionMgr* aSelMgr = app->selectionMgr(); LightApp_SelectionMgr* aSelMgr = app->selectionMgr();
if ( aSelMgr ) if ( aSelMgr )
aSelMgr->selectedObjects( aList ); aSelMgr->selectedObjects( aList );
} }

View File

@ -32,7 +32,7 @@
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_Study.h" #include "SalomeApp_Study.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "GEOMBase.h" #include "GEOMBase.h"
@ -541,7 +541,7 @@ void GroupGUI_GroupDlg::highlightSubShapes()
if ( myIdList->isSelected( ii ) ) if ( myIdList->isSelected( ii ) )
anIds.Add( myIdList->item( ii )->text().toInt() ); anIds.Add( myIdList->item( ii )->text().toInt() );
SalomeApp_SelectionMgr* aSelMgr = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(); LightApp_SelectionMgr* aSelMgr = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
aSelMgr->clearSelected(); aSelMgr->clearSelected();
aSelMgr->AddOrRemoveIndex( aSh->getIO(), anIds, false ); aSelMgr->AddOrRemoveIndex( aSh->getIO(), anIds, false );

View File

@ -32,7 +32,7 @@
#include "utilities.h" #include "utilities.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SalomeApp_Tools.h" #include "SalomeApp_Tools.h"
#include <BRep_Tool.hxx> #include <BRep_Tool.hxx>

View File

@ -32,7 +32,7 @@
#include "utilities.h" #include "utilities.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <TColStd_MapOfInteger.hxx> #include <TColStd_MapOfInteger.hxx>
#include <TopAbs_ShapeEnum.hxx> #include <TopAbs_ShapeEnum.hxx>

View File

@ -32,7 +32,7 @@
#include "GeometryGUI.h" #include "GeometryGUI.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SalomeApp_Tools.h" #include "SalomeApp_Tools.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SUIT_OverrideCursor.h" #include "SUIT_OverrideCursor.h"
@ -113,7 +113,7 @@ void MeasureGUI_Skeleton::Init()
connect( mySelBtn, SIGNAL( clicked() ), connect( mySelBtn, SIGNAL( clicked() ),
this, SLOT ( SetEditCurrentArgument() ) ); this, SLOT ( SetEditCurrentArgument() ) );
SalomeApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(); LightApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
if ( aSel ) if ( aSel )
connect( aSel, SIGNAL( currentSelectionChanged() ), connect( aSel, SIGNAL( currentSelectionChanged() ),
this, SLOT ( SelectionIntoArgument() ) ) ; this, SLOT ( SelectionIntoArgument() ) ) ;
@ -163,7 +163,7 @@ void MeasureGUI_Skeleton::DeactivateActiveDialog()
{ {
setEnabled( false ); setEnabled( false );
SalomeApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(); LightApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
if ( aSel ) if ( aSel )
disconnect( aSel, 0, this, 0 ); disconnect( aSel, 0, this, 0 );
@ -185,7 +185,7 @@ void MeasureGUI_Skeleton::ActivateThisDialog()
myGeomGUI->SetActiveDialogBox( ( QDialog* )this ); myGeomGUI->SetActiveDialogBox( ( QDialog* )this );
SalomeApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(); LightApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
if ( aSel ) if ( aSel )
connect( aSel, SIGNAL( currentSelectionChanged() ), connect( aSel, SIGNAL( currentSelectionChanged() ),
this, SLOT ( SelectionIntoArgument() ) ) ; this, SLOT ( SelectionIntoArgument() ) ) ;
@ -245,7 +245,7 @@ void MeasureGUI_Skeleton::processObject()
//================================================================================= //=================================================================================
void MeasureGUI_Skeleton::closeEvent( QCloseEvent* e ) void MeasureGUI_Skeleton::closeEvent( QCloseEvent* e )
{ {
SalomeApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(); LightApp_SelectionMgr* aSel = ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr();
if ( aSel ) if ( aSel )
disconnect( aSel, 0, this, 0 ); disconnect( aSel, 0, this, 0 );
QDialog::closeEvent( e ); QDialog::closeEvent( e );

View File

@ -32,7 +32,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>

View File

@ -33,7 +33,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "OCCViewer_ViewModel.h" #include "OCCViewer_ViewModel.h"
#include <TColStd_MapOfInteger.hxx> #include <TColStd_MapOfInteger.hxx>

View File

@ -33,7 +33,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "OCCViewer_ViewModel.h" #include "OCCViewer_ViewModel.h"
#include "qlabel.h" #include "qlabel.h"

View File

@ -30,7 +30,7 @@
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "utilities.h" #include "utilities.h"

View File

@ -34,7 +34,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qcheckbox.h> #include <qcheckbox.h>
#include <qcombobox.h> #include <qcombobox.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>

View File

@ -29,7 +29,7 @@
#include "RepairGUI_CloseContourDlg.h" #include "RepairGUI_CloseContourDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx" #include "SALOME_ListIteratorOfListIO.hxx"

View File

@ -29,7 +29,7 @@
#include "RepairGUI_DivideEdgeDlg.h" #include "RepairGUI_DivideEdgeDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx" #include "SALOME_ListIteratorOfListIO.hxx"

View File

@ -33,7 +33,7 @@
#include "GEOMImpl_Types.hxx" #include "GEOMImpl_Types.hxx"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include <TColStd_MapOfInteger.hxx> #include <TColStd_MapOfInteger.hxx>

View File

@ -29,7 +29,7 @@
#include "RepairGUI_FreeFacesDlg.h" #include "RepairGUI_FreeFacesDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SalomeApp_Tools.h" #include "SalomeApp_Tools.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"

View File

@ -32,7 +32,7 @@
#include "QtxDblSpinBox.h" #include "QtxDblSpinBox.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SalomeApp_Study.h" #include "SalomeApp_Study.h"
#include "SalomeApp_Tools.h" #include "SalomeApp_Tools.h"

View File

@ -29,7 +29,7 @@
#include "RepairGUI_RemoveHolesDlg.h" #include "RepairGUI_RemoveHolesDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SUIT_MessageBox.h" #include "SUIT_MessageBox.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"

View File

@ -29,7 +29,7 @@
#include "RepairGUI_RemoveIntWiresDlg.h" #include "RepairGUI_RemoveIntWiresDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx" #include "SALOME_ListIteratorOfListIO.hxx"

View File

@ -29,7 +29,7 @@
#include "RepairGUI_SewingDlg.h" #include "RepairGUI_SewingDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SUIT_MessageBox.h" #include "SUIT_MessageBox.h"
#include "SALOME_ListIteratorOfListIO.hxx" #include "SALOME_ListIteratorOfListIO.hxx"

View File

@ -31,7 +31,7 @@
#include "GEOMImpl_Types.hxx" #include "GEOMImpl_Types.hxx"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx" #include "SALOME_ListIteratorOfListIO.hxx"
#include "SALOME_ListIO.hxx" #include "SALOME_ListIO.hxx"

View File

@ -29,7 +29,7 @@
#include "RepairGUI_SuppressFacesDlg.h" #include "RepairGUI_SuppressFacesDlg.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SALOME_ListIteratorOfListIO.hxx" #include "SALOME_ListIteratorOfListIO.hxx"

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qcheckbox.h> #include <qcheckbox.h>
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qcheckbox.h> #include <qcheckbox.h>
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>
#include <qcheckbox.h> #include <qcheckbox.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>
#include <qcheckbox.h> #include <qcheckbox.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qcheckbox.h> #include <qcheckbox.h>
#include <qlabel.h> #include <qlabel.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qlabel.h> #include <qlabel.h>
#include <qcheckbox.h> #include <qcheckbox.h>

View File

@ -31,7 +31,7 @@
#include "SUIT_Desktop.h" #include "SUIT_Desktop.h"
#include "SUIT_Session.h" #include "SUIT_Session.h"
#include "SalomeApp_Application.h" #include "SalomeApp_Application.h"
#include "SalomeApp_SelectionMgr.h" #include "LightApp_SelectionMgr.h"
#include <qcheckbox.h> #include <qcheckbox.h>
#include <qlabel.h> #include <qlabel.h>