No maps with the same name can be added.
6 #include <all_include.h>
7 #include <mapstorage.h>
9 #include <new_map_win.h>
11 #include <libgnomecanvasmm.h>
12 #include <libgnomecanvasmm/polygon.h>
14 ///This class is the main window of GUI.
15 ///It has menus, but the main part of it is the canvas.
16 class MainWin : public Gtk::Window
19 ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
20 ///\param title is the title of the window
21 ///\param graph is the graph that will be drawn here. It will be given further to the \ref GraphDisplayerCanvas
22 ///\param cm stores the coordinates of the nodes of the graph
23 ///\param ms is the \ref MapStorage in which the different visualizable maps are stored
24 MainWin(const std::string& title, Graph &, CoordinatesMap &, MapStorage &);
27 ///Window of map-showing setup. Its type is \ref MapWin
30 ///Window of editorial tools. Its type is \ref EditWin
33 ///We need to store newmapwin, to be able to set the appropriate values for properties of new map.
36 ///The graph will be drawn on this \ref GraphDisplayerCanvas
37 GraphDisplayerCanvas gd_canvas;
39 ///ActionGroup for menu
40 Glib::RefPtr<Gtk::ActionGroup> ag;
43 Glib::RefPtr<Gtk::UIManager> uim;
48 ///This function makes map-setup window popped up.
49 virtual void showMaps();
50 ///This function makes editorial window popped up.
51 virtual void showEditorials();
52 ///Callback for 'FileNew' action.
53 virtual void newFile();
54 ///Callback for 'FileOpen' action.
55 virtual void openFile();
56 ///Callback for 'FileSave' action.
57 virtual void saveFile();
58 ///Callback for 'FileSaveAs' action.
59 virtual void saveFileAs();
60 ///Callback for 'Quit' action.