1.1 --- a/main_win.h Wed Jun 01 23:30:13 2005 +0000
1.2 +++ b/main_win.h Wed Jun 01 23:33:26 2005 +0000
1.3 @@ -1,54 +1,54 @@
1.4 -// -*- C++ -*- //
1.5 -
1.6 -#ifndef MAIN_WIN_H
1.7 -#define MAIN_WIN_H
1.8 -
1.9 -#include <all_include.h>
1.10 -#include <mapstorage.h>
1.11 -#include <map_win.h>
1.12 -#include <libgnomecanvasmm.h>
1.13 -#include <libgnomecanvasmm/polygon.h>
1.14 -
1.15 -///This class is the main window of GUI.
1.16 -///It has menus, but the main part of it is the canvas.
1.17 -class MainWin : public Gtk::Window
1.18 -{
1.19 -public:
1.20 - ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
1.21 - ///\param title is the title of the window
1.22 - ///\param graph is the graph that will be drawn here. It will be given further to the \ref GraphDisplayerCanvas
1.23 - ///\param cm stores the coordinates of the nodes of the graph
1.24 - ///\param ms is the \ref MapStorage in which the different visualizable maps are stored
1.25 - MainWin(const std::string& title, Graph &, CoordinatesMap &, MapStorage &);
1.26 -
1.27 -protected:
1.28 - ///Window of map-showing setup. Its type is \ref MapWin
1.29 - MapWin mapwin;
1.30 -
1.31 - ///The graph will be drawn on this \ref GraphDisplayerCanvas
1.32 - GraphDisplayerCanvas gd_canvas;
1.33 -
1.34 - ///ActionGroup for menu
1.35 - Glib::RefPtr<Gtk::ActionGroup> ag;
1.36 -
1.37 - ///UIManager for menu
1.38 - Glib::RefPtr<Gtk::UIManager> uim;
1.39 -
1.40 - ///Container
1.41 - Gtk::VBox vbox;
1.42 -
1.43 - ///This function makes map-setup window popped up.
1.44 - virtual void showMaps();
1.45 - ///Callback for 'FileNew' action.
1.46 - virtual void newFile();
1.47 - ///Callback for 'FileOpen' action.
1.48 - virtual void openFile();
1.49 - ///Callback for 'FileSave' action.
1.50 - virtual void saveFile();
1.51 - ///Callback for 'FileSaveAs' action.
1.52 - virtual void saveFileAs();
1.53 - ///Callback for 'Quit' action.
1.54 - virtual void quit();
1.55 -};
1.56 -
1.57 -#endif //MAIN_WIN_H
1.58 +// -*- C++ -*- //
1.59 +
1.60 +#ifndef MAIN_WIN_H
1.61 +#define MAIN_WIN_H
1.62 +
1.63 +#include <all_include.h>
1.64 +#include <mapstorage.h>
1.65 +#include <map_win.h>
1.66 +#include <libgnomecanvasmm.h>
1.67 +#include <libgnomecanvasmm/polygon.h>
1.68 +
1.69 +///This class is the main window of GUI.
1.70 +///It has menus, but the main part of it is the canvas.
1.71 +class MainWin : public Gtk::Window
1.72 +{
1.73 +public:
1.74 + ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
1.75 + ///\param title is the title of the window
1.76 + ///\param graph is the graph that will be drawn here. It will be given further to the \ref GraphDisplayerCanvas
1.77 + ///\param cm stores the coordinates of the nodes of the graph
1.78 + ///\param ms is the \ref MapStorage in which the different visualizable maps are stored
1.79 + MainWin(const std::string& title, Graph &, CoordinatesMap &, MapStorage &);
1.80 +
1.81 +protected:
1.82 + ///Window of map-showing setup. Its type is \ref MapWin
1.83 + MapWin mapwin;
1.84 +
1.85 + ///The graph will be drawn on this \ref GraphDisplayerCanvas
1.86 + GraphDisplayerCanvas gd_canvas;
1.87 +
1.88 + ///ActionGroup for menu
1.89 + Glib::RefPtr<Gtk::ActionGroup> ag;
1.90 +
1.91 + ///UIManager for menu
1.92 + Glib::RefPtr<Gtk::UIManager> uim;
1.93 +
1.94 + ///Container
1.95 + Gtk::VBox vbox;
1.96 +
1.97 + ///This function makes map-setup window popped up.
1.98 + virtual void showMaps();
1.99 + ///Callback for 'FileNew' action.
1.100 + virtual void newFile();
1.101 + ///Callback for 'FileOpen' action.
1.102 + virtual void openFile();
1.103 + ///Callback for 'FileSave' action.
1.104 + virtual void saveFile();
1.105 + ///Callback for 'FileSaveAs' action.
1.106 + virtual void saveFileAs();
1.107 + ///Callback for 'Quit' action.
1.108 + virtual void quit();
1.109 +};
1.110 +
1.111 +#endif //MAIN_WIN_H