Files
Upsilon/apps/apps_container.h
Émilie Feral 60cb611278 [apps/regression] Create the structure of the application regression
Change-Id: I2433a5e6dabdd9a15d87c8e2ddf3cea5ad329a0e
2017-01-09 15:08:54 +01:00

45 lines
1.1 KiB
C++

#ifndef APPS_CONTAINER_H
#define APPS_CONTAINER_H
#include "home/app.h"
#include "graph/app.h"
#include "probability/app.h"
#include "calculation/app.h"
#include "regression/app.h"
#include "statistics/app.h"
#include "toolbox_controller.h"
#include "variable_box_controller.h"
#define USE_PIC_VIEW_APP 0
#if USE_PIC_VIEW_APP
#include "picview/picview_app.h"
#endif
class AppsContainer : public Container {
public:
AppsContainer();
int numberOfApps();
App * appAtIndex(int index);
Context * globalContext();
ToolboxController * toolboxController();
VariableBoxController * variableBoxController();
bool handleEvent(Ion::Events::Event event) override;
private:
static constexpr int k_numberOfApps = 6;
Home::App m_homeApp;
Graph::App m_graphApp;
Probability::App m_probabilityApp;
Calculation::App m_calculationApp;
Regression::App m_regressionApp;
Statistics::App m_statisticsApp;
#if USE_PIC_VIEW_APP
PicViewApp m_picViewApp;
#endif
GlobalContext m_globalContext;
ToolboxController m_toolboxController;
VariableBoxController m_variableBoxController;
};
#endif