File: blengthplotpage.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 (38 lines) | stat: -rw-r--r-- 1,033 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
30
31
32
33
34
35
36
37
38
#ifndef GUI_QUALITY__BLENGTHPLOTPAGE_H
#define GUI_QUALITY__BLENGTHPLOTPAGE_H

#include "twodimensionalplotpage.h"

#include "../structures/msmetadata.h"

#include "controllers/blengthpagecontroller.h"

class BLengthPlotPage : public TwoDimensionalPlotPage
{
public:
	BLengthPlotPage(BLengthPageController* controller) :
		TwoDimensionalPlotPage(controller),
		_controller(controller),
		_includeAutoCorrelationsButton("Auto-correlations")
	{ }
	
protected:		
	virtual void addCustomPlotButtons(Gtk::Toolbar &container) override final
	{
		_includeAutoCorrelationsButton.signal_clicked().connect(sigc::mem_fun(*this, &BLengthPlotPage::onAutoCorrelationsClicked));
		container.append(_includeAutoCorrelationsButton);
		_includeAutoCorrelationsButton.show();
	}
	
private:
	void onAutoCorrelationsClicked()
	{
		_controller->SetIncludeAutoCorrelations(_includeAutoCorrelationsButton.get_active());
		_controller->UpdatePlot();
	}
	
	BLengthPageController* _controller;
	Gtk::ToggleToolButton _includeAutoCorrelationsButton;
};

#endif