/* * MainController.h * * Created on: 31.03.2011 * Author: sven */ #ifndef MAINCONTROLLER_H_ #define MAINCONTROLLER_H_ #ifndef SINEGENERATORPARAMETERS_H_ #include "SineGeneratorParameters.h" #endif #ifndef _GTKMM_H #include #endif class MainController { public: MainController(); virtual ~MainController(); void startApp(Gtk::Main&); private: static const unsigned short DEFAULT_FREQUENCY; static const unsigned short DEFAULT_AMPLITUDE; static const unsigned short DEFAULT_PHASE; static const unsigned short DEFAULT_LENGTH; static const char* DEFAULT_WAVEFILENAME; static const char* UI_FILENAME; Gtk::Window* mPtrMainWin; Gtk::SpinButton* mPtrFreqField; Gtk::SpinButton* mPtrAmpField; Gtk::SpinButton* mPtrPhaseField; Gtk::SpinButton* mPtrLengthField; Gtk::Entry* mPtrBitrateEntry; Gtk::Entry* mPtrSamplerateEntry; Gtk::Entry* mPtrFilenameEntry; Gtk::Button* mPtrStartBtn; SineGeneratorParameters mParams; Gtk::Adjustment mFreqAdj; Gtk::Adjustment mAmpAdj; Gtk::Adjustment mPhaseAdj; Gtk::Adjustment mLengthAdj; void on_startbutton_clicked(); void on_freq_changed(); void on_amp_changed(); void on_phase_changed(); void on_length_changed(); void on_filename_changed(); }; #endif /* MAINCONTROLLER_H_ */