main_win.h
branchgui
changeset 26 b0c76a4d5801
parent 6 603b85626bc0
child 41 06f1f9a8d51f
equal deleted inserted replaced
3:9d298d62b029 4:31c26d528ab0
     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.