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
7217518179
UI:
...
* Add theme option to show panel header background.
* Draw panel collapse widget a bit smaller.
* Add theme option to draw icons muted.
* Code tweak: replace U.themes.first by UI_GetTheme() calls.
2011-11-19 20:57:53 +00:00
e84c0980a3
correct indentation and some whitespace edits (no functional changes)
2011-11-11 13:09:14 +00:00
592879bfca
prefix common internal operator function names so its possible to assign them breakpoints.
2011-10-28 03:02:09 +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
f037642843
Fix #28937 : Text Editor Selection (Scroll Bar)
...
Do not start selection if mouse cursor.x >= scrollbar.x
2011-10-20 08:19:51 +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
58587a3881
replace strncpy with BLI_strncpy, in some cases strncpy was being misused since it doesnt ensure \0 termination.
...
also dont call CTX_data_scene() twice when checking for function arguments.
2011-09-26 18:51:10 +00:00
3cff99c9a1
Commented and tagged some unused vars (gcc warnings...). Also fixed some uninitialized warnings.
2011-09-26 13:24:42 +00:00
a20bcb4613
clear up some warnings.
2011-09-22 14:42:29 +00:00
84d06f252e
tag & comment unused vars with /* UNUSED */
2011-09-20 08:48:48 +00:00
f157a543c6
/blender/editors: Removed final points in UI strings and messages.
...
Plus a few cuts in very long lines…
2011-09-19 12:26:20 +00:00
5fdbfbaf3a
replace magic numbers for flags for uiSetRoundBox();
2011-09-11 06:41:09 +00:00
7a496bfbcf
Partial fix for #28441 : Tab width in texteditor ignored if used tabs as spaces
...
Scroll to cursor when displaying text datablock was changed.
This behavior was lost in 2.5x.
2011-09-02 09:39:21 +00:00
43ab8e8624
* Merge trunk up to r39790.
...
* Subversion bump (also for init_userdef_do_versions).
* Minor fix for compilation without ffmpeg.
2011-08-30 08:22:03 +00:00