Commit Graph

775 Commits

Author SHA1 Message Date
Léa Saviot
a2a31f7a47 [escher] Fix Layout reload
The layout should be reloaded when inserting a non-parsable layout in a
layout field.
This fixes "diff" insertion from the math toolbox in calculation
2018-11-23 12:04:01 +01:00
Émilie Feral
4dda66e58d [escher] AlternateEmptyViewController: give the delegate the opportunity
to choose the view to display when empty
2018-11-23 12:04:01 +01:00
Émilie Feral
7035ad01ae [escher] Toolbox: title is a message instead of a const char 2018-11-23 12:04:00 +01:00
Émilie Feral
d8ffb73e69 [escher] Create class ExpressionTableCellWithExpression 2018-11-23 12:04:00 +01:00
Émilie Feral
08439b5c54 [escher] Create nested_menu_controller to factorize toolbox and future
variable_box_controller
2018-11-23 12:04:00 +01:00
Émilie Feral
a93e9566ad [escher] Create a parent class Field of TextField and
LayoutField
2018-11-23 12:03:59 +01:00
Léa Saviot
c7a405a3df [escher] Always use App::displayModalViewController
Instead of calling ModalViewController::displayModalViewController
directly.
2018-11-16 14:21:25 +01:00
Léa Saviot
266cc79d32 [escher] Remove unneeded include 2018-11-15 10:26:34 +01:00
Léa Saviot
7caf868108 [escher] A warning controller should not process USB events 2018-11-05 14:31:41 +01:00
Lionel Debroux
ddebc06fa5 [escher] Move View's destructor, and several other methods, to the header, so that the compiler can leverage its prior knowledge of the fact that the destructor is trivial (noticed by disassembling the code) to greatly optimize derived classes' destructors.
Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr>
2018-10-23 11:49:09 +02:00
Léa Saviot
f2bfc8641f [escher] Fix strlcpy inserted 0 when inserting text 2018-10-19 17:15:51 +02:00
Léa Saviot
5d92f13c26 Clean strlcpy arguments 2018-10-17 11:22:37 +02:00
Romain Goyet
f1198d3c76 [ion] Add Ion::stackSafe
This allows asserting the stack is within bounds
2018-10-12 09:36:44 +02:00
Romain Goyet
f4f567814e [escher] Compress images 2018-10-12 09:36:44 +02:00
Romain Goyet
f8beae3b86 [kandinsky] Move to KDFont 2018-10-11 16:44:02 +02:00
Émilie Feral
83715153fc [escher] LayoutField: the buffer layout needs to be cleared before next
use of layout_field
2018-10-08 13:16:40 +02:00
Émilie Feral
466c44781a [escher] Fix buffer overflow in TextArea 2018-10-08 11:56:14 +02:00
Émilie Feral
1bfbc7a5ef [escher] Fix buffer overflow in TextField 2018-09-24 18:22:20 +02:00
Émilie Feral
bd8abaf735 [escher] TableView: resizeToFitContent does not do anything if the frame
is null
2018-09-21 09:29:15 +02:00
Léa Saviot
6b8d8a1e55 [escher] Prevent superfluous layout clearings 2018-09-20 16:46:34 +02:00
Léa Saviot
116ef9ee39 [poincare] Fix typo 2018-09-20 11:19:52 +02:00
Émilie Feral
2c62c30287 [escher] Fix LayoutField: reload was broken because the previous layout
size could not be computed anymore
2018-09-18 17:36:58 +02:00
Émilie Feral
365b145cf3 [poincare] Change names: LayoutReference-->Layout 2018-09-18 16:29:44 +02:00
Émilie Feral
f8f0813485 [escher] TextInput: get rid of variable-size tables 2018-09-17 17:14:43 +02:00
Léa Saviot
a4d79332ea [poincare] Fix Warning message exit on special keys
We want the memory full warning to be exited only on OK, EXE, ... but
Syntax warning (for instance) to be exited on any key pressed
2018-09-14 17:59:14 +02:00
Émilie Feral
8cffbdd7de [poincare] Change name of files: *_layout_node --> *_layout 2018-09-14 16:57:12 +02:00
Émilie Feral
616e4c0bcc [poincare] Change name: LayoutRef --> LayoutReference 2018-09-14 16:57:12 +02:00
Léa Saviot
9b6fe58afe [escher] Dismiss memory full warning on OK, EXE, Back, Home, Power only 2018-09-14 15:00:39 +02:00
Léa Saviot
9a289dc7eb [poincare] When app memory exception, got to Home app 2018-09-14 14:49:40 +02:00
Léa Saviot
6deaef49b8 [poincare] When memory exception, stay in the app and display popup 2018-09-14 13:43:54 +02:00
Émilie Feral
42c7c26414 [escher] TableView: when the TableView has a null frame, its
numberOfSubviews is 0
2018-09-14 11:55:09 +02:00
Léa Saviot
9d5893f38c [escher] Uninline methods in LayoutField 2018-09-14 11:29:01 +02:00
Léa Saviot
985f310b1c [escher] Just replace the layout when clearing it in LayoutField 2018-09-14 11:28:37 +02:00
Émilie Feral
c95c3145bc Merge remote-tracking branch 'github/master' into Tree 2018-09-13 17:03:31 +02:00
Léa Saviot
cb471d83d5 [escher] After packing an app, assert the TreePool size is 0 2018-09-12 15:37:03 +02:00
Émilie Feral
880904bcbb [escher] Get rid of DynamicViewController 2018-09-11 13:20:06 +02:00
Émilie Feral
579da3033a [apps] Get rid of DynamicViewController (part 2) 2018-09-07 17:55:42 +02:00
Émilie Feral
75d89b6270 [escher] Container destructor: call m_activeApp destructor instead of
deleting it (it was created using placement new)
2018-09-06 15:56:31 +02:00
Émilie Feral
30f83cde2c [apps] Change names: ExpressionLayout -> Layout 2018-09-06 14:23:57 +02:00
Émilie Feral
6c1df5ffe8 [escher] Delete unused .cpp 2018-09-06 14:23:57 +02:00
Léa Saviot
c65ab9ef67 [poincare] Fix use of isUninitialized 2018-09-06 09:59:59 +02:00
Émilie Feral
9182d66fcc [apps] Apps are not allocated on the heap anymore but in a union hold by
the AppsContainerStorage
2018-09-06 09:49:38 +02:00
Léa Saviot
e3a09286ac [poincare] Remove AllocationFailures 2018-09-05 16:19:11 +02:00
Léa Saviot
679f9815c1 [poincare] Put setjmp in apps_container and in Expression::parse 2018-09-05 14:37:52 +02:00
Romain Goyet
c52ed0bf6d [escher] Allow customizing the background color of a button 2018-08-24 17:39:27 +02:00
Romain Goyet
ebf309654c Revert "Changed active button color to YellowDark"
This reverts commit 90f6205330.
2018-08-24 17:39:27 +02:00
0b101
90f6205330 Changed active button color to YellowDark 2018-08-24 14:36:34 +02:00
Rémy Da Costa Faro
7a0e39f88e Inverted SwitchView handle position 2018-08-24 14:32:15 +02:00
Léa Saviot
71c807b565 [poincare] Node->isDefined becomes !Node->isUninitialized 2018-08-14 16:40:12 +02:00
Léa Saviot
a3d09bde1c [poincare] Fix typos 2018-08-14 16:03:42 +02:00