Commit Graph

98 Commits

Author SHA1 Message Date
Ruben Dashyan
3d71397949 [apps/shared] XYBannerView contains a TextField 2019-05-03 15:54:22 +02:00
Ruben Dashyan
5ff19a2506 [apps] Define Font, Text/BackgroundColor BannerView static methods 2019-05-03 15:54:21 +02:00
Ruben Dashyan
4d640e2916 [apps] XYBannerView: prepare constructor so the class may contain TextField 2019-05-03 15:54:21 +02:00
Ruben Dashyan
ba6282be45 [apps/shared] Remove InteractiveCurveViewController::didEnterResponderChain
In order to avoid reloading after Ion::Events::Toolbox/Var, but only in
viewWillAppear.
The previous behavior was masking a bug in
Regression::GraphController::viewWillAppear where the cursor could be
moved after reloading the bannerView.
2019-05-03 15:54:21 +02:00
Ruben Dashyan
94cf542ba3 [apps] Factorize InteractiveCurveViewController::moveCursorVertically 2019-05-03 15:54:21 +02:00
Ruben Dashyan
f6ceae3b8b [apps] Factorize SimpleInteractiveCurveView::moveCursorHorizontally 2019-05-03 15:54:21 +02:00
Ruben Dashyan
67f9f79322 [apps] Implement InteractiveCurveViewController::isCursorVisible
It was a pure virtual method implemented in derived classes
  Shared::FunctionGraphController,
  Regression::GraphController.
InteractiveCurveViewRange does not need anymore to hold CurveViewCursor
* m_cursor.
2019-05-03 15:54:21 +02:00
Ruben Dashyan
8629254d9a [apps] Remove Shared::InteractiveCurveViewController::displayTop/BottomMarginRatio
and replace it by the existing cursorTop/BottomMarginRatio.
There was absolutely no reason to use different margin values.
2019-05-03 15:54:21 +02:00
Ruben Dashyan
d8f97d62a4 [apps] Factorize Shared::InteractiveCurveViewController methods
cursorBottomMarginRatio(), displayBottomMarginRatio(),
estimatedBannerHeight() and k_viewHeight moved to
Shared::InteractiveCurveViewController from derived classes.

estimatedBannerNumberOfLines() moved from
Shared::FunctionGraphController to
Shared::InteractiveCurveViewController and implemented in
Regresssion::GraphController.
2019-05-03 15:54:21 +02:00
Ruben Dashyan
e13651f6fb [apps] Remove Shared::InteractiveCurveViewController::initRangeParameters virtual method 2019-05-03 15:54:21 +02:00
Ruben Dashyan
355e42734d [apps] Replace BannerView::set(Legend|Message)AtIndex by getters 2019-05-03 15:54:21 +02:00
Léa Saviot
d2b9bdd616 [unicode] Clean typography (accents, non present glyphs...) 2019-05-03 15:53:20 +02:00
Léa Saviot
4c5251f04f [unicode] Use unicode when dealing with chars - Part 2 2019-05-03 15:53:19 +02:00
Léa Saviot
6765de4598 [apps/regression] Add X bar and Y bar 2019-05-03 15:53:19 +02:00
Léa Saviot
496d346049 Remove max/min inline from KDCoordinate header 2019-05-03 15:53:19 +02:00
Léa Saviot
65e5adafac Remove Ion::Charset 2019-05-03 15:53:19 +02:00
Léa Saviot
058b49a063 [apps/Seq/Reg] Do not pan to cursor if no yAuto 2019-01-10 11:42:02 +01:00
Léa Saviot
42cdf95e9f [apps/regression] Improve vertical navigation
Data set:
X1 2 3 2   1
Y1 0 1 0.5 5
X2 1 10 2
Y2 0 25 0.5

