#include <ev_Menu_Labels.h>
Public Member Functions | |
EV_Menu_LabelSet (const char *szLanguage, XAP_Menu_Id first, XAP_Menu_Id last) | |
EV_Menu_LabelSet (EV_Menu_LabelSet *pLabelSet) | |
~EV_Menu_LabelSet () | |
bool | setLabel (XAP_Menu_Id id, const char *szMenuLabel, const char *szStatusMsg) |
bool | addLabel (EV_Menu_Label *pLabel) |
EV_Menu_Label * | getLabel (XAP_Menu_Id id) const |
XAP_Menu_Id | getFirst (void) |
const char * | getLanguage () const |
void | setLanguage (const char *szLanguage) |
const UT_GenericVector < EV_Menu_Label * > * | getAllLabels () const |
Private Attributes | |
UT_GenericVector< EV_Menu_Label * > | m_labelTable |
XAP_Menu_Id | m_first |
UT_String | m_stLanguage |
Friends | |
class | XAP_Menu_Factory |
EV_Menu_LabelSet::EV_Menu_LabelSet | ( | const char * | szLanguage, | |
XAP_Menu_Id | first, | |||
XAP_Menu_Id | last | |||
) |
References UT_GenericVector< T >::addItem(), m_labelTable, and size.
EV_Menu_LabelSet::EV_Menu_LabelSet | ( | EV_Menu_LabelSet * | pLabelSet | ) |
References UT_GenericVector< T >::addItem(), getAllLabels(), getFirst(), UT_GenericVector< T >::getItemCount(), getLanguage(), EV_Menu_Label::getMenuId(), EV_Menu_Label::getMenuLabel(), EV_Menu_Label::getMenuStatusMessage(), UT_GenericVector< T >::getNthItem(), m_first, m_labelTable, and m_stLanguage.
EV_Menu_LabelSet::~EV_Menu_LabelSet | ( | ) |
References m_labelTable, and UT_VECTOR_SPARSEPURGEALL.
bool EV_Menu_LabelSet::addLabel | ( | EV_Menu_Label * | pLabel | ) |
const UT_GenericVector<EV_Menu_Label *>* EV_Menu_LabelSet::getAllLabels | ( | ) | const [inline] |
Referenced by EV_Menu_LabelSet(), and EV_searchMenuLabel().
XAP_Menu_Id EV_Menu_LabelSet::getFirst | ( | void | ) | [inline] |
Referenced by EV_Menu_LabelSet().
EV_Menu_Label * EV_Menu_LabelSet::getLabel | ( | XAP_Menu_Id | id | ) | const |
References addLabel(), UT_String::c_str(), EV_Menu_Label::getMenuId(), UT_GenericVector< T >::getNthItem(), m_first, m_labelTable, m_stLanguage, UT_GenericVector< T >::size(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by EV_UnixMenu::_refreshMenu(), EV_CocoaMenu::buildAppMenu, EV_Win32Menu::onInitMenu(), EV_Win32Menu::onMenuSelect(), EV_QtMenuSlot::onToggle(), EV_UnixMenu::_wd::s_onMenuItemSelect(), EV_Win32Menu::synthesizeMenu(), EV_UnixMenu::synthesizeMenu(), EV_QtMenu::synthesizeMenu(), and EV_CocoaMenu::validateMenuItem.
const char * EV_Menu_LabelSet::getLanguage | ( | ) | const |
References UT_String::c_str(), and m_stLanguage.
Referenced by EV_Menu_LabelSet(), EV_Win32Menu::EV_Win32Menu(), and XAP_Menu_Factory::GetNthMenuLabelLanguageName().
bool EV_Menu_LabelSet::setLabel | ( | XAP_Menu_Id | id, | |
const char * | szMenuLabel, | |||
const char * | szStatusMsg | |||
) |
void EV_Menu_LabelSet::setLanguage | ( | const char * | szLanguage | ) |
References m_stLanguage.
friend class XAP_Menu_Factory [friend] |
XAP_Menu_Id EV_Menu_LabelSet::m_first [private] |
Referenced by addLabel(), EV_Menu_LabelSet(), getLabel(), and setLabel().
UT_GenericVector<EV_Menu_Label *> EV_Menu_LabelSet::m_labelTable [private] |
Referenced by addLabel(), EV_Menu_LabelSet(), getLabel(), setLabel(), and ~EV_Menu_LabelSet().
UT_String EV_Menu_LabelSet::m_stLanguage [private] |
Referenced by EV_Menu_LabelSet(), getLabel(), getLanguage(), and setLanguage().