|
|
@ -1,5 +1,5 @@ |
|
|
|
//
|
|
|
|
//
|
|
|
|
// "$Id: Fl_Sys_Menu_Bar.cxx,v 1.1.2.10 2004/11/21 14:32:22 easysw Exp $"
|
|
|
|
// "$Id$"
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// MacOS system menu bar widget for the Fast Light Tool Kit (FLTK).
|
|
|
|
// MacOS system menu bar widget for the Fast Light Tool Kit (FLTK).
|
|
|
|
//
|
|
|
|
//
|
|
|
@ -142,6 +142,8 @@ static void setMenuShortcut( MenuHandle mh, int miCnt, const Fl_Menu_Item *m ) |
|
|
|
SetMenuItemModifiers( mh, miCnt, macMod ); |
|
|
|
SetMenuItemModifiers( mh, miCnt, macMod ); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
|
|
|
|
// this function needs to be verified before we compile it back in.
|
|
|
|
static void catMenuShortcut( const Fl_Menu_Item *m, char *dst ) |
|
|
|
static void catMenuShortcut( const Fl_Menu_Item *m, char *dst ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if ( !m->shortcut_ )
|
|
|
|
if ( !m->shortcut_ )
|
|
|
@ -158,6 +160,7 @@ static void catMenuShortcut( const Fl_Menu_Item *m, char *dst ) |
|
|
|
//if ( isalnum( mm->shortcut_ ) && !( mm->flags & FL_SUBMENU ) )
|
|
|
|
//if ( isalnum( mm->shortcut_ ) && !( mm->flags & FL_SUBMENU ) )
|
|
|
|
//sprintf( buf+strlen(buf), "/%c", mm->shortcut_ );
|
|
|
|
//sprintf( buf+strlen(buf), "/%c", mm->shortcut_ );
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
static void setMenuFlags( MenuHandle mh, int miCnt, const Fl_Menu_Item *m ) |
|
|
|
static void setMenuFlags( MenuHandle mh, int miCnt, const Fl_Menu_Item *m ) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -188,7 +191,7 @@ static void createSubMenu( MenuHandle mh, int &cnt, pFl_Menu_Item &mm ) |
|
|
|
int miCnt = 1; |
|
|
|
int miCnt = 1; |
|
|
|
while ( mm->text ) |
|
|
|
while ( mm->text ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
MenuHandle smh; |
|
|
|
MenuHandle smh = 0; |
|
|
|
buf[1] = 0; |
|
|
|
buf[1] = 0; |
|
|
|
catMenuFont( mm, buf+1 ); |
|
|
|
catMenuFont( mm, buf+1 ); |
|
|
|
//catMenuShortcut( mm, buf+1 );
|
|
|
|
//catMenuShortcut( mm, buf+1 );
|
|
|
@ -320,5 +323,5 @@ int Fl_Menu_Bar::handle(int event) { |
|
|
|
#endif /* __APPLE__ */ |
|
|
|
#endif /* __APPLE__ */ |
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// End of "$Id: Fl_Sys_Menu_Bar.cxx,v 1.1.2.10 2004/11/21 14:32:22 easysw Exp $".
|
|
|
|
// End of "$Id$".
|
|
|
|
//
|
|
|
|
//
|
|
|
|