1.1 --- a/eps_win.cc Thu Mar 01 14:45:07 2007 +0000
1.2 +++ b/eps_win.cc Thu Mar 01 16:28:13 2007 +0000
1.3 @@ -17,6 +17,9 @@
1.4 */
1.5
1.6 #include <eps_win.h>
1.7 +
1.8 +#include <mapselector.h>
1.9 +
1.10 #include <set>
1.11
1.12 bool EpsWin::closeIfEscapeIsPressed(GdkEventKey* e)
1.13 @@ -28,7 +31,7 @@
1.14 return true;
1.15 }
1.16
1.17 -EpsWin::EpsWin(const std::string& title):Gtk::Dialog(title, true, true)
1.18 +EpsWin::EpsWin(const std::string& title, std::vector<std::string> nml):Gtk::Dialog(title, true, true)
1.19 {
1.20 set_default_size(200, 50);
1.21
1.22 @@ -54,12 +57,16 @@
1.23 (*table).attach(*(options[i]),0,1,i,i+1,Gtk::FILL,Gtk::SHRINK,10,3);
1.24 }
1.25
1.26 + mapselector=new MapSelector(nml, "", "Nodeshapes", false);
1.27 + mapselector->signal_newmapwin_needed().connect(sigc::mem_fun(*this, &EpsWin::newMapWinNeeded));
1.28 +
1.29 hbox.pack_start(*(new Gtk::Label("Filename")));
1.30 hbox.pack_start(name);
1.31
1.32 Gtk::VBox * vbox=get_vbox();
1.33
1.34 vbox->pack_start(*table);
1.35 + vbox->pack_start(*mapselector);
1.36 vbox->pack_start(hbox);
1.37
1.38 //OK button
1.39 @@ -87,7 +94,17 @@
1.40 {
1.41 values[i]=options[i]->get_active();
1.42 }
1.43 - signal_eps_details.emit(values, name.get_text());
1.44 + signal_eps_details.emit(values, name.get_text(), mapselector->get_active_text());
1.45 }
1.46 on_delete_event(NULL);
1.47 }
1.48 +
1.49 +void EpsWin::newMapWinNeeded(bool isitedge)
1.50 +{
1.51 + signal_new_map.emit(false);
1.52 +}
1.53 +
1.54 +void EpsWin::registerNewNodeMap(std::string newmapname)
1.55 +{
1.56 + mapselector->append_text((Glib::ustring)newmapname);
1.57 +}