summaryrefslogtreecommitdiffhomepage
path: root/options
AgeCommit message (Collapse)Author
2017-01-09logic/libs: options/scoped: don't reset dialog on proto load failureStanislaw Halik
2016-12-30options/scoped: clarify usageStanislaw Halik
Also the original comment was irrelevant.
2016-12-28options/bundle: remove pointless virtual inheritanceStanislaw Halik
2016-12-28options/connector: needn't export itStanislaw Halik
Only symbol usages are inside options library's compilation units.
2016-12-28options/tie: fix typoStanislaw Halik
2016-12-24options/value: adjust conntypes since slider_value handles it nowStanislaw Halik
2016-12-24options/tie: remove template. move from header.Stanislaw Halik
2016-12-24options/tie: clarify threading logicStanislaw Halik
Forcefully run in the widget's thread in both signal cases. If the connection is made and the widget's moved to another thread after, we'll observe the "epileptic slider" issue again. Clarify by explicitly using Qt::DirectConnection.
2016-12-24options/tie: fix wrong signal listened toStanislaw Halik
Fixes sliders remaining at same position when changing profile and thus, their values.
2016-12-08options: get element with call operatorStanislaw Halik
thread_local is expensive.
2016-12-03options: explicitly include compat/utilStanislaw Halik
2016-11-29options/tie: simplify slider usage with run_in_thread_sync()Stanislaw Halik
2016-11-29options/tie: fix for enumStanislaw Halik
Fundamentally this was caused by incorrect lambda capture spec for the qobject ptr. We need to capture the pointer by value. Reported-by: @huliqan on IL-2 Sturmovik Russian forum. Fixes: hatire serial port params
2016-11-05delete empty .tsStanislaw Halik
2016-11-04modules: add autogenerated translation filesStanislaw Halik
2016-10-19options/slider: check for floating-point division by zeroStanislaw Halik
It's not strictly necessary but a good practice nevertheless.
2016-10-19options/tie: output slider_value after truncation errorStanislaw Halik
2016-10-11options/connector: bundle can't be null at all hereStanislaw Halik
It's a shared_ptr<detail::bundle> stored in base_value.
2016-10-11options/connector: fix pointless check for nullptrStanislaw Halik
2016-09-26gui, options: prevent options reset on tracker stopStanislaw Halik
They should only be reset when closing the module dialog window. This is a hack but otherwise we'd have to change all the modules. Issue: #466 Closes #466
2016-09-18add missing copyright termsStanislaw Halik
Due to fucking AT&T vs BSD suit copyright defaults to all rights reserved. Fuck Berne Convention as well.
2016-09-17options/value: allow for inspecting default valueStanislaw Halik
2016-09-17options/tie: don't reinvent slider stuffStanislaw Halik
2016-09-17options/tie: simplify enum comboboxStanislaw Halik
2016-09-17options/slider: we're not using floats anymoreStanislaw Halik
2016-09-17options/slider: fix infix arithmeticStanislaw Halik
2016-09-17options/bundle: konst korrektnessStanislaw Halik
2016-09-16options/value: allow for deref operatorStanislaw Halik
C++ expects pointer so let it have it.
2016-09-16options/slider: fix fpu typeStanislaw Halik
2016-09-16options/tie: use existing slider functionalityStanislaw Halik
2016-09-16options/slider: use double precisionStanislaw Halik
Made Accela slider inaccurate.
2016-09-16options: add QStringLiteral defineStanislaw 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-09options/bundle: remove rest of logspamStanislaw Halik
2016-09-09options/{bundle,group}: don't create QSettings all the timeStanislaw Halik
2016-09-09add support for migrationsStanislaw Halik
They're run from the UI thread so can even be interactive.
2016-09-09options/bundle: whitespace onlyStanislaw Halik
2016-09-09options/bundle: lessen logspamStanislaw Halik
2016-09-08options/value: move from headerStanislaw Halik
2016-09-05options/slider: adjust eps, simplifyStanislaw Halik
2016-08-25options/value: remove outdated commentStanislaw Halik
2016-08-25options/value: always use Qt::AutoConnectionStanislaw Halik
QSlider and value<t> messed up the value in a feedback loop. Incidentally, for our use cases QSlider and value<t> are on the same thread and they'll connect directly. Issue: #427 Reported-by: @DaMichel
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-23options/bundle: simplify mutex const-droppingStanislaw Halik
2016-08-23options/connector: get_mutex() should be constStanislaw Halik
2016-08-23options/bundle: don't fire signals in reload() with no unsaved changesStanislaw Halik
2016-08-23options/bundle: emit changed() whenever any part of a bundle changesStanislaw Halik
2016-08-23options/bundle: treat bundles with empty names speciallyStanislaw Halik
They're now not cached in the singleton. Operations like "reload", "save", and connector stuff short-circuit to prevent anything done with them
2016-08-20options/connector: spew more warningsStanislaw Halik
2016-08-20options/connector: spew warning when init/deinit mismatchStanislaw Halik