Blame view

build6/epsilon-master/apps/regression/app.h 1.99 KB
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
  #ifndef REGRESSION_APP_H
  #define REGRESSION_APP_H
  
  #include <escher.h>
  #include "../shared/text_field_delegate_app.h"
  #include "calculation_controller.h"
  #include "graph_controller.h"
  #include "regression_controller.h"
  #include "store.h"
  #include "store_controller.h"
  
  namespace Regression {
  
  class App : public Shared::TextFieldDelegateApp {
  public:
    class Descriptor : public ::App::Descriptor {
    public:
      I18n::Message name() override;
      I18n::Message upperName() override;
      const Image * icon() override;
    };
    class Snapshot : public ::App::Snapshot, public TabViewDataSource {
    public:
      Snapshot();
      App * unpack(Container * container) override;
      void reset() override;
      Descriptor * descriptor() override;
      Store * store() { return &m_store; }
      Shared::CurveViewCursor * cursor() { return &m_cursor; }
      int * graphSelectedDotIndex() { return &m_graphSelectedDotIndex; }
      int * selectedSeriesIndex() { return &m_selectedSeriesIndex; }
      uint32_t * modelVersion() { return &m_modelVersion; }
      uint32_t * rangeVersion() { return &m_rangeVersion; }
    private:
      void tidy() override;
      Store m_store;
      Shared::CurveViewCursor m_cursor;
      int m_graphSelectedDotIndex;
      uint32_t m_modelVersion;
      uint32_t m_rangeVersion;
      int m_selectedSeriesIndex;
    };
    RegressionController * regressionController() { return &m_regressionController; }
  private:
    App(Container * container, Snapshot * snapshot);
    CalculationController m_calculationController;
    AlternateEmptyViewController m_calculationAlternateEmptyViewController;
    ButtonRowController m_calculationHeader;
    GraphController m_graphController;
    AlternateEmptyViewController m_graphAlternateEmptyViewController;
    ButtonRowController m_graphHeader;
    StackViewController m_graphStackViewController;
    StoreController m_storeController;
    ButtonRowController m_storeHeader;
    StackViewController m_storeStackViewController;
    TabViewController m_tabViewController;
    RegressionController m_regressionController;
  };
  
  }
  
  #endif