Blame view

build2/epsilon-master/apps/statistics/multiple_boxes_view.h 974 Bytes
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
  #ifndef STATISTICS_MULTIPLE_BOXES_VIEW_H
  #define STATISTICS_MULTIPLE_BOXES_VIEW_H
  
  #include <escher.h>
  #include "store.h"
  #include "box_axis_view.h"
  #include "box_banner_view.h"
  #include "box_view.h"
  #include "multiple_data_view.h"
  
  namespace Statistics {
  
  class BoxController;
  
  class MultipleBoxesView : public MultipleDataView {
  public:
    MultipleBoxesView(Store * store, BoxView::Quantile * selectedQuantile);
    // MultipleDataView
    int seriesOfSubviewAtIndex(int index) override;
    const BoxBannerView * bannerView() const override { return &m_bannerView; }
    BoxView * dataViewAtIndex(int index) override;
    void layoutDataSubviews() override;
    void reload() override;
  
    // View
    int numberOfSubviews() const override;
    View * subviewAtIndex(int index) override;
  
  private:
    static constexpr KDCoordinate k_axisViewHeight = 21;
    BoxView m_boxView1;
    BoxView m_boxView2;
    BoxView m_boxView3;
    BoxAxisView m_axisView;
    BoxBannerView m_bannerView;
  };
  
  }
  
  #endif