summaryrefslogtreecommitdiffhomepage
path: root/spline
AgeCommit message (Collapse)Author
2018-02-15clean up "static" and "constexpr" typesStanislaw Halik
- use `static constexpr inline' to avoid requiring explicit declarations in object code - use `const Foo* const' to maybe put into readonly binary segment (at least for ELF DSOs) - `constexpr' in function scope has storage, avoid `static' - don't use `constexpr' where there's no advantage, like arrays We'd like to avoid overhead of atomic initialization for each function call. No idea how `static constexpr' requiring storage in the standard plays with atomic initialization requirement. Hearsay points that `constexpr' without `static' in block scope behaves more to our liking. It's all hazy though. I'm not 100% sure if `static inline constexpr' has any storage. Hopefully none, like a #define, and stuff bigger than registers gets coalesced within the same module, with small stuff being immediates.
2018-02-12cmake: add zh_CNStanislaw Halik
cf. #746
2018-01-26CLion pedantryStanislaw Halik
Fix few of the inspection warnings from CLion that make any sense at all.
2018-01-18compat/util: retireStanislaw Halik
Adjust usages.
2018-01-18fix -Wall -Wextra -WpedanticStanislaw Halik
2018-01-16spline/widget: no need to round pixel ratioStanislaw Halik
2018-01-16spline: fix widget for hidpi displaysStanislaw Halik
2018-01-16logic, spline: get rid of using namespace in headerStanislaw Halik
2018-01-14gui/spline: change horizontal/vertical guide countStanislaw Halik
The amount depends on the max value on X/Y scales.
2017-12-21spline: prepare for widget in tobii tracker dialogStanislaw Halik
2017-12-21spline: cleanupStanislaw Halik
2017-12-10options: rename templateStanislaw Halik
2017-12-02compat/macros: rename obnoxious macroStanislaw Halik
2017-11-14spline: cleanup warningStanislaw Halik
2017-10-29static constexpr -> constexprStanislaw Halik
2017-10-27spline/widget: try fix background color on UnixStanislaw Halik
2017-10-27spline: use default initializationStanislaw Halik
2017-10-27compat/mutex: renameStanislaw Halik
2017-10-27gui: must close module dialogsStanislaw Halik
Otherwise settings don't get cancelled
2017-10-21spline/widget: remove dead codeStanislaw Halik
2017-10-21spline: don't remove points from configStanislaw Halik
2017-10-21spline/widget: fixesStanislaw Halik
- fix horizontal legend overwritten by bg color - same fix for point circles - don't blit rectangles in paintEvent, cache them
2017-10-20logic, spline: more spline work/fixesStanislaw Halik
- mapping window clamps are now value<max_clamp> in spline - clamp won't mess up saved spline content - clean up artifacts on spline widget
2017-10-20spline: allow switch pitch mapping max Y 90/180Stanislaw Halik
2017-10-02spline: fix background color handlingStanislaw Halik
2017-08-05fixed macos buildDmitry Lukianov
2017-07-25spline: repaint() is cheaperStanislaw Halik
2017-07-23spline/widget: avoid drawing past the graph's endStanislaw Halik
2017-07-18spline/widget: reduce needless redrawsStanislaw Halik
2017-06-18spline: speed up Qt spline opsStanislaw Halik
2017-06-18spline: workaround going over the max valueStanislaw Halik
2017-06-06spline: prevent returning absolute of negative valueStanislaw Halik
Fixes: #628
2017-05-21spline: minor cleanupStanislaw Halik
2017-05-10spline: add commentStanislaw Halik
2017-05-10spline: rename, change call siteStanislaw Halik
2017-05-10spline: recompute spline config lazilyStanislaw Halik
2017-05-10spline: reformatStanislaw Halik
2017-05-10spline: fix points deleting themselves on dragging to originStanislaw Halik
2017-05-10spline: refactorStanislaw Halik
Generally nothing of importance, just readability. - There was a particularly scary typo where: const unsigned end = std::min(unsigned(value_count), unsigned(p2_x * mult_)); clamping to value_count doesn't make sense, given arbitrary p2_x. - Try harder to avoid assigning s->points. Also the overlap threshold constant was arbitrarily too high. - Sort predicate is meant to use strict ordering, not partial total order.
2017-05-10get rid of the silly mem -> shared_ptr aliasStanislaw Halik
2017-05-10options: don't create QSettings all the timeStanislaw Halik
Update usages.
2017-04-30spline: really fix moving points togetherStanislaw Halik
2017-04-30spline/widget: fix moving points close togetherStanislaw Halik
They disappeared and clumped together.
2017-04-30spline: show tooltip in preview only modeStanislaw Halik
2017-04-18many: use std::f{max,min} for floating-point valuesStanislaw Halik
2017-04-17few widgets: use repaint() for no event loop overheadStanislaw Halik
The Qt event loop overhead formed a decent amount of total CPU usage. `repaint()' is a direct call.
2017-03-28start renaming internal macros as OPENTRACK_* to OTR_*Stanislaw Halik
2017-03-28rename spline-widget -> splineStanislaw Halik
Adjust usages.