summaryrefslogtreecommitdiffstats
path: root/Master/Modellbildung_und_Simulation/Aufgabenblatt1/DFTApp/src/DFTAppController.h
blob: 0b2f22e46f8b176332665048c4e5b8ca84059ff6 (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
/*
 * DFTAppController.h
 *
 *  Created on: 29.04.2011
 *      Author: sven
 */

#ifndef DFTAPPCONTROLLER_H_
#define DFTAPPCONTROLLER_H_

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

#ifndef DFTAPP_PARAMETERS_H_
	#include "DFTAppParameters.h"
#endif

class DFTAppController {
public:
	DFTAppController();
	virtual ~DFTAppController();
	void startApp(Gtk::Main&);
private:
	static const char* UI_FILENAME;
	DFTAppParameters mParams;
	Gtk::Window* mPtrMainWin;
	Gtk::Button* mPtrStartBtn;
	Gtk::Button* mPtrOpenBtn;
	Gtk::Entry*  mPtrInputFileEntry;
	Gtk::Entry*  mPtrNumSamplesEntry;
	Gtk::TextView* mPtrTextView;
	Glib::RefPtr<Gtk::TextBuffer> mRefPtrTextBuffer;

	void on_button_start();
	void on_button_open();
	void on_numsamples_changed();
};

#endif /* DFTAPPCONTROLLER_H_ */