OpendTect-6_4  6.4
Classes | Macros
menuhandler.h File Reference
Include dependency graph for menuhandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MenuItemHolder
 
class  MenuItem
 
class  SeparatorItem
 
class  MenuHandler
 
class  MenuItemHandler
 

Macros

#define mResetMenuItem(item)
 
#define mAddMenuItemWithManageFlag(parent, item, manage, enab, check)
 
#define mAddMenuItem(parent, item, enab, check)   mAddMenuItemWithManageFlag( parent, item, false, enab, check )
 
#define mAddManagedMenuItem(parent, item, enab, check)   mAddMenuItemWithManageFlag( parent, item, true, enab, check )
 
#define mAddMenuItemCond(menu, item, enab, check, cond)
 
#define mAddMenuOrTBItem(istoolbar, tbparent, popupparent, item, enab, check)
 

Macro Definition Documentation

#define mAddManagedMenuItem (   parent,
  item,
  enab,
  check 
)    mAddMenuItemWithManageFlag( parent, item, true, enab, check )
#define mAddMenuItem (   parent,
  item,
  enab,
  check 
)    mAddMenuItemWithManageFlag( parent, item, false, enab, check )
#define mAddMenuItemCond (   menu,
  item,
  enab,
  check,
  cond 
)
Value:
{ \
if ( menu && cond ) \
mAddMenuItem( menu, item, enab, check ) \
mResetMenuItem( item ) } \
#define mAddMenuItemWithManageFlag (   parent,
  item,
  manage,
  enab,
  check 
)
Value:
{ \
MenuItem* _item = item; \
MenuItemHolder* _parent = parent; \
if ( _parent && (_parent)->itemIndex(_item)==-1 ) \
(_parent)->addItem( _item ); \
\
(_item)->enabled = (enab); \
(_item)->checked = (check); \
}
#define mAddMenuOrTBItem (   istoolbar,
  tbparent,
  popupparent,
  item,
  enab,
  check 
)
Value:
istoolbar?(MenuItemHolder*)(tbparent):(MenuItemHolder*)(popupparent), \
item, enab, check )
Definition: menuhandler.h:26
#define mResetMenuItem (   item)
Value:
{ \
(item)->enabled = true; \
(item)->checked = false; \
(item)->id = -1; \
(item)->removeItems(); \
}

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019