]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/carbon/uma.h
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / osx / carbon / uma.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/carbon/uma.h
3 // Purpose: Universal MacOS API
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 03/02/99
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef H_UMA
12 #define H_UMA
13
14 #include "wx/osx/private.h"
15
16 #if wxUSE_GUI
17
18 // menu manager
19
20 MenuRef UMANewMenu( SInt16 id , const wxString& title , wxFontEncoding encoding) ;
21 void UMASetMenuTitle( MenuRef menu , const wxString& title , wxFontEncoding encoding) ;
22 void UMAEnableMenuItem( MenuRef inMenu , MenuItemIndex item , bool enable ) ;
23
24 void UMAAppendMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , wxAcceleratorEntry *entry = NULL ) ;
25 void UMAInsertMenuItem( MenuRef menu , const wxString& title , wxFontEncoding encoding , MenuItemIndex item , wxAcceleratorEntry *entry = NULL ) ;
26 void UMASetMenuItemShortcut( MenuRef menu , MenuItemIndex item , wxAcceleratorEntry *entry ) ;
27
28 void UMASetMenuItemText( MenuRef menu, MenuItemIndex item, const wxString& title , wxFontEncoding encoding ) ;
29
30 // Retrieves the Help menu handle. Warning: As a side-effect this functions also
31 // creates the Help menu if it didn't exist yet.
32 OSStatus UMAGetHelpMenu(
33 MenuRef * outHelpMenu,
34 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
35
36 // Same as UMAGetHelpMenu, but doesn't create the Help menu if UMAGetHelpMenu hasn't been called yet.
37 OSStatus UMAGetHelpMenuDontCreate(
38 MenuRef * outHelpMenu,
39 MenuItemIndex * outFirstCustomItemIndex); /* can be NULL */
40
41 #endif // wxUSE_GUI
42
43 #endif