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

Choose which tool to autoselect #122

Merged
merged 19 commits into from
Apr 8, 2021

Conversation

gtache
Copy link
Contributor

@gtache gtache commented Jul 24, 2020

Closes #121

@@ -376,6 +376,13 @@ public WindowManagementCallback getWindowManagementCallback() {
*/
public void setPropertiesManager(ViewerPropertiesManager propertiesManager) {
this.propertiesManager = propertiesManager;
//Migrate old boolean property to new int property
Copy link
Owner

@pcorless pcorless Mar 31, 2021

Choose a reason for hiding this comment

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

Ugh, never really had to think about migrating properties before. How did you decide on PROPERTY_ANNOTATION_INK_SELECTION_ENABLED as the property to set off of? What I might suggest as an alternative is changing the properties keys. The next release is going to be major so we can break anything we can get our hands on api wise. Perhaps change the keys ICEpdfDEfault.properties and similarly in ViewerPropertiesManager to something like this:

application.annotation.highlight.selection.enabled -> application.annotation.highlight.selection.type

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, if I remember well I just picked one of them at random, assuming that most people would have the same value for every option.
That'd be cleaner to do that indeed, I think it's a good idea. But I'm wondering if it makes sense to have a property for each annotation tool or if one for all of them would be sufficient?

Copy link
Owner

Choose a reason for hiding this comment

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

The original implementation was a separate setting for each tool. I guess this could still be done but it's going to get messy in the properties panel. Perhaps separate properties but still unify as one in the properties panel so they could be tweaked at a later date. I'll leave it up to you as you have good understanding of what your users need.

@pcorless pcorless merged commit d1af55e into pcorless:master Apr 8, 2021
@gtache gtache deleted the selectAutoselectTool branch April 8, 2021 07:18
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.

Select which tool to select after drawing an annotation
2 participants