equal
deleted
inserted
replaced
15 * purpose. |
15 * purpose. |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 |
19 #include <nbtab.h> |
19 #include <nbtab.h> |
|
20 #include <eps_win.h> |
20 |
21 |
21 NoteBookTab::NoteBookTab():mapwinexists(false), designwinexists(false), mapstorage(*this) |
22 NoteBookTab::NoteBookTab():mapwinexists(false), designwinexists(false), mapstorage(*this) |
22 { |
23 { |
23 Gtk::ScrolledWindow *pScrolledWindow = manage(new Gtk::ScrolledWindow); |
24 Gtk::ScrolledWindow *pScrolledWindow = manage(new Gtk::ScrolledWindow); |
24 gd_canvas=new GraphDisplayerCanvas(*this); |
25 gd_canvas=new GraphDisplayerCanvas(*this); |
224 mapwin->show(); |
225 mapwin->show(); |
225 mapwinexists=true; |
226 mapwinexists=true; |
226 } |
227 } |
227 } |
228 } |
228 |
229 |
|
230 void NoteBookTab::createExportToEPSWin(std::string name) |
|
231 { |
|
232 if(!epswinexists) |
|
233 { |
|
234 epswin=new EpsWin("Export to EPS - "+name, *this); |
|
235 epswin->show(); |
|
236 epswinexists=true; |
|
237 } |
|
238 } |
|
239 |
|
240 |
229 void NoteBookTab::createDesignWin(std::string name) |
241 void NoteBookTab::createDesignWin(std::string name) |
230 { |
242 { |
231 if(!designwinexists) |
243 if(!designwinexists) |
232 { |
244 { |
233 double attraction, propulsation; |
245 double attraction, propulsation; |
254 mapst2mapwin.disconnect(); |
266 mapst2mapwin.disconnect(); |
255 mapwinexists=false; |
267 mapwinexists=false; |
256 delete mapwin; |
268 delete mapwin; |
257 } |
269 } |
258 |
270 |
|
271 void NoteBookTab::closeEpsWin() |
|
272 { |
|
273 epswinexists=false; |
|
274 delete epswin; |
|
275 } |
|
276 |
259 bool NoteBookTab::closeDesignWin(GdkEventAny * e) |
277 bool NoteBookTab::closeDesignWin(GdkEventAny * e) |
260 { |
278 { |
261 if(e->type==GDK_DELETE) |
279 if(e->type==GDK_DELETE) |
262 { |
280 { |
263 designwinexists=false; |
281 designwinexists=false; |
288 |
306 |
289 void NoteBookTab::active_maps_needed() |
307 void NoteBookTab::active_maps_needed() |
290 { |
308 { |
291 mapstorage.broadcastActiveMaps(); |
309 mapstorage.broadcastActiveMaps(); |
292 } |
310 } |
|
311 |
|
312 void NoteBookTab::exportGraphToEPS(std::vector<bool> options, std::string filename) |
|
313 { |
|
314 mapstorage.exportGraphToEPS(options, filename); |
|
315 } |