b8e8c0e325
Cleanup: comment line length (editors)
...
Prevents clang-format wrapping text before comments.
2019-01-15 23:30:31 +11:00
1d8d4e03f5
Fix PyConsole: Drag events finished early in modal text selection
2018-06-11 10:18:51 +02:00
44505b38df
Cleanup: strip trailing space in editors
2018-06-04 09:31:30 +02:00
ab7ebf2b10
Cleanup: Use const for RNA EnumPropertyItem args
...
Practically all access to enum data is read-only.
2017-10-18 16:04:07 +11:00
4644f08685
Fix T46998: Console zoom doesn't update scrollbars
2015-12-18 16:02:31 +11:00
Julian Eisel
cc78664d50
Revert Sticky Keys (and everything related to that)
...
Our current keymap doesn't give us enough room to make such changes in
the event system. To fix small issues caused by this, we would need to do
drastic changes in Blender's keymaps and internal handling. It was worth
a try, but it didn't work.
I can write down a more descriptive statement in a few days, but for now
I need a break of this stuff.
2015-04-07 14:13:20 +02:00
92c7632835
Add missing break statements
2015-04-04 10:48:05 +11:00
Julian Eisel
53a3850a8a
Sticky Keys backend
...
Design task: T42339
Differential Revision: D840
Initial implementation proposal: T41867
Short description:
With this we can distinguish between holding and tabbing a key. Useful
is this if we want to assign to operators to a single shortcut. If two
operators are assigned to one shortcut, we call this a sticky key.
More info is accessible through the design task and the diff.
A few people that were involved with this:
* Sean Olson for stressing me with this burden ;) - It is his enthusiasm
that pushed me forward to get this done
* Campbell and Antony for the code and design review
* Ton for the design review
* All the other people that gave feedback on the patch and helped to
make this possible
A big "Thank You" for you all!
2015-04-03 16:21:22 +02:00
ce009c8019
PyConsole: double-click to select word
...
patch T43641 by @v-disp with own edits
2015-03-16 16:03:32 +11:00
fca515838e
Cleanup: strcmp/strncmp -> STREQ/STREQLEN (in boolean usage).
...
Makes usage of those funcs much more clear, we even had mixed '!strcmp(foo, bar)'
and 'strcmp(foo, bar) == 0' in several places...
2015-01-26 16:59:24 +01:00
7d040d2a08
Cleanup: use BLI_listbase_*** prefix for count,sort,sort_r
2014-11-16 13:57:58 +01:00
20d6b792a4
Fix T41767: Memory free problem when console area copy fail.
...
Nice little memleak!
Patch by reporter (randon (Dun Liang)) with minor own cleanup, thanks!
2014-09-10 13:14:29 +02:00
4ca67869cc
Code cleanup: remove unused includes
...
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-05-01 04:47:51 +10:00
a15b3c4d11
Code cleanup: use bool
2014-04-11 11:33:29 +10:00
617557b08e
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
2014-04-01 15:22:28 +11:00
d900f5be55
Code cleanup: use bools where possible
2014-02-03 19:35:44 +11:00
348cf17448
Code Cleanup: no need to pass empty strings as default values
2014-01-16 22:00:29 +11:00
2dba2e72b7
Code Cleanup: de-duplicate text pasting which only used the first line
2014-01-08 17:39:12 +11:00
7267221715
remove return argument from wmOperatorType->cancel, was only ever returning OPERATOR_CANCELLED.
2013-10-30 23:08:53 +00:00
a5620a73b3
fix for crash freeing console history.
2013-09-24 17:11:55 +00:00
6af6c96e85
fix for yet another off by one error in console code, could crash deleting words (but mostly it was hidden by guardedalloc), hopefully the last of this kind in console.
2013-04-30 22:46:41 +00:00
7ce6bfb17b
fix bad memmove size (reading past buffer bounds)
2013-04-05 03:44:07 +00:00
e7c15beaf6
code cleanup: use booleans for mesh and selection code.
2013-03-19 23:17:44 +00:00
aaa8a13c49
code cleanup: use const events for modal and invoke operators.
2013-03-13 09:03:46 +00:00
ab7ca2dc44
fix for double clicking in the text editor not working usefully (double clicking a pair chars would select 3 - one to the left).
2013-02-14 03:03:12 +00:00
934fa91f75
patch [ #34192 ] UTF-8 input in Python interactive console
...
from Shinsuke Irie (irie)
2013-02-11 09:40:33 +00:00
2f97f929a5
fix for bug in console indent, was not copying the null terminator.
...
also add assert to catch this case more quickly.
2012-12-01 06:29:04 +00:00
449369adf3
minor edit to console line adding, all callers have the console space, may as well pass it.
2012-11-22 09:57:38 +00:00
62331fd0f8
fix for clear line adjusting console selection.
2012-11-22 09:49:56 +00:00
8a658d4050
add in assert's to double check the line lenth is never <0
2012-10-30 12:08:44 +00:00
ef60504009
fix for selection offset with indentation in the python console.
2012-10-30 11:57:37 +00:00
0e494b74c4
style cleanup
2012-10-26 04:14:10 +00:00
fec81d9b56
use min_ max_ functions in more places.
...
also fix minor error in MOD decimate when the modifier did nothing the reported face count would be wrong.
2012-10-23 16:21:55 +00:00
f3ece5a108
style cleanup: trailing tabs & expand some non prefix tabs into spaces.
2012-10-21 05:46:41 +00:00
18bf8993f7
fix for py-console ctrl+backspace/del changing the selection.
2012-10-14 21:27:08 +00:00
eb81192069
Tag unused variables
2012-06-04 07:43:36 +00:00
4414f38cbf
patch [ #31644 ] Py Console: Indent and unindent independent of cursor (aligned) [Tab / Shift + Tab / Ctrl + Tab]
...
from Sebastian Nell (codemanx)
2012-06-04 07:24:19 +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
895e426e26
patch [ #31359 ] Py Console: Empty current line
...
from Sebastian Nell (codemanx), with some edits
- Changed key shortcut to Shift+Enter.
- made into its own operator since it works differently to delete.
2012-05-09 14:58:57 +00:00
431eafe559
partial fix [ #30777 ] python console utf-8 problem
...
backspace/del now doesn't split up multi-byte characters.
Ctlr+Backspace/Del now work for deleting whole words.
2012-04-03 03:17:49 +00:00
ed61bfc9a6
style cleanup
2012-03-28 11:53:18 +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
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
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
c78f02d990
edit to cursor adjustment, use int rather then short to store the cursor position.
2012-03-07 16:24:25 +00:00
00781668ce
Unify string stepping delimiter code for text buttons, text editor and console (all had duplicate code).
...
this is also a step toward the console working with utf8 though many todo's remain.
2012-03-07 15:55: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
0c2f08d35a
fix crash when calling bpy.ops.render.render('INVOKE_DEFAULT') from the python console.
2012-01-15 14:19:32 +00:00