Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Public Attributes | Private Attributes
TIsInViewerEvent Class Reference
Inheritance diagram for TIsInViewerEvent:
Inheritance graph
Collaboration diagram for TIsInViewerEvent:
Collaboration graph

List of all members.

Public Types

typedef bool TResult

Public Member Functions

 TIsInViewerEvent (const char *theEntry)
virtual void Execute ()

Public Attributes

TResult myResult

Private Attributes

QString myEntry

Detailed Description

Definition at line 604 of file SALOMEGUI_Swig.cxx.

Member Typedef Documentation

Definition at line 608 of file SALOMEGUI_Swig.cxx.

Constructor & Destructor Documentation

TIsInViewerEvent::TIsInViewerEvent ( const char *  theEntry) [inline]

Definition at line 610 of file SALOMEGUI_Swig.cxx.

: myEntry( theEntry ), myResult( false ) {}

Member Function Documentation

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

Definition at line 611 of file SALOMEGUI_Swig.cxx.

    if ( LightApp_Application* anApp = getApplication() ) {
      SUIT_ViewWindow* window = anApp->desktop()->activeWindow();
      if ( window ) {
        SALOME_View* view = dynamic_cast<SALOME_View*>( window->getViewManager()->getViewModel() );
        if ( view ) {
          SALOME_Prs* aPrs = view->CreatePrs( myEntry.toLatin1() );
          myResult = !aPrs->IsNull();

Here is the call graph for this function:

Member Data Documentation

QString TIsInViewerEvent::myEntry [private]

Definition at line 606 of file SALOMEGUI_Swig.cxx.

Definition at line 609 of file SALOMEGUI_Swig.cxx.

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