#include "STD_MDIDesktop.h"
#include "SalomeApp_Application.h"
#include "SalomeApp_Study.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "OB_Browser.h"
#include "QtxAction.h"
void SALOME_Selection::Clear()
{
class TEvent: public SALOME_Event {
- SalomeApp_SelectionMgr* mySelMgr;
+ LightApp_SelectionMgr* mySelMgr;
public:
- TEvent( SalomeApp_SelectionMgr* selMgr )
+ TEvent( LightApp_SelectionMgr* selMgr )
: mySelMgr( selMgr ) {}
virtual void Execute() {
if ( mySelMgr )
void SALOME_Selection::ClearFilters()
{
class TEvent: public SALOME_Event {
- SalomeApp_SelectionMgr* mySelMgr;
+ LightApp_SelectionMgr* mySelMgr;
public:
- TEvent( SalomeApp_SelectionMgr* selMgr )
+ TEvent( LightApp_SelectionMgr* selMgr )
: mySelMgr( selMgr ) {}
virtual void Execute() {
if ( mySelMgr )
#include "SalomeApp_Study.h"
#include "SalomeApp_Module.h"
#include "SalomeApp_DataObject.h"
-#include "SalomeApp_SelectionMgr.h"
+#include "LightApp_SelectionMgr.h"
#include "SALOME_Prs.h"
#include "SOCC_ViewModel.h"
#include "SVTK_ViewModel.h"
TSelectedCountEvent() : myResult( 0 ) {}
virtual void Execute() {
if ( SalomeApp_Application* anApp = getApplication() ) {
- SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
- SalomeApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
+ SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
+ LightApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
if ( aStudy && aSelMgr ) {
SALOME_ListIO anIOList;
aSelMgr->selectedObjects( anIOList );
TGetSelectedEvent( int theIndex ) : myIndex( theIndex ) {}
virtual void Execute() {
if ( SalomeApp_Application* anApp = getApplication() ) {
- SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
- SalomeApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
+ SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
+ LightApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
if ( aStudy && aSelMgr ) {
SALOME_ListIO anIOList;
aSelMgr->selectedObjects( anIOList );
TEvent( const char* theEntry ) : myEntry( theEntry ) {}
virtual void Execute() {
if ( SalomeApp_Application* anApp = getApplication() ) {
- SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
- SalomeApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
+ SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
+ LightApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
if ( aStudy && aSelMgr ) {
SALOME_ListIO anIOList;
anIOList.Append( new SALOME_InteractiveObject( myEntry, "", "" ) );
TEvent( const char* theEntry ) : myEntry( theEntry ) {}
virtual void Execute() {
if ( SalomeApp_Application* anApp = getApplication() ) {
- SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
- SalomeApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
+ SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
+ LightApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
if ( aStudy && aSelMgr ) {
SALOME_ListIO anIOList;
- // VSR: temporary solution, until SalomeApp_SelectionMgr::unsetSelectedObjects() method appears
+ // VSR: temporary solution, until LightApp_SelectionMgr::unsetSelectedObjects() method appears
// Lately this should be replaced by the following:
// anIOList.Append( new SALOME_InteractiveObject( myEntry, "", "" ) );
// aSelMgr->unsetSelectedObjects( anIOList );
TEvent() {}
virtual void Execute() {
if ( SalomeApp_Application* anApp = getApplication() ) {
- SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
- SalomeApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
+ SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( anApp->activeStudy() ); // for sure!
+ LightApp_SelectionMgr* aSelMgr = anApp->selectionMgr();
if ( aStudy && aSelMgr )
aSelMgr->clearSelected();
}