Last change
on this file since 1785:606178a14011 was
1737:dc821d2668c1,
checked in by Hegyi Péter, 19 years ago
|
Newly created map is realized by the property givening by common sense.
|
File size:
1.3 KB
|
Rev | Line | |
---|
[1731] | 1 | // -*- C++ -*- // |
---|
| 2 | |
---|
| 3 | #ifndef MAP_SELECTOR_H |
---|
| 4 | #define MAP_SELECTOR_H |
---|
| 5 | |
---|
| 6 | class MapSelector; |
---|
| 7 | |
---|
| 8 | #include "all_include.h" |
---|
| 9 | #include "mapstorage.h" |
---|
[1733] | 10 | #include "new_map_win.h" |
---|
[1731] | 11 | #include "graph_displayer_canvas.h" |
---|
| 12 | #include <libgnomecanvasmm.h> |
---|
| 13 | #include <libgnomecanvasmm/polygon.h> |
---|
| 14 | |
---|
| 15 | class MapSelector : public Gtk::HBox |
---|
| 16 | { |
---|
| 17 | protected: |
---|
| 18 | GraphDisplayerCanvas & gdc; |
---|
| 19 | ///The \ref MapStorage in which the visualizable maps are stored |
---|
| 20 | MapStorage & ms; |
---|
[1733] | 21 | NewMapWin & nmw; |
---|
[1731] | 22 | |
---|
| 23 | int id; |
---|
| 24 | |
---|
| 25 | bool itisedge; |
---|
| 26 | |
---|
| 27 | bool default_state; |
---|
| 28 | |
---|
[1737] | 29 | bool set_new_map; |
---|
| 30 | |
---|
[1731] | 31 | Gtk::ComboBoxText cbt; |
---|
| 32 | |
---|
| 33 | Gtk::Button * newbut, * defbut; |
---|
| 34 | |
---|
| 35 | Gtk::HBox hbox; |
---|
| 36 | |
---|
| 37 | Gtk::Label * label; |
---|
| 38 | |
---|
| 39 | Node node_to_update; |
---|
| 40 | Edge edge_to_update; |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | public: |
---|
| 44 | |
---|
[1733] | 45 | MapSelector(GraphDisplayerCanvas &, MapStorage &, NewMapWin &, int, bool); |
---|
[1731] | 46 | |
---|
| 47 | void update_list(); |
---|
| 48 | |
---|
| 49 | ///If a radiobutton is clicked, this function determines |
---|
| 50 | ///which button was that and after that calls the |
---|
| 51 | ///appropriate function of the \ref GraphDisplayerCanvas |
---|
| 52 | ///to change the visible values of that attribute. |
---|
| 53 | virtual void comboChanged(); |
---|
| 54 | |
---|
[1737] | 55 | virtual void new_but_pressed(); |
---|
| 56 | |
---|
[1731] | 57 | virtual void reset(); |
---|
| 58 | |
---|
| 59 | virtual void update(Node node); |
---|
| 60 | virtual void update(Edge edge); |
---|
| 61 | |
---|
| 62 | Glib::ustring get_active_text(); |
---|
| 63 | void set_active_text(Glib::ustring); |
---|
| 64 | void append_text(Glib::ustring); |
---|
| 65 | }; |
---|
| 66 | |
---|
| 67 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.