Commit Graph

60 Commits

Author SHA1 Message Date
Quentin Guidée
db269f1204 KDColorBlack -> Palette::Text for the theming engine 2019-11-26 19:22:24 +01:00
Léa Saviot
4caf9f5197 [coding style] Make some methods const 2019-09-09 20:05:14 +02:00
Émilie Feral
6de497c2ed [apps/shared] Templatize FloatParameterController to handle float/double
parameters.

Fix bug: when entering "e^234" as a parameter of a model keeping floats,
the FloatParameterController would accept the number (because e^234 is
defined in double) and store an undefined value in the model (because
e^234 is undefined in float).
2019-09-02 16:55:39 +02:00
Léa Saviot
bbf506ddb7 [apps/proba] Refactor law -> distribution 2019-08-20 17:16:19 +02:00
Émilie Feral
12060e2ae7 [escher] TextField: all text fields use the same draft text buffer 2019-08-13 09:44:00 +02:00
Ruben Dashyan
eb6d697927 [apps] Make app accessors static members of App classes 2019-07-19 15:06:25 +02:00
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 2019-07-19 15:06:25 +02:00
Romain Goyet
e5f7b93efb [apps/probability] Avoid a local snapshot cast 2019-07-19 15:06:25 +02:00
Ruben Dashyan
08e8bf0eeb [escher] Implement ScrollView::minimalSizeForOptimalDisplay including margins
Remove from derived classes:
 - apps/calculation/scrollable_expression_view
 - apps/code/consol_line_cell
 - apps/shared/scrollable_exact_approximate_expressions_view
 - escher/layout_field
 - escher/table_view
 - escher/text_field
2019-02-18 16:49:58 +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
Romain Goyet
f8beae3b86 [kandinsky] Move to KDFont 2018-10-11 16:44:02 +02:00
Émilie Feral
6d9f0c0f0b [apps] Get rid of DynamicViewController in FloatParameterController 2018-09-11 11:32:29 +02:00
Émilie Feral
faac0d7a58 [escher] Change TableView::size() to
TableView::minimalSizeForOptimalDisplay()
2018-01-04 15:48:06 +01:00
Émilie Feral
8f4e9b9656 [apps] Probability: redesigning the calculation controller (for future
scrolling purpose)
2018-01-04 15:48:06 +01:00
Émilie Feral
5c4740913b [kandinsky] Replace KDText::stringSize(" ") by KDText::charSize()
Change-Id: Ie962d7784b54ff41431d21f64d9af0887a86f9b7
2017-08-17 16:21:17 +02:00
Émilie Feral
f0a776a670 [apps] Operations in double when precision required
Change-Id: I7168a861a76178f0bf81841e9378f7399f67914a
2017-08-17 09:31:53 +02:00
Émilie Feral
ce09d2f9c4 [apps] Event 'right' on chevron cells behaves as OK and 'left' on the
next cell as 'back'

Change-Id: I2470659d8237373b21ad106c79cc5f8945f0edb5
2017-06-02 14:07:56 +02:00
Émilie Feral
8524230acb [apps/probability] Fix bug
Change-Id: Ie8bbf427f6f7ce5a784665ffdfa45e29951e64e2
2017-05-18 18:03:04 +02:00
Émilie Feral
f6dd2d1180 [apps/probability] Add a page index in snapshot
Change-Id: I4d37cd744bf42b67090cbbd1619f98b512b16e9a
2017-05-18 17:55:50 +02:00
Émilie Feral
1cc75e5d76 [apps/probability] Move Calculation model to snapshot
Change-Id: If04e331a7ee81667c7aa8c302479d054189dd63a
2017-05-18 17:49:59 +02:00
Émilie Feral
e814b0c0c0 [apps/probability] MOve law in snapshot
Change-Id: I2b1daa2f3b624ca2f81d667ab0f2ed4dcf84eb43
2017-05-18 16:40:47 +02:00
Émilie Feral
96733dbbdc [apps] Rule of 5 (3)
Change-Id: Ia85b23a09e9debd62b4f3590463a4f16454ef4b7
2017-05-09 14:33:53 +02:00
Émilie Feral
6c80ec0480 [apps] Rule of 5
Change-Id: Ib7b3fec6dbe3f9629e07464695ddd3b5611d8f83
2017-05-09 11:53:24 +02:00
Émilie Feral
62c93e49a6 [apps] AppsContainer does not own the apps but a pointer to the apps
Change-Id: I9b6787be2cd143b52fd8dd60f3528fed2f74e4bb
2017-05-03 15:32:54 +02:00
Émilie Feral
70fc734f7b [escher] Change dynamic view controller paradigm
Change-Id: I57fd41c9b9ad8a1e8b684b97fdf80ddffd71881d
2017-05-03 14:22:51 +02:00
Émilie Feral
0517066cc0 [escher] Extrude scroll view model to its delegate
Change-Id: If863de63f5f77edb5e2905633067e03aecdd8937
2017-05-03 10:22:01 +02:00
Émilie Feral
7715da8e36 [apps/shared] In float parameter controllers, back has the same
consequence as 'validate'

