diff -r 2cac5b936a2b -r af2ed974ab68 nbtab.cc --- a/nbtab.cc Tue Feb 20 17:45:44 2007 +0000 +++ b/nbtab.cc Tue Feb 27 17:18:19 2007 +0000 @@ -17,6 +17,7 @@ */ #include +#include NoteBookTab::NoteBookTab():mapwinexists(false), designwinexists(false), mapstorage(*this) { @@ -226,6 +227,17 @@ } } +void NoteBookTab::createExportToEPSWin(std::string name) +{ + if(!epswinexists) + { + epswin=new EpsWin("Export to EPS - "+name, *this); + epswin->show(); + epswinexists=true; + } +} + + void NoteBookTab::createDesignWin(std::string name) { if(!designwinexists) @@ -256,6 +268,12 @@ delete mapwin; } +void NoteBookTab::closeEpsWin() +{ + epswinexists=false; + delete epswin; +} + bool NoteBookTab::closeDesignWin(GdkEventAny * e) { if(e->type==GDK_DELETE) @@ -290,3 +308,8 @@ { mapstorage.broadcastActiveMaps(); } + +void NoteBookTab::exportGraphToEPS(std::vector options, std::string filename) +{ + mapstorage.exportGraphToEPS(options, filename); +}