5 |
5 |
6 class MapWin; |
6 class MapWin; |
7 |
7 |
8 #include <all_include.h> |
8 #include <all_include.h> |
9 #include <nbtab.h> |
9 #include <nbtab.h> |
|
10 #include <mapselector.h> |
10 #include <libgnomecanvasmm.h> |
11 #include <libgnomecanvasmm.h> |
11 #include <libgnomecanvasmm/polygon.h> |
12 #include <libgnomecanvasmm/polygon.h> |
12 |
13 |
13 ///This class is responsible for creating a window, |
14 ///This class is responsible for creating a window, |
14 ///on which the visualization attributes can be |
15 ///on which the visualization attributes can be |
15 ///assigned to maps. |
16 ///assigned to maps. |
16 class MapWin : public Gtk::Window |
17 class MapWin : public Gtk::Window |
17 { |
18 { |
18 |
|
19 class MapSelector : public Gtk::HBox |
|
20 { |
|
21 protected: |
|
22 sigc::signal<void, std::string> signal_cbt; |
|
23 sigc::signal<void, bool> signal_newmapwin; |
|
24 |
|
25 int id; |
|
26 |
|
27 bool itisedge; |
|
28 |
|
29 bool default_state; |
|
30 |
|
31 bool set_new_map; |
|
32 |
|
33 Gtk::ComboBoxText cbt; |
|
34 |
|
35 Gtk::Button * newbut, * defbut; |
|
36 |
|
37 Gtk::HBox hbox; |
|
38 |
|
39 Gtk::Label * label; |
|
40 |
|
41 public: |
|
42 |
|
43 MapSelector(std::vector<std::string>, std::string, int, bool); |
|
44 |
|
45 sigc::signal<void, std::string> signal_cbt_ch(); |
|
46 sigc::signal<void, bool> signal_newmapwin_needed(); |
|
47 |
|
48 void update_list( std::vector<std::string> ); |
|
49 |
|
50 ///If a radiobutton is clicked, this function determines |
|
51 ///which button was that and after that calls the |
|
52 ///appropriate function of the \ref GraphDisplayerCanvas |
|
53 ///to change the visible values of that attribute. |
|
54 virtual void comboChanged(); |
|
55 |
|
56 virtual void new_but_pressed(); |
|
57 |
|
58 virtual void reset(); |
|
59 |
|
60 Glib::ustring get_active_text(); |
|
61 void set_active_text(Glib::ustring); |
|
62 void append_text(Glib::ustring); |
|
63 }; |
|
64 |
|
65 |
|
66 |
|
67 protected: |
19 protected: |
68 NoteBookTab & mytab; |
20 NoteBookTab & mytab; |
69 |
21 |
70 Gtk::Table * table; |
22 Gtk::Table * table; |
71 |
23 |