Commit Graph

12340 Commits

Author SHA1 Message Date
Jakub Valtar
58df48655c Fix typo in glsl preprocessor
Add missing 2D which disappeared in

https://github.com/processing/processing/pull/4052/files#diff-88c7dd4e8f37672d20e228a71a433a6dL1889
2017-01-06 21:45:53 +01:00
Ben Fry
fd3bbd5a6b make notes of recent PRs and bug reports 2017-01-06 11:18:27 -05:00
Ben Fry
87d1fdb61d Merge pull request #4797 from JakubValtar/fix-mouse-button-events
Unify mouse pressed/released events across renderers
2017-01-06 10:56:09 -05:00
Ben Fry
e086ceea2d Merge pull request #4798 from JakubValtar/fx-exception-handler
FX: Add exception handler which reports exceptions from user code
2017-01-06 10:50:19 -05:00
Ben Fry
86af999af5 Merge pull request #4800 from JakubValtar/fix-fx-curves
FX: Fix curveVertex drawing all curves together as one long curve
2017-01-06 10:49:14 -05:00
Ben Fry
702e4cf8cb Merge pull request #4796 from JakubValtar/fx-mouse-wheel
FX: Implement mouse wheel event
2017-01-06 10:42:04 -05:00
Ben Fry
583b3f43d4 Merge pull request #4795 from JakubValtar/master
FX: Reset transform to identity before drawing background
2017-01-06 10:41:13 -05:00
Ben Fry
e7786cd079 Merge pull request #4799 from JakubValtar/fix-matrix-overflow
FX: Prevent matrix stack overflow
2017-01-06 10:40:30 -05:00
Jakub Valtar
ec8e023e80 FX: Fix curveVertex drawing all curves together as one long curve
Fixes #4382
2016-12-29 21:29:57 +01:00
Jakub Valtar
faa22de621 FX: Prevent matrix stack overflow
Matrix stack could overflow in a very special case when beginShape() was
called while strokeWeight=1 and then strokeWeight was changed before
endShape(). This PR makes sure matrix is popped correctly even when user
changes strokeWeight in the beginShape()/endShape() block.

Decided to bug user only when necessary and not show warining when user
changes strokeWeight in the beginShape()/endShape() block, same as in
JAVA2D. Otherwise we could add checks for all the other things which are
mentioned in the docs, but it would be hell to maintain and use.

Fixes #4206
2016-12-29 19:00:24 +01:00
Jakub Valtar
fceb13bf73 FX: Add exception handler which reports exceptions form user code
Fixes #4339
2016-12-29 17:04:16 +01:00
Jakub Valtar
7f93baa904 Unify mouse pressed/released events across renderers
OPENGL and FX renderers will now correctly report button which triggered
this pressed/released event (same as JAVA2D).

Previously:
- OPENGL would report currently pressed buttons in order LEFT, CENTER,
RIGHT regardless of which button triggered the event. E.g. when holding
LEFT and presing RIGHT, LEFT would be reported. When holding CENTER and
pressing LEFT, LEFT would be reported
- FX would report only first button which is down, so in RELEASE event
button would be missing

