1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/design_win.h Thu Oct 12 12:18:20 2006 +0000
1.3 @@ -0,0 +1,43 @@
1.4 +// -*- C++ -*- //
1.5 +
1.6 +#ifndef DESWIN_H
1.7 +#define DESWIN_H
1.8 +
1.9 +#include <all_include.h>
1.10 +#include <libgnomecanvasmm.h>
1.11 +#include <libgnomecanvasmm/polygon.h>
1.12 +
1.13 +class DesignWin : public Gtk::Window
1.14 +{
1.15 +private:
1.16 + Gtk::SpinButton * attraction;
1.17 + Gtk::SpinButton * propulsation;
1.18 + Gtk::SpinButton * iteration;
1.19 + Gtk::Table table;
1.20 + Gtk::Button * close_button;
1.21 +
1.22 + sigc::signal<void, double> signal_attraction_ch;
1.23 + sigc::signal<void, double> signal_propulsation_ch;
1.24 + sigc::signal<void, int> signal_iteration_ch;
1.25 + sigc::signal<void> close_run_pr;
1.26 +
1.27 + void emit_attraction();
1.28 + void emit_propulsation();
1.29 + void emit_iteration();
1.30 + void emit_closerun(){close_run_pr.emit();};
1.31 +
1.32 +public:
1.33 + ///Close window if escape key is pressed.
1.34 + bool closeIfEscapeIsPressed(GdkEventKey* e);
1.35 +
1.36 + ///Constructor
1.37 +
1.38 + ///It builds the window.
1.39 + DesignWin(const std::string&, double, double, int);
1.40 +
1.41 + sigc::signal<void, double> signal_attraction(){return signal_attraction_ch;};
1.42 + sigc::signal<void, double> signal_propulsation(){return signal_propulsation_ch;};
1.43 + sigc::signal<void, int> signal_iteration(){return signal_iteration_ch;};
1.44 + sigc::signal<void> close_run(){return close_run_pr;};
1.45 +};
1.46 +#endif //DESWIN_H