COIN-OR::LEMON - Graph Library

Changeset 1819:fd82adfbe905 in lemon-0.x for gui/mw-mapselector.cc


Ignore:
Timestamp:
11/21/05 13:07:05 (15 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2368
Message:

Reorganizing.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • gui/mw-mapselector.cc

    r1737 r1819  
    1 #include "mapselector.h"
    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),set_new_map(false),node_to_update(INVALID),edge_to_update(INVALID)
     1#include "map_win.h"
     2
     3MapWin::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)
    44{
    55  update_list();
     
    1010  cbt.signal_changed().connect
    1111    (
    12      sigc::mem_fun((*this), &MapSelector::comboChanged),
     12     sigc::mem_fun((*this), &MapWin::MapSelector::comboChanged),
    1313     false
    1414     );
     
    3030  defbut->signal_pressed().connect
    3131    (
    32      sigc::mem_fun(*this, &MapSelector::reset)
     32     sigc::mem_fun(*this, &MapWin::MapSelector::reset)
    3333     );
    3434
     
    3737  newbut->signal_pressed().connect
    3838    (
    39      sigc::mem_fun(*this, &MapSelector::new_but_pressed)
     39     sigc::mem_fun(*this, &MapWin::MapSelector::new_but_pressed)
    4040     );
    4141
     
    4848}
    4949
    50 void MapSelector::new_but_pressed()
     50void MapWin::MapSelector::new_but_pressed()
    5151{
    5252  set_new_map=true;
     
    5454}
    5555
    56 void MapSelector::update_list()
     56void MapWin::MapSelector::update_list()
    5757{
    5858  cbt.clear();
     
    7676}
    7777
    78 void MapSelector::comboChanged()
     78void MapWin::MapSelector::comboChanged()
    7979{
    8080  if(cbt.get_active_row_number()!=0)
     
    134134}
    135135
    136 void MapSelector::reset()
     136void MapWin::MapSelector::reset()
    137137{
    138138  default_state=true;
     
    177177}
    178178
    179 void MapSelector::update(Node node)
     179void MapWin::MapSelector::update(Node node)
    180180{
    181181  node_to_update=node;
     
    191191}
    192192
    193 void MapSelector::update(Edge edge)
     193void MapWin::MapSelector::update(Edge edge)
    194194{
    195195  edge_to_update=edge;
     
    205205}
    206206
    207 Glib::ustring MapSelector::get_active_text()
     207Glib::ustring MapWin::MapSelector::get_active_text()
    208208{
    209209  return cbt.get_active_text();
    210210}
    211211
    212 void MapSelector::set_active_text(Glib::ustring text)
     212void MapWin::MapSelector::set_active_text(Glib::ustring text)
    213213{
    214214  cbt.set_active_text(text);
    215215}
    216216
    217 void MapSelector::append_text(Glib::ustring text)
     217void MapWin::MapSelector::append_text(Glib::ustring text)
    218218{
    219219  cbt.append_text(text);
Note: See TracChangeset for help on using the changeset viewer.