6 #include "all_include.h"
8 #include "new_map_win.h"
10 #include <libgnomecanvasmm.h>
11 #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
21 Gtk::Notebook notebook;
26 std::vector<NoteBookTab *> tabs;
27 std::vector<std::string> tabnames;
31 ///Constructor of the \ref NoteBookTab. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
32 ///\param title is the title of the window
35 void set_tabtitle(std::string);
37 ///ActionGroup for menu
38 Glib::RefPtr<Gtk::ActionGroup> ag;
41 Glib::RefPtr<Gtk::UIManager> uim;
43 void readFile(const std::string &);
46 Gtk::Tooltips tooltips;
48 //Call-backs of buttons
50 ///Callback for 'FileNew' action.
51 virtual void newFile();
52 ///Callback for 'FileOpen' action.
53 virtual void openFile();
54 ///Callback for 'FileSave' action.
55 virtual void saveFile();
56 ///Callback for 'FileSaveAs' action.
57 virtual void saveFileAs();
58 ///Callback for 'Close' action.
62 virtual void zoomIn();
63 virtual void zoomOut();
64 virtual void zoomFit();
65 virtual void zoom100();
67 virtual void createMapWin();
69 virtual void changeEditorialTool(int);
71 virtual void createNewMapWinAfterSignal(NoteBookTab *, bool);
72 virtual void createNewMapWin();
75 ///Callback for 'FileNewTab' action.
76 virtual void newTab();
77 virtual void closeTab();
78 virtual void onChangeTab(GtkNotebookPage*, guint);
79 virtual void onCloseTab();