Age | Commit message (Collapse) | Author |
|
These changes should reduce nesting and increase readability.
|
|
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.
|
|
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!
|
|
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.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
(Added tests for the settings and unit/prefix viewer parts of the GUI, which are
not yet implemented)
|
|
|
|
|
|
|
|
TabbedView now displays its units, but with their toString method which shows
their definition in addition to their name
|
|
|
|
|
|
|