Back to index

salome-gui  6.5.0
Public Member Functions | Private Attributes
CrTool Class Reference

List of all members.

Public Member Functions

 CrTool (const QString &tBar)
 CrTool (const int id, const int tBar, const int idx)
 CrTool (const int id, const QString &tBar, const int idx)
 CrTool (QAction *action, const int tbId, const int id, const int idx)
 CrTool (QAction *action, const QString &tBar, const int id, const int idx)
int execute (SALOME_PYQT_ModuleLight *module) const

Private Attributes

int myCase
QString myTbName
int myTbId
QAction * myAction
int myId
int myIndex

Detailed Description

Definition at line 1547 of file SalomePyQt.cxx.


Constructor & Destructor Documentation

CrTool::CrTool ( const QString &  tBar) [inline]

Definition at line 1550 of file SalomePyQt.cxx.

    : myCase( 0 ), myTbName( tBar ) {}
CrTool::CrTool ( const int  id,
const int  tBar,
const int  idx 
) [inline]

Definition at line 1552 of file SalomePyQt.cxx.

    : myCase( 1 ), myId( id ), myTbId( tBar ), myIndex( idx ) {}
CrTool::CrTool ( const int  id,
const QString &  tBar,
const int  idx 
) [inline]

Definition at line 1554 of file SalomePyQt.cxx.

    : myCase( 2 ), myId( id ), myTbName( tBar ), myIndex( idx ) {}
CrTool::CrTool ( QAction *  action,
const int  tbId,
const int  id,
const int  idx 
) [inline]

Definition at line 1556 of file SalomePyQt.cxx.

    : myCase( 3 ), myAction( action ), myTbId( tbId ), myId( id ), myIndex( idx ) {}
CrTool::CrTool ( QAction *  action,
const QString &  tBar,
const int  id,
const int  idx 
) [inline]

Definition at line 1558 of file SalomePyQt.cxx.

    : myCase( 4 ), myAction( action ), myTbName( tBar ), myId( id ), myIndex( idx ) {}

Member Function Documentation

int CrTool::execute ( SALOME_PYQT_ModuleLight module) const [inline]

Definition at line 1561 of file SalomePyQt.cxx.

  {
    if ( module ) {
      switch ( myCase ) {
      case 0:
        return module->createTool( myTbName );
      case 1:
        return module->createTool( myId, myTbId, myIndex );
      case 2:
        return module->createTool( myId, myTbName, myIndex );
      case 3:
        return module->createTool( myAction, myTbId, myId, myIndex );
      case 4:
        return module->createTool( myAction, myTbName, myId, myIndex );
      }
    }
    return -1;
  }

Here is the caller graph for this function:


Member Data Documentation

QAction* CrTool::myAction [private]

Definition at line 1583 of file SalomePyQt.cxx.

int CrTool::myCase [private]

Definition at line 1580 of file SalomePyQt.cxx.

int CrTool::myId [private]

Definition at line 1584 of file SalomePyQt.cxx.

int CrTool::myIndex [private]

Definition at line 1585 of file SalomePyQt.cxx.

int CrTool::myTbId [private]

Definition at line 1582 of file SalomePyQt.cxx.

QString CrTool::myTbName [private]

Definition at line 1581 of file SalomePyQt.cxx.


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