Added two new classes.
8 #include <all_include.h>
10 #include <libgnomecanvasmm.h>
11 #include <libgnomecanvasmm/polygon.h>
13 class DesignWin : public Gtk::Window
16 ///\ref NoteBookTab to that the \ref MapWin belongs to.
19 Gtk::SpinButton * attraction;
20 Gtk::SpinButton * propulsation;
21 Gtk::SpinButton * iteration;
23 Gtk::Button * close_button;
25 sigc::signal<void, double> signal_attraction_ch;
26 sigc::signal<void, double> signal_propulsation_ch;
27 sigc::signal<void, int> signal_iteration_ch;
28 sigc::signal<void> close_run_pr;
30 void emit_attraction();
31 void emit_propulsation();
32 void emit_iteration();
33 void emit_closerun(){close_run_pr.emit();};
36 ///Close window if escape key is pressed.
37 bool closeIfEscapeIsPressed(GdkEventKey* e);
41 ///It builds the window.
42 DesignWin(const std::string&, double, double, int, NoteBookTab & mw);
44 sigc::signal<void, double> signal_attraction(){return signal_attraction_ch;};
45 sigc::signal<void, double> signal_propulsation(){return signal_propulsation_ch;};
46 sigc::signal<void, int> signal_iteration(){return signal_iteration_ch;};
47 sigc::signal<void> close_run(){return close_run_pr;};
49 void set_title(std::string);