diff options
| author | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
|---|---|---|
| committer | Sven Eisenhauer <sven@sven-eisenhauer.net> | 2023-11-10 15:11:48 +0100 |
| commit | 33613a85afc4b1481367fbe92a17ee59c240250b (patch) | |
| tree | 670b842326116b376b505ec2263878912fca97e2 /Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/WaveAnalyzerController.h | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/WaveAnalyzerController.h')
| -rw-r--r-- | Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/WaveAnalyzerController.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/WaveAnalyzerController.h b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/WaveAnalyzerController.h new file mode 100644 index 0000000..e6c55a1 --- /dev/null +++ b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/WaveAnalyzer/src/WaveAnalyzerController.h @@ -0,0 +1,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_ */ |
