Back to index

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

List of all members.

Public Types

typedef bool TResult

Public Member Functions

 TSplitView (const int id, const Orientation ori, const Action action)
virtual void Execute ()

Public Attributes

TResult myResult
int myWndId
Orientation myOri
Action myAction

Detailed Description

Definition at line 2779 of file SalomePyQt.cxx.


Member Typedef Documentation

typedef bool TSplitView::TResult

Definition at line 2782 of file SalomePyQt.cxx.


Constructor & Destructor Documentation

TSplitView::TSplitView ( const int  id,
const Orientation  ori,
const Action  action 
) [inline]

Definition at line 2787 of file SalomePyQt.cxx.

    : myResult( false ),
      myWndId( id ),
      myOri( ori ),
      myAction( action ) {}

Member Function Documentation

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

Definition at line 2794 of file SalomePyQt.cxx.

  {
    SUIT_ViewWindow* wnd = getWnd( myWndId );
    if ( wnd )
    {
      // activate view
      // wnd->setFocus(); ???

      // split workstack
      if ( getApplication() )
      {
        STD_TabDesktop* desk = 
          dynamic_cast<STD_TabDesktop*>( getApplication()->desktop() );
        if ( desk )
        {
          QtxWorkstack* wStack = desk->workstack();
          if ( wStack )
          {
            Qt::Orientation qtOri = 
              ( myOri == Horizontal ) ? Qt::Horizontal : Qt::Vertical;

            QtxWorkstack::SplitType sType;
            if ( myAction == MoveWidget )
              sType = QtxWorkstack::SplitMove;
            else if ( myAction == LeaveWidget )
              sType = QtxWorkstack::SplitStay;
            else 
              sType = QtxWorkstack::SplitAt;

            wStack->Split( wnd, qtOri, sType );
            myResult = true;
          }
        }
      }
    }
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 2786 of file SalomePyQt.cxx.

Definition at line 2785 of file SalomePyQt.cxx.

Definition at line 2783 of file SalomePyQt.cxx.

Definition at line 2784 of file SalomePyQt.cxx.


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