gui/main_win.h
changeset 1502 371aba7d61ca
parent 1442 1e3c69aa035b
child 1592 4708b716d2f4
equal deleted inserted replaced
3:29657fa00b52 4:c663a3555953
     4 #define MAIN_WIN_H
     4 #define MAIN_WIN_H
     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 <edit_win.h>
     9 #include <libgnomecanvasmm.h>
    10 #include <libgnomecanvasmm.h>
    10 #include <libgnomecanvasmm/polygon.h>
    11 #include <libgnomecanvasmm/polygon.h>
    11 
    12 
    12 ///This class is the main window of GUI.
    13 ///This class is the main window of GUI.
    13 ///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.
    23 
    24 
    24 protected:
    25 protected:
    25   ///Window of map-showing setup. Its type is \ref MapWin
    26   ///Window of map-showing setup. Its type is \ref MapWin
    26   MapWin mapwin;
    27   MapWin mapwin;
    27 
    28 
       
    29   ///Window of editorial tools. Its type is \ref EditWin
       
    30   EditWin editwin;
       
    31 
    28   ///The graph will be drawn on this \ref GraphDisplayerCanvas
    32   ///The graph will be drawn on this \ref GraphDisplayerCanvas
    29   GraphDisplayerCanvas gd_canvas;
    33   GraphDisplayerCanvas gd_canvas;
    30 
    34 
    31   ///ActionGroup for menu
    35   ///ActionGroup for menu
    32   Glib::RefPtr<Gtk::ActionGroup> ag;
    36   Glib::RefPtr<Gtk::ActionGroup> ag;
    37   ///Container
    41   ///Container
    38   Gtk::VBox vbox;
    42   Gtk::VBox vbox;
    39 
    43 
    40   ///This function makes map-setup window popped up.
    44   ///This function makes map-setup window popped up.
    41   virtual void showMaps();
    45   virtual void showMaps();
       
    46   ///This function makes editorial window popped up.
       
    47   virtual void showEditorials();
    42   ///Callback for 'FileNew' action.
    48   ///Callback for 'FileNew' action.
    43   virtual void newFile();
    49   virtual void newFile();
    44   ///Callback for 'FileOpen' action.
    50   ///Callback for 'FileOpen' action.
    45   virtual void openFile();
    51   virtual void openFile();
    46   ///Callback for 'FileSave' action.
    52   ///Callback for 'FileSave' action.