Rev | Line | |
---|
[1442] | 1 | // -*- C++ -*- // |
---|
| 2 | |
---|
| 3 | #ifndef MAP_WIN_H |
---|
| 4 | #define MAP_WIN_H |
---|
| 5 | |
---|
[1512] | 6 | class MapWin; |
---|
| 7 | |
---|
[1837] | 8 | #include <all_include.h> |
---|
[1849] | 9 | #include <nbtab.h> |
---|
[1882] | 10 | #include <mapselector.h> |
---|
[1442] | 11 | #include <libgnomecanvasmm.h> |
---|
| 12 | #include <libgnomecanvasmm/polygon.h> |
---|
| 13 | |
---|
| 14 | ///This class is responsible for creating a window, |
---|
| 15 | ///on which the visualization attributes can be |
---|
| 16 | ///assigned to maps. |
---|
| 17 | class MapWin : public Gtk::Window |
---|
| 18 | { |
---|
| 19 | protected: |
---|
[1849] | 20 | NoteBookTab & mytab; |
---|
[1442] | 21 | |
---|
[1512] | 22 | Gtk::Table * table; |
---|
[1442] | 23 | |
---|
[1731] | 24 | MapSelector ** e_combo_array, ** n_combo_array; |
---|
[1442] | 25 | |
---|
[1446] | 26 | Gtk::Label * label; |
---|
[1442] | 27 | |
---|
[1512] | 28 | Gtk::VBox vbox; |
---|
| 29 | |
---|
[1442] | 30 | public: |
---|
| 31 | ///Constructor of MapWin creates the widgets shown in MapWin. |
---|
[1849] | 32 | MapWin(const std::string& title, std::vector<std::string>, std::vector<std::string>, NoteBookTab & mw); |
---|
[1442] | 33 | |
---|
[1838] | 34 | ~MapWin(); |
---|
| 35 | |
---|
| 36 | virtual bool on_delete_event(GdkEventAny *); |
---|
| 37 | |
---|
[1837] | 38 | void nodeMapChanged(std::string, int); |
---|
[1512] | 39 | |
---|
[1837] | 40 | void edgeMapChanged(std::string, int); |
---|
| 41 | |
---|
| 42 | void newMapWinNeeded(bool, int); |
---|
[1512] | 43 | |
---|
[1586] | 44 | ///This function inserts name of the new edgemap in the list in the combo box |
---|
| 45 | void registerNewEdgeMap(std::string); |
---|
| 46 | |
---|
| 47 | ///This function inserts name of the new nodemap in the list in the combo box |
---|
| 48 | void registerNewNodeMap(std::string); |
---|
| 49 | |
---|
[1524] | 50 | virtual bool closeIfEscapeIsPressed(GdkEventKey*); |
---|
[1586] | 51 | |
---|
[1837] | 52 | void update(std::vector<std::string>, std::vector<std::string>); |
---|
[1442] | 53 | }; |
---|
| 54 | |
---|
| 55 | #endif //MAP_WIN_H |
---|
Note: See
TracBrowser
for help on using the repository browser.