summaryrefslogtreecommitdiff
path: root/src/main/java/sevenUnitsGUI/Presenter.java
AgeCommit message (Collapse)Author
2025-06-04Remove most comment warningsAdrien Hopkins
In some cases I've used @SuppressWarnings, which Gradle doesn't seem to respect, but I've solved all the other ones.
2025-06-01Save & load default datafile use settingAdrien Hopkins
2025-05-17Setup automated javadocAdrien Hopkins
./gradlew javadoc
2025-02-23Gracefully handle unidentified locales in configAdrien Hopkins
2025-02-23Allow internationalization of about.txtAdrien Hopkins
This works with custom locales (by placing the text in [config_dir]/about/[name].txt), but if such a file does not exist, it will default to the default locale (en)'s about text.
2025-02-23Allow default datafile to be disabledAdrien Hopkins
If this option is deselected, the default unit, prefix, dimension and metric exception data will not be loaded, and only custom data and the few units that are not provided by files will be available. The main rationale for this change is so that the data can be localized by custom unit files.
2025-02-23Add ability for user to change localeAdrien Hopkins
2025-02-23Load locales from text filesAdrien Hopkins
2025-02-23Add internationalization API to GUIAdrien Hopkins
This commit intentionally fails one test, since that is for functionality I intend to add later.
2024-08-22Add loading counts to About tabAdrien Hopkins
2024-08-22Show unit/dim file errors as popupAdrien Hopkins
Previously, any error in the unit or dimension file(s) crashes the program. Instead, 7Units now ignores any invalid lines, still parsing the correct ones, and shows a popup in case any errors happen.
2024-08-22Add more information to load-success messageAdrien Hopkins
2024-08-22Print nonfinal unit set coefficients as integersAdrien Hopkins
These values are guaranteed to be integers, so printing them without a decimal point looks nicer and saves space.
2024-08-22Allow named unit-sets to be used as to expressionAdrien Hopkins
2024-08-22Add named unit sets to unit converterAdrien Hopkins
2024-08-22Add ability to convert expression to sum of unitsAdrien Hopkins
2024-03-24Format source code & set explicit UTF-8Adrien Hopkins
2024-03-03Add comments to metric exception filesAdrien 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.
2022-07-17All dimension names are now in title caseAdrien 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-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-10Created API for settings and unit/prefix viewingAdrien Hopkins
2022-04-09View now sends and recieves Strings instead of dataAdrien 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-20Made the version number an object, changing it to 0.4.0-alpha+devAdrien Hopkins
2022-02-19Made barebones GUI (TabbedView)Adrien Hopkins
2021-12-24Did some API design for user settings, and moved GUI to a new packageAdrien Hopkins