Now:
- event contains only button which triggred this event (button just
pressed or just released)
2016-12-29 15:48:15 +01:00
Jakub Valtar
e5e5dc3dc8 FX: Implement mouse wheel event 2016-12-29 15:35:30 +01:00
Jakub Valtar
2439db5574 FX: Reset transform to identity before drawing background 2016-12-29 14:15:06 +01:00
Ben Fry
8b74491e69 fix direction of slashes 2016-12-23 03:40:25 -05:00
Ben Fry
71a6c643fa remove redundant use of "if (DEBUG)" 2016-12-21 23:56:40 -05:00
Ben Fry
fb1b0c4d02 remove unused import 2016-12-21 23:48:32 -05:00
Ben Fry
db810070e4 check for installed Source Sans on Windows (fix for #4747) 2016-12-21 17:21:58 -05:00
codeanticode
c4560e6945 Allow setting vertex of geometry 2D PShape in P3D, fixes #4773 2016-12-20 16:21:59 -05:00
Ben Fry
03578c6f66 note about recent changes 2016-12-18 11:17:18 -05:00
Ben Fry
68d0eaa635 Merge pull request #4777 from JakubValtar/error-check-update
Report missing brace in correct tab, suppress other errors until fixed
2016-12-18 11:04:47 -05:00
Jakub Valtar
0a02898ff1 Don't cache search classpath, only build it when looking for a class
Fixes #4748

Libraries imported in opened sketches will be still locked by latest
preprocessed CompilationUnit. Otherwise we would have to copy library
jars somewhere else so they can be available to CompilationUnit while
Contribution Manager updates original unlocked jars.
2016-12-18 00:36:22 +01:00
Jakub Valtar
b72a39564b Detect missing braces in tabs, ignore other problems until fixed 2016-12-17 20:56:33 +01:00
Jakub Valtar
dd31bf2fbe Clean up JavaProblem, remove IProblem field 2016-12-16 04:48:11 +01:00
Jakub Valtar
5f464e9558 PDEX: simplify import suggestion handling 2016-12-16 04:45:42 +01:00
Jakub Valtar
d3a6e7ec5b Fix ErrorMessageSimplifier indents (no functional changes) 2016-12-16 04:45:42 +01:00
Jakub Valtar
508132dff1 Clean up ErrorMessageSimplifier
Remove weird unused thread-spawning constructor
Accept IProblem instead of whole JavaProblem
Move fallback process() from JavaProblem to EMSimplifier as a default
case
Add debug switch and move debug logging into if blocks
2016-12-16 04:45:42 +01:00
Ben Fry
25b9709751 notes about #3965 fix 2016-12-06 17:35:43 -05:00
Ben Fry
e289ae9b4c Merge pull request #4762 from JakubValtar/fix-infinite-popups
Clean up ChangeDetector
2016-12-06 17:33:35 -05:00
Jakub Valtar
f5ca945b5e Clean up ChangeDetector
Fixes #3965
2016-12-05 03:46:44 +01:00
Ben Fry
faffc89950 fix exceptions from pasting code into Editor (#4522, #4761) 2016-12-04 16:47:48 -05:00
Ben Fry
cd35a0a04b better error message when running from the .zip file 2016-12-04 16:47:19 -05:00
Ben Fry
471f8efc17 Merge pull request #4761 from JakubValtar/fix-token-marker
Extract state from TokenMarker
2016-12-04 16:44:20 -05:00
Jakub Valtar
8133264fa6 Extract state from TokenMarker
TokenMarker now serves as a holder for keyword list and to provide
marking logic. I extracted the rest into TokenMarkerState. Each tab now
has its own state, preventing bugs by leaking TokenMarker state between
tabs amd Editor instances.

There is no need to recompile any Modes, however TokenMarker should be
redesigned in the next major version and Modes updated accordingly.

For more details read TokenMarkerState header.
2016-12-04 20:56:51 +01:00
Ben Fry
78de0c980a make a note of the gui changes 2016-12-03 17:11:23 -05:00
Ben Fry
e0586a39fb split gui and non-gui portions of console for earlier startup 2016-12-03 15:46:26 -05:00
Ben Fry
7a6b2b221b splitting Console for better recording 2016-12-03 09:20:57 -05:00
Ben Fry
32193ba5ba use debug.txt instead of debug; add pref to disable system proxy 2016-12-01 07:38:19 -05:00
Ben Fry
f8fce0fc1f trying to debug proxy issues 2016-12-01 07:26:18 -05:00
Ben Fry
dc69bc3813 documentation auto-update 2016-11-30 12:09:34 -05:00
Ben Fry
c7baf0f5e4 notes about github updates 2016-11-29 11:43:44 -05:00
Ben Fry
3d5bc1aeff Merge pull request #4753 from JakubValtar/fix-hexcolor-regex
Fix hex color regex
2016-11-29 11:42:50 -05:00
Jakub Valtar
7b3719ad8f Fix hex color regex
Same problem as with type constructors #4744

Fixes #4752
2016-11-24 22:16:40 +01:00
REAS
30ea717b7b Remove CATEGORY as a parameter for Table.addColumn() pointed out in processing/processing-docs#501 2016-11-22 20:03:35 -08:00
REAS
a470c951f4 Clarification for image() reference based on Issue #500 2016-11-22 19:35:12 -08:00
Ben Fry
29d56d1ed3 several XML fixes and adding print() 2016-11-16 17:12:42 -05:00
Ben Fry
31d8aa3cb0 Merge pull request #4744 from JakubValtar/fix-type-constructors
Fix nested type constructors raising error
2016-11-16 09:28:19 -05:00
Jakub Valtar
ab4eb7353f Fix nested type constructors raising error
Replace non-capturing groups by positive lookahead and lookbehind,
because they don't consume the source String and allow for first and
last group to overlap when two constructors are directly nested.

Fixes #4652
2016-11-16 01:36:20 +01:00
REAS
c95b76eefa Fixes for nfs(), helps the Reference at the expense of the JavaDoc 2016-11-15 13:29:13 -08:00
REAS
2e8bfde5ce More changes to PApplet to fix web reference for number formatting, but not yet fixing the JavaDoc 2016-11-15 13:15:49 -08:00