summaryrefslogtreecommitdiffstats
path: root/Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/WaveAnalyzerController.h
blob: e6c55a16cf90bdae2ac39a02e1412065cfa3faec (plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * WaveAnalyzerController.h
 *
 *  Created on: 02.04.2011
 *      Author: sven
 */

#ifndef WAVEANALYZERCONTROLLER_H_
#define WAVEANALYZERCONTROLLER_H_

#ifndef _GTKMM_H
	#include <gtkmm.h>
#endif

#ifndef _GLIBCXX_STRING
	#include <string>
#endif

class WaveAnalyzerController {
public:
	WaveAnalyzerController();
	virtual ~WaveAnalyzerController();
	void startApp(Gtk::Main& kit);
private:
	static const char* UI_FILENAME;
	std::string mFullQuantFilename;
	std::string mLowQuantFilename;

	Gtk::Window* mPtrMainWin;
	Gtk::Button* mPtrOpenFullQuantBtn;
	Gtk::Button* mPtrOpenLowQuantBtn;
	Gtk::Button* mPtrCalcSNRBtn;
	Gtk::Button* mPtrCalcArithAvgBtn;
	Gtk::Button* mPtrCalcVarianceBtn;
	Gtk::Button* mPtrCalcStdDevBtn;

	Gtk::Entry* mPtrFullQuantFile;
	Gtk::Entry* mPtrLowQuantFile;
	Gtk::Entry* mPtrSNRValue;
	Gtk::Entry* mPtrArithAvgValue;
	Gtk::Entry* mPtrVarianceValue;
	Gtk::Entry* mPtrStdDevValue;

	void on_open_fullquant_btn();
	void on_open_lowquant_btn();
	void on_calcsnr_btn();
	void on_calcarithavg_btn();
	void on_calcvariance_btn();
	void on_calcstddev_btn();
	void choose_file(std::string&);
};

#endif /* WAVEANALYZERCONTROLLER_H_ */