Blender Git Loki
Git Commits -> Revision 8036342
Revision 8036342 by Brecht Van Lommel (master) January 30, 2009, 12:18 (GMT) |
2.5: UI & Menus * Cleaned up UI_interface.h a bit, and added some comments to organize things a bit and indicate what should be used when. * uiMenu* functions can now be used to create menus for headers too, this is done with a uiDefMenuBut, which takes a pointer to a uiMenuCreateFunc, that will then call uiMenu* functions. * Renamed uiMenuBegin/End to uiPupMenuBegin/End, as these are specific to making popup menus. Will convert the other conformation popup menu functions to use this too so we can remove some code. * Extended uiMenu functions, now there is is also: BooleanO, FloatO, BooleanR, EnumR, LevelEnumR, Separator. * Converted image window headers to use uiMenu functions, simplifies menu code further here. Did not remove the uiDefMenu functions as they are used in sequencer/view3d in some places now (will fix). * Also tried to simplify and fix bounds computation a bit better for popup menus. It tried to find out in advance what the size of the menu was but this is difficult with keymap strings in there, now uiPopupBoundsBlock can figure this out afterwards and ensure the popup is within the window bounds. Will convert some other functions to use this too. |
Commit Details:
Full Hash: 8036342ea8c20ede363d5d3fe5459cc2af58a0f6
SVN Revision: 18747
Parent Commit: 445bbdf
Lines Changed: +1444, -1310
32 Modified Paths:
/source/blender/editors/include/ED_util.h (+2, -2) (Diff)
/source/blender/editors/include/UI_interface.h (+196, -107) (Diff)
/source/blender/editors/interface/interface.c (+145, -48) (Diff)
/source/blender/editors/interface/interface_draw.c (+2, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+39, -26) (Diff)
/source/blender/editors/interface/interface_intern.h (+50, -19) (Diff)
/source/blender/editors/interface/interface_panel.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_regions.c (+604, -496) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+3, -3) (Diff)
/source/blender/editors/object/object_edit.c (+4, -4) (Diff)
/source/blender/editors/screen/screen_ops.c (+4, -4) (Diff)
/source/blender/editors/space_action/action_header.c (+34, -34) (Diff)
/source/blender/editors/space_buttons/buttons_header.c (+2, -2) (Diff)
/source/blender/editors/space_file/file_header.c (+2, -2) (Diff)
/source/blender/editors/space_image/image_header.c (+100, -306) (Diff)
/source/blender/editors/space_info/info_header.c (+2, -2) (Diff)
/source/blender/editors/space_ipo/ipo_header.c (+2, -2) (Diff)
/source/blender/editors/space_nla/nla_header.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_draw.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_header.c (+32, -32) (Diff)
/source/blender/editors/space_outliner/outliner_header.c (+2, -2) (Diff)
/source/blender/editors/space_script/script_header.c (+2, -2) (Diff)
/source/blender/editors/space_sequencer/sequencer_header.c (+12, -12) (Diff)
/source/blender/editors/space_sound/sound_header.c (+2, -2) (Diff)
/source/blender/editors/space_text/text_header.c (+2, -2) (Diff)
/source/blender/editors/space_time/time_header.c (+6, -6) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+176, -176) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -1) (Diff)
/source/blender/editors/util/editmode_undo.c (+2, -2) (Diff)
/source/blender/render/intern/source/occlusion.c (+5, -4) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+3, -3) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+3, -3) (Diff)
/source/blender/editors/include/UI_interface.h (+196, -107) (Diff)
/source/blender/editors/interface/interface.c (+145, -48) (Diff)
/source/blender/editors/interface/interface_draw.c (+2, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+39, -26) (Diff)
/source/blender/editors/interface/interface_intern.h (+50, -19) (Diff)
/source/blender/editors/interface/interface_panel.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_regions.c (+604, -496) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+3, -3) (Diff)
/source/blender/editors/object/object_edit.c (+4, -4) (Diff)
/source/blender/editors/screen/screen_ops.c (+4, -4) (Diff)
/source/blender/editors/space_action/action_header.c (+34, -34) (Diff)
/source/blender/editors/space_buttons/buttons_header.c (+2, -2) (Diff)
/source/blender/editors/space_file/file_header.c (+2, -2) (Diff)
/source/blender/editors/space_image/image_header.c (+100, -306) (Diff)
/source/blender/editors/space_info/info_header.c (+2, -2) (Diff)
/source/blender/editors/space_ipo/ipo_header.c (+2, -2) (Diff)
/source/blender/editors/space_nla/nla_header.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_draw.c (+2, -2) (Diff)
/source/blender/editors/space_node/node_header.c (+32, -32) (Diff)
/source/blender/editors/space_outliner/outliner_header.c (+2, -2) (Diff)
/source/blender/editors/space_script/script_header.c (+2, -2) (Diff)
/source/blender/editors/space_sequencer/sequencer_header.c (+12, -12) (Diff)
/source/blender/editors/space_sound/sound_header.c (+2, -2) (Diff)
/source/blender/editors/space_text/text_header.c (+2, -2) (Diff)
/source/blender/editors/space_time/time_header.c (+6, -6) (Diff)
/source/blender/editors/space_view3d/view3d_header.c (+176, -176) (Diff)
/source/blender/editors/transform/transform_ops.c (+1, -1) (Diff)
/source/blender/editors/util/editmode_undo.c (+2, -2) (Diff)
/source/blender/render/intern/source/occlusion.c (+5, -4) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+3, -3) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+3, -3) (Diff)