Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-12-24 | options/tie: remove template. move from header. | Stanislaw Halik | |
2016-12-24 | options/tie: clarify threading logic | Stanislaw 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-24 | options/tie: fix wrong signal listened to | Stanislaw Halik | |
Fixes sliders remaining at same position when changing profile and thus, their values. | |||
2016-12-08 | options: get element with call operator | Stanislaw Halik | |
thread_local is expensive. | |||
2016-12-03 | options: explicitly include compat/util | Stanislaw Halik | |
2016-11-29 | options/tie: simplify slider usage with run_in_thread_sync() | Stanislaw Halik | |
2016-11-29 | options/tie: fix for enum | Stanislaw 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-05 | delete empty .ts | Stanislaw Halik | |
2016-11-04 | modules: add autogenerated translation files | Stanislaw Halik | |
2016-10-19 | options/slider: check for floating-point division by zero | Stanislaw Halik | |
It's not strictly necessary but a good practice nevertheless. | |||
2016-10-19 | options/tie: output slider_value after truncation error | Stanislaw Halik | |
2016-10-11 | options/connector: bundle can't be null at all here | Stanislaw Halik | |
It's a shared_ptr<detail::bundle> stored in base_value. | |||
2016-10-11 | options/connector: fix pointless check for nullptr | Stanislaw Halik | |
2016-09-26 | gui, options: prevent options reset on tracker stop | Stanislaw 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-18 | add missing copyright terms | Stanislaw Halik | |
Due to fucking AT&T vs BSD suit copyright defaults to all rights reserved. Fuck Berne Convention as well. | |||
2016-09-17 | options/value: allow for inspecting default value | Stanislaw Halik | |
2016-09-17 | options/tie: don't reinvent slider stuff | Stanislaw Halik | |
2016-09-17 | options/tie: simplify enum combobox | Stanislaw Halik | |
2016-09-17 | options/slider: we're not using floats anymore | Stanislaw Halik | |
2016-09-17 | options/slider: fix infix arithmetic | Stanislaw Halik | |
2016-09-17 | options/bundle: konst korrektness | Stanislaw Halik | |
2016-09-16 | options/value: allow for deref operator | Stanislaw Halik | |
C++ expects pointer so let it have it. | |||
2016-09-16 | options/slider: fix fpu type | Stanislaw Halik | |
2016-09-16 | options/tie: use existing slider functionality | Stanislaw Halik | |
2016-09-16 | options/slider: use double precision | Stanislaw Halik | |
Made Accela slider inaccurate. | |||
2016-09-16 | options: add QStringLiteral define | Stanislaw Halik | |
2016-09-16 | gui/main-window: exit program when config not writable | Stanislaw 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-09 | options/bundle: remove rest of logspam | Stanislaw Halik | |
2016-09-09 | options/{bundle,group}: don't create QSettings all the time | Stanislaw Halik | |
2016-09-09 | add support for migrations | Stanislaw Halik | |
They're run from the UI thread so can even be interactive. | |||
2016-09-09 | options/bundle: whitespace only | Stanislaw Halik | |
2016-09-09 | options/bundle: lessen logspam | Stanislaw Halik | |
2016-09-08 | options/value: move from header | Stanislaw Halik | |
2016-09-05 | options/slider: adjust eps, simplify | Stanislaw Halik | |
2016-08-25 | options/value: remove outdated comment | Stanislaw Halik | |
2016-08-25 | options/value: always use Qt::AutoConnection | Stanislaw 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-25 | options: use non-generic comparison for bundle modification check | Stanislaw 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-23 | options/bundle: simplify mutex const-dropping | Stanislaw Halik | |
2016-08-23 | options/connector: get_mutex() should be const | Stanislaw Halik | |
2016-08-23 | options/bundle: don't fire signals in reload() with no unsaved changes | Stanislaw Halik | |
2016-08-23 | options/bundle: emit changed() whenever any part of a bundle changes | Stanislaw Halik | |
2016-08-23 | options/bundle: treat bundles with empty names specially | Stanislaw 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-20 | options/connector: spew more warnings | Stanislaw Halik | |
2016-08-20 | options/connector: spew warning when init/deinit mismatch | Stanislaw Halik | |
2016-08-20 | options/connector: fix infinite loop | Stanislaw Halik | |
2016-08-20 | options/{connector,base_value}: add missing dtor call. rename callees. | Stanislaw Halik | |
2016-08-18 | options: factor out connector out of bundle | Stanislaw Halik | |
2016-08-18 | options: add base_value signal const | Stanislaw Halik | |
2016-08-17 | options: support deferred writes when saving bundles | Stanislaw 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-17 | move options framework into its own library | Stanislaw Halik | |
- adjust usages - add support for QList signals and metatype |