Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

EV_UnixMenu Class Reference

#include <ev_UnixMenu.h>

Inheritance diagram for EV_UnixMenu:
EV_Menu EV_UnixMenuBar EV_UnixMenuPopup

List of all members.

Classes

class  _wd

Public Member Functions

 EV_UnixMenu (XAP_UnixApp *pUnixApp, XAP_Frame *pFrame, const char *szMenuLayoutName, const char *szMenuLabelSetName)
virtual ~EV_UnixMenu ()
bool synthesizeMenu (GtkWidget *wMenuRoot, bool isPopup)
bool menuEvent (XAP_Menu_Id id)
virtual bool refreshMenu (AV_View *pView)=0
XAP_FramegetFrame ()

Protected Member Functions

bool _refreshMenu (AV_View *pView, GtkWidget *wMenuRoot)
bool _isItemPresent (XAP_Menu_Id id) const
virtual bool _doAddMenuItem (UT_uint32 layout_pos)

Protected Attributes

XAP_UnixAppm_pUnixApp
XAP_Framem_pFrame
GtkAccelGroup * m_accelGroup
UT_GenericVector< GtkWidget * > m_vecMenuWidgets

Private Member Functions

void _convertStringToAccel (const char *s, guint &accel_key, GdkModifierType &ac_mods)
 This subroutine calcules the gdk accel_key, ac_mods associated to a given string (for instance, str = "Ctrl+A" -> accel_key = 'A' ac_mods = GDK_CONTROL_MASK).
GtkWidget * s_createNormalMenuEntry (const XAP_Menu_Id id, bool isCheckable, bool isRadio, bool isPopup, const char *szLabelName, const char *szMnemonicName)

Private Attributes

UT_GenericVector< _wd * > m_vecCallbacks

Constructor & Destructor Documentation

EV_UnixMenu::EV_UnixMenu ( XAP_UnixApp pUnixApp,
XAP_Frame pFrame,
const char *  szMenuLayoutName,
const char *  szMenuLabelSetName 
)

References m_accelGroup.

EV_UnixMenu::~EV_UnixMenu (  )  [virtual]

Member Function Documentation

void EV_UnixMenu::_convertStringToAccel ( const char *  s,
guint &  accel_key,
GdkModifierType &  ac_mods 
) [private]

This subroutine calcules the gdk accel_key, ac_mods associated to a given string (for instance, str = "Ctrl+A" -> accel_key = 'A' ac_mods = GDK_CONTROL_MASK).

bool EV_UnixMenu::_doAddMenuItem ( UT_uint32  layout_pos  )  [protected, virtual]

That will add a new menu entry for the menu item at layout_pos.

Parameters:
layout_pos UT_uint32 with the relative position of the item in the menu.
Returns:
true if there were no problems. False elsewere.

Implements EV_Menu.

References UT_GenericVector< T >::insertItemAt(), m_vecMenuWidgets, and UT_DEBUGMSG.

bool EV_UnixMenu::_isItemPresent ( XAP_Menu_Id  id  )  const [protected]
virtual bool EV_UnixMenu::refreshMenu ( AV_View pView  )  [pure virtual]
GtkWidget* EV_UnixMenu::s_createNormalMenuEntry ( const XAP_Menu_Id  id,
bool  isCheckable,
bool  isRadio,
bool  isPopup,
const char *  szLabelName,
const char *  szMnemonicName 
) [private]

Referenced by _refreshMenu(), and synthesizeMenu().


Member Data Documentation

GtkAccelGroup* EV_UnixMenu::m_accelGroup [protected]

Referenced by EV_UnixMenu(), and synthesizeMenu().


The documentation for this class was generated from the following files: