main_win.h
branchgui
changeset 53 e73d7540bd24
parent 50 eedecee61922
child 54 9128e364fb19
equal deleted inserted replaced
7:4da9f8ad9a3b 8:1a7b0149e9d9
     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 
     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 "graph_displayer_canvas.h"
    10 #include <libgnomecanvasmm.h>
    12 #include <libgnomecanvasmm.h>
    11 #include <libgnomecanvasmm/polygon.h>
    13 #include <libgnomecanvasmm/polygon.h>
    12 
    14 
    13 ///This class is the main window of GUI.
    15 ///This class is the main window of GUI.
    14 ///It has menus, but the main part of it is the canvas.
    16 ///It has menus, but the main part of it is the canvas.
    15 class MainWin : public Gtk::Window
    17 class MainWin : public Gtk::Window
    16 {
    18 {
    17 public:
    19 public:
    18   ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
    20   ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
    19   ///\param title is the title of the window
    21   ///\param title is the title of the window
    20   ///\param graph is the graph that will be drawn here. It will be given further to the \ref GraphDisplayerCanvas
    22   MainWin(const std::string& title);
    21   ///\param cm stores the coordinates of the nodes of the graph
    23 
    22   ///\param ms is the \ref MapStorage in which the different visualizable maps are stored
    24   MapStorage mapstorage;
    23   MainWin(const std::string& title, Graph &, CoordinatesMap &, MapStorage &);
       
    24 
    25 
    25 protected:
    26 protected:
    26   ///Window of map-showing setup. Its type is \ref MapWin
    27   ///Window of map-showing setup. Its type is \ref MapWin
    27   MapWin mapwin;
    28   MapWin mapwin;
    28 
    29 
    50   virtual void openFile();
    51   virtual void openFile();
    51   ///Callback for 'FileSave' action.
    52   ///Callback for 'FileSave' action.
    52   virtual void saveFile();
    53   virtual void saveFile();
    53   ///Callback for 'FileSaveAs' action.
    54   ///Callback for 'FileSaveAs' action.
    54   virtual void saveFileAs();
    55   virtual void saveFileAs();
       
    56   ///Callback for 'Close' action.
       
    57   virtual void close();
    55 };
    58 };
    56 
    59 
    57 #endif //MAIN_WIN_H
    60 #endif //MAIN_WIN_H