File: histogramwindow.h

package info (click to toggle)
aoflagger 3.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,000 kB
  • sloc: cpp: 67,891; python: 497; sh: 242; makefile: 22
file content (29 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
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
#ifndef GUI___HISTOGRAMWINDOW_H
#define GUI___HISTOGRAMWINDOW_H

#include "../aoqplot/histogrampage.h"

#include "../aoqplot/controllers/histogrampagecontroller.h"

#include <gtkmm/window.h>

#include "../quality/histogramcollection.h"

class HistogramWindow : public Gtk::Window {
 public:
  explicit HistogramWindow(const HistogramCollection& histograms)
      : _histogramPage(&_controller) {
    _controller.SetHistograms(&histograms);
    set_child(_histogramPage);
    _histogramPage.show();
  }
  void SetStatistics(const HistogramCollection& histograms) {
    _controller.SetHistograms(&histograms);
  }

 private:
  HistogramPageController _controller;
  HistogramPage _histogramPage;
};

#endif