mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[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:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user