Commit Graph

66 Commits

Author SHA1 Message Date
Romain Goyet
950862f8d0 Use std::min and std::max 2020-04-14 09:31:02 -04:00
Émilie Feral
e87a096689 [apps/shared] didChangeCell reload only cells corresponding to the
modified abscissa
2019-10-07 15:02:34 +02:00
Émilie Feral
f995fb0fc2 [apps/shared] ValuesController: reload memoized cell when abscissa is
edited
2019-10-07 15:02:34 +02:00
Émilie Feral
4d593a6149 [poincare] PrintFloat: take into account the distinction between char
and glyph length in ConvertFloatToText
2019-09-26 11:26:48 +02:00
Émilie Feral
d6ad694b76 [apps/shared] EditableCellTableViewController: adjust column width to be
able to display float like "-1.234567E-123"
2019-09-26 11:26:48 +02:00
Léa Saviot
4caf9f5197 [coding style] Make some methods const 2019-09-09 20:05:14 +02:00
Ruben Dashyan
2e5ded2aa9 [apps/shared/editable_cell_table_view_controller] Factor textFieldDidFinishEditing 2019-08-29 13:51:49 +02:00
Ruben Dashyan
d8cac0e95f [apps/shared/editable_cell_table_view_controller] Factor setEven in willDisplayCellAtLocationWithDisplayMode 2019-08-29 13:51:49 +02:00
Ruben Dashyan
7d411fe61f [apps/shared/editable_cell_table_view_controller] Assert cell is not being edited before setEven 2019-08-29 13:51:49 +02:00
Ruben Dashyan
fa85293467 [apps/shared/editable_cell_table_view_controller] numberOfElements depends on column 2019-08-29 13:51:49 +02:00
Ruben Dashyan
ea40f67d63 [apps/shared/editable_cell_table_view_controller] Clean numberOfRows 2019-08-29 13:51:49 +02:00
Ruben Dashyan
c9b28840c3 [apps/shared/editable_cell_table_view_controller] Clean willDisplayCellAtLocationWithDisplayMode 2019-08-29 13:51:49 +02:00
Léa Saviot
0840ca7a1e [apps/poincare] Move NormalDistribution to Poincare 2019-08-23 13:47:52 +02:00
Léa Saviot
b0b10f184e [poincare/print_float] convertFloatToText -> ConvertFloatToText 2019-08-08 17:22:06 +02:00
Émilie Feral
79d7e58ec8 [apps/shared] EditableCellTableViewController: function and sequence
values table cells were to narrow to display
LargeNumberOfSignificantDigits (~16 digits). We adjust the number of
digits authorized before switching to scientific mode to the cell width
2019-08-08 17:22:05 +02:00
Ruben Dashyan
44809f4b3f Substitute Escher app() by Container::activeApp() 2019-07-19 15:06:25 +02:00
Ruben Dashyan
055d601854 [apps] Define TextFieldDelegate::textFieldDelegateApp() directly from ::app() 2019-07-19 15:06:25 +02:00
Ruben Dashyan
62cec10b46 [apps] Clean unnecessary AppsContainer class declarations and header inclusions 2019-07-19 15:06:25 +02:00
Ruben Dashyan
82685cb371 [apps] Factorize portions checking whether text approximates to double 2019-05-03 15:54:21 +02:00
Ruben Dashyan
5e5e07e963 [apps/shared] Factorize Store/ValuesController::textFieldDidFinishEditing 2019-05-03 15:54:21 +02:00
Léa Saviot
bd2ea41fbe [apps/escher] Rename cursorTextLocation as cursorLocation 2019-05-03 15:53:19 +02:00
Léa Saviot
5c39cab73e [escher] Fix text inputs so they use UTF8 2019-05-03 15:53:19 +02:00
Émilie Feral
579da3033a [apps] Get rid of DynamicViewController (part 2) 2018-09-07 17:55:42 +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
e61a408a0a [poincare] Get rid of AngleUnit::Default 2018-07-18 17:09:07 +02:00
Émilie Feral
6de71ae145 [poincare] Clean: convertFloatToText should be in PrintFloat instead of
Complex
2018-03-21 15:57:19 +01:00
Émilie Feral
d36cfcca51 [apps] In Editable cell table view controller, do not reload all table
data if the table dimensions did not evolve
2017-12-20 17:41:03 +01:00
Émilie Feral
077a95197e [escher] SelectableTableView handles setting the ccell as first
responder if needed
2017-12-20 17:17:41 +01:00
Émilie Feral
db35fc1d72 Merge branch 'cas_with_python' into python_console
Change-Id: I06e3e07b9fd8d52818d90110ed7517777b35b9f1
2017-12-01 17:29:55 +01:00
Léa Saviot
e43bbd38f2 [escher] Fixed TextField bug.
The Statistics apps crashed when navigating the Data table.
 -> Check that the textfield is editing before calling
