equal
deleted
inserted
replaced
1 // -*- C++ -*- // |
1 // -*- C++ -*- // |
2 |
2 |
3 #ifndef DESWIN_H |
3 #ifndef DESWIN_H |
4 #define DESWIN_H |
4 #define DESWIN_H |
5 |
5 |
|
6 class DesignWin; |
|
7 |
6 #include <all_include.h> |
8 #include <all_include.h> |
|
9 #include <nbtab.h> |
7 #include <libgnomecanvasmm.h> |
10 #include <libgnomecanvasmm.h> |
8 #include <libgnomecanvasmm/polygon.h> |
11 #include <libgnomecanvasmm/polygon.h> |
9 |
12 |
10 class DesignWin : public Gtk::Window |
13 class DesignWin : public Gtk::Window |
11 { |
14 { |
12 private: |
15 private: |
|
16 ///\ref NoteBookTab to that the \ref MapWin belongs to. |
|
17 NoteBookTab & mytab; |
|
18 |
13 Gtk::SpinButton * attraction; |
19 Gtk::SpinButton * attraction; |
14 Gtk::SpinButton * propulsation; |
20 Gtk::SpinButton * propulsation; |
15 Gtk::SpinButton * iteration; |
21 Gtk::SpinButton * iteration; |
16 Gtk::Table table; |
22 Gtk::Table table; |
17 Gtk::Button * close_button; |
23 Gtk::Button * close_button; |
31 bool closeIfEscapeIsPressed(GdkEventKey* e); |
37 bool closeIfEscapeIsPressed(GdkEventKey* e); |
32 |
38 |
33 ///Constructor |
39 ///Constructor |
34 |
40 |
35 ///It builds the window. |
41 ///It builds the window. |
36 DesignWin(const std::string&, double, double, int); |
42 DesignWin(const std::string&, double, double, int, NoteBookTab & mw); |
37 |
43 |
38 sigc::signal<void, double> signal_attraction(){return signal_attraction_ch;}; |
44 sigc::signal<void, double> signal_attraction(){return signal_attraction_ch;}; |
39 sigc::signal<void, double> signal_propulsation(){return signal_propulsation_ch;}; |
45 sigc::signal<void, double> signal_propulsation(){return signal_propulsation_ch;}; |
40 sigc::signal<void, int> signal_iteration(){return signal_iteration_ch;}; |
46 sigc::signal<void, int> signal_iteration(){return signal_iteration_ch;}; |
41 sigc::signal<void> close_run(){return close_run_pr;}; |
47 sigc::signal<void> close_run(){return close_run_pr;}; |
|
48 |
|
49 void set_title(std::string); |
42 }; |
50 }; |
43 #endif //DESWIN_H |
51 #endif //DESWIN_H |