Several changes. \n If new map is added to mapstorage it emits signal with the name of the new map. This was important, because from now on not only tha mapwin should be updated. \n Furthermore algobox gets a pointer to mapstorage instead of only the mapnames from it. This is important because without it it would be complicated to pass all of the required maps to algobox.
8 #include "mapstorage.h"
10 #include "graph_displayer_canvas.h"
11 #include <libgnomecanvasmm.h>
12 #include <libgnomecanvasmm/polygon.h>
14 class NoteBookTab : public Gtk::VBox
19 MapStorage mapstorage;
21 sigc::signal<void, std::string> signal_title;
23 sigc::signal<void, std::string> signal_title_ch();
25 sigc::signal<void, NoteBookTab *, bool> signal_newmap;
27 sigc::signal<void, NoteBookTab *, bool> signal_newmap_needed();
29 void readFile(const std::string &);
31 ///The graph will be drawn on this \ref GraphDisplayerCanvas
32 GraphDisplayerCanvas * gd_canvas;
39 ///Callback for 'FileNew' action.
40 virtual void newFile();
41 ///Callback for 'FileOpen' action.
42 virtual void openFile();
43 ///Callback for 'FileSave' action.
44 virtual void saveFile();
45 ///Callback for 'FileSaveAs' action.
46 virtual void saveFileAs();
47 ///Callback for 'Close' action.
50 void propertyChange(bool, int, std::string);
51 void popupNewMapWin(bool, int);
53 std::string getActiveEdgeMap(int);
54 std::string getActiveNodeMap(int);
56 void registerNewEdgeMap(std::string);
57 void registerNewNodeMap(std::string);
59 void createMapWin(std::string);