textFieldShouldFinishEditing.
 -> Changed textLength() to draftTextLength().

Change-Id: Id373a7cd50438303f470abc5bcee7a795c33926a
2017-12-01 13:19:30 +01:00
Émilie Feral
76cbd2678d [poincare] Change names: approximate->approximateToScalar
Change-Id: I701451b35909bb577dd729e0ea76a405b9543f23
2017-11-24 12:06:35 +01:00
Romain Goyet
52bdf4a41f Merge branch 'cas_with_app_copy' into python_console 2017-11-21 18:44:38 +01:00
Léa Saviot
95c6d9532b [escher] Fixed TextField.
A TextField delegate should process events before the TextField itself.
EditableCellTableViewController now verifies the position of the cursor to
determine if a Left or Right event should finish the TextField edition.

Change-Id: I6c8e78d6d02c7ab87e7d81770b4242a16fecde32
2017-11-17 11:59:50 +01:00
Léa Saviot
a14cfd0aea [code] Script names are displayed and can be edited.
Change-Id: I5acc468920b66673e78da130bf90a74d0c062211
2017-11-17 11:59:50 +01:00
Jacob Young
da1e66e798 Fix #115 by fixing the math.h and cmath includes. 2017-10-13 18:08:15 +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
82e212e771 [poincare] Template for double
Change-Id: I7404bd5cefc9ef78a5dbd572c3874a557cded28e
2017-08-16 09:55:29 +02:00
Émilie Feral
462fbd9434 [apps/shared] In editable cell table view controoler, reinit selection
only when no cell is selected

Change-Id: I5c1b0a18d504291bda308261efb9bb27470fc688
2017-06-02 14:07:55 +02:00
Émilie Feral
bbd1bf9a7f [apps] Change selection in tab children with button row controller
Change-Id: Id45fd599c76d758715afc6622abd419e04d6dd5b
2017-05-29 10:39:34 +02:00
Émilie Feral
7a23094657 [apps/shared] Change scroll indicator margin in table view
Change-Id: Ib3e3a5c673e39bd8d6f8515ae52f3fdfd58de300
2017-05-05 10:19:05 +02:00
Émilie Feral
70fc734f7b [escher] Change dynamic view controller paradigm
Change-Id: I57fd41c9b9ad8a1e8b684b97fdf80ddffd71881d
2017-05-03 14:22:51 +02:00
Émilie Feral
3f98061a4c [escher] Extrude the model in selectable table view controller to its
delegate

Change-Id: I4d49e0098d501e1419f7b216e828b13efbf74f81
2017-05-03 10:22:01 +02:00
Émilie Feral
784c27b8c8 [apps] Memory leak
Change-Id: Iffc90ef26a7e5aa500d47c77140b91e62cf6dbdc
2017-04-25 13:52:29 +02:00
Émilie Feral
edf5c47a4b [apps/shared] Avoid blinking in editable table
Change-Id: I1b6336412c43e9ae51a1e4a1adfdf21525557a73
2017-04-24 17:36:33 +02:00
Émilie Feral
230a53fe7e [apps] Use a forgotten method on selectable table view
Change-Id: I6b934ac0d2587565c6b94d5130d158b621c1e187
2017-04-24 17:36:32 +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
5c7d763291 [apps/shared] Make tab table controller dynamic view controller
Change-Id: Id3a383e72173779eb295dc998f780041f62f8bf0
2017-04-21 10:08:09 +02:00
Émilie Feral
6d8d105d7e [escher][apps] Clean and fix bug in text field
function application)

Change-Id: I5d425ea7752a054ea6b05735b12442c4429f13b4
2017-03-29 15:04:37 +02:00
Émilie Feral
128af56396 [apps/statistics] Forbid negative sizes and round float sizes
Change-Id: I4db9777bea04f70b86da97f940ef5cbe669e41d9
2017-03-29 15:04:37 +02:00
Émilie Feral
4f089b2cf8 [apps] Avoid infinite value in editable table
Change-Id: I8ebbf99c244e7b7008c788aec8eed71b9ae20580
2017-03-28 14:49:22 +02:00