All submissions to this site are governed by the Second Life Viewer Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.

Review Board 1.6.11

Welcome to the Second Life Viewer Code Review tool.
See the documentation on our wiki for how to use this site.

STORM-1315: Ability to do simple math in numeric edit fields

Review Request #377 - Created June 29, 2011 and submitted

Kadah Coba Reviewers
viewer
STORM-1315
None viewer-development
This is a direct adaptation of Aimee Trescothick's contributed patch from STORM-1315 for v-d. Adjustments were made where needed to make it work with the newer boost and llui code. Some changes were made to the variable names it uses on build; ie "PX" for x position instead of just "X".

Patch allows for imputing simple math equations in to the spinner controls. On the build floater a series of variable names are available for using the objects current values in equations, like "sx+3" will take the current X scale and add 3.

Repo: https://bitbucket.org/Kadah_Coba/storm-1315
Changeset: https://bitbucket.org/Kadah_Coba/storm-1315/changeset/d33ca6edf370
Built and ran. Some testing done with simple equations on the build tools floater to edit an object, no issues were observed.
Review request changed
Updated (July 4, 2011, 2:22 p.m.)
Ship it!
Posted (July 4, 2011, 2:28 p.m.)
Thanks.