Blame view

Giac_maj/epsilon-giac/apps/calculation/scrollable_expression_view.cpp 710 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  #include "scrollable_expression_view.h"
  #include <assert.h>
  using namespace Poincare;
  
  namespace Calculation {
  
  ScrollableExpressionView::ScrollableExpressionView(Responder * parentResponder) :
    ScrollableView(parentResponder, &m_expressionView, this),
    m_expressionView()
  {
  }
  
  void ScrollableExpressionView::setExpression(ExpressionLayout * expressionLayout) {
    m_expressionView.setExpression(expressionLayout);
    layoutSubviews();
  }
  
  void ScrollableExpressionView::setBackgroundColor(KDColor backgroundColor) {
    m_expressionView.setBackgroundColor(backgroundColor);
  }
  
  KDSize ScrollableExpressionView::minimalSizeForOptimalDisplay() const {
    return m_expressionView.minimalSizeForOptimalDisplay();
  }
  
  }