[apps/graph/graph] Make the cursor position belong to th emodel

"GraphWindow"

Change-Id: I8cdcda85f0e29e4b678829f39b8bd212cd8d1086
This commit is contained in:
Émilie Feral
2016-12-28 13:27:03 +01:00
parent 6753974724
commit b8eba2c42a
16 changed files with 252 additions and 271 deletions

View File

@@ -4,12 +4,11 @@
namespace Graph {
InitialisationParameterController::InitialisationParameterController(Responder * parentResponder, GraphWindow * graphWindow, GraphView * graphView) :
InitialisationParameterController::InitialisationParameterController(Responder * parentResponder, GraphWindow * graphWindow) :
ViewController(parentResponder),
m_selectableTableView(SelectableTableView(this, this, Metric::TopMargin, Metric::RightMargin,
Metric::BottomMargin, Metric::LeftMargin)),
m_graphWindow(graphWindow),
m_graphView(graphView)
m_graphWindow(graphWindow)
{
m_cells[0].setText("Trigonometrique");
m_cells[1].setText("Abscisses entieres");
@@ -54,7 +53,7 @@ bool InitialisationParameterController::handleEvent(Ion::Events::Event event) {
default:
return false;
}
m_graphView->initCursorPosition();
m_graphWindow->initCursorPosition();
StackViewController * stack = (StackViewController *)parentResponder();
stack->pop();
return true;