mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
[apps/graph/list] Simplify funciton expression cell to be used by
sequence Change-Id: I12f5e15c10544294292866b395066bc675b26067
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
#include "function_expression_cell.h"
|
||||
#include <assert.h>
|
||||
|
||||
using namespace Poincare;
|
||||
|
||||
namespace Graph {
|
||||
|
||||
FunctionExpressionCell::FunctionExpressionCell() :
|
||||
EvenOddCell(),
|
||||
m_function(nullptr),
|
||||
m_expressionView(ExpressionView())
|
||||
{
|
||||
}
|
||||
|
||||
void FunctionExpressionCell::setFunction(CartesianFunction * f) {
|
||||
m_function = f;
|
||||
m_expressionView.setExpression(m_function->layout());
|
||||
bool active = m_function->isActive();
|
||||
KDColor textColor = active ? KDColorBlack : Palette::GreyDark;
|
||||
void FunctionExpressionCell::setExpression(ExpressionLayout * expressionLayout) {
|
||||
m_expressionView.setExpression(expressionLayout);
|
||||
}
|
||||
|
||||
void FunctionExpressionCell::setTextColor(KDColor textColor) {
|
||||
m_expressionView.setTextColor(textColor);
|
||||
}
|
||||
|
||||
@@ -28,10 +29,6 @@ void FunctionExpressionCell::setHighlighted(bool highlight) {
|
||||
m_expressionView.setBackgroundColor(backgroundColor());
|
||||
}
|
||||
|
||||
CartesianFunction * FunctionExpressionCell::function() {
|
||||
return m_function;
|
||||
}
|
||||
|
||||
int FunctionExpressionCell::numberOfSubviews() const {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user