Blender Git Commit Log
Git Commits -> Revision 6cc89b9
Revision 6cc89b9 by Brecht Van Lommel (master) February 28, 2009, 23:33 (GMT) |
2.5: Text Editor back. There was very little structure in this code, using many globals and duplicated code. Now it should be better structured. Most things should work, the main parts that are not back yet are the python plugins and markers. Notes: * Blenfont is used for drawing the text, nicely anti-aliased. * A monospace truetype font was added, since that is needed for the text editor. It's Bitstream Vera Sans Mono. This is the default gnome terminal font, but it doesn't fit entirely well with the other font I think, can be changed easily of course. * Clipboard copy/cut/paste now always uses the system clipboard, the code for the own cut buffer was removed. * The interface buttons should support copy/cut/paste again now as well. * WM_clipboard_text_get/WM_clipboard_text_set were added to the windowmanager code. * Find panel is now a kind of second header, instead of a panel. This needs especially a way to start editing the text field immediately on open still. * Operators are independent of the actual space when possible, was a bit of puzzling but got it solved nice with notifiers, and some lazy init for syntax highlight in the drawing code. * RNA was created for the text editor space and used for buttons. * Operators: * New, Open, Reload, Save, Save As, Make Internal * Run Script, Refresh Pyconstraints * Copy, Cut, Paste * Convert Whitespace, Uncomment, Comment, Indent, Unindent * Line Break, Insert * Next Marker, Previous Marker, Clear All Markers, Mark All * Select Line, Select All * Jump, Move, Move Select, Delete, Toggle Overwrite * Scroll, Scroll Bar, Set Cursor, Line Number * Find and Replace, Find, Replace, Find Set Selected, Replace Set Selected * To 3D Object * Resolve Conflict |
Commit Details:
Full Hash: 6cc89b9d4e6ab17bea0631b1be800dd9a022db23
SVN Revision: 19148
Parent Commit: 2469305
Lines Changed: +15482, -424
6 Added Paths:
/release/datafiles/bmonofont.ttf (+0, -0) (View)
/source/blender/editors/datafiles/bmonofont.ttf.c (+9681, -0) (View)
/source/blender/editors/include/ED_text.h (+36, -0) (View)
/source/blender/editors/space_text/text_draw.c (+1381, -0) (View)
/source/blender/editors/space_text/text_ops.c (+2563, -0) (View)
/source/blender/editors/space_text/text_python.c (+541, -0) (View)
/source/blender/editors/datafiles/bmonofont.ttf.c (+9681, -0) (View)
/source/blender/editors/include/ED_text.h (+36, -0) (View)
/source/blender/editors/space_text/text_draw.c (+1381, -0) (View)
/source/blender/editors/space_text/text_ops.c (+2563, -0) (View)
/source/blender/editors/space_text/text_python.c (+541, -0) (View)
43 Modified Paths:
/intern/ghost/GHOST_C-api.h (+5, -3) (Diff)
/intern/ghost/GHOST_ISystem.h (+2, -2) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+4, -4) (Diff)
/intern/ghost/intern/GHOST_System.h (+6, -6) (Diff)
/intern/ghost/intern/GHOST_SystemCarbon.cpp (+3, -3) (Diff)
/intern/ghost/intern/GHOST_SystemCarbon.h (+3, -3) (Diff)
/intern/ghost/intern/GHOST_SystemWin32.cpp (+4, -3) (Diff)
/intern/ghost/intern/GHOST_SystemWin32.h (+6, -6) (Diff)
/intern/ghost/intern/GHOST_SystemX11.cpp (+4, -4) (Diff)
/intern/ghost/intern/GHOST_SystemX11.h (+5, -6) (Diff)
/source/blender/blenfont/BLF_api.h (+3, -1) (Diff)
/source/blender/blenfont/SConscript (+4, -4) (Diff)
/source/blender/blenkernel/BKE_context.h (+12, -2) (Diff)
/source/blender/blenkernel/BKE_text.h (+1, -16) (Diff)
/source/blender/blenkernel/intern/context.c (+28, -9) (Diff)
/source/blender/blenkernel/intern/curve.c (+0, -1) (Diff)
/source/blender/blenkernel/intern/text.c (+8, -114) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -1) (Diff)
/source/blender/editors/curve/curve_intern.h (+0, -1) (Diff)
/source/blender/editors/curve/curve_ops.c (+0, -1) (Diff)
/source/blender/editors/curve/editfont.c (+54, -140) (Diff)
/source/blender/editors/include/ED_curve.h (+7, -4) (Diff)
/source/blender/editors/include/ED_datafiles.h (+3, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+16, -10) (Diff)
/source/blender/editors/interface/interface_utils.c (+14, -10) (Diff)
/source/blender/editors/space_action/action_header.c (+2, -1) (Diff)
/source/blender/editors/space_image/image_header.c (+2, -2) (Diff)
/source/blender/editors/space_info/info_header.c (+3, -8) (Diff)
/source/blender/editors/space_text/Makefile (+2, -0) (Diff)
/source/blender/editors/space_text/SConscript (+4, -0) (Diff)
/source/blender/editors/space_text/space_text.c (+228, -22) (Diff)
/source/blender/editors/space_text/text_header.c (+555, -27) (Diff)
/source/blender/editors/space_text/text_intern.h (+120, -2) (Diff)
/source/blender/editors/util/undo.c (+7, -2) (Diff)
/source/blender/makesdna/DNA_space_types.h (+9, -1) (Diff)
/source/blender/makesdna/DNA_text_types.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+82, -2) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+4, -1) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+51, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+5, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+5, -0) (Diff)
/intern/ghost/GHOST_ISystem.h (+2, -2) (Diff)
/intern/ghost/intern/GHOST_C-api.cpp (+4, -4) (Diff)
/intern/ghost/intern/GHOST_System.h (+6, -6) (Diff)
/intern/ghost/intern/GHOST_SystemCarbon.cpp (+3, -3) (Diff)
/intern/ghost/intern/GHOST_SystemCarbon.h (+3, -3) (Diff)
/intern/ghost/intern/GHOST_SystemWin32.cpp (+4, -3) (Diff)
/intern/ghost/intern/GHOST_SystemWin32.h (+6, -6) (Diff)
/intern/ghost/intern/GHOST_SystemX11.cpp (+4, -4) (Diff)
/intern/ghost/intern/GHOST_SystemX11.h (+5, -6) (Diff)
/source/blender/blenfont/BLF_api.h (+3, -1) (Diff)
/source/blender/blenfont/SConscript (+4, -4) (Diff)
/source/blender/blenkernel/BKE_context.h (+12, -2) (Diff)
/source/blender/blenkernel/BKE_text.h (+1, -16) (Diff)
/source/blender/blenkernel/intern/context.c (+28, -9) (Diff)
/source/blender/blenkernel/intern/curve.c (+0, -1) (Diff)
/source/blender/blenkernel/intern/text.c (+8, -114) (Diff)
/source/blender/blenloader/intern/readfile.c (+6, -1) (Diff)
/source/blender/editors/curve/curve_intern.h (+0, -1) (Diff)
/source/blender/editors/curve/curve_ops.c (+0, -1) (Diff)
/source/blender/editors/curve/editfont.c (+54, -140) (Diff)
/source/blender/editors/include/ED_curve.h (+7, -4) (Diff)
/source/blender/editors/include/ED_datafiles.h (+3, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+16, -10) (Diff)
/source/blender/editors/interface/interface_utils.c (+14, -10) (Diff)
/source/blender/editors/space_action/action_header.c (+2, -1) (Diff)
/source/blender/editors/space_image/image_header.c (+2, -2) (Diff)
/source/blender/editors/space_info/info_header.c (+3, -8) (Diff)
/source/blender/editors/space_text/Makefile (+2, -0) (Diff)
/source/blender/editors/space_text/SConscript (+4, -0) (Diff)
/source/blender/editors/space_text/space_text.c (+228, -22) (Diff)
/source/blender/editors/space_text/text_header.c (+555, -27) (Diff)
/source/blender/editors/space_text/text_intern.h (+120, -2) (Diff)
/source/blender/editors/util/undo.c (+7, -2) (Diff)
/source/blender/makesdna/DNA_space_types.h (+9, -1) (Diff)
/source/blender/makesdna/DNA_text_types.h (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+82, -2) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+4, -1) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+51, -0) (Diff)
/source/blender/windowmanager/WM_api.h (+5, -0) (Diff)
/source/blender/windowmanager/WM_types.h (+5, -0) (Diff)