File: frequencyplotpage.h

package info (click to toggle)
aoflagger 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,476 kB
  • sloc: cpp: 51,868; python: 152; sh: 25; makefile: 17
file content (36 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (2)
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
#ifndef GUI_QUALITY__FREQUENCYPLOTPAGE_H
#define GUI_QUALITY__FREQUENCYPLOTPAGE_H

#include "twodimensionalplotpage.h"

#include "controllers/frequencypagecontroller.h"

#include "../quality/statisticscollection.h"
#include "../quality/statisticsderivator.h"

class FrequencyPlotPage : public TwoDimensionalPlotPage {
	public:
    FrequencyPlotPage(FrequencyPageController* controller) :
			TwoDimensionalPlotPage(controller),
			_controller(controller),
			_ftButton("FT")
		{ }
		
		virtual void addCustomPlotButtons(Gtk::Toolbar &container) override final
		{
			_ftButton.signal_clicked().connect(sigc::mem_fun(*this, &FrequencyPlotPage::onFTButtonClicked));
			container.append(_ftButton);
			_ftButton.show();
		}
	private:
		void onFTButtonClicked()
		{
			_controller->SetPerformFT(_ftButton.get_active());
			_controller->UpdatePlot();
		}
		
		FrequencyPageController* _controller;
		Gtk::ToggleToolButton _ftButton;
};

#endif