Commit Graph

996 Commits

Author SHA1 Message Date
Léa Saviot
a2448ec807 [escher] Increase TextField::maxBufferSize
In order to be able to write a 10*10 adjacency matrix
2019-04-12 15:16:53 +02:00
Émilie Feral
d0665d8558 [shared] Clean class names containing storage 2019-04-12 15:16:52 +02:00
Émilie Feral
cef106b23d [escher] Avoid unnecessary relayouts 2019-04-12 15:16:52 +02:00
Léa Saviot
92574ab0a3 [coding style] Small inlining 2019-04-12 15:16:52 +02:00
Léa Saviot
2d83c2994c [escher] Fix TextArea::handleEventWithText
It did not handle properly a new line (placed the cursor wrongly).
2019-04-12 15:16:52 +02:00
Léa Saviot
d98e1f44cd [escher] Fix null termination for drawString in ScrollViewIndicator 2019-04-12 15:16:52 +02:00
Léa Saviot
f39358423b [escher/text_field] Fix rect dirtying in setText
The content of the buffers might no be initialized before the setText,
so we cannot use reloadRectFromPosition, as it requires to perform
stringSize, which needs valid content.
2019-04-12 15:16:52 +02:00
Léa Saviot
86f6e6e72b [escher] Fix TextField::ContentView::setEditing 2019-04-12 15:16:52 +02:00
Léa Saviot
b1d18416e8 [escher] Fix buffer choice in TextField::glyphFrameAtPosition 2019-04-12 15:16:52 +02:00
Léa Saviot
7b5636f298 [unicode] Clean decoder use 2019-04-12 15:16:52 +02:00
Léa Saviot
a214bbdc5a [unicode] Use unicode when dealing with chars - Part 2 2019-04-12 15:16:51 +02:00
Léa Saviot
68db4620ba [escher/text_area] Fix rect dirtying after Clear event 2019-04-12 15:16:51 +02:00
Léa Saviot
c9feec7cd7 [unicode] Fix stop condition in TextArea::Text::removeRemainingLine 2019-04-12 15:16:51 +02:00
Léa Saviot
6251a8ac33 Use correct unicode symbols 2019-04-12 15:16:51 +02:00
Léa Saviot
3bc9a390bf [escher/ion] Fix wrong assertions 2019-04-12 15:16:51 +02:00
Léa Saviot
646931b3b5 [text_area] Fix Text::Position use with unicode
A glyph offset is not equivalent to a code point offset since a code
point can be several glyphs long.
2019-04-12 15:16:51 +02:00
Léa Saviot
0a95276be9 [escher/text_field] Fix removeCodePoint rect dirtying 2019-04-12 15:16:51 +02:00
Léa Saviot
0b05480aaf [escher/text_field] Code cleaning 2019-04-12 15:16:51 +02:00
Léa Saviot
5be803ac45 [unicode] Fix python area 2019-04-12 15:16:51 +02:00
Léa Saviot
79dc1dc2b9 Remove compilation warnings 2019-04-12 15:16:51 +02:00
Léa Saviot
0ebfab773e [escher/ion] Factorize code for removing a code point in text field/area 2019-04-12 15:16:51 +02:00
Léa Saviot
aac78ca32a [escher/ion] Standard methods in UTF8Helper used in text_area
String manipulations need to be done using an UTF8 decoder, but some
manipulations can be optimized if the code points we manipulate are only
one char long. These optimizations are done inside UTF8Helper methods.
2019-04-12 15:16:51 +02:00
Léa Saviot
e6051fae42 [unicode] Methods optimized when code points are one char long 2019-04-12 15:16:51 +02:00
Léa Saviot
7020ecef57 [apps/escher] Rename cursorTextLocation as cursorLocation 2019-04-12 15:16:51 +02:00
Léa Saviot
43031928c3 Remove max/min inline from KDCoordinate header 2019-04-12 15:16:51 +02:00
Léa Saviot
03446bc9d1 [escher] Clean TextView 2019-04-12 15:16:51 +02:00
Léa Saviot
0fdf6665ad [escher] Fix textfield edition 2019-04-12 15:16:51 +02:00
Léa Saviot
b6eb663f53 [ion/kandinsky] Move unicode to ion 2019-04-12 15:16:51 +02:00
Léa Saviot
b2f065c957 Remove TODOs 2019-04-12 15:16:51 +02:00
Léa Saviot
4316f2c29c [escher] Fix text field and text area navigation 2019-04-12 15:16:51 +02:00
Léa Saviot
5142c071df [escher] Fix text inputs so they use UTF8 2019-04-12 15:16:51 +02:00
Léa Saviot
242bcda631 [escher] Clean text_input 2019-04-12 15:16:51 +02:00
Léa Saviot
f90e709201 [poincare/utf8_decoder] nextCodePointPointer is now stringPosition 2019-04-12 15:16:51 +02:00
Léa Saviot
8d759c0b3b [unicode] Use the UTF8Decoder to scan const char * 2019-04-12 15:16:51 +02:00
Léa Saviot
63d7155376 Remove Ion::Charset 2019-04-12 15:16:50 +02:00
Romain Goyet
0c83253d2e [scripts] Use BUILD_DIR instead of build_dir 2019-03-06 15:00:59 +01:00
Romain Goyet
bd6339f9dc [make] Rename OUTPUT_DIRECTORY to build_dir 2019-03-06 15:00:59 +01:00
Romain Goyet
4f1d74f44b [build] Use an out-of-tree build 2019-03-06 15:00:59 +01:00
Émilie Feral
ac6f23684d [poincare] Clean Expression and Layout builders
Before: Opposite(Opposite(Rational(1))) misleadingly created the
expression "-1"; now, Opposite::Builder(Opposite::Builder(Rational(1)))
creates "--1"
2019-02-21 11:29:35 +01:00
Ruben Dashyan
b3d15d7e7f [escher/table_view] layoutSubviews of m_contentView first 2019-02-18 16:49:58 +01:00
Ruben Dashyan
b5dc7f738e [escher/table_view] scrollToCell includes CellOverlap
In passing, factorize duplicate code.
2019-02-18 16:49:58 +01:00
Ruben Dashyan
1ac829ca18 [escher/scroll_view_indicator] Fix rounding issues for bars 2019-02-18 16:49:58 +01:00
Ruben Dashyan
9ea63678e1 [escher] Inline ScrollView::setCommonMargins 2019-02-18 16:49:58 +01:00
Ruben Dashyan
0943406263 Fix HistoryViewCell and ScrollableExactApproximateExxpressionsCell margins issue
Remove all margins from those cells.
Rather add margins to their respective subviews:
 - ScrollableExpressionView
 - ScrollableExactApproximateExpressionsView.

