#include <ev_Menu_Actions.h>
Public Member Functions | |
| EV_Menu_Action (XAP_Menu_Id id, bool bHoldsSubMenu, bool bRaisesDialog, bool bCheckable, bool bRadio, const char *szMethodName, EV_GetMenuItemState_pFn pfnGetState, EV_GetMenuItemComputedLabel_pFn pfnGetLabel, const UT_String &stScriptName="") | |
| ~EV_Menu_Action () | |
| XAP_Menu_Id | getMenuId () const |
| void | incrementId (void) |
| bool | hasDynamicLabel () const |
| const char * | getDynamicLabel (const EV_Menu_Label *pLabel) const |
| const char * | getMethodName () const |
| const UT_String & | getScriptName () const |
| bool | hasGetStateFunction () const |
| EV_Menu_ItemState | getMenuItemState (AV_View *pView) const |
| bool | raisesDialog () const |
| bool | isCheckable () const |
| bool | isRadio () const |
Private Attributes | |
| XAP_Menu_Id | m_id |
| bool | m_bHoldsSubMenu |
| bool | m_bRaisesDialog |
| bool | m_bCheckable |
| bool | m_bRadio |
| char * | m_szMethodName |
| EV_GetMenuItemState_pFn | m_pfnGetState |
| EV_GetMenuItemComputedLabel_pFn | m_pfnGetLabel |
| UT_String | m_stScriptName |
| EV_Menu_Action::EV_Menu_Action | ( | XAP_Menu_Id | id, | |
| bool | bHoldsSubMenu, | |||
| bool | bRaisesDialog, | |||
| bool | bCheckable, | |||
| bool | bRadio, | |||
| const char * | szMethodName, | |||
| EV_GetMenuItemState_pFn | pfnGetState, | |||
| EV_GetMenuItemComputedLabel_pFn | pfnGetLabel, | |||
| const UT_String & | stScriptName = "" | |||
| ) |
References m_szMethodName, and UT_ASSERT.
| EV_Menu_Action::~EV_Menu_Action | ( | ) |
References FREEP, and m_szMethodName.
| const char * EV_Menu_Action::getDynamicLabel | ( | const EV_Menu_Label * | pLabel | ) | const |
References m_id, and m_pfnGetLabel.
Referenced by _ev_GetLabelName(), and EV_Menu::getLabelName().
| XAP_Menu_Id EV_Menu_Action::getMenuId | ( | ) | const |
References m_id.
Referenced by EV_Menu_ActionSet::addAction(), and EV_Menu_ActionSet::getAction().
| EV_Menu_ItemState EV_Menu_Action::getMenuItemState | ( | AV_View * | pView | ) | const |
References m_id, and m_pfnGetState.
Referenced by EV_UnixMenu::_refreshMenu(), EV_Win32Menu::onInitMenu(), and EV_CocoaMenu::validateMenuItem.
| const char * EV_Menu_Action::getMethodName | ( | ) | const |
| const UT_String& EV_Menu_Action::getScriptName | ( | ) | const [inline] |
Referenced by EV_UnixMenu::menuEvent(), EV_QtMenu::menuEvent(), EV_CocoaMenu::menuEvent, and EV_Win32Menu::onCommand().
| bool EV_Menu_Action::hasDynamicLabel | ( | ) | const |
References m_pfnGetLabel.
Referenced by _ev_GetLabelName(), EV_UnixMenu::_refreshMenu(), EV_Menu::getLabelName(), EV_Win32Menu::onInitMenu(), and EV_CocoaMenu::validateMenuItem.
| bool EV_Menu_Action::hasGetStateFunction | ( | ) | const |
References m_pfnGetState.
Referenced by EV_UnixMenu::_refreshMenu(), EV_Win32Menu::onInitMenu(), and EV_CocoaMenu::validateMenuItem.
| void EV_Menu_Action::incrementId | ( | void | ) |
| bool EV_Menu_Action::isCheckable | ( | ) | const |
References m_bCheckable.
Referenced by EV_UnixMenu::_refreshMenu(), EV_UnixMenu::synthesizeMenu(), and EV_QtMenu::synthesizeMenu().
| bool EV_Menu_Action::isRadio | ( | ) | const |
References m_bRadio.
Referenced by EV_UnixMenu::_refreshMenu(), EV_UnixMenu::synthesizeMenu(), and EV_QtMenu::synthesizeMenu().
| bool EV_Menu_Action::raisesDialog | ( | ) | const |
References m_bRaisesDialog.
Referenced by _ev_GetLabelName(), and EV_Menu::getLabelName().
bool EV_Menu_Action::m_bCheckable [private] |
Referenced by isCheckable().
bool EV_Menu_Action::m_bHoldsSubMenu [private] |
bool EV_Menu_Action::m_bRadio [private] |
Referenced by isRadio().
bool EV_Menu_Action::m_bRaisesDialog [private] |
Referenced by raisesDialog().
XAP_Menu_Id EV_Menu_Action::m_id [private] |
Referenced by getDynamicLabel(), getMenuId(), and getMenuItemState().
Referenced by getDynamicLabel(), and hasDynamicLabel().
Referenced by getMenuItemState(), and hasGetStateFunction().
UT_String EV_Menu_Action::m_stScriptName [private] |
char* EV_Menu_Action::m_szMethodName [private] |
Referenced by EV_Menu_Action(), getMethodName(), and ~EV_Menu_Action().
1.7.1