Commit Graph

28 Commits

Author SHA1 Message Date
7cba5cc109 Fixed line endings and applied gitignore 2014-07-26 09:43:40 +03:00
7164dddefd Disable copy constructors and copy assignment operators 2014-01-05 12:07:22 +02:00
f5fb87f336 Calc: Use std::mt19937 with a deterministic seed as the random engine 2013-12-08 15:06:01 +02:00
3383713853 Calc: Make std::default_random_engine static 2013-12-08 13:40:48 +02:00
f414b5feba MeasureCalc: Added "UniqueRandom" option. When "1", random numbers are only used once within the range {LowBound, HighBound}.
Also updated the URNG (Uniform Random Number Generator) engine to the C++11 library <random>.
2013-08-15 18:12:36 -06:00
be3efa7531 Move MathParser to Common 2013-06-13 17:00:24 +03:00
da9384cfad Remove "C" prefix in class names 2013-05-31 17:18:52 +03:00
e3d92d354c Cosmetics 2012-05-30 21:53:44 +03:00
9623766a61 Fixed: IfActions not fired when measure is disabled 2012-05-30 09:46:11 +03:00
7168634bb6 Disabled RTTI and removed dynamic_cast 2012-04-09 19:45:54 +03:00
1a5f77254b Improved 8dd9b8e fix to handle temporary division by 0 cases 2012-04-07 10:06:58 +03:00
1e3df0e0bc Missed file in previous commit 2012-04-06 21:08:15 +03:00
33d447a907 MathParser: Converted to use WCHAR. 2012-01-23 09:30:51 +00:00
01b22e2d5e Calc/MathParser: Minor tweaks. 2012-01-23 07:21:03 +00:00
spx
ebec08914a Adjusted copyright notice.
http://www.gnu.org/licenses/gpl-2.0.html
2012-01-23 06:36:15 +00:00
caf0a60a5b Removed ccalc and replaced with MathParser 2012-01-22 20:28:05 +00:00
spx
3c1338b4c5 - Renamed bool ReadFormula() to ParseFormula.
- Changed ReadConfig() in Measure/Meter to protected.
- Other code tweaks and cleanups.
2011-11-26 02:49:52 +00:00
spx
fe9fd9f476 Code cleanup. 2011-02-15 16:26:54 +00:00
spx
7ea3a762ac - Fixed that r716 (precompiled header) doesn't work on x64.
- Now uses constructor initialization list in each class.
- TintedImage: Code cleanup.
2011-01-29 00:11:01 +00:00
spx
8fe2a26a51 Fixed the issue that RANDOM is replaced incorrectly in Measure=Calc. 2010-08-11 18:08:41 +00:00
237043352d Fixed issue that Counter in Measure=Calc is case-sensitive. Added MeasureName2 as an alternative to SecondaryMeasureName in Meter=Histogram. 2010-08-10 15:37:35 +00:00
2dbf79c6e6 Fixed: MattKing's change to RANDOM to fix issue where it was only random once. 2010-02-28 14:19:35 +00:00
8eccc8ddec Got rid of the "Not a meter or measure" error.
The handling of the MeterStyle is now done in the CConfigParser.
2009-09-04 17:40:02 +00:00
4274397806 The m_FontCollection wasn't initialized so it could cause a crash on exit.
Some code cleanup.
2009-09-04 17:18:15 +00:00
dc365cfb6e Reconciled all changes by Rainy and the branch with MattKing's LocalFont function. The trunk now contains all current code changes.
Added changes to RANDOM function based on Rainy's input.  If there were multiple RANDOM statements in multiple CALC measure, they would all get the same random number.  Fixed.

Added new RANDOM function and LocalFont to the help files and History.htm
2009-09-03 00:33:46 +00:00
c4f95ca973 Committed MattKing's code to generate a random number in a CALC measure.
RANDOM Function:
Returns a random number between "LowBound" and "HighBound" defined in the measure.

Sample usage:
							[MeasureCalc]
Measure=Calc
Formula=(Random)
LowBound=5
HighBound=100
2009-08-31 17:47:09 +00:00
5d2f960552 Code cleanup. 2009-02-14 10:11:28 +00:00
30edc895f2 2009-02-10 18:37:48 +00:00