1.1 --- a/nbtab.h Tue Feb 20 17:45:44 2007 +0000
1.2 +++ b/nbtab.h Tue Feb 27 17:18:19 2007 +0000
1.3 @@ -23,6 +23,8 @@
1.4
1.5 #include "mapstorage.h"
1.6 #include "map_win.h"
1.7 +//#include "eps_win.h"
1.8 +class EpsWin;
1.9 #include "design_win.h"
1.10 #include "graph_displayer_canvas.h"
1.11 #include <libgnomecanvasmm.h>
1.12 @@ -97,6 +99,9 @@
1.13 ///Indicates whether the \ref DesignWin is opened or not. See \ref designwin.
1.14 bool designwinexists;
1.15
1.16 + ///Indicates whether the \ref EpsWin is opened or not. See \ref epswin.
1.17 + bool epswinexists;
1.18 +
1.19 ///Address of the only \ref MapWin that the \ref NoteBookTab can open.
1.20
1.21 ///Only one of this window can be opened at the same time (\ref mapwinexists),
1.22 @@ -113,6 +118,13 @@
1.23 ///more complicated to synchronize them.
1.24 DesignWin * designwin;
1.25
1.26 + ///Address of the only \ref EpsWin that the \ref NoteBookTab can open.
1.27 +
1.28 + ///Only one of this window can be opened at the same time (\ref epswinexists),
1.29 + ///because there is no need for more, one per tab is enough.
1.30 + ///There won't be benefit of more than one.
1.31 + EpsWin * epswin;
1.32 +
1.33 public:
1.34 ///Callback for 'FileNew' action.
1.35 virtual void newFile();
1.36 @@ -185,14 +197,29 @@
1.37 ///\ref mapwin.
1.38 void createDesignWin(std::string);
1.39
1.40 + ///Pops up a window, that can dump graph to EPS
1.41 +
1.42 + ///Different parameters can be set here.
1.43 + void createExportToEPSWin(std::string);
1.44 +
1.45 ///Closes and deregistrates the \ref MapWin of \ref NoteBookTab.
1.46
1.47 ///See also
1.48 ///\ref mapwin.
1.49 void closeMapWin();
1.50
1.51 + ///Closes and deregistrates the \ref DesignWin of \ref NoteBookTab.
1.52 +
1.53 + ///See also
1.54 + ///\ref designwin.
1.55 bool closeDesignWin(GdkEventAny *);
1.56
1.57 + ///Closes and deregistrates the \ref EpsWin of \ref NoteBookTab.
1.58 +
1.59 + ///See also
1.60 + ///\ref epswin.
1.61 + void closeEpsWin();
1.62 +
1.63 ///Sets node representation settings
1.64 void setView(bool, bool, double, double);
1.65
1.66 @@ -202,6 +229,9 @@
1.67 ///Let the graph redesign, based on gravity and edge elasticity.
1.68 void reDesignGraph();
1.69
1.70 + ///Lets Mapstorage export the graph to EPS
1.71 + void exportGraphToEPS(std::vector<bool>, std::string);
1.72 +
1.73 ///\ref MapWin calls this function when it updates the maplist in comboboxes.
1.74 void active_maps_needed();
1.75