Commit Graph

72 Commits

Author SHA1 Message Date
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
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
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
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
5db33d11bd Console Scrolling - reset while typing.
patch from Damir Prebeg with some edits.

Also made it so resizing the console view keeps the lower part of the text in view (could be annoying when you needed to scroll because of a resized view).
2011-09-18 01:34:53 +00:00
a99f2cd015 Minor: fixing other UI typos. 2011-09-17 10:44:16 +00:00
c83417b2e2 running bpy.ops.render.render('INVOKE_DEFAULT') would crash blender. 2011-08-13 14:24:53 +00:00
4ce97c5ed4 changes to startup.blend
- enable manipulator option, applies to new 3d views (not sure why it was disabled) - reported in [#27664]
- remove rigify and netrender scene ID properties
- set console scrollback to 256, was 128 which could sometimes cut off output of help()
- enabled syntax highlighting and line number in the text editor for game logic and python screens
2011-06-20 03:10:02 +00:00
c7fccc84bf use NULL rather then 0 for pointer assignments & comparison, modifier, imbuf & editors. 2011-03-05 10:29:10 +00:00
Nathan Letwory
95100afc12 doxygen: blender/editors tagged. 2011-02-27 20:29:51 +00:00
Nathan Letwory
5b607701a7 doxygen: prevent GPL license block from being parsed as doxygen comment. 2011-02-23 10:52:22 +00:00
8b7482892b made most variables which are only used in a single file and not defined in header static for blenlib, blenkernel and editors. 2011-02-14 17:55:27 +00:00
5e8b877268 Crash fix, IRC report.
Python console crashed on opening.

Too quick code cleaning for "unused variables" caused a complete line
of code to disappear that was needed anyway :)
2011-01-08 17:47:34 +00:00
3b74074aec remove unused code & variables. 2011-01-08 12:43:44 +00:00
8f21a43535 split BKE_utildefines.h, now it only has blender specific defines like GS() MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h.
no functional changes.
2011-01-07 18:36:47 +00:00
cd97253502 - added GCC warning -Wstrict-prototypes
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03 12:30:59 +00:00
d9c23d8d5d minor console changes.
- remove report argument from console functions.
- don't update the scroll area while drawing, do this within operators instead.
- dont redraw while selecting text unless selection changes.
2010-11-30 22:39:41 +00:00
43f396218f move report/operator view out of the 'Console' into the 'Info' space (file menu).
Ton will work on moving the File menu out of the Info space before release.

notes.
- reply Operator isn't working anymore.
- UI for reports is commented out so its not mixed with the file menu.
2010-11-11 13:36:57 +00:00
e47d84026d make console wrapped text drawing into its own function in preparation to move report view out of the console space type. (no functional changes)
also remove incorrect messages about the original copyright in the GPL headers.
2010-11-11 05:45:55 +00:00
369a5cc29e fix for compiling with the c90 standard, support for non-static variable initializers is a c99 feature. 2010-11-02 13:12:30 +00:00
9971158648 use UNUSED() macro for the console space + minor changes to args. 2010-10-13 23:46:42 +00:00
74dd22a228 re-enable fix from r32330 but without the alt key check because this can be used for input. 2010-10-13 01:30:42 +00:00
Nathan Letwory
67a1a871a9 Revert r32330 and reopening #24184. The change breaks input where modifier key is used to create a character. 2010-10-11 08:03:28 +00:00
7006309b3a fix for console selection when pasting. 2010-10-08 12:16:03 +00:00
458de52151 bugfix [#24148] unable to get keyboard mappings to work in the text window
this exposes another problem: RNA_property_is_set cant be used on properties set from a keymap, they are always set. for now check for string length.
2010-10-05 18:35:02 +00:00
c76d339b6c fix for copy in the console (wasnt taking the prompt into account) 2010-10-04 12:02:18 +00:00
27c444acb6 python console prompt + edit line is how selectable. 2010-10-02 22:31:48 +00:00
2b59013490 bugfix pointed out by Kris Salaah (own mistake) 2010-09-28 19:57:47 +00:00
e310b302ae minor console fixes
- selection doesnt mess up alignment when text is added to the buffer.
- tab key is now alligned to 4 (rather then adding 4 spaces).
2010-09-27 17:22:59 +00:00
28a2eedce6 console now stores selection internally with 0 index starting at the end of the line. makes internal logic much less confusing. no functional changes. 2010-09-27 14:01:16 +00:00
f2d77e4496 remove unused includes from editors/space_* 2010-08-08 08:14:07 +00:00
f743b583bf more lint includes
Only source/blender/editors/ dir, should not give errors on different platforms
Only removing:  UI_*.h, ED_*.h, WM_*.h, DNA_*.h, IMB_*.h, RNA_*.h, PIL_*.h
2010-03-23 14:09:09 +00:00
1e9bf0cfdb spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text) 2010-03-22 09:30:00 +00:00
5be3bf73be bugfix [#20694] Copy Paste to buffer missing in Console editor
- console selection working
- copy selection to clipboard
- paste selection from clipboard works with multiline paste

word-wrap is still not working with selection drawing.
2010-02-26 23:56:16 +00:00
081c1205a3 correct fsf address 2010-02-12 13:34:04 +00:00