Commit Graph

1897 Commits

Author SHA1 Message Date
A Samuel Pottinger 003d33f951 Turn off UI scaling for windows.
Frustratingly, use of prior Processing WindowsPlatform code for detecting DPI causes UI scaling to turn off and yields a DPI of 96 regardless of windows display scaling. However, in the current WindowsPlatform, UI scaling is enabled but text size calculation within custom rendering swing elements is incorrect, possibly because there is scaling happening underneath transparently. This causes x positions to be inflated at 125% scaling, for example. On a whole, Windows itself does not recommend scaling other than 100% inside the settings UI and that UI scaling within Java itself makes the custom UI elements look bad. So, this suggests disabling the ui scaling in Java for the editor, leaving the opportunity for Processing to find a new way to detect system scaling in the future and handling it internally. At this time, sketches still seem to be calculating positions correctly though they do appear pixelated with display scaling. Therefore, they are left alone.
2019-11-22 16:53:48 -08:00
Ben Fry f41ed83a8d add Ukranian translation update from https://github.com/processing/processing/pull/5944 2019-11-15 14:03:23 -05:00
A Pottinger 48786a88d0 Remove comment on gitignore for build. 2019-10-10 23:25:06 -07:00
A Pottinger 9725e79f81 Merge branch 'fix_jdk_naming' of github.com:sampottinger/processing4 into fix_jdk_naming 2019-10-10 23:22:13 -07:00
A Pottinger cfd61a074a Fix windows javafx temp folder cleanup.
Remove the javafx expansion of the zip archive on windows after build completes.
2019-10-10 23:21:58 -07:00
A Samuel Pottinger 3340630c1b Merge branch 'master' into fix_jdk_naming 2019-10-10 22:54:38 -07:00
A Pottinger 27836ac1a7 Started temp directory cleanup for JDK working files. 2019-10-10 22:38:12 -07:00
A Pottinger c1077d993f Update naming convention for JDK downloads.
In response to https://github.com/processing/processing4/issues/6, fix up naming for JDK downloads and some leftover .gitignore edits.
2019-10-10 21:34:35 -07:00
A Pottinger d87032d278 Updated gitignores for bin-test and JDKs.
In response to https://github.com/processing/processing4/issues/6, update gitignores so that JDKs and bin-test are excluded.
2019-10-10 21:27:08 -07:00
Ben Fry dc637f39a7 ignoring jdk bits until #6 can be resolved 2019-10-08 18:02:23 -04:00
Ben Fry dfb4542dc7 Merge pull request #5 from sampottinger/master
Update ant / javac language targets
2019-10-08 14:24:14 -04:00
A Pottinger 7463042501 Switch to 11 build target / source on javac.
Minor bit of cleanup in the ant scripts around the build src and target on javac, enabling use of Java 11 language features within processing itself. Note that the build is sustained on either 1.8 or 11 in terms of lanugage features but the code is no longer compatible with the Java 8 runtime due to backwards-incompatable changes made starting in Java 9.
2019-10-08 08:22:28 -07:00
Ben Fry 63b73df844 ignore test files 2019-10-07 19:19:19 -04:00
A Samuel Pottinger ee299ef935 Move to ANTLR 4 with Java 11 lang features and localization. (#5)
* Move to ANTLR 4 with Java 11 lang features and localization.

Introduces ANTLR4 and Java 8 language feature support within IDE while also adding additional hooks for localization of syntax error messages, addressing https://github.com/processing/processing/issues/3054 and https://github.com/processing/processing/issues/3055.

The PR is broadly a continuation of https://github.com/processing/processing/issues/3055, bringing it up to speed with the latest Processing master plus the changes introduced at https://github.com/processing/processing/pull/5753. **Requires https://github.com/processing/processing/pull/5753 as pre-requisite.** This introduces a number of edits beyond https://github.com/processing/processing/issues/3055 beyond compatibility with current Processing master and https://github.com/processing/processing/pull/5753 including:

 - Update to the grammar itself
 - Change ANTLR listeners to emit `TextTransform.Edit` to unify JDT-based `PreprocessingService` and `JavaBuild`, removing code with duplicate purpose.
 - Introduction of syntax error rewriting with support for localization.
 - Addition of complete localized strings set for English and Spanish.
 - Addition of partial localized strings set for other languages.
 - Refactor of ANTLR-related code for testability and readability
 - Expansion of tests including full parse tests for new Java features (type inference, lambdas).

* Ask travis for ant upgrade prior to run.

* Ask Travis for java11 update.

* Add openjdk ppa

* Travis no confirmation on add ppa.

* Force newer ant on travis.

* Swtich ant download to www-us mirror.

* Switch ant to 1.10.7

* Start x for unit tests in travis.

* More complete start x in travis.

* Revert x in travis.

* Try x in services.
2019-10-05 23:34:38 -07:00
A Pottinger 2b853b83ab Updated license text.
License links in top level license file to include third party information. Specifically, in follow up to processing 5753, some updates to the license.txt file, reformatting to make it easier to find third party license information and to navigate the processing license itself.
2019-10-05 21:20:24 -07:00
A Pottinger c14695476e Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train.
Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train using a squash of sampottinger processing fork's java11 branch.

**Primary required changes:**
Some changes directly support OpenJFX / OpenJDK 11:

 - Response to image loading changes caused by [JEP 320](https://openjdk.java.net/jeps/320)
 - Use of jmodules as necessitated by [JEP 261](https://openjdk.java.net/jeps/261)
 - Reponse to largely changed file paths caused by [JEP 220](https://openjdk.java.net/jeps/220).
 - Modifications in build system related to AdoptOpenJDK and Java 11 which have a different naming structure for downloads.
 - Allowing use of non-Oracle Java within internal Processing checks.

**Secondary required changes:**
There were some secondary required changes that impacted the usability of Processing after having moved to OpenJFX / OpenJDK 11:

 - Removal of com.apple.eawt calls related to [JEP 272](http://openjdk.java.net/jeps/272)
 - Response to HiDPI support on Windows and Linux in [JEP 263](https://openjdk.java.net/jeps/263)
- Removal of `java.ext.dirs`. Would be forced by [JEP 220](http://openjdk.java.net/jeps/220).
 - Due to bugs on Windows, updated the JNA jars.
 - Changes in downloader build tasks to support AdoptOpenJDK and OpenJFX.
 - Updated org.eclipse.* / equinox jars.
 - Some optimization around size of distribution.
 - Update of AppBundler.
 - Some changes in formulation of classpath and modifications in PreprocessingService given [JEP 261](https://openjdk.java.net/jeps/261).

**Incidental changes:**
This was (ahem) a bit of a larger PR with the above modifications. So, I wanted to introduce automated tests when possible and convenient along with a few changes for platform sustainability in order to support development:

 - Addition of cross-building capability (!) made possible by AdoptOpenJDK.
 - Addition of mockito for testing.
 - Upgrade of junit.
 - Addition of ant-contrib.
 - Standardized nomenclature around JRE / JDK in `build/build.xml`
 - Deduplication of code in `jre/build.xml`.
 - Addition of JavaDoc in a few places.
 - Some refactoring of PImage / Shape to support increased testing and readability in image manipulation code.
2019-10-05 20:49:33 -07:00
REAS 9ec706889f Removing DoubleDict DoubleList LongDict LongList from Reference 2019-07-26 15:47:21 -07:00
Ben Fry 4ab47d28f2 attempt to use 8u212, but Oracle has broken the download 2019-04-22 20:30:32 -04:00
Ben Fry 983d962a64 update AppBundler, use newer macOS SDK, preserve attributes where possible 2019-04-21 08:30:47 -04:00
Ben Fry 80eac720c7 preserve file attributes so things don't appear modified; fix some indents lost in tab conversion 2019-04-21 08:12:20 -04:00
Ben Fry 5b0b8fdba1 use ctrl-page up/down for tabs on Windows (fixes #5794) 2019-02-15 14:59:39 -05:00
Ben Fry 137d718907 fix "could not parse -1 for --display" message 2019-02-03 16:22:17 -05:00
Ben Fry c14ac5260c updating date for release 2019-02-03 16:04:45 -05:00
Ben Fry 386739f0bb write release notes 2019-02-01 16:57:22 -05:00
Ben Fry cf2fb37ad7 fix the key shortcut for Redo on Windows (fixes #5773) 2019-01-26 13:03:28 -05:00
Ben Fry 0d5f45451e Merge pull request #5673 from AKonia/translation_fix
Minor changes for russian translation
2019-01-23 11:09:03 -05:00
Ben Fry 9c3b519cde tweak wording 2019-01-22 19:09:30 -05:00
Ben Fry 82f7eeda8b preparing release notes 2019-01-22 18:57:55 -05:00
Ben Fry 1964bf65cb rewrite key stroke handling; now multi-platform, overridable by prefs 2019-01-22 18:28:43 -05:00
Ben Fry 7950eb379b change handling of keystroke entries to be per-platform 2019-01-22 17:04:11 -05:00
Ben Fry b224321425 add a link to the previous release notes 2019-01-21 09:18:54 -05:00
Ben Fry 6161874236 write release notes 2019-01-21 09:07:09 -05:00
Ben Fry b9c6b2f991 notes about rolling the version 2019-01-20 10:20:01 -08:00
Ben Fry a4925b8bc4 finish writing release notes 2019-01-20 10:15:04 -08:00
Ben Fry 29032aaf0d working on release notes 2019-01-20 10:09:52 -08:00
Ben Fry 2f1b1ae62e unsaved language/keystroke edits, other notes 2019-01-18 17:44:31 -08:00
Ben Fry e44a2c2211 Merge pull request #5604 from cosimoc/wip/cosimoc/appdata-improvements
Improvements to the appdata file
2019-01-18 17:33:26 -08:00
Ben Fry 73cd701091 move problematic shortcuts out to the language files (fixes #2199) 2019-01-18 17:23:02 -08:00
Ben Fry fe932b8c7e add 2019 to the About/splash screen 2019-01-18 16:09:18 -08:00
Ben Fry 7236c84a63 update to Java 8u202 2019-01-18 11:05:54 -08:00
Ben Fry ec87b4e651 update out-of-date Help menu links (fixes #5729) 2019-01-17 08:53:11 -08:00
Ben Fry ad2e2baf2e fix downloader bug due to Oracle response code change 2018-11-12 06:02:56 -05:00
Cosimo Cecchi 289ee59963 appdata: clean up license tags
It does not make sense for the metadata license to be GPLv3 (see [1]),
so make it CC0-1.0.
On the other hand, the project is GPL-2.0, so add the appropriate tag.

[1] https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-metadata_license
2018-10-19 14:14:31 -07:00
Cosimo Cecchi c8a6a8a8fd appdata: add releases tag 2018-10-19 14:12:05 -07:00
Cosimo Cecchi 056200c045 appdata: add content_rating OARS tag 2018-10-19 14:12:05 -07:00
Ben Fry db5cff7128 update to Java 8u192 2018-10-17 07:25:31 -04:00
Александр a834d82067 Minor changes for russian translation 2018-10-07 23:06:14 +03:00
Barış Çiftçi 18a7bfabf2 turkish translation update 2018-09-02 12:49:11 +03:00
Ben Fry c474b17fe5 clear a warning 2018-08-17 06:36:12 -07:00
Александр 3c3ac4f184 Updated russian translation, now can choose russian in preferences 2018-08-14 13:19:49 +03:00