Suurballe algorithm is implemented in glemon.
6 #include <all_include.h>
7 #include <libgnomecanvasmm.h>
8 #include <libgnomecanvasmm/polygon.h>
10 class DesignWin : public Gtk::Window
13 Gtk::SpinButton * attraction;
14 Gtk::SpinButton * propulsation;
15 Gtk::SpinButton * iteration;
17 Gtk::Button * close_button;
19 sigc::signal<void, double> signal_attraction_ch;
20 sigc::signal<void, double> signal_propulsation_ch;
21 sigc::signal<void, int> signal_iteration_ch;
22 sigc::signal<void> close_run_pr;
24 void emit_attraction();
25 void emit_propulsation();
26 void emit_iteration();
27 void emit_closerun(){close_run_pr.emit();};
30 ///Close window if escape key is pressed.
31 bool closeIfEscapeIsPressed(GdkEventKey* e);
35 ///It builds the window.
36 DesignWin(const std::string&, double, double, int);
38 sigc::signal<void, double> signal_attraction(){return signal_attraction_ch;};
39 sigc::signal<void, double> signal_propulsation(){return signal_propulsation_ch;};
40 sigc::signal<void, int> signal_iteration(){return signal_iteration_ch;};
41 sigc::signal<void> close_run(){return close_run_pr;};