COIN-OR::LEMON - Graph Library

Changeset 1838:b61682f0ee96 in lemon-0.x for gui/map_win.cc


Ignore:
Timestamp:
11/30/05 14:24:23 (18 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2391
Message:

MapWin? is created and disposed from now instead of being show and hide.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/map_win.cc

    r1837 r1838  
    66  if(e->keyval==GDK_Escape)
    77  {
    8     hide();
     8    mainwin.closeMapWin();
     9    //    hide();
    910  }
    1011  return true;
     
    2425  for(int i=0;i<EDGE_PROPERTY_NUM;i++)
    2526  {
    26     e_combo_array[i]=new MapSelector(eml, i, true);
     27    e_combo_array[i]=new MapSelector(eml, mainwin.getActiveEdgeMap(i), i, true);
    2728
    2829    (*table).attach((*(e_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3);
     
    4445  for(int i=0;i<NODE_PROPERTY_NUM;i++)
    4546  {
    46     n_combo_array[i]=new MapSelector(nml, i, false);
     47    n_combo_array[i]=new MapSelector(nml, mainwin.getActiveNodeMap(i), i, false);
    4748
    4849    (*table).attach((*(n_combo_array[i])),0,1,i,i+1,Gtk::SHRINK,Gtk::SHRINK,10,3);
     
    6061  show_all_children();
    6162
     63}
     64
     65MapWin::~MapWin()
     66{
    6267}
    6368
     
    107112  }
    108113}
     114
     115bool MapWin::on_delete_event(GdkEventAny * event)
     116{
     117  event=event;
     118  mainwin.closeMapWin();
     119  return true;
     120}
Note: See TracChangeset for help on using the changeset viewer.