mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
Instead use existing protected virtual bannerView() getter. The reason why both existed is that one was const but not the other. A const variant is needed only exceptionally: in bannerFrame() which is called by drawRect(). Moreover, bannerView() is virtual and is overridden in its derived classes using co-variant return types. That fact is important in the following commit.
34 lines
953 B
C++
34 lines
953 B
C++
#ifndef STATISTICS_MULTIPLE_HISTOGRAMS_VIEW_H
|
|
#define STATISTICS_MULTIPLE_HISTOGRAMS_VIEW_H
|
|
|
|
#include <escher.h>
|
|
#include "store.h"
|
|
#include "histogram_view.h"
|
|
#include "histogram_banner_view.h"
|
|
#include "histogram_parameter_controller.h"
|
|
#include "multiple_data_view.h"
|
|
#include "../shared/ok_view.h"
|
|
|
|
namespace Statistics {
|
|
|
|
class MultipleHistogramsView : public MultipleDataView {
|
|
public:
|
|
MultipleHistogramsView(HistogramController * controller, Store * store);
|
|
// MultipleDataView
|
|
int seriesOfSubviewAtIndex(int index) override;
|
|
HistogramBannerView * bannerView() override { return &m_bannerView; }
|
|
HistogramView * dataViewAtIndex(int index) override;
|
|
private:
|
|
void layoutSubviews() override;
|
|
void changeDataViewSelection(int index, bool select) override;
|
|
HistogramView m_histogramView1;
|
|
HistogramView m_histogramView2;
|
|
HistogramView m_histogramView3;
|
|
HistogramBannerView m_bannerView;
|
|
Shared::OkView m_okView;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|