Files
Upsilon/apps/apps_container.h
Émilie Feral 6dff4b9a07 [apps] add the stat apps in the container
Change-Id: I89338a609a80cc376a5bdfbe47dadbd3c0ae9f59
2016-12-19 17:00:49 +01:00

43 lines
1.0 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 "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 = 5;
Home::App m_homeApp;
Graph::App m_graphApp;
Probability::App m_probabilityApp;
Calculation::App m_calculationApp;
Statistics::App m_statisticsApp;
#if USE_PIC_VIEW_APP
PicViewApp m_picViewApp;
#endif
GlobalContext m_globalContext;
ToolboxController m_toolboxController;
VariableBoxController m_variableBoxController;
};
#endif