2.5: Error reporting
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 29 Dec 2008 13:38:08 +0000 (13:38 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 29 Dec 2008 13:38:08 +0000 (13:38 +0000)
commit0a8a00cd1060ee7aa9eae4223fc8c2577533247f
tree6dc09a68c1d8e35bd807d784f3507b57c9c1f62f
parentd51bc24384a70f3cdcd4b72091873c96d542d642
2.5: Error reporting

* Added a report list to operator, to which they can report errors and
  warnings. When the operator ends, it will display them with a popup. For
  python these should become exceptions when calling operators.
* Added a function to make a popup menu from a report list.
* Also added a utility function to prepend a string before the reports to
  indicate what they relates to. Also made the report functions used
  BLI_dynstr to simplify the code.
* Made file reading and writing report errors to the user again using this
  system, also replacing the left over uncommented bad level error() calls.
23 files changed:
source/blender/blenkernel/BKE_blender.h
source/blender/blenkernel/BKE_report.h
source/blender/blenkernel/intern/blender.c
source/blender/blenkernel/intern/context.c
source/blender/blenkernel/intern/report.c
source/blender/blenlib/BLI_dynstr.h
source/blender/blenlib/intern/BLI_dynstr.c
source/blender/blenloader/BLO_readfile.h
source/blender/blenloader/intern/readblenentry.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/readfile.h
source/blender/blenloader/intern/writefile.c
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_regions.c
source/blender/editors/space_file/filelist.c
source/blender/makesdna/DNA_space_types.h
source/blender/makesdna/DNA_windowmanager_types.h
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_files.c
source/blender/windowmanager/intern/wm_operators.c
source/creator/creator.c