Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Public Attributes
TGetSelectedEvent Class Reference
Inheritance diagram for TGetSelectedEvent:
Inheritance graph
[legend]
Collaboration diagram for TGetSelectedEvent:
Collaboration graph
[legend]

List of all members.

Public Types

typedef QStringList TResult

Public Member Functions

 TGetSelectedEvent ()
virtual void Execute ()

Public Attributes

TResult myResult

Detailed Description

Definition at line 285 of file SALOMEGUI_Swig.cxx.


Member Typedef Documentation

typedef QStringList TGetSelectedEvent::TResult

Definition at line 288 of file SALOMEGUI_Swig.cxx.


Constructor & Destructor Documentation

Definition at line 290 of file SALOMEGUI_Swig.cxx.

{}

Member Function Documentation

virtual void TGetSelectedEvent::Execute ( ) [inline, virtual]

Definition at line 291 of file SALOMEGUI_Swig.cxx.

  {
    if ( LightApp_Application* anApp = getApplication() ) {
      LightApp_Study* aStudy  = dynamic_cast<LightApp_Study*>( anApp->activeStudy() ); // for sure!
      LightApp_SelectionMgr* aSelMgr = anApp->selectionMgr(); 
      if ( aStudy && aSelMgr ) {
        SUIT_DataOwnerPtrList aList;
        aSelMgr->selected( aList );

        for ( SUIT_DataOwnerPtrList::const_iterator itr = aList.begin(); 
              itr != aList.end(); ++itr ) {
          const LightApp_DataOwner* owner = 
            dynamic_cast<const LightApp_DataOwner*>( (*itr).operator->() );
          if( !owner )
            continue;
          QString entry = owner->entry();
          if( !myResult.contains( entry ) )
            myResult.append( entry );
        }
      }
    }
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 289 of file SALOMEGUI_Swig.cxx.


The documentation for this class was generated from the following file: