summaryrefslogtreecommitdiffhomepage
path: root/options/group.hpp
AgeCommit message (Collapse)Author
2019-03-02options: consistently use rvalue referencesStanislaw Halik
2019-02-11compat/macros: remove prefixStanislaw Halik
Let's not be concerned about global namespace pollution. These identifiers aren't exposed in the api/ directory.
2018-10-05options: don't use typeindex w/ lambdasStanislaw Halik
Rename traits' functions to be more explicit. Most of the changes are pretty old and I can't read them at this time, sorry. Adjust usages. Issue: #825 Reported-by: @DanielKinsman
2018-07-08options: fix 2 issuesStanislaw Halik
1. Calling valueChanged didn't invoke machinery in value<t>, only base_value aka value_. There's a fast path in value<t>::type() despite the pessimization. 2. Split global scope stuff into options::globals from the options::globals stuff 3. Adjust usages
2018-06-26options/group: add commentStanislaw Halik
We'll be moving away from QSettings usage. The intent here is to: 1) get rid of this cruft 2) allow notifying all values with given name that their value changed in one of these values, i.e. `valueChanged()' without connector usage
2018-06-26modernize C++ syntaxStanislaw Halik
No visible changes (hopefully).
2018-06-26compat/macros: rename portability macrosStanislaw Halik
use `cc_xx' rather than awkward synonyms.
2018-01-18compat/util: retireStanislaw Halik
Adjust usages.
2017-10-30options: fix evil typoStanislaw Halik
2017-10-08add complete(?) portable config supportStanislaw Halik
2017-10-02options: enable portable installation modeStanislaw Halik
2017-07-31options/metatype: pass exact same name for slidersStanislaw Halik
That made sliders from 2.3.7 still incompatible. Apparently QVariant cares a lot about the difference between "options::slider_value", "::options::slider_value", and "slider_value".
2017-06-22misc irrelevantStanislaw Halik
2017-05-10options: don't create QSettings all the timeStanislaw Halik
Update usages.
2017-03-28start renaming internal macros as OPENTRACK_* to OTR_*Stanislaw Halik
2016-09-16gui/main-window: exit program when config not writableStanislaw Halik
Note, it opens the config in read-write mode to check if it's writable. This might present a race condition when config is saved. However, we're expecting all config saving to be done in the user interface thread. Add a check for it however.
2016-09-09add support for migrationsStanislaw Halik
They're run from the UI thread so can even be interactive.
2016-08-25options: use non-generic comparison for bundle modification checkStanislaw Halik
The generic QVariant comparison works badly for QList<QPointF>. Create a comparator between two QVariants for base_value in value<tp> ctor, using QVariant::value<tp> which returns right results once it's converted to tp. If a value was registered for a name in a bundle, use that comparator as the comparator for that name. In case conflicting value types were registered always use generic comparison for that name. std::type_index needs to be used here since value<t> can be instantiated in different modules (libraries), resulting in different value for the comparator function pointer. Move group::operator== to bundle type to avoid circular include for connector.h. Also use element_type more consistently in value<tp>.
2016-08-17options: support deferred writes when saving bundlesStanislaw Halik
The mapping window has 13 bundles total in use. Setting them all can take up to a large fraction of a second on some windows filesystems. Do a single config write instead.
2016-08-17move options framework into its own libraryStanislaw Halik
- adjust usages - add support for QList signals and metatype