Line | |
---|
1 | // -*- C++ -*- // |
---|
2 | |
---|
3 | #ifndef DESWIN_H |
---|
4 | #define DESWIN_H |
---|
5 | |
---|
6 | #include <all_include.h> |
---|
7 | #include <libgnomecanvasmm.h> |
---|
8 | #include <libgnomecanvasmm/polygon.h> |
---|
9 | |
---|
10 | class DesignWin : public Gtk::Window |
---|
11 | { |
---|
12 | private: |
---|
13 | Gtk::SpinButton * attraction; |
---|
14 | Gtk::SpinButton * propulsation; |
---|
15 | Gtk::SpinButton * iteration; |
---|
16 | Gtk::Table table; |
---|
17 | Gtk::Button * close_button; |
---|
18 | |
---|
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; |
---|
23 | |
---|
24 | void emit_attraction(); |
---|
25 | void emit_propulsation(); |
---|
26 | void emit_iteration(); |
---|
27 | void emit_closerun(){close_run_pr.emit();}; |
---|
28 | |
---|
29 | public: |
---|
30 | ///Close window if escape key is pressed. |
---|
31 | bool closeIfEscapeIsPressed(GdkEventKey* e); |
---|
32 | |
---|
33 | ///Constructor |
---|
34 | |
---|
35 | ///It builds the window. |
---|
36 | DesignWin(const std::string&, double, double, int); |
---|
37 | |
---|
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;}; |
---|
42 | }; |
---|
43 | #endif //DESWIN_H |
---|
Note: See
TracBrowser
for help on using the repository browser.