Files
Upsilon/apps/apps_container.h
Émilie Feral 5c2d6e0591 [apps/home] Reorder apps and display
Change-Id: I8890943260cb075feed6a814b7fb1ec61bc8805b
2017-01-27 11:51:10 +01:00

49 lines
1.2 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 "apps_window.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;
void switchTo(App * app) override;
private:
Window * window() override;
static constexpr int k_numberOfApps = 9;
AppsWindow m_window;
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