Changeset 1737:dc821d2668c1 in lemon-0.x for gui
- Timestamp:
- 10/24/05 12:15:40 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2265
- Location:
- gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/map_win.cc
r1733 r1737 93 93 e_combo_array[i]->append_text((Glib::ustring)newmapname); 94 94 } 95 //setting text property for the new map96 e_combo_array[N_TEXT]->set_active_text((Glib::ustring)newmapname);97 95 } 98 96 … … 104 102 n_combo_array[i]->append_text((Glib::ustring)newmapname); 105 103 } 106 //setting text property for the new map107 n_combo_array[N_TEXT]->set_active_text((Glib::ustring)newmapname);108 104 } -
gui/mapselector.cc
r1733 r1737 1 1 #include "mapselector.h" 2 2 3 MapSelector::MapSelector(GraphDisplayerCanvas & grdispc, MapStorage & mapst, NewMapWin & newmapw, int identifier, bool edge):gdc(grdispc),ms(mapst),nmw(newmapw),id(identifier),itisedge(edge),default_state(true), node_to_update(INVALID),edge_to_update(INVALID)3 MapSelector::MapSelector(GraphDisplayerCanvas & grdispc, MapStorage & mapst, NewMapWin & newmapw, int identifier, bool edge):gdc(grdispc),ms(mapst),nmw(newmapw),id(identifier),itisedge(edge),default_state(true),set_new_map(false),node_to_update(INVALID),edge_to_update(INVALID) 4 4 { 5 5 update_list(); … … 37 37 newbut->signal_pressed().connect 38 38 ( 39 sigc::mem_fun( nmw, &NewMapWin::show)39 sigc::mem_fun(*this, &MapSelector::new_but_pressed) 40 40 ); 41 41 … … 46 46 add(*defbut); 47 47 add(*newbut); 48 } 49 50 void MapSelector::new_but_pressed() 51 { 52 set_new_map=true; 53 nmw.showByPreChoose(itisedge); 48 54 } 49 55 … … 212 218 { 213 219 cbt.append_text(text); 214 } 220 if(set_new_map) 221 { 222 set_active_text(text); 223 set_new_map=false; 224 } 225 } -
gui/mapselector.h
r1733 r1737 27 27 bool default_state; 28 28 29 bool set_new_map; 30 29 31 Gtk::ComboBoxText cbt; 30 32 … … 51 53 virtual void comboChanged(); 52 54 55 virtual void new_but_pressed(); 56 53 57 virtual void reset(); 54 58 -
gui/new_map_win.cc
r1597 r1737 61 61 } 62 62 63 void NewMapWin::showByPreChoose(bool itisedge) 64 { 65 if(itisedge) 66 { 67 edge.set_active(); 68 } 69 else 70 { 71 node.set_active(); 72 } 73 node.hide(); 74 edge.hide(); 75 show(); 76 } 77 63 78 void NewMapWin::buttonPressed() 64 79 { … … 103 118 name.set_text(""); 104 119 default_value.set_text("0"); 120 edge.show(); 121 node.show(); 105 122 hide(); 106 123 } -
gui/new_map_win.h
r1593 r1737 33 33 virtual void buttonPressed(); 34 34 35 virtual void showByPreChoose(bool); 36 35 37 virtual bool closeIfEscapeIsPressed(GdkEventKey*); 36 38
Note: See TracChangeset
for help on using the changeset viewer.