Changeset 40:cebacea4f965 in glemon-0.x
- Timestamp:
- 07/26/05 20:14:23 (19 years ago)
- Branch:
- gui
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk/gui@2093
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
graph_displayer_canvas-edge.cc
r36 r40 107 107 int GraphDisplayerCanvas::changeEdgeText (std::string mapname, Graph::Edge edge) 108 108 { 109 110 109 //the number in the map will be written on the edge 111 //EXCEPT when the name of the map is Text, because110 //EXCEPT when the name of the map is Default, because 112 111 //in that case empty string will be written, because 113 112 //that is the deleter map -
graph_displayer_canvas-event.cc
r38 r40 806 806 void GraphDisplayerCanvas::addNewEdgeMap() 807 807 { 808 Graph::EdgeMap<double> * emptr=new Graph::EdgeMap<double> (g );808 Graph::EdgeMap<double> * emptr=new Graph::EdgeMap<double> (g,20); 809 809 mapstorage.addEdgeMap("NewEdgeMap",emptr); 810 810 mapwin->registerNewEdgeMap("NewEdgeMap"); 811 std::cout << "Add New EdgeMap is not yet implemented." << std::endl;811 changeEdgeText("NewEdgeMap"); 812 812 } 813 813 -
graph_displayer_canvas.h
r37 r40 150 150 151 151 ///Here we store the maps that can be displayed through properties. 152 MapStorage mapstorage;152 MapStorage & mapstorage; 153 153 154 154 ///Indicates whether the button of mouse is pressed or not -
map_win.cc
r38 r40 123 123 void MapWin::eComboChanged(int prop) 124 124 { 125 125 126 Gtk::Entry* entry = e_combo_array[prop].get_entry(); 126 127 … … 250 251 } 251 252 252 void MapWin::registerNewEdgeMap(std::string) 253 { 254 std::cout << "void MapWin::registerNewEdgeMap(std::string) is not yet implemented" << std::endl; 255 } 256 257 void MapWin::registerNewNodeMap(std::string) 258 { 259 std::cout << "void MapWin::registerNewNodeMap(std::string) is not yet implemented" << std::endl; 260 } 253 void MapWin::registerNewEdgeMap(std::string newmapname) 254 { 255 for(int i=0;i<EDGE_PROPERTY_NUM;i++) 256 { 257 //filling in combo box with choices 258 std::list<Glib::ustring> listStrings=e_combo_array[i].get_popdown_strings(); 259 listStrings.push_back(newmapname); 260 e_combo_array[i].set_popdown_strings(listStrings); 261 } 262 Gtk::Entry* entry = e_combo_array[E_TEXT].get_entry(); 263 entry->set_text((Glib::ustring)newmapname); 264 } 265 266 void MapWin::registerNewNodeMap(std::string newmapname) 267 { 268 for(int i=0;i<EDGE_PROPERTY_NUM;i++) 269 { 270 //filling in combo box with choices 271 std::list<Glib::ustring> listStrings=n_combo_array[i].get_popdown_strings(); 272 listStrings.push_back(newmapname); 273 n_combo_array[i].set_popdown_strings(listStrings); 274 } 275 }
Note: See TracChangeset
for help on using the changeset viewer.