mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/sequence] Correct go to controller legend: "x"->"n"
Change-Id: I47615a5fb23274a54ff1eab7386a570738467e13
This commit is contained in:
committed by
Romain Goyet
parent
a615127946
commit
25ced2e158
@@ -6,7 +6,7 @@ using namespace Shared;
|
||||
namespace Graph {
|
||||
|
||||
CurveParameterController::CurveParameterController(InteractiveCurveViewRange * graphRange, BannerView * bannerView, CurveViewCursor * cursor) :
|
||||
FunctionCurveParameterController(graphRange, cursor),
|
||||
FunctionCurveParameterController(graphRange, cursor, "x"),
|
||||
m_bannerView(bannerView),
|
||||
m_calculationCell(PointerTableCellWithChevron((char*)"Calculer")),
|
||||
m_derivativeCell(PointerTableCellWithSwitch((char*)"Nombre derivee"))
|
||||
|
||||
@@ -7,7 +7,7 @@ using namespace Shared;
|
||||
namespace Sequence {
|
||||
|
||||
CurveParameterController::CurveParameterController(GraphController * graphController, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor) :
|
||||
FunctionCurveParameterController(graphRange, cursor),
|
||||
FunctionCurveParameterController(graphRange, cursor, "n"),
|
||||
m_sumCell(PointerTableCell((char*)"Somme des termes")),
|
||||
m_graphController(graphController)
|
||||
{
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
|
||||
namespace Shared {
|
||||
|
||||
FunctionCurveParameterController::FunctionCurveParameterController(InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor) :
|
||||
FunctionCurveParameterController::FunctionCurveParameterController(InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor, const char * symbol) :
|
||||
ViewController(nullptr),
|
||||
m_goToCell(PointerTableCellWithChevron((char*)"Aller a")),
|
||||
m_selectableTableView(SelectableTableView(this, this, Metric::CommonTopMargin, Metric::CommonRightMargin,
|
||||
Metric::CommonBottomMargin, Metric::CommonLeftMargin)),
|
||||
m_goToParameterController(GoToParameterController(this, graphRange, cursor)),
|
||||
m_goToParameterController(GoToParameterController(this, graphRange, cursor, symbol)),
|
||||
m_function(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Shared {
|
||||
|
||||
class FunctionCurveParameterController : public ViewController, public SimpleListViewDataSource {
|
||||
public:
|
||||
FunctionCurveParameterController(InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor);
|
||||
FunctionCurveParameterController(InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor, const char * symbol);
|
||||
View * view() override;
|
||||
void didBecomeFirstResponder() override;
|
||||
KDCoordinate cellHeight() override;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
namespace Shared {
|
||||
|
||||
GoToParameterController::GoToParameterController(Responder * parentResponder, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor) :
|
||||
GoToParameterController::GoToParameterController(Responder * parentResponder, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor, const char * symbol) :
|
||||
FloatParameterController(parentResponder),
|
||||
m_abscisseCell(PointerTableCellWithEditableText(&m_selectableTableView, this, m_draftTextBuffer, (char*)"x")),
|
||||
m_abscisseCell(PointerTableCellWithEditableText(&m_selectableTableView, this, m_draftTextBuffer, (char*)symbol)),
|
||||
m_graphRange(graphRange),
|
||||
m_cursor(cursor),
|
||||
m_function(nullptr)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace Shared {
|
||||
|
||||
class GoToParameterController : public FloatParameterController {
|
||||
public:
|
||||
GoToParameterController(Responder * parentResponder, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor);
|
||||
GoToParameterController(Responder * parentResponder, InteractiveCurveViewRange * graphRange, CurveViewCursor * cursor, const char * symbol);
|
||||
const char * title() const override;
|
||||
int numberOfRows() override;
|
||||
HighlightCell * reusableCell(int index) override;
|
||||
|
||||
Reference in New Issue
Block a user