diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2004-10-07 23:25:40 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2004-10-07 23:25:40 +0400 |
commit | 0fdc0ce297be5a9621e41eba6e785a1d9c9287e4 (patch) | |
tree | 88eadd40613bf72f2cbe1b8bfbd5a1418b627a1a /source/blender/python/BPY_menus.h | |
parent | 14ae3362c5dce229e84ca9331879d99d44a13a50 (diff) |
Another step in the Big Bpy Cleanup.
- move static declarations and data definitions out of headers.
the BGL module still need cleaning.
- move declarations out of modules.h and into appropriate .h files.
modules.h still exists as a container for the few modules that
need to #include almost everything.
- all files now have a $Id tag and have been formatted by indent
there are no changes to executable code.
pre-commit versions are tagged with bpy-cleanup-pre-20041007
for the sake of paranoia.
Diffstat (limited to 'source/blender/python/BPY_menus.h')
-rw-r--r-- | source/blender/python/BPY_menus.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/source/blender/python/BPY_menus.h b/source/blender/python/BPY_menus.h index 35ac71d14d1..08fbfcf7d16 100644 --- a/source/blender/python/BPY_menus.h +++ b/source/blender/python/BPY_menus.h @@ -1,4 +1,5 @@ /* + * $Id$ * * ***** BEGIN GPL/BL DUAL LICENSE BLOCK ***** * @@ -61,8 +62,8 @@ typedef struct BPyMenu { char *name; char *filename; char *tooltip; - short version; /* Blender version */ - int dir; /* 0: default, 1: U.pythondir */ + short version; /* Blender version */ + int dir; /* 0: default, 1: U.pythondir */ struct BPySubMenu *submenus; struct BPyMenu *next; } BPyMenu; @@ -75,35 +76,35 @@ typedef struct BPyMenu { * BPY_menus.c; * - add the necessary code to the header_***.c file in * source/blender/src/, like done in header_info.c for import/export; -*/ +*/ typedef enum { - PYMENU_WIZARDS, /* complex 'app' scripts */ - PYMENU_UV, /* UV editing tools, to go in UV/Image editor space, 'UV' menu */ + PYMENU_WIZARDS, /* complex 'app' scripts */ + PYMENU_UV, /* UV editing tools, to go in UV/Image editor space, 'UV' menu */ PYMENU_OBJECT, PYMENU_MISC, PYMENU_MESH, PYMENU_MATERIALS, - PYMENU_HELP, /* Main Help menu items - prob best to leave for 'official' ones */ - PYMENU_HELPSYSTEM, /* Resources, troubleshooting, system tools */ - PYMENU_HELPWEBSITES, /* Help -> Websites submenu */ + PYMENU_HELP, /* Main Help menu items - prob best to leave for 'official' ones */ + PYMENU_HELPSYSTEM, /* Resources, troubleshooting, system tools */ + PYMENU_HELPWEBSITES, /* Help -> Websites submenu */ PYMENU_IMPORT, PYMENU_EXPORT, PYMENU_ANIMATION, - PYMENU_ADD, /* creates new objects */ + PYMENU_ADD, /* creates new objects */ PYMENU_TOTAL } PYMENUHOOKS; /* BPyMenuTable holds all registered pymenus, as linked lists for each menu * where they can appear (see PYMENUHOOKS enum above). */ -extern BPyMenu *BPyMenuTable[]; /* defined in BPY_menus.c */ +extern BPyMenu *BPyMenuTable[]; /* defined in BPY_menus.c */ /* public functions: */ -int BPyMenu_Init(int usedir); -void BPyMenu_RemoveAllEntries(void); -void BPyMenu_PrintAllEntries(void); -char *BPyMenu_CreatePupmenuStr(BPyMenu *pym, short group); -char *BPyMenu_group_itoa (short group); -struct BPyMenu *BPyMenu_GetEntry (short group, short pos); +int BPyMenu_Init( int usedir ); +void BPyMenu_RemoveAllEntries( void ); +void BPyMenu_PrintAllEntries( void ); +char *BPyMenu_CreatePupmenuStr( BPyMenu * pym, short group ); +char *BPyMenu_group_itoa( short group ); +struct BPyMenu *BPyMenu_GetEntry( short group, short pos ); -#endif /* BPY_MENUS_H */ +#endif /* BPY_MENUS_H */ |