COIN-OR::LEMON - Graph Library

Changeset 1884:9c061834b33b in lemon-0.x for gui/mapselector.cc


Ignore:
Timestamp:
01/06/06 17:07:08 (14 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2459
Message:

In algorithm window maps can be selected and reated through MapSelector? widget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/mapselector.cc

    r1882 r1884  
    11#include "mapselector.h"
    22
    3 MapSelector::MapSelector(std::vector<std::string> ml, std::string act, int identifier, bool edge):id(identifier),itisedge(edge),set_new_map(false)
     3MapSelector::MapSelector(std::vector<std::string> ml, std::string act, std::string labeltext, bool edge, bool d):def(d),itisedge(edge),set_new_map(false)
    44{
    55  update_list(ml);
     
    2323     );
    2424 
    25   if(itisedge)
    26     {
    27       label=new Gtk::Label(edge_property_strings[id]);
    28     }
    29   else
    30     {
    31       label=new Gtk::Label(node_property_strings[id]);
    32     }
     25  label=new Gtk::Label(labeltext);
    3326
    3427  label->set_width_chars(longest_property_string_length);
     
    7265      cbt.append_text(*emsi);
    7366    }
    74   cbt.prepend_text("Default values");
     67  if(def)
     68    {
     69      cbt.prepend_text("Default values");
     70    }
    7571  if(prev_act!=-1)
    7672    {
Note: See TracChangeset for help on using the changeset viewer.