As a notable consequence, the distance in HistoryViewCell between its
subviews becomes 10 instead of 5.

In passing, replace
 - Metric::HistoryHorizontalMargin = 10
 - ScrollableExactApproximateExpressionsView::k_digitHorizontalMargin = 10
 - HistoryViewCell::k_digitVerticalMargin = 5
 - ScrollableExactApproximateExpressionsCell::k_margin = 5
by
 - Metric::CommonSmallMargin = 5
 - Metric::CommonLargeMargin = 10.
2019-02-18 16:49:58 +01:00
Ruben Dashyan
571967088e [escher/scroll_view] Uniformize scroll bars frame across Epsilon 2019-02-18 16:49:58 +01:00
Ruben Dashyan
15de9f93ef [escher/scroll_view] Implement Decorator::indicatorAtIndex explicitly
Instead of using pointer arithmetic
2019-02-18 16:49:58 +01:00
Émilie Feral
3487547f16 [escher] ScrollView: fix Decorators contructor/destructors 2019-02-18 16:49:58 +01:00
Émilie Feral
f18a55defe [escher] ScrollView: make numberOfIndicators method const 2019-02-18 16:49:58 +01:00
Ruben Dashyan
1662b06f36 [escher/scroll_view] Put the decorators inside a union 2019-02-18 16:49:58 +01:00
Ruben Dashyan
76537cd432 [escher/scroll_view] layoutSubviews without screen tearing due to indicators 2019-02-18 16:49:58 +01:00