Public Member Functions | |
| uiPopupMenu (uiParent *, const char *nm="uiPopupMenu", const char *pixmapfilenm=0) | |
| ~uiPopupMenu () | |
| bool | isCheckable () const |
| void | setCheckable (bool) |
| bool | isEnabled () const |
| void | setEnabled (bool) |
| bool | isChecked () const |
| void | setChecked (bool) |
| int | exec () |
| pops-up at mouse position | |
| uiPopupItem & | item () |
| const uiPopupItem & | item () const |
| void | doIntercept (bool yn, uiMenuItem *activateitm=0) |
Static Public Member Functions | |
| static void | setInterceptor (const CallBack &) |
| Not for casual use. | |
| static void | unsetInterceptor () |
Private Member Functions | |
| int | findIdForAction (QAction *) const |
Private Attributes | |
| uiPopupItem & | item_ |
| uiMenuItem * | interceptitem_ |
| bool | dointercept_ |
| ioPixmap * | pixmap_ |
Static Private Attributes | |
| static CallBack * | interceptor_ |
| uiPopupMenu::uiPopupMenu | ( | uiParent * | , | |
| const char * | nm = "uiPopupMenu", |
|||
| const char * | pixmapfilenm = 0 | |||
| ) |
pixmap must be alive in memory until item is added to parent
| uiPopupMenu::~uiPopupMenu | ( | ) |
| void uiPopupMenu::doIntercept | ( | bool | yn, | |
| uiMenuItem * | activateitm = 0 | |||
| ) |
| int uiPopupMenu::exec | ( | ) |
pops-up at mouse position
The return code is the id of the selected item in either the popup menu or one of its submenus, or -1 if no item is selected (normally because the user presses Escape).
| int uiPopupMenu::findIdForAction | ( | QAction * | ) | const [private] |
| bool uiPopupMenu::isCheckable | ( | ) | const |
| bool uiPopupMenu::isChecked | ( | ) | const |
| bool uiPopupMenu::isEnabled | ( | ) | const |
| uiPopupItem& uiPopupMenu::item | ( | ) | [inline] |
| const uiPopupItem& uiPopupMenu::item | ( | ) | const [inline] |
| void uiPopupMenu::setCheckable | ( | bool | ) |
| void uiPopupMenu::setChecked | ( | bool | ) |
| void uiPopupMenu::setEnabled | ( | bool | ) |
| static void uiPopupMenu::setInterceptor | ( | const CallBack & | ) | [static] |
Not for casual use.
| static void uiPopupMenu::unsetInterceptor | ( | ) | [static] |
bool uiPopupMenu::dointercept_ [private] |
uiMenuItem* uiPopupMenu::interceptitem_ [private] |
CallBack* uiPopupMenu::interceptor_ [static, private] |
uiPopupItem& uiPopupMenu::item_ [private] |
ioPixmap* uiPopupMenu::pixmap_ [private] |
1.7.1