gui/main_win.h
changeset 1599 c2f95eac652b
parent 1592 4708b716d2f4
child 1601 70d169a8313a
equal deleted inserted replaced
5:ec0ad9d7041e 6:e7e9c866dc93
     5 
     5 
     6 #include <all_include.h>
     6 #include <all_include.h>
     7 #include <mapstorage.h>
     7 #include <mapstorage.h>
     8 #include <map_win.h>
     8 #include <map_win.h>
     9 #include <new_map_win.h>
     9 #include <new_map_win.h>
    10 #include <edit_win.h>
       
    11 #include <libgnomecanvasmm.h>
    10 #include <libgnomecanvasmm.h>
    12 #include <libgnomecanvasmm/polygon.h>
    11 #include <libgnomecanvasmm/polygon.h>
    13 
    12 
    14 ///This class is the main window of GUI.
    13 ///This class is the main window of GUI.
    15 ///It has menus, but the main part of it is the canvas.
    14 ///It has menus, but the main part of it is the canvas.
    25 
    24 
    26 protected:
    25 protected:
    27   ///Window of map-showing setup. Its type is \ref MapWin
    26   ///Window of map-showing setup. Its type is \ref MapWin
    28   MapWin mapwin;
    27   MapWin mapwin;
    29 
    28 
    30   ///Window of editorial tools. Its type is \ref EditWin
       
    31   EditWin editwin;
       
    32 
       
    33   ///We need to store newmapwin, to be able to set the appropriate values for properties of new map.
    29   ///We need to store newmapwin, to be able to set the appropriate values for properties of new map.
    34   NewMapWin newmapwin;
    30   NewMapWin newmapwin;
    35 
    31 
    36   ///The graph will be drawn on this \ref GraphDisplayerCanvas
    32   ///The graph will be drawn on this \ref GraphDisplayerCanvas
    37   GraphDisplayerCanvas gd_canvas;
    33   GraphDisplayerCanvas gd_canvas;
    43   Glib::RefPtr<Gtk::UIManager> uim;
    39   Glib::RefPtr<Gtk::UIManager> uim;
    44 
    40 
    45   ///Container
    41   ///Container
    46   Gtk::VBox vbox;
    42   Gtk::VBox vbox;
    47 
    43 
    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.
    44   ///Callback for 'FileNew' action.
    53   virtual void newFile();
    45   virtual void newFile();
    54   ///Callback for 'FileOpen' action.
    46   ///Callback for 'FileOpen' action.
    55   virtual void openFile();
    47   virtual void openFile();
    56   ///Callback for 'FileSave' action.
    48   ///Callback for 'FileSave' action.
    57   virtual void saveFile();
    49   virtual void saveFile();
    58   ///Callback for 'FileSaveAs' action.
    50   ///Callback for 'FileSaveAs' action.
    59   virtual void saveFileAs();
    51   virtual void saveFileAs();
    60   ///Callback for 'Quit' action.
       
    61   virtual void quit();
       
    62 };
    52 };
    63 
    53 
    64 #endif //MAIN_WIN_H
    54 #endif //MAIN_WIN_H