Back to index

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

List of all members.

Public Member Functions

 CrMenu (const QString &subMenu, const int menu, const int id, const int group, const int idx)
 CrMenu (const QString &subMenu, const QString &menu, const int id, const int group, const int idx)
 CrMenu (const int id, const int menu, const int group, const int idx)
 CrMenu (const int id, const QString &menu, const int group, const int idx)
 CrMenu (QAction *action, const int menu, const int id, const int group, const int idx)
 CrMenu (QAction *action, const QString &menu, const int id, const int group, const int idx)
int execute (LightApp_Module *module) const

Private Attributes

int myCase
QString myMenuName
int myMenuId
QString mySubMenuName
int myGroup
QAction * myAction
int myId
int myIndex

Detailed Description

Definition at line 1664 of file SalomePyQt.cxx.


Constructor & Destructor Documentation

CrMenu::CrMenu ( const QString &  subMenu,
const int  menu,
const int  id,
const int  group,
const int  idx 
) [inline]

Definition at line 1667 of file SalomePyQt.cxx.

    : myCase( 0 ), mySubMenuName( subMenu ), myMenuId( menu ), myId( id ), myGroup( group ), myIndex( idx ) {}
CrMenu::CrMenu ( const QString &  subMenu,
const QString &  menu,
const int  id,
const int  group,
const int  idx 
) [inline]

Definition at line 1669 of file SalomePyQt.cxx.

    : myCase( 1 ), mySubMenuName( subMenu ), myMenuName( menu ), myId( id ), myGroup( group ), myIndex( idx ) {}
CrMenu::CrMenu ( const int  id,
const int  menu,
const int  group,
const int  idx 
) [inline]

Definition at line 1671 of file SalomePyQt.cxx.

    : myCase( 2 ), myId( id ), myMenuId( menu ), myGroup( group ), myIndex( idx ) {}
CrMenu::CrMenu ( const int  id,
const QString &  menu,
const int  group,
const int  idx 
) [inline]

Definition at line 1673 of file SalomePyQt.cxx.

    : myCase( 3 ), myId( id ), myMenuName( menu ), myGroup( group ), myIndex( idx ) {}
CrMenu::CrMenu ( QAction *  action,
const int  menu,
const int  id,
const int  group,
const int  idx 
) [inline]

Definition at line 1675 of file SalomePyQt.cxx.

    : myCase( 4 ), myAction( action ), myMenuId( menu ), myId( id ), myGroup( group ), myIndex( idx ) {}
CrMenu::CrMenu ( QAction *  action,
const QString &  menu,
const int  id,
const int  group,
const int  idx 
) [inline]

Definition at line 1677 of file SalomePyQt.cxx.

    : myCase( 5 ), myAction( action ), myMenuName( menu ), myId( id ), myGroup( group ), myIndex( idx ) {}

Member Function Documentation

int CrMenu::execute ( LightApp_Module module) const [inline]

Definition at line 1680 of file SalomePyQt.cxx.

  {
    if ( module ) {
      switch ( myCase ) {
      case 0:
        return module->createMenu( mySubMenuName, myMenuId, myId, myGroup, myIndex );
      case 1:
        return module->createMenu( mySubMenuName, myMenuName, myId, myGroup, myIndex );
      case 2:
        return module->createMenu( myId, myMenuId, myGroup, myIndex );
      case 3:
        return module->createMenu( myId, myMenuName, myGroup, myIndex );
      case 4:
        return module->createMenu( myAction, myMenuId, myId, myGroup, myIndex );
      case 5:
        return module->createMenu( myAction, myMenuName, myId, myGroup, myIndex );
      }
    }
    return -1;
  }

Here is the caller graph for this function:


Member Data Documentation

QAction* CrMenu::myAction [private]

Definition at line 1706 of file SalomePyQt.cxx.

int CrMenu::myCase [private]

Definition at line 1701 of file SalomePyQt.cxx.

int CrMenu::myGroup [private]

Definition at line 1705 of file SalomePyQt.cxx.

int CrMenu::myId [private]

Definition at line 1707 of file SalomePyQt.cxx.

int CrMenu::myIndex [private]

Definition at line 1708 of file SalomePyQt.cxx.

int CrMenu::myMenuId [private]

Definition at line 1703 of file SalomePyQt.cxx.

QString CrMenu::myMenuName [private]

Definition at line 1702 of file SalomePyQt.cxx.

QString CrMenu::mySubMenuName [private]

Definition at line 1704 of file SalomePyQt.cxx.


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