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/Quantization/src/QuantizationController.h | |
| download | Studium-master.tar.gz Studium-master.tar.bz2 | |
Diffstat (limited to 'Master/Modellbildung_und_Simulation/Aufgabenblatt1/Quantization/src/QuantizationController.h')
| -rw-r--r-- | Master/Modellbildung_und_Simulation/Aufgabenblatt1/Quantization/src/QuantizationController.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Master/Modellbildung_und_Simulation/Aufgabenblatt1/Quantization/src/QuantizationController.h b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/Quantization/src/QuantizationController.h new file mode 100644 index 0000000..ea19c64 --- /dev/null +++ b/Master/Modellbildung_und_Simulation/Aufgabenblatt1/Quantization/src/QuantizationController.h @@ -0,0 +1,51 @@ +/* + * QuantizationController.h + * + * Created on: 02.04.2011 + * Author: sven + */ + +#ifndef QUANTIZATIONCONTROLLER_H_ +#define QUANTIZATIONCONTROLLER_H_ + +#ifndef QUANTIZATIONPARAMETERS_H_ + #include "QuantizationParameters.h" +#endif + +#ifndef _GTKMM_H + #include <gtkmm.h> +#endif + +#ifndef _GLIBCXX_STRING + #include <string> +#endif + +class QuantizationController { +public: + QuantizationController(); + virtual ~QuantizationController(); + void startApp(Gtk::Main& kit); +private: + static const char* UI_FILENAME; + static const double QUANTIZATIONBITS_DEFAULT; + static const double QUANTIZATIONBITS_MIN; + static const double QUANTIZATIONBITS_MAX; + Gtk::Window* mPtrMainWin; + Gtk::Entry* mPtrInputFile; + Gtk::Entry* mPtrOutputFile; + Gtk::SpinButton* mPtrQuantizationBits; + Gtk::Button* mPtrOpenInputBtn; + Gtk::Button* mPtrOpenOutputBtn; + Gtk::Button* mPtrStartBtn; + + Gtk::Adjustment mQuantizationBitsAdj; + QuantizationParameters mParams; + + void on_open_input_btn(); + void on_open_output_btn(); + void on_start_btn(); + void on_quantizationbits_changed(); + void choose_file(std::string&); +}; + +#endif /* QUANTIZATIONCONTROLLER_H_ */ |
