26f073b327
macros for rectangle center and size
2012-08-20 15:29:02 +00:00
887d517e3b
use define for 0.375 = GLA_PIXEL_OFS, used all over the interface.
...
also use M_SQRT1_2 in math_rotation.c
2012-08-05 17:27:52 +00:00
97e9659c53
style cleanup
2012-08-04 12:54:27 +00:00
7620c27554
missed this change from patch [ #30274 ]
2012-07-11 12:35:50 +00:00
32478997ec
style cleanup
2012-06-27 18:29:47 +00:00
f5f25b81e8
style cleanup:
...
also fix for building ghost test and fix double free in one of the tests
2012-06-17 09:58:26 +00:00
57c292daf0
style cleanup
2012-05-25 09:51:53 +00:00
2d2d36fe3b
code cleanup:
...
- style - multi-line ifs move braces onto new lines.
- iterators - convert some to macros, other split up and move brace.
2012-05-20 19:49:27 +00:00
af3e348430
code cleanup: use TRUE/FALSE rather then 1/0 for better readability, also replace do prefix with do_ for bool vars.
2012-05-19 13:28:19 +00:00
d20c129a9c
style cleanup: whitespace/operators
2012-05-09 09:24:15 +00:00
f3230c7897
Second part of fix for [ #31157 ]: Some (actually, 172) operators have no tooltip.
...
About 30 undocumented ops remaining...
2012-05-05 17:10:51 +00:00
34b18fcbc1
code cleanup: BKE_ naming, also make bpy.data.images.load() always load a new image. (not use existing one)
2012-05-05 14:52:04 +00:00
a731e13043
code cleanup: function naming, use BKE_*type* prefix.
2012-05-05 14:03:12 +00:00
b6edcc4b33
make text move up/down into a single operator with a direction property
2012-05-04 16:17:09 +00:00
2bc29ff426
Patch [ #30654 ] Wiki Quick Hack: Text editor move lines up/down
...
Submitted by: Justin Dailey (dail)
Patch allows the current line (or selected lines) to be moved up and down with
Ctrl+Shift+Up and Ctrl+Shift+Down. Has undo/redo support and operators in python
menu.
2012-05-04 14:27:13 +00:00
44d81faa43
patch [ #30821 ] Wiki Quick Hack: Text editor duplicate line
...
from Justin Dailey (dail)
made this Ctrl+D, to replace Delete.
2012-04-29 18:53:43 +00:00
343edf2722
style cleanup: function calls & whitespace.
2012-04-29 17:11:40 +00:00
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
48893dba24
style cleanup: no functional changes
2012-04-24 22:50:49 +00:00
a73d0d3e72
code cleanup: dont include BLI_winstuff.h on non windows systems, also cleanup some defines/includes for windows.
2012-04-15 07:54:07 +00:00
906cd4d8a6
update python keywords (remove exec, print, add nonlocal)
2012-04-06 05:53:01 +00:00
cbf9c1eb48
style cleanup: text editor
2012-03-31 04:24:02 +00:00
b8a71efeba
style cleanup: follow style guide for/with/if spacing
2012-03-24 07:52:14 +00:00
ab4a2aaf4a
style cleanup: follow style guide for formatting of if/for/while loops, and else if's
2012-03-24 06:38:07 +00:00
2f348d8b5d
style cleanup: mainly for mesh code, also some WM function use.
2012-03-24 02:51:46 +00:00
4c3bb77012
style cleanup: spaces aroudn operators for operator definitions.
2012-03-22 07:26:09 +00:00
d5600a43f6
Quick fix to broken text editor/console from r45051.
...
Note: not completely sure this is the way to go, but at least it works (and is easy to revert in case there is better solution ;) ).
2012-03-21 15:51:15 +00:00
9dd0c4c232
rename define BM_INLINE -> BLI_INLINE to avoid confusion with bmesh defines.
2012-03-20 08:42:26 +00:00
f11a6d3a84
Adds support for utf paths on Windows.
...
Not all file formats/calls are supported yet. It will be expended.
Please from now on use BLI_fopen, BLI_* for file manipulations.
For non-windows systems BLI_fopen just calls fopen.
For Windows, the utf-8 string is translated to utf-16 string in order to call UTF version of the function.
2012-03-20 02:17:37 +00:00
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
702e85ef84
picky changes to mouse cursor text selection behavior, previously as soon as the mouse was before a character it would select the previous, even if the cursor was closer to the space between the next 2 chars.
...
now find the closest point inbetween both chars.
2012-03-09 23:10:07 +00:00
79d97ca509
style cleanup - spelling.
2012-03-08 04:12:11 +00:00
31d2ee9bf7
style cleanup, brackets in else/if, some indentation.
2012-03-06 18:40:15 +00:00
f6ae27daef
style cleanup - comment spelling + translate some dutch.
2012-03-04 04:35:12 +00:00
a2c182e923
style cleanup - use aligned * prefixed blocks for descriptive comments (was already used a lot and part of proposed style guide).
2012-03-03 16:31:46 +00:00
7bbf4b7831
style cleanup
...
- spelling - turns out we had tessellation spelt wrong all over.
- use \directive for doxy (not @directive)
- remove BLI_sparsemap.h - was from bmesh merge IIRC but entire file commented and not used.
2012-03-02 16:05:54 +00:00
2b7ca2304a
unify include guard defines, __$FILENAME__
...
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-02-17 18:59:41 +00:00
44850d6946
Fix #29946 : Recover Auto Save defaults to "Short List" View -- Cannot determine dates
...
Added option display_type to WM_operator_properties_filesel which defines which file
display type (short/list/icons/default) should be used for file browser.
All current operators are using FILE_DEFAULTDISPLAY display type which means display
type will still be calculated based on type of opening file and user preferences
settings. Recover Auto Save operator is now using long display type so file date can
easily be checked now.
Reviewed by Andrea, thanks!
2012-01-24 18:18:51 +00:00
58c51bb551
quiet some warnings & (possible/unlikely error)
2012-01-24 15:37:50 +00:00
b1667911ef
reduce operator lookups in the UI (could do 4 hash lookups per button).
2012-01-22 03:30:07 +00:00
c150d0084f
patch [ #29859 ] UTF-8 support for text editor.
...
This also fixes cursor movement in the beginning of line and adds do_versions block for converting text files with old extended ascii encoding into UTF-8.
2012-01-16 16:23:25 +00:00
e1dd245a1e
more keymap edits
...
- make sure defaults are not assumed (so reuse last settings doesnt
override)
- replace 0/1 for TRUE/FALSE defines.
2012-01-16 16:12:03 +00:00
3123ad12a3
middle mouse jump scrolling for text window.
2012-01-16 10:48:52 +00:00
acb9b46617
use TRUE/FALSE for boolean keymaps, no functional changes
2012-01-16 09:51:04 +00:00
f66f33cefc
rename RNA_property_is_set() --> RNA_struct_property_is_set() in preperation to add a second version of the function which takes the property rather then its name.
2012-01-11 16:32:12 +00:00
fbc4846a6e
dynamicpaint had some incorrect string sizes for layers names, use BLI string functions in more places too.
2012-01-11 12:56:31 +00:00
e10fd04db0
use BLI_strncpy and BLI_snprintf when the size of the string is known.
...
fix for sequencer unique naming which was missed with string length update.
2012-01-11 12:33:51 +00:00
a64d92eb13
Fix #29655 : keyboard shortcuts missing from text editor text menu, and removed
...
confirmation popup for creating new text datablock.
2011-12-19 14:23:19 +00:00
343c2bb5aa
Update space text's viewlines even if no text selected. It's needed for
...
proper positioning to cursor when switching to text datablock in case
there was no datablock opened in text editor.
2011-11-30 15:10:44 +00:00
6736576f6d
replace FILE_MAXDIR + FILE_MAXFILE with FILE_MAX
2011-11-26 04:07:38 +00:00