1.1 --- a/nbtab.cc Tue Feb 20 17:45:44 2007 +0000
1.2 +++ b/nbtab.cc Tue Feb 27 17:18:19 2007 +0000
1.3 @@ -17,6 +17,7 @@
1.4 */
1.5
1.6 #include <nbtab.h>
1.7 +#include <eps_win.h>
1.8
1.9 NoteBookTab::NoteBookTab():mapwinexists(false), designwinexists(false), mapstorage(*this)
1.10 {
1.11 @@ -226,6 +227,17 @@
1.12 }
1.13 }
1.14
1.15 +void NoteBookTab::createExportToEPSWin(std::string name)
1.16 +{
1.17 + if(!epswinexists)
1.18 + {
1.19 + epswin=new EpsWin("Export to EPS - "+name, *this);
1.20 + epswin->show();
1.21 + epswinexists=true;
1.22 + }
1.23 +}
1.24 +
1.25 +
1.26 void NoteBookTab::createDesignWin(std::string name)
1.27 {
1.28 if(!designwinexists)
1.29 @@ -256,6 +268,12 @@
1.30 delete mapwin;
1.31 }
1.32
1.33 +void NoteBookTab::closeEpsWin()
1.34 +{
1.35 + epswinexists=false;
1.36 + delete epswin;
1.37 +}
1.38 +
1.39 bool NoteBookTab::closeDesignWin(GdkEventAny * e)
1.40 {
1.41 if(e->type==GDK_DELETE)
1.42 @@ -290,3 +308,8 @@
1.43 {
1.44 mapstorage.broadcastActiveMaps();
1.45 }
1.46 +
1.47 +void NoteBookTab::exportGraphToEPS(std::vector<bool> options, std::string filename)
1.48 +{
1.49 + mapstorage.exportGraphToEPS(options, filename);
1.50 +}