#include <ev_Menu_Actions.h>
Public Member Functions | |
EV_Menu_ActionSet (XAP_Menu_Id first, XAP_Menu_Id last) | |
~EV_Menu_ActionSet () | |
bool | setAction (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="") |
bool | addAction (EV_Menu_Action *pAction) |
const EV_Menu_Action * | getAction (XAP_Menu_Id id) const |
Private Attributes | |
UT_GenericVector < EV_Menu_Action * > | m_actionTable |
XAP_Menu_Id | m_first |
EV_Menu_ActionSet::EV_Menu_ActionSet | ( | XAP_Menu_Id | first, | |
XAP_Menu_Id | last | |||
) |
This class is only a vector of EV_Menu_Action, but instead of start with an index of 0, we start with an index of "first" (and we finish at "last"), but of course the underlying vector will still start at 0 and finish at (last - first).
In practice, "first" will be AP_MENU_ID__BOGUS1__, and "last" will be AP_MENU_ID__BOGUS2__.
References UT_GenericVector< T >::addItem(), and m_actionTable.
EV_Menu_ActionSet::~EV_Menu_ActionSet | ( | ) |
References m_actionTable, and UT_VECTOR_SPARSEPURGEALL.
bool EV_Menu_ActionSet::addAction | ( | EV_Menu_Action * | pAction | ) |
References EV_Menu_Action::getMenuId(), UT_GenericVector< T >::insertItemAt(), m_actionTable, m_first, UT_GenericVector< T >::size(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by AbiGimp_addToMenus(), AbiGOffice_addToMenus(), AbiMathView_addToMenus(), addToMenus(), AiksaurusABI_addToMenus(), BabelFish_addToMenus(), GR_GOChartManager::buildContextualMenu(), FreeTranslation_addToMenus(), GDA_addToMenus(), GDict_addToMenus(), Google_addToMenus(), AP_CocoaPlugin_ContextMenuItem::initWithLabel:, LoadBindings_registerMethod(), Ots_addToMenus(), Presentation_registerMethod(), s_abicollab_add_menus(), URLDict_addToMenus(), and Wikipedia_addToMenus().
const EV_Menu_Action * EV_Menu_ActionSet::getAction | ( | XAP_Menu_Id | id | ) | const |
References EV_Menu_Action::getMenuId(), m_actionTable, m_first, UT_GenericVector< T >::size(), UT_ASSERT, and xxx_UT_DEBUGMSG.
Referenced by EV_UnixMenu::_refreshMenu(), EV_CocoaMenu::buildAppMenu, EV_UnixMenu::menuEvent(), EV_QtMenu::menuEvent(), EV_CocoaMenu::menuEvent, EV_Win32Menu::onCommand(), EV_Win32Menu::onInitMenu(), EV_Win32Menu::synthesizeMenu(), EV_UnixMenu::synthesizeMenu(), EV_QtMenu::synthesizeMenu(), and EV_CocoaMenu::validateMenuItem.
bool EV_Menu_ActionSet::setAction | ( | 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 = "" | |||
) |
Referenced by addAction(), EV_Menu_ActionSet(), getAction(), setAction(), and ~EV_Menu_ActionSet().
XAP_Menu_Id EV_Menu_ActionSet::m_first [private] |
Referenced by addAction(), getAction(), and setAction().