main_win.h
branchgui
changeset 94 adfdc2f70548
parent 90 e9f8f44f12a3
child 95 628c0b383d2f
equal deleted inserted replaced
13:0d1f06081809 14:6d3954dd6b7a
     1 // -*- C++ -*- //
     1 // -*- C++ -*- //
     2 
     2 
     3 #ifndef MAIN_WIN_H
     3 #ifndef MAIN_WIN_H
     4 #define MAIN_WIN_H
     4 #define MAIN_WIN_H
       
     5 
       
     6 class MainWin;
     5 
     7 
     6 #include "all_include.h"
     8 #include "all_include.h"
     7 #include "mapstorage.h"
     9 #include "mapstorage.h"
     8 #include "map_win.h"
    10 #include "map_win.h"
     9 #include "new_map_win.h"
    11 #include "new_map_win.h"
    24 
    26 
    25   void readFile(const std::string &);
    27   void readFile(const std::string &);
    26 
    28 
    27 protected:
    29 protected:
    28   ///Window of map-showing setup. Its type is \ref MapWin
    30   ///Window of map-showing setup. Its type is \ref MapWin
    29   MapWin mapwin;
    31   MapWin * mapwin;
    30 
    32 
    31   ///The graph will be drawn on this \ref GraphDisplayerCanvas
    33   ///The graph will be drawn on this \ref GraphDisplayerCanvas
    32   GraphDisplayerCanvas gd_canvas;
    34   GraphDisplayerCanvas * gd_canvas;
    33 
    35 
    34   ///ActionGroup for menu
    36   ///ActionGroup for menu
    35   Glib::RefPtr<Gtk::ActionGroup> ag;
    37   Glib::RefPtr<Gtk::ActionGroup> ag;
    36 
    38 
    37   ///UIManager for menu
    39   ///UIManager for menu
    51   virtual void saveFile();
    53   virtual void saveFile();
    52   ///Callback for 'FileSaveAs' action.
    54   ///Callback for 'FileSaveAs' action.
    53   virtual void saveFileAs();
    55   virtual void saveFileAs();
    54   ///Callback for 'Close' action.
    56   ///Callback for 'Close' action.
    55   virtual void close();
    57   virtual void close();
       
    58 
       
    59 public:
       
    60   void propertyChange(bool, int, std::string);
       
    61   void popupNewMapWin(bool, int);
       
    62 
       
    63   std::string getActiveEdgeMap(int);
       
    64   std::string getActiveNodeMap(int);
       
    65 
       
    66   void registerNewEdgeMap(std::string);
       
    67   void registerNewNodeMap(std::string);
       
    68 
    56 };
    69 };
    57 
    70 
    58 #endif //MAIN_WIN_H
    71 #endif //MAIN_WIN_H