There was circular navigation on series 2 mean point
2018-12-13 15:56:33 +01:00
Léa Saviot
460c21801f [apps/regression] More intuitive curve/dot vertical navigation 2018-12-12 11:14:51 +01:00
Léa Saviot
2a7a8f56bc [apps/regression] Fix typos 2018-11-23 12:04:10 +01:00
Léa Saviot
3397dbd039 [apps] Clean regression/graph_controller files 2018-11-23 12:04:08 +01:00
Léa Saviot
e3935fd9c0 [apps] Factorize closestCurveIndexVertically from Regression and Graph 2018-11-23 12:04:08 +01:00
Émilie Feral
698332c355 [escher] InputTextDelegate and LayoutFieldDelegate don't inherit from
InputTextDelegate to avoid diamond inheritance
2018-11-23 12:04:03 +01:00
Léa Saviot
5d92f13c26 Clean strlcpy arguments 2018-10-17 11:22:37 +02:00
Romain Goyet
c183f0147e [kandinsky] Get rid of KDText 2018-10-11 16:44:02 +02:00
Romain Goyet
f8beae3b86 [kandinsky] Move to KDFont 2018-10-11 16:44:02 +02:00
Émilie Feral
c95c3145bc Merge remote-tracking branch 'github/master' into Tree 2018-09-13 17:03:31 +02:00
Léa Saviot
a233df7619 [poincare] Fix DataNotSuitable message (was too long) 2018-09-05 14:31:54 +02:00
Léa Saviot
2f946e7987 [apps/regression] Add private method globalContext on GraphController 2018-08-30 17:39:10 +02:00
Émilie Feral
48f890ef93 [poincare] AngleUnit, FormatComplex and PrintFloatMode are now
enumeration of Preferences class
2018-07-30 13:48:04 +02:00
Émilie Feral
b8af15f1ab [poincare] change createLayout signature
- CreateLayout depends on the float display mode and the number of
significant digits
- Float display mode does not have a default value anymore
2018-07-18 16:32:50 +02:00
Léa Saviot
68d915fb3e [apps/reg] Fix window sizing: cursor appears even with big bannerview 2018-07-18 10:32:46 +02:00
Léa Saviot
b9992e5eb6 [apps/reg] Keep cursor on same series when changing a regression type 2018-07-18 10:32:46 +02:00
Léa Saviot
bfa69cb4f1 [apps/reg] Reinit cursor when model changes 2018-07-18 10:32:46 +02:00
Léa Saviot
c4c613d642 [apps/reg] Display when data is not suitable for regression 2018-07-18 10:32:45 +02:00
Léa Saviot
a8b2183afa [apps/reg] Prevent fitting when data not suitable 2018-07-18 10:32:45 +02:00
Léa Saviot
502ce397d9 [apps/reg] Fix banner view data 2018-07-18 10:32:45 +02:00
Léa Saviot
f885923957 [apps/reg] Display correct formula in banner view 2018-07-18 10:32:45 +02:00
Léa Saviot
01698a650d [apps/reg] Rename PredictionParameterController->GraphOptionsController 2018-07-18 10:32:45 +02:00
Léa Saviot
5f865814f0 [apps/reg] Each regression model can evaluate levelSets (= antecedents) 2018-07-18 10:32:45 +02:00
Léa Saviot
15ba7c4a8b [apps/reg] Remove unneeded volatile qualifiers 2018-07-18 10:32:45 +02:00
Léa Saviot
822bed9aaf [apps/reg] Handle the case where the selected series is < 0 2018-07-18 10:32:45 +02:00
Léa Saviot
e777a191c6 [apps/regression] Draw the right regression curve 2018-07-18 10:32:45 +02:00
Léa Saviot
3ac1569189 [apps/reg] Regression cursor has the curve color 2018-06-12 15:09:06 +02:00
Léa Saviot
6d5c987178 [apps/reg] Use selected series index stored in snapshot 2018-06-11 13:58:26 +02:00
Léa Saviot
c7de90dd99 [apps/reg] Fix GraphController::reloadBannerView 2018-06-11 13:58:26 +02:00
Léa Saviot
70ad21232d [apps/shared] FloatPairStore -> DoublePairStore 2018-06-11 13:58:25 +02:00
Léa Saviot
0c2c998362 [apps/regression] Navigation between different series in graph 2018-06-11 13:58:24 +02:00
Léa Saviot
32e00b5e1e [apps/reg] Init the graph selected series at cursor initialization 2018-06-11 13:58:24 +02:00
Léa Saviot
7f71faf0c2 [apps/regression] Fix GraphController::isEmpty 2018-06-11 13:58:24 +02:00