COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/main_win.h @ 1606:dc4ea2010dee

Last change on this file since 1606:dc4ea2010dee was 1606:dc4ea2010dee, checked in by Akos Ladanyi, 19 years ago

added support for saving files

File size: 1.5 KB
RevLine 
[1442]1// -*- C++ -*- //
2
3#ifndef MAIN_WIN_H
4#define MAIN_WIN_H
5
[1606]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 "graph_displayer_canvas.h"
[1442]12#include <libgnomecanvasmm.h>
13#include <libgnomecanvasmm/polygon.h>
14
15///This class is the main window of GUI.
16///It has menus, but the main part of it is the canvas.
17class MainWin : public Gtk::Window
18{
19public:
20  ///Constructor of the \ref MainWin. It creates the menu and the \ref GraphDisplayerCanvas on which the graph will be drawn.
21  ///\param title is the title of the window
[1606]22  MainWin(const std::string& title);
23
24  MapStorage mapstorage;
[1442]25
26protected:
27  ///Window of map-showing setup. Its type is \ref MapWin
28  MapWin mapwin;
29
[1592]30  ///We need to store newmapwin, to be able to set the appropriate values for properties of new map.
31  NewMapWin newmapwin;
32
[1442]33  ///The graph will be drawn on this \ref GraphDisplayerCanvas
34  GraphDisplayerCanvas gd_canvas;
35
36  ///ActionGroup for menu
37  Glib::RefPtr<Gtk::ActionGroup> ag;
38
39  ///UIManager for menu
40  Glib::RefPtr<Gtk::UIManager> uim;
41
42  ///Container
43  Gtk::VBox vbox;
44
[1601]45  ///Tooltips
46  Gtk::Tooltips tooltips;
47
[1442]48  ///Callback for 'FileNew' action.
49  virtual void newFile();
50  ///Callback for 'FileOpen' action.
51  virtual void openFile();
52  ///Callback for 'FileSave' action.
53  virtual void saveFile();
54  ///Callback for 'FileSaveAs' action.
55  virtual void saveFileAs();
[1606]56  ///Callback for 'Close' action.
57  virtual void close();
[1442]58};
59
60#endif //MAIN_WIN_H
Note: See TracBrowser for help on using the repository browser.