diff -r 2cac5b936a2b -r af2ed974ab68 nbtab.h --- a/nbtab.h Tue Feb 20 17:45:44 2007 +0000 +++ b/nbtab.h Tue Feb 27 17:18:19 2007 +0000 @@ -23,6 +23,8 @@ #include "mapstorage.h" #include "map_win.h" +//#include "eps_win.h" +class EpsWin; #include "design_win.h" #include "graph_displayer_canvas.h" #include @@ -97,6 +99,9 @@ ///Indicates whether the \ref DesignWin is opened or not. See \ref designwin. bool designwinexists; + ///Indicates whether the \ref EpsWin is opened or not. See \ref epswin. + bool epswinexists; + ///Address of the only \ref MapWin that the \ref NoteBookTab can open. ///Only one of this window can be opened at the same time (\ref mapwinexists), @@ -113,6 +118,13 @@ ///more complicated to synchronize them. DesignWin * designwin; + ///Address of the only \ref EpsWin that the \ref NoteBookTab can open. + + ///Only one of this window can be opened at the same time (\ref epswinexists), + ///because there is no need for more, one per tab is enough. + ///There won't be benefit of more than one. + EpsWin * epswin; + public: ///Callback for 'FileNew' action. virtual void newFile(); @@ -185,14 +197,29 @@ ///\ref mapwin. void createDesignWin(std::string); + ///Pops up a window, that can dump graph to EPS + + ///Different parameters can be set here. + void createExportToEPSWin(std::string); + ///Closes and deregistrates the \ref MapWin of \ref NoteBookTab. ///See also ///\ref mapwin. void closeMapWin(); + ///Closes and deregistrates the \ref DesignWin of \ref NoteBookTab. + + ///See also + ///\ref designwin. bool closeDesignWin(GdkEventAny *); + ///Closes and deregistrates the \ref EpsWin of \ref NoteBookTab. + + ///See also + ///\ref epswin. + void closeEpsWin(); + ///Sets node representation settings void setView(bool, bool, double, double); @@ -202,6 +229,9 @@ ///Let the graph redesign, based on gravity and edge elasticity. void reDesignGraph(); + ///Lets Mapstorage export the graph to EPS + void exportGraphToEPS(std::vector, std::string); + ///\ref MapWin calls this function when it updates the maplist in comboboxes. void active_maps_needed();