COIN-OR::LEMON - Graph Library

Changeset 1849:a4d1362397fe in lemon-0.x for gui/map_win.cc


Ignore:
Timestamp:
12/06/05 11:53:38 (14 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2414
Message:

Notebook style is provided. Without opportunity to close tabs. :-) But with all other necessary things (I think).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/map_win.cc

    r1838 r1849  
    66  if(e->keyval==GDK_Escape)
    77  {
    8     mainwin.closeMapWin();
     8    mytab.closeMapWin();
    99    //    hide();
    1010  }
     
    1212}
    1313
    14 MapWin::MapWin(const std::string& title, std::vector<std::string> eml, std::vector<std::string> nml, MainWin & mw):mainwin(mw)
     14MapWin::MapWin(const std::string& title, std::vector<std::string> eml, std::vector<std::string> nml, NoteBookTab & mw):mytab(mw)
    1515{
    1616  set_title(title);
     
    2525  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    2626  {
    27     e_combo_array[i]=new MapSelector(eml, mainwin.getActiveEdgeMap(i), i, true);
     27    e_combo_array[i]=new MapSelector(eml, mytab.getActiveEdgeMap(i), i, true);
    2828
    2929    (*table).attach((*(e_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3);
     
    4545  for(int i=0;i<NODE_PROPERTY_NUM;i++)
    4646  {
    47     n_combo_array[i]=new MapSelector(nml, mainwin.getActiveNodeMap(i), i, false);
     47    n_combo_array[i]=new MapSelector(nml, mytab.getActiveNodeMap(i), i, false);
    4848
    4949    (*table).attach((*(n_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3);
     
    6969void MapWin::nodeMapChanged(std::string mapname, int prop)
    7070{
    71   mainwin.propertyChange(false, prop, mapname);
     71  mytab.propertyChange(false, prop, mapname);
    7272}
    7373
    7474void MapWin::edgeMapChanged(std::string mapname, int prop)
    7575{
    76   mainwin.propertyChange(true, prop, mapname);
     76  mytab.propertyChange(true, prop, mapname);
    7777}
    7878
    7979void MapWin::newMapWinNeeded(bool itisedge, int prop)
    8080{
    81   mainwin.popupNewMapWin(itisedge, prop);
     81  mytab.popupNewMapWin(itisedge, prop);
    8282}
    8383
     
    116116{
    117117  event=event;
    118   mainwin.closeMapWin();
     118  mytab.closeMapWin();
    119119  return true;
    120120}
Note: See TracChangeset for help on using the changeset viewer.