Merge pull request #6244 from RosettaCommons/roccomoretti/interactive_sort_compound_library
[Foldit] Add Compound Library sorting
Add sorting and labeling of Compound Library compounds based on similarity to the compound.
RELEASE NOTES: Compound library entries are now sorted by similarity to the small molecule present in the puzzle when the Load Library Compound panel is opened.
Merge pull request #6240 from RosettaCommons/roccmoretti/interactive_fix_cl_load
[Foldit] Fix issue with Load Library Compound panel.
When closed, the panel was being turned 100% transparent, but not actually disappearing, which leads to it capturing mouse actions.
RELEASE NOTES: Fix issue where Load Library Compound panel created dead spots.
Merge pull request #6243 from RosettaCommons/koepnick/foldit_puzzle_menu_rank
[Foldit] Get puzzles and puzzle scores on login
Release Notes:
- Display current rank and score for puzzles in Science Puzzles menu
Merge pull request #6229 from RosettaCommons/roccomoretti/interactive_close_load_library
[Foldit] Hide Load Library dialog.
The Load Library sub-panel wasn't following the main Compound Library panel when it was being closed between puzzles. Make sure it also follows.
Merge pull request #6225 from RosettaCommons/roccomoretti/interactive_to_string_locale
[Foldit] Accomodate for the fact that std::to_string() is locale sensitive
std::to_string() changes its behavior based on locale -- for instance using ',' instead of '.' in countries where that's the decimal separator. This messes up the SDF file generation, so borrow a trick from RDKit to consistently switch to the uniform 'C' locale when generating the SDF.
This doesn't touch any of the other instances of std::to_string() usage in Rosetta/Foldit.
(No release notes, internal-only feature.)
Merge pull request #6216 from RosettaCommons/roccomoretti/interactive_cmd_lib_viewport_updates
[Foldit] Several changes to the Compound Library loading panel.
* Use orthographic projection
* Fix scroll to start at top of list
* Label compounds with numbers
* Extra space to better show which compound is highlighted.
* Disable compound insertion if action or recipe is running
* Don't hide loading panel on successful substitution.
Merge pull request #6219 from RosettaCommons/roccomoretti/interactive_fix_attachement_panel_placement
[Foldit] Fix attachement panel movement
The layout for the Small molecule panel's fragment attachment placement subpanel had a bug where trying to move it resulted in it jumping all over the screen.
This cleans up the associated code, as well as making the movement more sane.
Unfortunately, the easy way to do this was to make the attachment panel separate, such that it now no longer moves with the Small Molecule Design panel. This is probably fine, as the attachement panel's life is short anyway, so the fact it's not coordinated is not too big a deal.
RELEASE NOTES: Fix movement behavior of the Small Molecule Design's Attachement panel.
Merge pull request #6215 from RosettaCommons/roccomoretti/interactive_trim_compound_lib_panel
[Foldit] Trim name & description in Compound Library panel.
Bug reports indicate that with long names or descriptions for the Compound Library panel we can get a bunch of overlap. Trim the text based on the available size.
I have set the full description to be a tooltip, but for some reason it doesn't show -- I'm guessing it's some interaction with the selection list they're in, where the tooltip handler isn't properly being set from the nested container.
RELEASE NOTES: Fix text overlay in Compound Library panel.
Merge pull request #6221 from RosettaCommons/roccomoretti/interactive_fix_h_sub_issues
[Foldit] Fix ligand editing issues.
Due to a change in the way ligand checking worked, some viable modifications were being rejected due to hydrogens falsely being counted in valency. We can skip the contribution of hydrogen to valency in the first time we run this check. (Hydrogen issues should be accounted for later on when we re-run the check.)
RELEASE NOTES: Fix issue where certain ligand modifications (like O->C->O) were being rejected.
Merge pull request #6222 from RosettaCommons/roccomoretti/interactive_inactive_float_menu
[Foldit] Don't hide viewport under FloatMenu
Only look at mouse actions for sub buttons, not for the region where there aren't any buttons.