Back to index

salome-gui  6.5.0
Public Member Functions | Public Attributes
QtxActionMenuMgr::MenuNode Class Reference

Represents a menu item inside main menu structure. More...

Collaboration diagram for QtxActionMenuMgr::MenuNode:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MenuNode ()
 Default constructor.
 MenuNode (MenuNode *, const int, const int, const int)
 Constructor.
 ~MenuNode ()
 Destructor.

Public Attributes

MenuNodeparent
 parent menu node
int id
 menu nodeID
int idx
 menu node index
int group
 menu group ID
bool visible
 visibility status
int emptyEnabled
 enable empty menu flag
NodeList children
 children menu nodes list

Detailed Description

Represents a menu item inside main menu structure.

Definition at line 41 of file QtxActionMenuMgr.cxx.


Constructor & Destructor Documentation

Default constructor.

Definition at line 61 of file QtxActionMenuMgr.cxx.

  : parent( 0 ), id( -1 ), idx( -1 ), group( -1 ), visible( true ), emptyEnabled( 0 )
{
}
QtxActionMenuMgr::MenuNode::MenuNode ( MenuNode p,
const int  _id,
const int  _idx,
const int  _group 
)

Constructor.

Parameters:
pparent menu node
_idmenu node ID
_idxmenu node index
_groupmenu node group ID

Definition at line 74 of file QtxActionMenuMgr.cxx.

: parent( p ), id( _id ), idx( _idx ), group( _group ), visible( true ), emptyEnabled( 0 )
{
  if ( p )
    p->children.append( this );
}

Destructor.

Definition at line 88 of file QtxActionMenuMgr.cxx.

{
  for ( NodeList::iterator it = children.begin(); it != children.end(); ++it )
    delete *it;
}

Member Data Documentation

children menu nodes list

Definition at line 54 of file QtxActionMenuMgr.cxx.

enable empty menu flag

Definition at line 53 of file QtxActionMenuMgr.cxx.

menu group ID

Definition at line 51 of file QtxActionMenuMgr.cxx.

menu nodeID

Definition at line 49 of file QtxActionMenuMgr.cxx.

menu node index

Definition at line 50 of file QtxActionMenuMgr.cxx.

parent menu node

Definition at line 48 of file QtxActionMenuMgr.cxx.

visibility status

Definition at line 52 of file QtxActionMenuMgr.cxx.


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