Back to index

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

List of all members.

Public Types

typedef QList< int > TResult

Public Member Functions

 TFindViews (const QString &type)
virtual void Execute ()

Public Attributes

TResult myResult
QString myType

Detailed Description

Definition at line 2420 of file SalomePyQt.cxx.


Member Typedef Documentation

typedef QList<int> TFindViews::TResult

Definition at line 2423 of file SalomePyQt.cxx.


Constructor & Destructor Documentation

TFindViews::TFindViews ( const QString &  type) [inline]

Definition at line 2426 of file SalomePyQt.cxx.

    : myType( type ) {}

Member Function Documentation

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

Definition at line 2428 of file SalomePyQt.cxx.

  {
    myResult.clear();
    LightApp_Application* app  = getApplication();
    if ( app )
    {
      ViewManagerList vmList;
      app->viewManagers( myType, vmList );
      SUIT_ViewManager* viewMgr;
      foreach ( viewMgr, vmList )
      {
        QVector<SUIT_ViewWindow*> vec = viewMgr->getViews();
        for ( int i = 0, n = vec.size(); i < n; i++ )
        {
          SUIT_ViewWindow* wnd = vec[ i ];
          if ( wnd )
            myResult.append( wnd->getId() );
        }
      }
    }
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 2424 of file SalomePyQt.cxx.

Definition at line 2425 of file SalomePyQt.cxx.


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