summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/options.hpp
AgeCommit message (Collapse)Author
2016-06-14compat/options: use traits to prevent slider min/max persistenceStanislaw Halik
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.
2016-06-14compat/options: workaround lto bug on windowsStanislaw Halik
2016-06-14compat/options: slider_value improvementsStanislaw Halik
- a comparison operator. Qt uses it with the metatype support. - pretty print support for QDebug
2016-06-14compat/options: always do a full check of changesStanislaw Halik
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.
2016-06-14compat/options: finish slider value supportStanislaw Halik
Keeping "cur" in 0->1 distorts the value on save/reload.
2016-06-11compat/options: untested float->double signal supportStanislaw Halik
2016-06-09compat/options: allow devirtualizeStanislaw Halik
2016-05-26compat/options: finish slider value support moreStanislaw Halik
2016-05-26compat/options: switch to correct QVariant usageStanislaw Halik
2016-05-26compat/options: don't emit a vtable for struct optsStanislaw Halik
It's for convenience in `struct settings' and not meant for casting to base class.
2016-05-25compat/options: allow binding floats 0->1 to slider widgetsStanislaw Halik
2016-05-25compat/options: konst korrektnessStanislaw Halik
2016-05-15many: remove executable bit from source filesStanislaw Halik
We no longer have this recurring problem since I enabled ignoring executable bit changes on the Windows workstation.
2016-05-10compat/options: use auto connection type alwaysStanislaw Halik
I'm unsure whether the context object for QObject::connect overload we're using in enum support is treated as the connection's target thread at all. Docs are silent on this. In the meantime, no crashes or other anomalies observed, while violating Qt thread safety invariants resulted in immediate crashes beforehand. So let's use Qt::AutoConnection and not worry for the time being.
2016-05-09compat/options: add enum supportStanislaw Halik
2015-12-06compat/options: get rid of std::string usageStanislaw Halik
It's pointless to use it here.
2015-12-06compat/options: move from headerStanislaw Halik
2015-11-11options: konst korrektnessStanislaw Halik
2015-11-01options: whitespaceStanislaw Halik
2015-11-01options: don't define options singleton in every moduleStanislaw Halik
Instead, define in opentrack-api.so only. Also, move to opentrack-compat to break a circular dependency