[apps/graph] Shorter messages and margins

To fit if the interval is -9.9E30..-9.8E29, in the parameter controller
This commit is contained in:
Léa Saviot
2019-09-05 16:54:21 +02:00
parent 0070c2fa56
commit 3014e8c3ca
7 changed files with 18 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ ParametricType = "Parameter "
IntervalT = "t-te Intervall"
IntervalTheta = "θ-te Intervall"
IntervalX = "x-te Intervall"
FunctionDomain = "Definitionsmenge"
FunctionDomain = "Plot-Bereich"
FunctionColor = "Farbe der Funktion"
NoFunction = "Keine Funktion"
NoActivatedFunction = "Keine aktive Funktion"

View File

@@ -10,7 +10,7 @@ ParametricType = "Parametric "
IntervalT = "t interval"
IntervalTheta = "θ interval"
IntervalX = "x interval"
FunctionDomain = "Domain of definition"
FunctionDomain = "Plot range"
FunctionColor = "Function color"
NoFunction = "No function"
NoActivatedFunction = "No function is turned on"

View File

@@ -10,7 +10,7 @@ ParametricType = "Paramétrico "
IntervalT = "Intervalo t"
IntervalTheta = "Intervalo θ"
IntervalX = "Intervalo x"
FunctionDomain = "Dominio de definición"
FunctionDomain = "Rango del gráfico"
FunctionColor = "Color de la funcion"
NoFunction = "Ninguna función"
NoActivatedFunction = "Ninguna función activada"

View File

@@ -10,7 +10,7 @@ ParametricType = "Paramétrique "
IntervalT = "Intervalle t"
IntervalTheta = "Intervalle θ"
IntervalX = "Intervalle x"
FunctionDomain = "Ensemble de définition"
FunctionDomain = "Domaine de tracé"
FunctionColor = "Couleur de la fonction"
NoFunction = "Aucune fonction"
NoActivatedFunction = "Aucune fonction activée"

View File

@@ -10,7 +10,7 @@ ParametricType = "Paramétrico "
IntervalT = "Intervalo t"
IntervalTheta = "Intervalo θ"
IntervalX = "Intervalo x"
FunctionDomain = "Domínio de definição"
FunctionDomain = "Intervalo do gráfico"
FunctionColor = "Cor da função"
NoFunction = "Nenhuma função"
NoActivatedFunction = "Sem função ativada"

View File

@@ -3,6 +3,7 @@
#include "type_helper.h"
#include "../../shared/poincare_helpers.h"
#include "../app.h"
#include <escher/metric.h>
#include <assert.h>
using namespace Shared;
@@ -10,6 +11,17 @@ using namespace Poincare;
namespace Graph {
ListParameterController::ListParameterController(ListController * listController, Responder * parentResponder, I18n::Message functionColorMessage, I18n::Message deleteFunctionMessage, InputEventHandlerDelegate * inputEventHandlerDelegate) :
Shared::ListParameterController(parentResponder, functionColorMessage, deleteFunctionMessage),
m_listController(listController),
m_typeCell(),
m_typeParameterController(this),
m_domainParameterController(nullptr, inputEventHandlerDelegate),
m_renameCell(I18n::Message::Rename)
{
m_selectableTableView.setMargins(Metric::CommonTopMargin, Metric::CommonTopMargin, Metric::CommonBottomMargin, Metric::CommonTopMargin); // Reduce the margins to make te text fit
}
HighlightCell * ListParameterController::reusableCell(int index, int type) {
switch (type) {
case 0:

View File

@@ -11,14 +11,7 @@ class ListController;
class ListParameterController : public Shared::ListParameterController {
public:
ListParameterController(ListController * listController, Responder * parentResponder, I18n::Message functionColorMessage, I18n::Message deleteFunctionMessage, InputEventHandlerDelegate * inputEventHandlerDelegate) :
Shared::ListParameterController(parentResponder, functionColorMessage, deleteFunctionMessage),
m_listController(listController),
m_typeCell(),
m_typeParameterController(this),
m_domainParameterController(nullptr, inputEventHandlerDelegate),
m_renameCell(I18n::Message::Rename)
{}
ListParameterController(ListController * listController, Responder * parentResponder, I18n::Message functionColorMessage, I18n::Message deleteFunctionMessage, InputEventHandlerDelegate * inputEventHandlerDelegate);
bool handleEvent(Ion::Events::Event event) override;
// ListViewDataSource
HighlightCell * reusableCell(int index, int type) override;