Change-Id: Id45f824c50af2f6e47be5abd9115d98971a1e073
2017-04-26 09:39:14 +02:00
Émilie Feral
f3eb2b80df [escher] In textField, record edited data when changing selection
Change-Id: I74e1cac2188986244f79e7c5ad0eb1d300510475
2017-04-24 17:36:32 +02:00
Émilie Feral
54c5f4dcda [apps/shared] Make the float parameter controllers a dynamic controller
view

Change-Id: I216b7f6df15e5a406624ce3c1b0e892d0f871a6b
2017-04-24 14:37:27 +02:00
Émilie Feral
0a3692cfac [apps/shared] Do not reset the textfield is the data has not been
updated (syntax, math error)

Change-Id: I53301c2bdf59e03d0c2bcdb56b0da4d86d83bb5e
2017-03-29 18:36:39 +02:00
Émilie Feral
fff1371133 [apps/probability] Clip parameters
Change-Id: Ifb966b97afb15b2e876c506aff097999d012ec17
2017-03-29 11:35:30 +02:00
Émilie Feral
5e7bfc795a [apps/shared] Deselect table in float parameter controller when
disappearing

Change-Id: I59baf6b9d578b9d5045287f7c9ba65ff53abbda9
2017-03-29 11:35:30 +02:00
Émilie Feral
dc6acc0d48 [apps/shared] Clip displayed range in graph view in interactive curve
view range

Change-Id: I4654a1f9c06420d6ade8a86a13c0d89f025f324f
2017-03-20 14:55:59 +01:00
Émilie Feral
1f21251011 [escher] Change name: pointer->message
Change-Id: I0bd7a7d8da047b03342bec1ff31f29ad7efcc2f6
2017-03-16 15:12:12 +01:00
Émilie Feral
adc80cd71b [apps][escher] I18n
Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
2017-03-16 15:12:12 +01:00
Émilie Feral
e7abdbe2e3 [apps/shared] In float parameter controllers, add a ok button
Change-Id: I6063afd5ebc9bcb0bcddc13e42a91d029c4bd831
2017-03-16 15:12:11 +01:00
Émilie Feral
94ab6c6dba [escher] Make button a highlightCell
Change-Id: Ie23d2d53546827563ab086d5f62895be8fd1b09b
2017-03-16 15:12:11 +01:00
Émilie Feral
e65b07286d [escher] [apps] Get rid of magic numbers
Change-Id: Iad192d24324dda37b3d739830cc8ead7a032e22f
2017-02-20 10:54:03 +01:00
Émilie Feral
2e16365100 [escher] Reorganize all cells'name and factorize their layouts
Change-Id: I69900ee98ff6a6868f96d70a0e335a589ef16c3f
2017-02-20 10:54:02 +01:00
Émilie Feral
5e3de6eec9 [apps/probability] Improve stack title colors
Change-Id: Ifd6f79030e0ef13c478fae307205c71955ce4593
2017-02-02 10:29:06 +01:00
Émilie Feral
400e2e5a37 [apps/probability] Improve titles and parameter definitions layout
Change-Id: I84e04b9900d92b0a4d61c19dc27be426f9b9117c
2017-02-02 10:29:06 +01:00
Émilie Feral
e951140298 [poincare] Change method createLayout() to createLayout(DisplayMode)
Change-Id: Ifb1027d38b53a50a0ada80e11b68d44e72ac9099
2017-01-31 10:36:13 +01:00
Émilie Feral
7f658266c3 [poincare] [apps] Merge Display mode enum class of Float and Preferences
Change-Id: I50498ff0f12991fdd905421441eee7a477d53a4d
2017-01-30 16:11:36 +01:00
Émilie Feral
d45000b3d9 [escher] In palette, improve colors
Change-Id: I2c8f33764cf2befeb994b9b47b46d39f116ae96c
2017-01-27 11:46:05 +01:00
Émilie Feral
f51ae5db12 [kandinsky] Introduce two fonts: small font and large font
Change-Id: I502dfa88d627b09ac5af76155140af63547025cd
2017-01-27 11:14:01 +01:00
Émilie Feral
a74eef903a [poincare] Redesign Float::convertTotext
Change-Id: Id27d9472147b5e443ee296feca891392fad735c8
2017-01-15 20:04:59 +01:00
Émilie Feral
aa91ebfb14 [apps] Delete useless obsoletfunction in float parameter controller
Change-Id: I2421de22519aacc2ef329cca12dc6fa3b6ad845d
2017-01-09 15:08:55 +01:00
Émilie Feral
ff3d8dce5a [apps] Display float in decimal mode in curve views and title
Change-Id: I3c069f3e001b43c98d4c54975b02636dad330acf
2017-01-09 15:08:54 +01:00
Émilie Feral
453891c0da [apps] Factorize the method textFieldDidReceiveEvent in the abstract
class float parameter controller

Change-Id: I374e46664f6514246fff6378d97ae142c7130ca9
2017-01-09 15:08:53 +01:00
Émilie Feral
7c27ce5ec0 [apps/probability] Correct dirtyness and layout order
Change-Id: I5cdda0c7fc7552ef3e76e870b1012f058c30f3f5
2016-12-19 14:13:06 +01:00