ladanyi@1: // -*- C++ -*- // ladanyi@1: ladanyi@1: #ifndef MAIN_WIN_H ladanyi@1: #define MAIN_WIN_H ladanyi@1: ladanyi@1: #include ladanyi@1: #include ladanyi@1: #include ladanyi@1: #include ladanyi@1: #include ladanyi@1: hegyi@4: ///This class is the main window of GUI. hegyi@4: ///It has menus, but the main part of it is the canvas. ladanyi@1: class MainWin : public Gtk::Window ladanyi@1: { ladanyi@1: public: hegyi@4: ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn. hegyi@4: ///\param title is the title of the window hegyi@4: ///\param graph is the graph that will be drawn here. It will be given further to the \ref GraphDisplayerCanvas hegyi@4: ///\param cm stores the coordinates of the nodes of the graph hegyi@4: ///\param ms is the \ref MapStorage in which the different visualizable maps are stored ladanyi@1: MainWin(const std::string& title, Graph &, CoordinatesMap &, MapStorage &); ladanyi@1: ladanyi@1: protected: hegyi@4: ///Window of map-showing setup. Its type is \ref MapWin ladanyi@1: MapWin mapwin; ladanyi@1: hegyi@4: ///The graph will be drawn on this \ref GraphDisplayerCanvas ladanyi@1: GraphDisplayerCanvas gd_canvas; ladanyi@1: hegyi@4: ///ActionGroup for menu ladanyi@1: Glib::RefPtr ag; ladanyi@1: hegyi@4: ///UIManager for menu ladanyi@1: Glib::RefPtr uim; ladanyi@1: hegyi@4: ///Container ladanyi@1: Gtk::VBox vbox; ladanyi@1: hegyi@4: ///This function makes map-setup window popped up. ladanyi@1: virtual void showMaps(); ladanyi@1: hegyi@4: ///Exit ladanyi@1: virtual void quit(); ladanyi@1: hegyi@4: ///Refit screen to be able to show the whole graph. ladanyi@1: virtual void rezoom(); ladanyi@1: ladanyi@1: }; ladanyi@1: ladanyi@1: #endif //MAIN_WIN_H