Files
Upsilon/apps/apps_container.h
Émilie Feral a4df89d2f5 [escher] [apps] Add a title bar in all apps
Change-Id: If545e9b6cd96aa1189d83120f047ac7746a5a9d6
2017-01-27 11:20:20 +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 = 6;
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