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 (June 30, 2011, 11:56 a.m.)
-
- added Diff r2
Lets see if this diff wants to work.
Review request changed
Updated (June 30, 2011, 11:59 a.m.)
-
- added Diff r3
Review request changed
Updated (June 30, 2011, 1:49 p.m.)
-
- added Diff r4
Support for floor, ceil, modulo. Fixed ABS. Added more constants, SQRT_TWO_PI and SQRT3.
Review request changed
Updated (June 30, 2011, 1:50 p.m.)
-
- added Diff r5
I have no idea why review board keeps breaking my diffs. Trying again.
Review request changed
Updated (July 2, 2011, 10:21 p.m.)
-
- added Diff r6
Added the missing clears for the texture variables on no selection
Looks good code-wise.
-
indra/llmath/llcalc.cpp (Diff revision 6) -
Why allocate dynamically?
-
indra/llui/llspinctrl.cpp (Diff revision 6) -
I'd add a note that we don't prevalidate because of the calculator.
-
indra/llui/llspinctrl.cpp (Diff revision 6) -
dead code
Review request changed
Updated (July 4, 2011, 2:22 p.m.)
-
- added Diff r7
Other reviews