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.
Merge pull request #6213 from RosettaCommons/roccomoretti/fix_ligand_panel_persistence
[Foldit] Fix persistence of Ligand panels.
When changing puzzles, don't keep the ligand panels open if the new puzzle isn't a ligand design one.
RELEASE NOTES: Fix issues with ligand panel persistence in non-ligand puzzles.
Merge pull request #6218 from RosettaCommons/roccomoretti/interactive_fsp3_filter
[Foldit] Fraction SP3 carbon filter.
Add a new objective that measures the fraction of SP3 carbons in a ligand. This is one of the parameters used in evaluation by the CACHE competition.
RELEASE NOTES: Add new objective to measure 4-bonded carbons in small molecule design puzzles.
Merge pull request #6220 from RosettaCommons/roccomoretti/interactive_ignore_players_online
[Foldit] Ignore the 'others online' display
We don't really need it, and we haven't implemented it for the new server.
(No release notes -- we'll see if anyone notices.)
Merge pull request #6214 from RosettaCommons/roccomoretti/interactive_server_alert
[Foldit] Add warning when you're logging in to alternate server.
Add a line to the Play Online dialog which warns when you're logging into a site which is not the OPTION_SERVER_URL_DEFAULT.
There should be no change in the display when you're using the regular login site.
(Internal only change: No Release Notes)
Merge pull request #6212 from RosettaCommons/joshmiller/level-completion-bug
[Foldit] Fix goal score doesn't trigger AdvancePuzzle
Release notes:
- Fixed a bug causing some Campaign and Edu puzzles to not complete when the goal score is reached