COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/main_win.h @ 1592:4708b716d2f4

Last change on this file since 1592:4708b716d2f4 was 1592:4708b716d2f4, checked in by Hegyi Péter, 15 years ago

EdgeMap? and NodeMap? creation is done, at last. Bach 4ever.

File size: 1.9 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 <edit_win.h>
11#include <libgnomecanvasmm.h>
12#include <libgnomecanvasmm/polygon.h>
13
14///This class is the main window of GUI.
15///It has menus, but the main part of it is the canvas.
16class MainWin : public Gtk::Window
17{
18public:
19  ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
20  ///\param title is the title of the window
21  ///\param graph is the graph that will be drawn here. It will be given further to the \ref GraphDisplayerCanvas
22  ///\param cm stores the coordinates of the nodes of the graph
23  ///\param ms is the \ref MapStorage in which the different visualizable maps are stored
24  MainWin(const std::string& title, Graph &, CoordinatesMap &, MapStorage &);
25
26protected:
27  ///Window of map-showing setup. Its type is \ref MapWin
28  MapWin mapwin;
29
30  ///Window of editorial tools. Its type is \ref EditWin
31  EditWin editwin;
32
33  ///We need to store newmapwin, to be able to set the appropriate values for properties of new map.
34  NewMapWin newmapwin;
35
36  ///The graph will be drawn on this \ref GraphDisplayerCanvas
37  GraphDisplayerCanvas gd_canvas;
38
39  ///ActionGroup for menu
40  Glib::RefPtr<Gtk::ActionGroup> ag;
41
42  ///UIManager for menu
43  Glib::RefPtr<Gtk::UIManager> uim;
44
45  ///Container
46  Gtk::VBox vbox;
47
48  ///This function makes map-setup window popped up.
49  virtual void showMaps();
50  ///This function makes editorial window popped up.
51  virtual void showEditorials();
52  ///Callback for 'FileNew' action.
53  virtual void newFile();
54  ///Callback for 'FileOpen' action.
55  virtual void openFile();
56  ///Callback for 'FileSave' action.
57  virtual void saveFile();
58  ///Callback for 'FileSaveAs' action.
59  virtual void saveFileAs();
60  ///Callback for 'Quit' action.
61  virtual void quit();
62};
63
64#endif //MAIN_WIN_H
Note: See TracBrowser for help on using the repository browser.