Changeset 1884:9c061834b33b in lemon-0.x for gui/mapselector.cc
- Timestamp:
- 01/06/06 17:07:08 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2459
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gui/mapselector.cc
r1882 r1884 1 1 #include "mapselector.h" 2 2 3 MapSelector::MapSelector(std::vector<std::string> ml, std::string act, int identifier, bool edge):id(identifier),itisedge(edge),set_new_map(false)3 MapSelector::MapSelector(std::vector<std::string> ml, std::string act, std::string labeltext, bool edge, bool d):def(d),itisedge(edge),set_new_map(false) 4 4 { 5 5 update_list(ml); … … 23 23 ); 24 24 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); 33 26 34 27 label->set_width_chars(longest_property_string_length); … … 72 65 cbt.append_text(*emsi); 73 66 } 74 cbt.prepend_text("Default values"); 67 if(def) 68 { 69 cbt.prepend_text("Default values"); 70 } 75 71 if(prev_act!=-1) 76 72 {
Note: See TracChangeset
for help on using the changeset viewer.