Files
test/source
Ton Roosendaal 3c088f3434 2.5
Simple toolbox-style menu system. Brecht will review it
though, and/or check on way to use it for menus.
I tried to avoid uiBlock and rna stuff all over. :)

Quick image test:
http://www.blender.org/bf/rt.jpg

Examples you can read in:
- editors/screen/screen_ops.c:testing123() (press F5)
- editors/object/object_edit.c:object_add_primitive_invoke()
  (press SHIFT+A)

Concept is simple:

uiMenuBegin(): returns a handle.
uiMenuEnd(): puts it all to work.

In between you can add items like:

uiMenuItemVal(): a name, icon, retval (use uiMenuFunc()) 
uiMenuItemO(): an operator + icon
uiMenuItemEnumO(): an operator, property name, value

Sublevels go easy too:

uiMenuLevel(): creates item for sublevel, with function pointer.
     Inside that function you can use all menu calls again.
     Levels can go as deep you want.

uiMenuLevelEnumO(): creates operator sublevel for an enum
2009-01-25 20:22:05 +00:00
..
2.5
2009-01-25 20:22:05 +00:00
2.5
2009-01-11 18:35:16 +00:00
2.5
2009-01-19 16:54:41 +00:00
2008-12-23 16:07:24 +00:00
2.5
2009-01-24 13:45:24 +00:00
2009-01-04 18:16:34 +00:00
2009-01-04 18:16:34 +00:00
2008-10-22 11:28:10 +00:00