COIN-OR::LEMON - Graph Library

source: lemon-0.x/gui/nbtab.h @ 1884:9c061834b33b

Last change on this file since 1884:9c061834b33b was 1849:a4d1362397fe, checked in by Hegyi Péter, 14 years ago

Notebook style is provided. Without opportunity to close tabs. :-) But with all other necessary things (I think).

File size: 1.3 KB
Line 
1// -*- C++ -*- //
2
3#ifndef NBTAB_H
4#define NBTAB_H
5
6class NoteBookTab;
7
8#include "mapstorage.h"
9#include "map_win.h"
10#include "graph_displayer_canvas.h"
11#include <libgnomecanvasmm.h>
12#include <libgnomecanvasmm/polygon.h>
13
14class NoteBookTab : public Gtk::VBox
15{
16public:
17  NoteBookTab();
18 
19  MapStorage mapstorage;
20   
21  sigc::signal<void, std::string> signal_title;
22
23  sigc::signal<void, std::string> signal_title_ch();
24
25  sigc::signal<void, NoteBookTab *, bool> signal_newmap;
26
27  sigc::signal<void, NoteBookTab *, bool> signal_newmap_needed();
28
29  void readFile(const std::string &);
30   
31  ///The graph will be drawn on this \ref GraphDisplayerCanvas
32  GraphDisplayerCanvas * gd_canvas;
33
34  bool mapwinexists;
35
36  MapWin * mapwin;
37   
38public:
39  ///Callback for 'FileNew' action.
40  virtual void newFile();
41  ///Callback for 'FileOpen' action.
42  virtual void openFile();
43  ///Callback for 'FileSave' action.
44  virtual void saveFile();
45  ///Callback for 'FileSaveAs' action.
46  virtual void saveFileAs();
47  ///Callback for 'Close' action.
48  virtual void close();
49
50  void propertyChange(bool, int, std::string);
51  void popupNewMapWin(bool, int);
52
53  std::string getActiveEdgeMap(int);
54  std::string getActiveNodeMap(int);
55
56  void registerNewEdgeMap(std::string);
57  void registerNewNodeMap(std::string);
58
59  void createMapWin(std::string);
60  void closeMapWin();
61};
62
63#endif //NBTAB_H
Note: See TracBrowser for help on using the repository browser.