COIN-OR::LEMON - Graph Library

Changeset 1737:dc821d2668c1 in lemon-0.x for gui/mapselector.cc


Ignore:
Timestamp:
10/24/05 12:15:40 (14 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2265
Message:

Newly created map is realized by the property givening by common sense.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/mapselector.cc

    r1733 r1737  
    11#include "mapselector.h"
    22
    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)
     3MapSelector::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)
    44{
    55  update_list();
     
    3737  newbut->signal_pressed().connect
    3838    (
    39      sigc::mem_fun(nmw, &NewMapWin::show)
     39     sigc::mem_fun(*this, &MapSelector::new_but_pressed)
    4040     );
    4141
     
    4646  add(*defbut);
    4747  add(*newbut);
     48}
     49
     50void MapSelector::new_but_pressed()
     51{
     52  set_new_map=true;
     53  nmw.showByPreChoose(itisedge);
    4854}
    4955
     
    212218{
    213219  cbt.append_text(text);
    214 }
     220  if(set_new_map)
     221    {
     222      set_active_text(text);
     223      set_new_map=false;
     224    }
     225}
Note: See TracChangeset for help on using the changeset viewer.