Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature token vbl simplification #1315

Conversation

JamzTheMan
Copy link
Member

@JamzTheMan JamzTheMan commented Feb 23, 2020

No long requires 'valid geometry' which allows for vbl with 'holes'

Should fix latest issue relayed in #1218
Hopefully has no other side affects, but the different methods do return varying point counts, not sure which method is "best" now. It depends on the original shape more now I think.

Tested previous tokens and new, VBL still seems to work ok...


This change is Reviewable

rptools-automation and others added 22 commits February 22, 2020 00:01
getFileAsInputStream was using a try with resources, so it was always returning a closed InputStream.

Also, added a couple of unit tests as a starting point for properly testing this class.

Refers to RPTools#1215
Fixes the missing thumbnails for token problem
Points to the latest version of maptool-resources with the additional maps
The refactoring is actually about splitting the SysInfo class so that the code for handling the GUI
is in one class and the code for dealing with gathering information is in another class.

Also, it creates an interface (SysInfoProvider) so that the GUI depends from that.

The function getInfoFunction, which was also depending on SysInfo, now only depends on
MapToolSysInfoProvider, the concrete implementation of SysInfoProvider. This allows to test
the "debug" function there (added a couple of unit tests to ensure everything still works).

Refers to #126
Refactors SysInfo, to gather debug info asynchronously RPTools#1313
…tps://github.com/RPTools/maptool into develop""

This reverts commit f7500b4

Signed-off-by: JamzTheMan <JamzTheMan@gmail.com>
Signed-off-by: JamzTheMan <JamzTheMan@gmail.com>
Signed-off-by: JamzTheMan <JamzTheMan@gmail.com>
 * No long requires 'valid geometry' which allows for vbl with 'holes'

#needsTesting

Signed-off-by: JamzTheMan <JamzTheMan@gmail.com>
@JamzTheMan JamzTheMan requested a review from Phergus February 23, 2020 17:42
@JamzTheMan JamzTheMan self-assigned this Feb 23, 2020
Copy link
Contributor

@Phergus Phergus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 16 of 16 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

 * No long requires 'valid geometry' which allows for vbl with 'holes'
 * Fix tokenPropertiesDialog.xml to use generic label vs RSyntax beans
   so they are not needed when using forms designer which just removes
   the component if you didn't have forms designer setup properly.

#needsTesting

Signed-off-by: JamzTheMan <JamzTheMan@gmail.com>
 * No long requires 'valid geometry' which allows for vbl with 'holes'
 * Fix tokenPropertiesDialog.xml to use generic label vs RSyntax beans
   so they are not needed when using forms designer which just removes
   the component if you didn't have forms designer setup properly.

#needsTesting

Signed-off-by: JamzTheMan <JamzTheMan@gmail.com>
 * Performance increase upwards of 50x
 * doubleclick on preview window resets preview scaling
 * No long requires 'valid geometry' which allows for vbl with 'holes'
 * Fix tokenPropertiesDialog.xml to use generic label vs RSyntax beans
   so they are not needed when using forms designer which just removes
   the component if you didn't have forms designer setup properly.

#needsTesting

Signed-off-by: JamzTheMan <JamzTheMan@gmail.com>
@JamzTheMan JamzTheMan merged commit 100bae2 into RPTools:feature-token-vbl-simplification Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants