Changeset 1849:a4d1362397fe in lemon-0.x for gui/map_win.cc
- Timestamp:
- 12/06/05 11:53:38 (19 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2414
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/map_win.cc
r1838 r1849 6 6 if(e->keyval==GDK_Escape) 7 7 { 8 m ainwin.closeMapWin();8 mytab.closeMapWin(); 9 9 // hide(); 10 10 } … … 12 12 } 13 13 14 MapWin::MapWin(const std::string& title, std::vector<std::string> eml, std::vector<std::string> nml, MainWin & mw):mainwin(mw)14 MapWin::MapWin(const std::string& title, std::vector<std::string> eml, std::vector<std::string> nml, NoteBookTab & mw):mytab(mw) 15 15 { 16 16 set_title(title); … … 25 25 for(int i=0;i<EDGE_PROPERTY_NUM;i++) 26 26 { 27 e_combo_array[i]=new MapSelector(eml, m ainwin.getActiveEdgeMap(i), i, true);27 e_combo_array[i]=new MapSelector(eml, mytab.getActiveEdgeMap(i), i, true); 28 28 29 29 (*table).attach((*(e_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3); … … 45 45 for(int i=0;i<NODE_PROPERTY_NUM;i++) 46 46 { 47 n_combo_array[i]=new MapSelector(nml, m ainwin.getActiveNodeMap(i), i, false);47 n_combo_array[i]=new MapSelector(nml, mytab.getActiveNodeMap(i), i, false); 48 48 49 49 (*table).attach((*(n_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3); … … 69 69 void MapWin::nodeMapChanged(std::string mapname, int prop) 70 70 { 71 m ainwin.propertyChange(false, prop, mapname);71 mytab.propertyChange(false, prop, mapname); 72 72 } 73 73 74 74 void MapWin::edgeMapChanged(std::string mapname, int prop) 75 75 { 76 m ainwin.propertyChange(true, prop, mapname);76 mytab.propertyChange(true, prop, mapname); 77 77 } 78 78 79 79 void MapWin::newMapWinNeeded(bool itisedge, int prop) 80 80 { 81 m ainwin.popupNewMapWin(itisedge, prop);81 mytab.popupNewMapWin(itisedge, prop); 82 82 } 83 83 … … 116 116 { 117 117 event=event; 118 m ainwin.closeMapWin();118 mytab.closeMapWin(); 119 119 return true; 120 120 }
Note: See TracChangeset
for help on using the changeset viewer.