summaryrefslogtreecommitdiff
path: root/src/main/java
AgeCommit message (Collapse)Author
2024-03-23Complete exponentiation of dimensionsAdrien Hopkins
Previously, you could only exponentiate individual dimensions in expressions. For example, `Length^3` was valid, but `(Length / Time)^2` was not. This is now fixed.
2024-03-03Add + and - to prefixesAdrien Hopkins
This was added to be consistent with the data file spec, which was changed for consistency with unit expressions. It may not be a common expression, but it's a bit weird that you can use +/- in units but not prefixes, even though they're in the same file!
2024-03-03Add comments to metric exception filesAdrien Hopkins
2023-09-24Bump version to v0.5.0a1v0.5.0a1Adrien Hopkins
2023-09-16Refactor Presenter.loadSettingsAdrien Hopkins
These changes should reduce nesting and increase readability.
2023-09-16Improve setting value usabilityAdrien Hopkins
Some settings used to use long, sentence-like values in the config file. Now, they use simpler values that are easier to remember and specify in the manual.
2023-09-16Only create config directory when savingAdrien Hopkins
Previously, if the user had no settings dir, starting the program would create it, but nothing would be read. If the user did not change their settings, it would just leave an empty directory!
2023-09-16Allow config file to load custom data filesAdrien Hopkins
The parameters "custom_unit_file", "custom_dimension_file" and "custom_exception_file" can now be used to load custom unit, dimension and exception files. Specify them more than once to load multiple files. I haven't yet added this to the GUI, and I probably won't, because you already need to be able to edit text files to create this, so having a GUI won't make it any more intuitive.
2023-09-16Move config file to standard locationAdrien Hopkins
The user's config directory is taken as ~\AppData\Local\ on Windows and is XDG-compliant elsewhere. The config file's location is <config dir>/SevenUnits/config.txt. The SevenUnits directory is created if nonexistent. The previous location inside the git directory would not work for someone actually installing and using 7Units, so this change was made.
2023-04-15Bumped version number to 0.4.1v0.4.1Adrien Hopkins
2022-07-17Bumped version number to 0.4.0v0.4.0Adrien Hopkins
2022-07-17All dimension names are now in title caseAdrien Hopkins
2022-07-17Misc test documentation tweaksv0.4.0rc1Adrien Hopkins
2022-07-17Added a GUI test simulating expression conversionAdrien Hopkins
2022-07-17Added a GUI test simulating unit conversionAdrien Hopkins
2022-07-17Added more PrefixSearchRule testsAdrien Hopkins
2022-07-09Fixed some issues in the PrefixSearchRule:Adrien Hopkins
- output map was mutable, should be immutable - renamed allowUnit to prefixableUnitRule so that the name is actually understandable
2022-07-08Bumped version number to 0.4.0b1 & added @sincev0.4.0b1Adrien Hopkins
2022-07-08Search rules can be changed by GUI, saved and loadedAdrien Hopkins
2022-07-06Added some standard prefix search rulesAdrien Hopkins
2022-07-06Added the ability to make search rulesAdrien Hopkins
2022-05-18Added front-end code information to the design documentAdrien Hopkins
2022-04-19Finalized version 0.4.0-alpha.1Adrien Hopkins
2022-04-19Implemented prefix settings, saving & loading of settingsAdrien Hopkins
Also fixed some bugs: - Presenter now has default values for its settings in case they don't load properly - UnitDatabase ensures its units, prefixes and dimensions have all of the names you give it
2022-04-18Implemented one-way conversion, duplicate prefixes can now be hiddenAdrien Hopkins
2022-04-18Implemented rounding and duplicate-removal settings into the new GUIAdrien Hopkins
2022-04-16Implemented the unit & prefix viewersAdrien Hopkins
2022-04-16Added a full suite of frontend testsAdrien Hopkins
(Added tests for the settings and unit/prefix viewer parts of the GUI, which are not yet implemented)
2022-04-16Removed NamedObjectProduct in favour of the regular ObjectProductAdrien Hopkins
2022-04-10Created API for settings and unit/prefix viewingAdrien Hopkins
2022-04-09View now sends and recieves Strings instead of dataAdrien Hopkins
2022-03-10Named the metric dimensions & fixed NameSymbol.toStringAdrien Hopkins
2022-03-10Simplified toString of common unit classesAdrien Hopkins
2022-02-26Implemented expression conversion, tests now passAdrien Hopkins
2022-02-26Implemented unit conversion, with a few problemsAdrien Hopkins
TabbedView now displays its units, but with their toString method which shows their definition in addition to their name
2022-02-24Moved SemanticVersionNumber to sevenUnits.utilsAdrien Hopkins
2022-02-20Made the version number an object, changing it to 0.4.0-alpha+devAdrien Hopkins
2022-02-19Made barebones GUI (TabbedView)Adrien Hopkins
2022-02-12Made some basic Presenter testsAdrien Hopkins
2022-01-29Created the ViewBot in preparation for GUI testingAdrien Hopkins
2021-12-24Did some API design for user settings, and moved GUI to a new packageAdrien Hopkins
2021-12-16Designed the API for a new GUIAdrien Hopkins
Currently "supports" unit conversion, expression conversion and settings loading
2021-12-02Updated changelog and version numberv0.3.2Adrien Hopkins
2021-11-29Added a full suite of tests for the UncertainDoubleAdrien Hopkins
2021-11-04Added a bunch of tests related to unit valuesAdrien Hopkins
2021-11-02Added a test for UnitDatabase.isRemovableDuplicateAdrien Hopkins
2021-10-07Added tests for getUnit and the prefixed unit mapAdrien Hopkins
Also fixed a bug where a prefixed unit map with units but no prefixes would appear empty
2021-10-04Added tests for valid & invalid dimension filesAdrien Hopkins
2021-09-27The ExpressionParser test is now a paramaterized testAdrien Hopkins
2021-09-27Added a test for evaluating an expression & fixed a bug it foundAdrien Hopkins
The bug: non-exact LinearUnitValue instances have their value printed as "(", i.e. "(5.0 ± 0.1) m" will be printed as "( m"