05334492a3
Cycles: theme changes, some code syncing with trunk.
2011-10-24 19:32:10 +00:00
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +00:00
a1af5ae6a6
fix for error utf8 printing input.
2011-10-24 10:11:47 +00:00
70bf00a74c
svn merge ^/trunk/blender -r41200:41226 .
2011-10-24 08:45:55 +00:00
ad1d3dd30f
svn merge ^/trunk/blender -r41175:41200 --- will need to apply fix after
2011-10-24 07:56:42 +00:00
5571485bad
fix for crash when entering in non unicode ascii chars.
...
now allow these but only for filepaths.
2011-10-24 06:57:53 +00:00
77a7ec7c61
svn merge ^/trunk/blender -r41150:41175
2011-10-24 05:00:53 +00:00
0503a4f7a6
svn merge ^/trunk/blender -r41100:41150
2011-10-24 04:18:28 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
f1cea89d99
Typo fixes for the typo fixes. :D
2011-10-23 15:43:12 +00:00
67e744ccf0
fix some typo's
2011-10-23 15:27:36 +00:00
e89107927b
- fix for error with utf8 textinput for buttons
...
- ensure input is valid utf8 from ghost and NULL then complain if its not.
- added function to get utf8 size BLI_str_utf8_size()
2011-10-23 13:52:51 +00:00
e58eb5db6f
use defines for keying set names to avoid confusing them with text and having some incorrect names (as fixed in last commit)
2011-10-23 05:08:02 +00:00
8e2bc6cdbc
Context menu 'Edit Source' operator no longer needs to be enabled as a build option, improved this so the python file:line lookups are only done when the operator runs (previously this was done for every button, every draw when the build option was enabled).
...
Perhaps this should be hidden when not running with --debug, easy to change.
2011-10-23 04:13:56 +00:00
2bfd10131e
Cycles: svn merge -r41182:41205 ^/trunk/blender
2011-10-22 19:06:41 +00:00
d4541fd891
Merge with trunk r41197
2011-10-22 16:43:23 +00:00
e417e011d5
Code cleanup: file operations merged into single header, some function names
...
made less cryptic and changed to indicate if they work on files or directories.
2011-10-22 15:35:49 +00:00
c1de5cc838
- use defines for wmKeyMapItem & wmEvent alt/shift/ctrl/oskey
...
- clear utf8_buf on key up & complain if its set (should never happen)
2011-10-22 11:34:01 +00:00
ebe63b664b
py api - added PyC_UnicodeFromByteAndSize() to match PyUnicode_FromStringAndSize()
...
also made RNA_property_string_get_alloc() return the length of the new string to avoid having to run strlen on it after.
2011-10-22 10:49:35 +00:00
9adfa289e8
Cycles: svn merge -r41157:41182 ^/trunk/blender
2011-10-21 20:26:54 +00:00
10af15b85b
Cycles: svn merge -r40934:41157 ^/trunk/blender
2011-10-21 20:13:12 +00:00
00735ed9e4
Code cleanup: don't use btempdir/bprogdir/bprogname globals anymore, but wrap
...
in BLI_ functions.
2011-10-21 17:37:38 +00:00
04db8ad282
misc cleanup
...
- remove redundant casts
- replace strcmp's with "" to just check first char.
- added WM_event_print(), debug mode only to print events since the structs values are not that meaningful.
- added warnings if locale/font dirs cant be found.
2011-10-21 08:16:15 +00:00
874c96a2b9
Cleaning i18n code.
...
Previous state:
Right now, there are "memories" of the "old" (less than a month!) translation way:
* A few remaining calls to BLF_gettext() (only UI_translate_do_iface and UI_translate_do_tooltip should be used).
* The _() macro still also calls BLF_gettext()!
New state:
Here are the changes made by the patch:
* Removing the no more needed _() macro.
* Removing most N_() and _() calls, only keeping the few needed ones (i.e. strings that are in no other way findable by xgettext and/or update_msg script).
* Defining in UI_interface.h IFACE_() and TIP_() macros (resp. for UI_translate_do_iface and UI_translate_do_tooltip).
* Replacing all calls to BLF_gettext by relevant IFACE_ or TIP_ one.
* Replacing all calls to UI_translate_do_iface by IFACE_.
* Replacing all calls to UI_translate_do_tooltip by TIP_.
All this somewhat clarifies and simplifies the code.
On the bf-translations scripts side, this only implies adding IFACE_ and TIP_ as detection markers for xgettext.
It also allows to reduce POTFILES.in quite notably (only 20 files remaining in it).
Please also have a look at those pages:
* Coder POV: http://wiki.blender.org/index.php/Dev:2.5/Source/Interface/Internationalization
* Translator POV: http://wiki.blender.org/index.php/Dev:2.5/Doc/How_to/Translate_Blender
2011-10-20 20:38:26 +00:00
2bd9519e39
BLI_ghash.h was including BLI_blenlib.h, remove from ghash header and include in each file
2011-10-20 13:50:24 +00:00
2f92b5bc3f
fixes for unicode input, should work for operator textinput now.
2011-10-20 11:18:57 +00:00
8d6a554d75
- add BLI_string_utf8.h for unicode functions.
...
- move font.c unicode functions into string_utf8.c and rename to fit with other BLI_string funcs.
2011-10-20 09:47:05 +00:00
1555d4b1a8
fix [ #28902 ] Rendering and visibility icons in modifier panel move between clicks
2011-10-20 08:12:39 +00:00
7aca04ad0a
minor changes to test editing
...
- use BLI_strncpy_utf8 for utf8 buttons when pasting.
- reuse code for ui_textedit_type_ascii / ui_textedit_type_utf8.
- use memmove rather then for() loops in string editing.
- merge jump/all arguments in interface_handlers.c into one enum arg.
2011-10-20 07:12:14 +00:00
9bbec84e7e
initial support for unicode keyboard input for ghost & blenders WM.
...
- currently X11 only, depends on Xinput (but should not break other os's).
- ghost stores utf8 buffer, copies to wmEvent's
- UI text input is currently the only area that uses this - not console or text editor.
- no rna access yet.
2011-10-20 05:30:26 +00:00
445279524a
debug build option WITH_PYTHON_UI_INFO, so you can right click and edit the python source for UI layout directly.
2011-10-20 00:48:00 +00:00
5cf593a778
strcpy() --> BLI_strncpy(), where source strings are not fixed and target size is known.
2011-10-19 23:10:54 +00:00
ef1a1e1451
svn merge ^/trunk/blender -r41005:41075
2011-10-17 03:40:10 +00:00
b6d0daa9cb
utf8 editing for UI text input, this means backspace, delete, arrow keys properly move the cursor with multi-byte chars.
...
Note that this is only for the interface, text editor and python console still miss this feature.
2011-10-16 12:25:42 +00:00
19a42adc61
Cycles: fix nodes gone missing after new/old shading node compatibility changes.
2011-10-15 16:20:41 +00:00
7f4bb1f71b
spelling corrections in comments and quiet warning
2011-10-15 14:14:22 +00:00
9613de6248
make sure render layer names are unique when setting through rna.
2011-10-15 09:59:31 +00:00
f8317ed450
fix UI jump in normal buttons for buttons which didnt start out normalized.
2011-10-15 09:43:42 +00:00
e5e201ccd8
Fix for first part of #28911 : driver not working properly since 2.594
...
Missed id type set for driver target when setting target id.
Patch by me and Campbell.
2011-10-14 11:24:20 +00:00
4e118bb22f
svn merge ^/trunk/blender -r40890:40950
2011-10-14 01:35:20 +00:00
7eadd540d4
svn merge ^/trunk/blender -r40872:40890
2011-10-13 22:50:01 +00:00
8be3249537
Merge with trunk r40991
2011-10-13 21:43:02 +00:00
7d86c6b157
Cycles: add compatibility check to node link menu.
2011-10-12 16:09:35 +00:00
4f33d65ba1
Cycles: svn merge -r40411:40934 ^/trunk/blender
2011-10-11 14:30:53 +00:00
79f21f88c2
fix for drag-n-drop ID's for renaming (own fault when fixing #24016 )
2011-10-11 10:59:52 +00:00
f6cd962df7
bug #28848 also mentions Ctrl+Backspace isnt working.
...
added support for ctrl+backspace/delete.
2011-10-10 01:11:40 +00:00
aa6d7ebd14
svn merge ^/trunk/blender -r40720:40872
2011-10-09 07:31:15 +00:00
a378668ac2
text edit: selecting zoomed in text with the mouse had an incorrect offset.
2011-10-09 01:11:07 +00:00
e50a485836
text editing: make jumping left/right both act the same way (was skipping an extra char when jumping left).
2011-10-09 00:54:41 +00:00
db4b3742a1
button text editing: home/end were not moving the cursor position, only the selecton.
2011-10-09 00:45:26 +00:00