Blender Git Loki

Blender Git commits from all branches.

Page: 2100 / 2888

February 9, 2016, 16:13 (GMT)
Refactor widget code into isolated window manager submodule files (merges temp_widgets_files_refactor)

Widgets core code is now located in own folder, source/blender/windowmanager/widgets/. It is now more centralized, better structured and mixing with regular WM code was greatly minimized.

wm_widgets.c was split up into multiple files in windowmanager/widgets/intern/, wm_generic_widgets.c was split up into multiple files in windowmanager/widgets/intern/widget_library/. Both initial files are gone.

The geometry files for widget types that were previously located under windowmanager/3d_widgets are now also in windowmanager/widgets/intern/widget_library/, with a geom_ prefix.

Header files:
Widgets got own .h files, which are included into window manager .h files if needed.
API and defines for external access are in WM_widget_api.h, WM_widget_types.h and WM_widget_library.h. Also, wm_widget_wmapi.h was added as header for window manager usage only (could add #error printing for usage outside of window manager later).

Also did some minor cleanups here and there.
February 9, 2016, 15:01 (GMT)
Correct doxygen paths and header include guards after last changes
February 9, 2016, 14:02 (GMT)
Add widgets/intern, improve naming, move around files

After feedback from Campbell.

File structure now looks like this:
/windowmangager
...
/widgets
WM_widget_api.h
WM_widget_library.h
WM_widget_types.h
wm_widget_wmapi.h
/intern
wm_widget_intern.h
wm_widget.c
wm_widgetgroup.c
wm_widgetmap.c
/widget_library
...
February 8, 2016, 20:49 (GMT)
fix, forgot to activate plastic connection handler in external mode
February 8, 2016, 19:47 (GMT)
Cleanup includes
February 8, 2016, 19:13 (GMT)
Move wmWidgetMapType_Params struct to WM_widgets_types.h
February 8, 2016, 19:08 (GMT)
Correct widget map type flag name
February 8, 2016, 19:02 (GMT)
Move wmWidget structs and defines into own header files

For external structs/defines we now have windowmanager/widgets/WM_widgets_types.h.
Also some cleanup.
February 8, 2016, 17:41 (GMT)
Remove wm_widgets.c!

Used to be a big file, content is now split into multiple files in windowmanager/widgets.
February 8, 2016, 17:40 (GMT)
Move stuff from wm_widgets.c file to proper places
February 8, 2016, 17:08 (GMT)
Move widget declarations/defines into right header
February 8, 2016, 17:04 (GMT)
Move wmWidgetGroup(Type) functions into own file
February 8, 2016, 16:33 (GMT)
Move wmWidgetMap(Type) functions into own file

Think one file for wmWidgetMap and wmWidgetMapType is enough.
February 8, 2016, 16:24 (GMT)
fix for external mode material collection function
February 8, 2016, 15:41 (GMT)
Move wmWidget functions into own file

Moved widget functions from windowmanager/intern/wm_widgets.c to windowmanager/widgets/wm_widget.c. Added WM_widgets_api.h for external widgets API and wm_widgets.h for window manager API.
February 8, 2016, 12:55 (GMT)
Split wm_generic_widgets.c into separate files per widget type

New files are now located under windowmanager/widgets/widget_library/xxx_widget.c. Added two headers, wm_widgets_intern.h and widget_library.h (which only contains external declarations and is only used as #include in WM_api.h).

wm_generic_widgets.c is gone now.
February 8, 2016, 11:27 (GMT)
Move widget geometry files to windowmanager/widgets/widget_library

Moved files to new location, renamed them to geom_xxx_widget.c/widget_geometry.h, added license blocks, doxygen info, etc.
February 8, 2016, 09:21 (GMT)
Merge branch 'master' into object_nodes
February 7, 2016, 21:40 (GMT)
Use general exit callback called after widget tweaking

Will be used to free data and reset property to initial value.
February 7, 2016, 13:33 (GMT)
Always activate widget when starting to drag (not only if handling is available)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021