52 { |
55 { |
53 options[i]=new Gtk::CheckButton(labels[i]); |
56 options[i]=new Gtk::CheckButton(labels[i]); |
54 (*table).attach(*(options[i]),0,1,i,i+1,Gtk::FILL,Gtk::SHRINK,10,3); |
57 (*table).attach(*(options[i]),0,1,i,i+1,Gtk::FILL,Gtk::SHRINK,10,3); |
55 } |
58 } |
56 |
59 |
|
60 mapselector=new MapSelector(nml, "", "Nodeshapes", false); |
|
61 mapselector->signal_newmapwin_needed().connect(sigc::mem_fun(*this, &EpsWin::newMapWinNeeded)); |
|
62 |
57 hbox.pack_start(*(new Gtk::Label("Filename"))); |
63 hbox.pack_start(*(new Gtk::Label("Filename"))); |
58 hbox.pack_start(name); |
64 hbox.pack_start(name); |
59 |
65 |
60 Gtk::VBox * vbox=get_vbox(); |
66 Gtk::VBox * vbox=get_vbox(); |
61 |
67 |
62 vbox->pack_start(*table); |
68 vbox->pack_start(*table); |
|
69 vbox->pack_start(*mapselector); |
63 vbox->pack_start(hbox); |
70 vbox->pack_start(hbox); |
64 |
71 |
65 //OK button |
72 //OK button |
66 add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); |
73 add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL); |
67 add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK); |
74 add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK); |
85 values.resize(EPS_PROPERTY_NUM); |
92 values.resize(EPS_PROPERTY_NUM); |
86 for(int i=0;i<EPS_PROPERTY_NUM;i++) |
93 for(int i=0;i<EPS_PROPERTY_NUM;i++) |
87 { |
94 { |
88 values[i]=options[i]->get_active(); |
95 values[i]=options[i]->get_active(); |
89 } |
96 } |
90 signal_eps_details.emit(values, name.get_text()); |
97 signal_eps_details.emit(values, name.get_text(), mapselector->get_active_text()); |
91 } |
98 } |
92 on_delete_event(NULL); |
99 on_delete_event(NULL); |
93 } |
100 } |
|
101 |
|
102 void EpsWin::newMapWinNeeded(bool isitedge) |
|
103 { |
|
104 signal_new_map.emit(false); |
|
105 } |
|
106 |
|
107 void EpsWin::registerNewNodeMap(std::string newmapname) |
|
108 { |
|
109 mapselector->append_text((Glib::ustring)newmapname); |
|
110 } |