Blame view

build4/epsilon-master/apps/sequence/app.h 1.79 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
  #ifndef SEQUENCE_APP_H
  #define SEQUENCE_APP_H
  
  #include <escher.h>
  #include <poincare.h>
  #include "sequence_context.h"
  #include "sequence_store.h"
  #include "graph/graph_controller.h"
  #include "graph/curve_view_range.h"
  #include "list/list_controller.h"
  #include "values/values_controller.h"
  #include "../shared/function_app.h"
  
  namespace Sequence {
  
  class App : public Shared::FunctionApp {
  public:
    class Descriptor : public ::App::Descriptor {
    public:
      I18n::Message name() override;
      I18n::Message upperName() override;
      const Image * icon() override;
    };
    class Snapshot : public Shared::FunctionApp::Snapshot {
    public:
      Snapshot();
      App * unpack(Container * container) override;
      void reset() override;
      Descriptor * descriptor() override;
      SequenceStore * sequenceStore();
      CurveViewRange * graphRange();
    private:
      void tidy() override;
      SequenceStore m_sequenceStore;
      CurveViewRange m_graphRange;
    };
    InputViewController * inputViewController() override;
    SequenceContext * localContext() override;
    const char * XNT() override;
  private:
    App(Container * container, Snapshot * snapshot);
    SequenceContext m_sequenceContext;
    ListController m_listController;
    ButtonRowController m_listFooter;
    ButtonRowController m_listHeader;
    StackViewController m_listStackViewController;
    GraphController m_graphController;
    AlternateEmptyViewController m_graphAlternateEmptyViewController;
    ButtonRowController m_graphHeader;
    StackViewController m_graphStackViewController;
    ValuesController m_valuesController;
    AlternateEmptyViewController m_valuesAlternateEmptyViewController;
    ButtonRowController m_valuesHeader;
    StackViewController m_valuesStackViewController;
    TabViewController m_tabViewController;
    InputViewController m_inputViewController;
  };
  
  }
  
  #endif