Numworks Epsilon  1.4.1
Graphing Calculator Operating System
output_expressions_view.h
Go to the documentation of this file.
1 #ifndef CALCULATION_OUTPUT_EXPRESSIONS_VIEW_H
2 #define CALCULATION_OUTPUT_EXPRESSIONS_VIEW_H
3 
4 #include <escher.h>
5 
6 namespace Calculation {
7 
8 class OutputExpressionsView : public EvenOddCell, public Responder {
9 public:
10  enum class SubviewType {
13  };
15  void setExpressions(Poincare::ExpressionLayout ** expressionsLayout);
16  void setEqualMessage(I18n::Message equalSignMessage);
17  KDColor backgroundColor() const override;
18  void setHighlighted(bool highlight) override;
19  Responder * responder() override {
20  return this;
21  }
22  void reloadCell() override;
23  KDSize minimalSizeForOptimalDisplay() const override;
24  void didBecomeFirstResponder() override;
25  bool handleEvent(Ion::Events::Event event) override;
27  void setSelectedSubviewType(SubviewType subviewType);
28 private:
29  int numberOfSubviews() const override;
30  View * subviewAtIndex(int index) override;
31  void layoutSubviews() override;
32  constexpr static KDCoordinate k_digitHorizontalMargin = 10;
33  ExpressionView m_approximateExpressionView;
34  MessageTextView m_approximateSign;
35  ExpressionView m_exactExpressionView;
36  SubviewType m_selectedSubviewType;
37 };
38 
39 }
40 
41 #endif
void setHighlighted(bool highlight) override
KDSize minimalSizeForOptimalDisplay() const override
int16_t KDCoordinate
Definition: coordinate.h:6
void setSelectedSubviewType(SubviewType subviewType)
Responder * parentResponder() const
Definition: responder.cpp:12
Definition: size.h:6
void setEqualMessage(I18n::Message equalSignMessage)
bool handleEvent(Ion::Events::Event event) override
Definition: color.h:6
Definition: view.h:23
OutputExpressionsView(Responder *parentResponder)
void setExpressions(Poincare::ExpressionLayout **expressionsLayout)