Romain Goyet
ef3f5b877c
[apps] Delete the long-dead PicView app
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
2af792cf88
[build] Rename the build folder to scripts
2019-03-06 15:00:59 +01:00
Romain Goyet
4f2c7a3763
[build] Update the i18n processing to fit the out-of-tree build
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
a540bfa753
[poincare] Add comment TreeHandle constructor
2019-02-21 11:29:35 +01:00
Émilie Feral
d26c98e9d5
[poincare] Fix comments
2019-02-21 11:29:35 +01:00
Émilie Feral
8ca4094e13
[poincare] Un-inline Symbol and Function UntypedBuilder
2019-02-21 11:29:35 +01:00
Émilie Feral
24c9617a89
[poincare] Templatize TreeHandle Builders
2019-02-21 11:29:35 +01:00
Émilie Feral
d29885028b
[poincare] Factorize Builders of SymbolAbstract classes
2019-02-21 11:29:35 +01:00
Émilie Feral
3adbca88d8
[poincare] TreeHandle: Improve BuildWithBasicChildren
...
When building ghost nodes to stand as temporary children, we do not need
to move them are they are built sequentially after the built node.
2019-02-21 11:29:35 +01:00
Émilie Feral
fad3ad958d
[poincare] SymbolAbstract: the node alignment is handled by the TreePool
...
and the TreeNode classes. SymbolAbstract and its children class don't
need to watch the alignment.
2019-02-21 11:29:35 +01:00
Émilie Feral
55704b4e65
[poincare] TreeHandle: the constructor from a identifier retains the
...
node if it has one
2019-02-21 11:29:35 +01:00
Émilie Feral
3fc32d7c74
[poincare] Clean warning
2019-02-21 11:29:35 +01:00
Émilie Feral
359fc3a599
[poincare] Create templated methods instead of defining UntypedBuilder
...
on every expression
2019-02-21 11:29:35 +01:00
Émilie Feral
7b5f3c570d
[poincare] Change the way Expression are built
2019-02-21 11:29:35 +01:00
Émilie Feral
902dda34d6
[poincare] Add comment
2019-02-21 11:29:35 +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
3d254b9ef1
[apps/shared/scrollable_exact_approximate_expressions_cell] Fix background
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
Ruben Dashyan
98e00404b8
[apps/calculation] Enable arrow scrolling indicators and add horizontal margin
2019-02-18 16:49:58 +01:00
Ruben Dashyan
da0d42ca3b
[apps/calculation/history_view_cell] Fix background colors
...
Set m_inputView's m_expressionView's background color
2019-02-18 16:49:58 +01:00
Ruben Dashyan
7a977f5689
[apps/calculation] Remove redundancy
...
In HistoryController::willDisplayCellForIndex, both setCalculation and
reloadCell end up calling ScrollableExpressionView::layoutSubviews.
Indeed, setCalculation calls setLayout over m_inputView, which in turn
calls layoutSubviews. It is logical to remove the first occurence.
2019-02-18 16:49:58 +01: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
Ruben Dashyan
0e0b49acce
[apps/calculation] Remove HistoryViewCell horizontal margins
2019-02-18 16:49:58 +01:00
Ruben Dashyan
fb32d9385e
[escher/scroll_view] Encapsulate m_contentView inside m_innerView
2019-02-18 16:49:58 +01:00
Ruben Dashyan
fd654d1c79
[escher/scroll_view] Remove setColorsBackground
...
Introduced in commit 37da7b95a to avoid screen tearing.
Not necessary anymore since commit 0e9092d2e .
2019-02-18 16:49:58 +01:00
Ruben Dashyan
538d5cce64
[ion/blackbox/compare] Fix comment
2019-02-18 16:49:58 +01:00
Ruben Dashyan
cda88b3c3b
[escher/scroll_view] Fix virtuality issues of layoutSubviews
...
Method contentSize() made virtual and overridden by ScrollableView
so that ScrollableView and TableView do not need to setSize themselves
and that setSize/setFrame is not called twice over m_contentView.
2019-02-18 16:49:58 +01:00
Ruben Dashyan
c439d6f376
[escher/scroll_view] Mark maxContent...DisplayableWithoutScrolling() as const
2019-02-18 16:49:58 +01:00
Ruben Dashyan
acecb92f75
[escher/*_view_controller] New ViewController::initView() method
...
Does some part of viewWillAppear().
2019-02-18 16:49:58 +01:00
Ruben Dashyan
9b0e2ac059
[escher/scroll_view] Simplify scrollToContentPoint
2019-02-18 16:49:58 +01:00
Ruben Dashyan
faae55eb51
[escher/scroll_view] Replace setShowsIndicators by setDecoratorType
2019-02-18 16:49:58 +01:00
Ruben Dashyan
09e08b43a0
[escher/scroll_view] Define enum class Decorator::Type
2019-02-18 16:49:58 +01:00
Ruben Dashyan
6f9493db5d
[escher/scroll_view] Use virtuality of Decorator methods
2019-02-18 16:49:58 +01:00
Ruben Dashyan
eb17334050
[escher/scroll_view] New Arrow/BarDecorator inherit from Decorator
2019-02-18 16:49:58 +01:00
Ruben Dashyan
1beb8ca98f
[escher/scroll_view] Add arrow indicators
2019-02-18 16:49:58 +01:00
Ruben Dashyan
1e958717fb
[escher/scroll_view] Rename m_indicatorThickness to m_barsFrameBreadth
2019-02-18 16:49:58 +01:00
Ruben Dashyan
81f80ef602
[escher/scroll_view] Simplify layoutIndicators
...
Mark indicators' frame as dirty when necessary, indirectly by setFrame
to empty.
2019-02-18 16:49:58 +01:00
Ruben Dashyan
5b78d65b6d
[escher/scroll_view] Simplify subviews management
2019-02-18 16:49:58 +01:00