Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Public Attributes
TGetPopupMenuEvent Class Reference
Inheritance diagram for TGetPopupMenuEvent:
Inheritance graph
Collaboration diagram for TGetPopupMenuEvent:
Collaboration graph

List of all members.

Public Types

typedef QMenu * TResult

Public Member Functions

 TGetPopupMenuEvent (const QString &menu)
virtual void Execute ()

Public Attributes

TResult myResult
QString myMenuName

Detailed Description

Definition at line 332 of file SalomePyQt.cxx.

Member Typedef Documentation

Definition at line 335 of file SalomePyQt.cxx.

Constructor & Destructor Documentation

TGetPopupMenuEvent::TGetPopupMenuEvent ( const QString &  menu) [inline]

Definition at line 338 of file SalomePyQt.cxx.

: myResult( 0 ), myMenuName( menu ) {}

Member Function Documentation

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

Definition at line 339 of file SalomePyQt.cxx.

    LightApp_Application* anApp = getApplication();
    if ( anApp && !myMenuName.isEmpty() ) {
      QtxActionMenuMgr* mgr = anApp->desktop()->menuMgr();
      myResult = mgr->findMenu( myMenuName, -1, false ); // search only top menu

Here is the call graph for this function:

Member Data Documentation

Definition at line 337 of file SalomePyQt.cxx.

Definition at line 336 of file SalomePyQt.cxx.

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