mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
45 lines
909 B
C++
45 lines
909 B
C++
#include "calculation_controller.h"
|
|
|
|
namespace Regression {
|
|
|
|
CalculationController::CalculationController(Responder * parentResponder) :
|
|
ViewController(parentResponder),
|
|
m_view(SolidColorView(KDColorGreen))
|
|
{
|
|
}
|
|
|
|
const char * CalculationController::title() const {
|
|
return "Stats";
|
|
}
|
|
|
|
View * CalculationController::view() {
|
|
return &m_view;
|
|
}
|
|
|
|
bool CalculationController::handleEvent(Ion::Events::Event event) {
|
|
if (event == Ion::Events::Up) {
|
|
app()->setFirstResponder(tabController());
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
bool CalculationController::isEmpty() {
|
|
return false;
|
|
}
|
|
|
|
const char * CalculationController::emptyMessage() {
|
|
return "Aucune donnée à tracer";
|
|
}
|
|
|
|
Responder * CalculationController::defaultController() {
|
|
return tabController();
|
|
}
|
|
|
|
Responder * CalculationController::tabController() const {
|
|
return (parentResponder()->parentResponder()->parentResponder());
|
|
}
|
|
|
|
}
|
|
|