diff options
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_ */ |
