Age | Commit message (Collapse) | Author |
|
This reverts commit 1e26e00e9ae0c519355e3a6fe5ad098d1f6a9622.
Broke osx.
|
|
|
|
|
|
- Introduce rounding. Before, slider pos didn't correspond to the saved
setting until it "converged" several saves later.
- Move copy-pasted code to .cpp file.
|
|
|
|
|
|
Include cmath explicitly
|
|
Without it, the serialized min and max member vars were set in stone
despite further code changes. Now only the current value is persisted.
Add clamp for cur/min/max slider values.
Store default value as t rather than underlying_t since it's always been
casted anyway.
Add trivial comment, update copyright.
|
|
|
|
- a comparison operator. Qt uses it with the metatype support.
- pretty print support for QDebug
|
|
Get rid of state variable and compare transient/saved state exactly.
Marking the "modified" bit caused IO when changing and then changing
back to the original value, then saving.
|
|
Turns out every MainWindow::save() and friends were doing useless IO
several times during each save. I blame the bundle abstraction.
For bundles we track the modified state, but the spline widget needs
equality check since it doesn't use the options api.
It was found by accident when adding qDebug() into the slider_value
{de,}serializer code. The .ini file was being rewritten over and over
again causing hundres of milliseconds pauses on Windows.
Remove the save timer kludge from gui. Saves are now fast.
|
|
Keeping "cur" in 0->1 distorts the value on save/reload.
|
|
|
|
|
|
|
|
It's pointless to use it here.
|
|
|
|
|
|
Instead, define in opentrack-api.so only.
Also, move to opentrack-compat to break a circular dependency
|