COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/main_win.h @ 1598:739df601808d

Last change on this file since 1598:739df601808d was 1598:739df601808d, checked in by Hegyi Péter, 15 years ago

Redundant functions from main_win disappeared, entry is now bigger, properties refresh upon edition, edgewidth is zoomable.

File size: 1.6 KB
Line 
1// -*- C++ -*- //
2
3#ifndef MAIN_WIN_H
4#define MAIN_WIN_H
5
6#include <all_include.h>
7#include <mapstorage.h>
8#include <map_win.h>
9#include <new_map_win.h>
10#include <libgnomecanvasmm.h>
11#include <libgnomecanvasmm/polygon.h>
12
13///This class is the main window of GUI.
14///It has menus, but the main part of it is the canvas.
15class MainWin : public Gtk::Window
16{
17public:
18  ///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
20  ///\param graph is the graph that will be drawn here. It will be given further to the \ref GraphDisplayerCanvas
21  ///\param cm stores the coordinates of the nodes of the graph
22  ///\param ms is the \ref MapStorage in which the different visualizable maps are stored
23  MainWin(const std::string& title, Graph &, CoordinatesMap &, MapStorage &);
24
25protected:
26  ///Window of map-showing setup. Its type is \ref MapWin
27  MapWin mapwin;
28
29  ///We need to store newmapwin, to be able to set the appropriate values for properties of new map.
30  NewMapWin newmapwin;
31
32  ///The graph will be drawn on this \ref GraphDisplayerCanvas
33  GraphDisplayerCanvas gd_canvas;
34
35  ///ActionGroup for menu
36  Glib::RefPtr<Gtk::ActionGroup> ag;
37
38  ///UIManager for menu
39  Glib::RefPtr<Gtk::UIManager> uim;
40
41  ///Container
42  Gtk::VBox vbox;
43
44  ///Callback for 'FileNew' action.
45  virtual void newFile();
46  ///Callback for 'FileOpen' action.
47  virtual void openFile();
48  ///Callback for 'FileSave' action.
49  virtual void saveFile();
50  ///Callback for 'FileSaveAs' action.
51  virtual void saveFileAs();
52};
53
54#endif //MAIN_WIN_H
Note: See TracBrowser for help on using the repository browser.