Commit Graph

6737 Commits

Author SHA1 Message Date
Émilie Feral
ebfa8fb3fa [apps] VariableBoxController: enable to lock pages from deletion 2018-11-23 12:04:03 +01:00
Léa Saviot
19d2cb7cc0 [apps] Add parentheses when selecting a function in VarBoxController 2018-11-23 12:04:03 +01:00
Émilie Feral
0a823da78c [escher] Variable box pop-up is handle as Toolbox pop-up by asking
InputEventHandlerDelegate
2018-11-23 12:04:03 +01:00
Léa Saviot
2c3a0ca558 [poincare] Prevent parsing of too long symbol/function names
This prevents the user from doing "3->tooLongFunctionName(x)"
2018-11-23 12:04:03 +01:00
Léa Saviot
ebb9b040a0 [poincare] Parser error on "2->f(3)" 2018-11-23 12:04:03 +01:00
Léa Saviot
5ecd733904 [escher] Add comment in TextField::privateHandleEvent 2018-11-23 12:04:03 +01:00
Léa Saviot
96c105620a [escher] Force re-layout when aborting text field edition 2018-11-23 12:04:03 +01:00
Émilie Feral
1c6573e8fe [code] When script name edition abort, ask the storage for the previous
name
2018-11-23 12:04:03 +01:00
Émilie Feral
d61ee2857b [escher] TextField: never flush the buffer when textField has only one
buffer
2018-11-23 12:04:03 +01:00
Émilie Feral
6dc1250df2 [escher] TextField: fix edition toggling when finishing editing 2018-11-23 12:04:03 +01:00
Émilie Feral
53e13368c3 [code] ScriptNameCell is responder only when editing 2018-11-23 12:04:03 +01:00
Léa Saviot
8956e6f829 [poincare] Lexer should create "u(n)" symbol when lexing u_{n} 2018-11-23 12:04:03 +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
Émilie Feral
0a438b1803 [escher] ExpressionField does not inherit from EditableField 2018-11-23 12:04:02 +01:00
Émilie Feral
04a08087a7 [apps] Fix selection on VariableBoxController when removing rows 2018-11-23 12:04:02 +01:00
Émilie Feral
4070c754fe [code] VariableBoxController inherits from NestedMenuController 2018-11-23 12:04:02 +01:00
Émilie Feral
42628d7045 [escher] Fix HandleEvent on NestedMenuController 2018-11-23 12:04:02 +01:00
Émilie Feral
7778c694d1 [escher] Create an InputEventHandlerDelegate that gives the toolbox to
be used by an InputEventHandler
2018-11-23 12:04:02 +01:00
Léa Saviot
71d8358722 [apps/escher/poincare] Change KDText::FontSize to KDFont 2018-11-23 12:04:02 +01:00
Émilie Feral
01e433a9f2 [escher] Clean Field and Input class hierarchy:
Class hierarchy:
- InputEventHandler
- TextInput
- EditableField derives from InputEventHandler
- LayoutField, TextField and ExpressioField derives from EditableField
- TextArea and TextField derives from TextInput
2018-11-23 12:04:02 +01:00
Léa Saviot
c2adbe28c5 [apps/global_context] Fix Pi evaluation 2018-11-23 12:04:02 +01:00
Léa Saviot
fe4bb02984 [Apps/code] Remove unneeded buffer 2018-11-23 12:04:02 +01:00
Léa Saviot
64881439bc [apps/graph] When pressing Up while renaming first function, select tab 2018-11-23 12:04:02 +01:00
Léa Saviot
59cdbda0ae [apps/graph] Fix selection after editing a function successfully 2018-11-23 12:04:02 +01:00
Léa Saviot
7b98467fa9 [apps/graph] Fix first responder when popup after renaming function 2018-11-23 12:04:02 +01:00
Léa Saviot
9e332b0c2b [apps] Create and use StorageFunction::BaseNameCompliant 2018-11-23 12:04:02 +01:00
Léa Saviot
b2c2ca17c8 [i18n] Fix typo 2018-11-23 12:04:02 +01:00
Émilie Feral
8e2a30ab8e [graph] Create a static method StorageCartesianFunctionStore::Symbol() 2018-11-23 12:04:02 +01:00
Émilie Feral
4dbd7583e0 [apps] VariableBoxController: use StorageFunction::nameWithArgument to
avoid reimplementing it
2018-11-23 12:04:02 +01:00
Émilie Feral
1205dc50e6 [shared] StorageFunction::nameWithArgument uses
SymbolAbstract::TruncateExtension instead of reimplementing it
2018-11-23 12:04:02 +01:00
Léa Saviot
651a86b8fa [apps] Clean the comments of StorageCartesianFunction 2018-11-23 12:04:02 +01:00
Léa Saviot
6aab93f3fe [apps/graph] Limit the textfield size when renaming a function 2018-11-23 12:04:02 +01:00
Léa Saviot
65ec434449 [apps/graph] Change cell selection after renaming if event is up or down 2018-11-23 12:04:02 +01:00
Émilie Feral
3c2cde5529 [shared] StorageFunctionListController: Fix bug wrong casting 2018-11-23 12:04:02 +01:00
Léa Saviot
63d6f11b8d [apps/graph] Fix rebase: don't use old methods 2018-11-23 12:04:02 +01:00
Léa Saviot
bdb5856f7a [apps/graph]Handle user escaping the function renaming with "Back" 2018-11-23 12:04:02 +01:00
Émilie Feral
c70278941a [graph] Do not keep a function pointer as member variable but a record.
Indeed, function pointers can become invalid at any point...
2018-11-23 12:04:02 +01:00
Léa Saviot
974519f61a [apps/code] Use TextFieldWithExtension in the list controller 2018-11-23 12:04:02 +01:00
Léa Saviot
6facfbbf7a [apps/graph] Use TextFieldWithExtension in the list controller 2018-11-23 12:04:02 +01:00
Léa Saviot
f8df2a2fba [apps] Remove unneeded dependency 2018-11-23 12:04:02 +01:00
Léa Saviot
885f953d52 [apps] TextFieldWithExtension blocks cursor on the rightmost text 2018-11-23 12:04:02 +01:00
Léa Saviot
df542f2f84 [apps/graph] Update column width after renaming function 2018-11-23 12:04:02 +01:00
Léa Saviot
976e27331d [apps] Use StorageFunction::k_parenthesedArgumentLength 2018-11-23 12:04:02 +01:00
Léa Saviot
801d7ddeeb [apps] "(x)" is a static char[] of Shared::StorageFunction 2018-11-23 12:04:02 +01:00
Léa Saviot
933838ff5e [apps/graph] Rename functions 2018-11-23 12:04:02 +01:00
Léa Saviot
b7770d087c [apps/graph] Add "Rename" entry in the function parameters 2018-11-23 12:04:02 +01:00
Léa Saviot
dd5bf76882 [poincare] Remove old function attributes 2018-11-23 12:04:02 +01:00
Léa Saviot
bd65063b67 [graph] TextFieldFunctionTitleCell 2018-11-23 12:04:02 +01:00
Léa Saviot
00dcffbc69 [apps] Return uninitialized exp if record type does not match exp type
In global context. This fixes the computation of a->a(a) in calculation,
which crashed.
2018-11-23 12:04:02 +01:00
Léa Saviot
c5713ce8c9 [poincare] Allow x to be a user defined function or variable 2018-11-23 12:04:02 +01:00