diff -r 14a76109b561 -r aef1fbfd9d60 design_win.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/design_win.h Thu Oct 12 12:18:20 2006 +0000 @@ -0,0 +1,43 @@ +// -*- C++ -*- // + +#ifndef DESWIN_H +#define DESWIN_H + +#include +#include +#include + +class DesignWin : public Gtk::Window +{ +private: + Gtk::SpinButton * attraction; + Gtk::SpinButton * propulsation; + Gtk::SpinButton * iteration; + Gtk::Table table; + Gtk::Button * close_button; + + sigc::signal signal_attraction_ch; + sigc::signal signal_propulsation_ch; + sigc::signal signal_iteration_ch; + sigc::signal close_run_pr; + + void emit_attraction(); + void emit_propulsation(); + void emit_iteration(); + void emit_closerun(){close_run_pr.emit();}; + +public: + ///Close window if escape key is pressed. + bool closeIfEscapeIsPressed(GdkEventKey* e); + + ///Constructor + + ///It builds the window. + DesignWin(const std::string&, double, double, int); + + sigc::signal signal_attraction(){return signal_attraction_ch;}; + sigc::signal signal_propulsation(){return signal_propulsation_ch;}; + sigc::signal signal_iteration(){return signal_iteration_ch;}; + sigc::signal close_run(){return close_run_pr;}; +}; +#endif //DESWIN_H