summaryrefslogtreecommitdiffhomepage
path: root/options
AgeCommit message (Collapse)Author
2017-03-24options, compat: instantiate common templates in their .dll'sStanislaw Halik
2017-03-21options/bundle: reorder onlyStanislaw Halik
2017-03-21options/{bundle,connector,value}: allow setting to default valuesStanislaw Halik
This is complicated by Qt's rejection of template classes. Also move some stuff to slots where makes sense.
2017-03-07options/bundle: fix class friend declStanislaw Halik
2017-02-27options/fix bundle refcount handlingStanislaw Halik
We rolled up our own refcount while using shared_ptr at the same time. Remove all rolled-up logic and rely on shared_ptr's custom deleter to do the cleanups. This greatly simplifies the code here. Unfortunately, _fini ordering makes Qt crash after the app object runs out of scope: gui/main.cpp: QApplication app(argc, argv); Both things considered, use _exit(2) on Unix to avoid running static destructors.
2017-02-27remove unfinished polish translation filesStanislaw Halik
Polish speakers typically know English well enough and translations are awkward.
2017-02-21modules: add .ts filesStanislaw Halik
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>.