blob: ea19c642ee2f41cea801bddfdd023009c8c74803 (
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
|
/*
* 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_ */
|