Back to index

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

List of all members.

Public Types

typedef QList< int > TResult

Public Member Functions

 TNeighbourViews (const int id)
virtual void Execute ()

Public Attributes

TResult myResult
int myWndId

Detailed Description

Definition at line 2886 of file SalomePyQt.cxx.


Member Typedef Documentation

typedef QList<int> TNeighbourViews::TResult

Definition at line 2889 of file SalomePyQt.cxx.


Constructor & Destructor Documentation

TNeighbourViews::TNeighbourViews ( const int  id) [inline]

Definition at line 2892 of file SalomePyQt.cxx.

    : myWndId( id ) {}

Member Function Documentation

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

Definition at line 2894 of file SalomePyQt.cxx.

  {
    myResult.clear();
    SUIT_ViewWindow* wnd = getWnd( myWndId );
    if ( wnd )
    {
      QtxWorkstack* wStack = dynamic_cast<STD_TabDesktop*>( 
        getApplication()->desktop() )->workstack();
      if ( wStack )
      {
        QWidgetList wgList = wStack->windowList( wnd );
        QWidget* wg;
        foreach ( wg, wgList )
        {
          SUIT_ViewWindow* tmpWnd = dynamic_cast<SUIT_ViewWindow*>( wg );
          if ( tmpWnd && tmpWnd != wnd )
            myResult.append( tmpWnd->getId() );
        }
      }
    }
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 2890 of file SalomePyQt.cxx.

Definition at line 2891 of file SalomePyQt.cxx.


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