Changeset 114:0ace7edbb06f in glemon-0.x for algobox.cc
- Timestamp:
- 01/06/06 17:07:08 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2459
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
algobox.cc
r109 r114 74 74 for(int i=0;i<(int)nodemapcbts.size();i++) 75 75 { 76 update_cbt(nml, *(nodemapcbts[i])); 76 (nodemapcbts[i])->update_list(nml); 77 //update_cbt(nml, *(nodemapcbts[i])); 77 78 } 78 79 for(int i=0;i<(int)edgemapcbts.size();i++) 79 80 { 80 update_cbt(eml, *(edgemapcbts[i])); 81 (edgemapcbts[i])->update_list(eml); 82 //update_cbt(eml, *(edgemapcbts[i])); 81 83 } 82 84 } … … 107 109 pack_start(*(new Gtk::HSeparator())); 108 110 109 label=new Gtk::Label("Specific part for each algorithm.");111 Gtk::Label * label=new Gtk::Label("Specific part for each algorithm."); 110 112 111 113 pack_start(*label); … … 119 121 for(int i=0;i<(int)nodemapcbts.size();i++) 120 122 { 121 Gtk::HBox * hbox=new Gtk::HBox();123 std::vector<std::string> empty_vector; 122 124 123 125 std::ostringstream o; 124 126 o << "NodeInput " << i+1 << ":"; 125 label=new Gtk::Label(o.str());126 127 127 nodemapcbts[i]=new Gtk::ComboBoxText(); 128 nodemapcbts[i]=new MapSelector(empty_vector,"",o.str(),false, false); 129 nodemapcbts[i]->signal_newmapwin_needed().connect(sigc::mem_fun(*this, &AlgoBox::emit_new_map_signal)); 128 130 129 hbox->pack_start(*label); 130 hbox->pack_start(*(nodemapcbts[i])); 131 pack_start(*hbox); 131 pack_start(*(nodemapcbts[i])); 132 132 } 133 133 … … 137 137 for(int i=0;i<(int)edgemapcbts.size();i++) 138 138 { 139 Gtk::HBox * hbox=new Gtk::HBox();139 std::vector<std::string> empty_vector; 140 140 141 141 std::ostringstream o; 142 142 o << "EdgeInput " << i+1 << ":"; 143 label=new Gtk::Label(o.str());144 143 145 edgemapcbts[i]=new Gtk::ComboBoxText(); 144 edgemapcbts[i]=new MapSelector(empty_vector,"",o.str(),true, false); 145 edgemapcbts[i]->signal_newmapwin_needed().connect(sigc::mem_fun(*this, &AlgoBox::emit_new_map_signal)); 146 146 147 hbox->pack_start(*label); 148 hbox->pack_start(*(edgemapcbts[i])); 149 pack_start(*hbox); 147 pack_start(*(edgemapcbts[i])); 150 148 } 151 149 … … 171 169 } 172 170 } 171 172 void AlgoBox::emit_new_map_signal(bool itisedge) 173 { 174 signal_newmapwin_need.emit(tabcbt.get_active_text(), itisedge); 175 }
Note: See TracChangeset
for help on using the changeset viewer.