mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[escher] Modify header view controller to handle the logic without data
Change-Id: I87b544e39f24961683085af3f6060be357ee4f24
This commit is contained in:
@@ -8,21 +8,28 @@ ValuesController::ValuesController(Responder * parentResponder, Graph::FunctionS
|
||||
m_activeCellY(-1),
|
||||
m_functionStore(functionStore),
|
||||
m_interval(Graph::Interval(-1.0f, 1.0f, 0.25f)),
|
||||
m_parameterController(ValuesParameterController(this))
|
||||
{
|
||||
setButtonTitles("Regler l'intervalle", nullptr, nullptr);
|
||||
setButtonActions(Invocation([](void * context, void * sender) {
|
||||
m_parameterController(ValuesParameterController(this)),
|
||||
m_setIntervalButton(Button(this, "Regler l'intervalle",Invocation([](void * context, void * sender) {
|
||||
ValuesController * valuesController = (ValuesController *) context;
|
||||
StackViewController * stack = ((StackViewController *)valuesController->parentResponder());
|
||||
stack->push(valuesController->parameterController());
|
||||
}, this), Invocation(nullptr, nullptr), Invocation(nullptr, nullptr));
|
||||
}, this)))
|
||||
{
|
||||
}
|
||||
|
||||
const char * ValuesController::title() const {
|
||||
return "Valeurs";
|
||||
}
|
||||
|
||||
Responder * ValuesController::tabController() const{
|
||||
int ValuesController::numberOfButtons() const {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Button * ValuesController::buttonAtIndex(int index) {
|
||||
return &m_setIntervalButton;
|
||||
}
|
||||
|
||||
Responder * ValuesController::tabController() const {
|
||||
return (parentResponder()->parentResponder());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user