Changeset 201:879e47e5b731 in glemon-0.x for mapselector.h
- Timestamp:
- 01/02/08 22:03:09 (16 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/glemon/trunk@3431
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mapselector.h
r194 r201 23 23 #include <libgnomecanvasmm.h> 24 24 #include <libgnomecanvasmm/polygon.h> 25 #include "map_value.h" 25 26 26 27 ///A widget by which node and edgemaps can be selected, deselected and created. … … 81 82 ///By pressing it 82 83 ///\ref NewMapWin wilol pop-up 83 Gtk::Button *newbut;84 Gtk::Button newbut; 84 85 85 86 ///Reset button. … … 89 90 /// 90 91 ///It is visible only if \ref def is true. 91 Gtk::Button * defbut; 92 93 ///Container in which GUI elements are packed. 94 Gtk::HBox hbox; 92 Gtk::Button defbut; 95 93 96 94 ///Shows purpose of \ref MapSelector piece. 97 Gtk::Label * label; 95 Gtk::Label label; 96 97 /// Which types of maps (integer, string, ...) to display. 98 MapType map_type; 98 99 99 100 public: … … 102 103 103 104 ///Creates the layout and binds signal to the correct place. 104 ///\param optionlist list of names to place in \ref cbt105 ///\param mapstorage Pointer to the \ref MapStorage to get the map list from. 105 106 ///\param act preselected option 106 107 ///\param purpose text of label indicating purpose of \ref MapStorage 107 108 ///\param itisedge do \ref MapSelector contains edgemap names or nodemapnames. 108 109 ///\param def do we need 'Default' option. See \ref def. 109 MapSelector(std::vector<std::string> optionlist, std::string act, std::string purpose, bool itisedge, bool def=true); 110 ///\param type Specifies which types of maps to display. 111 MapSelector(std::vector<std::string> n_ml, 112 std::vector<std::string> s_ml, std::string act, std::string labeltext, 113 bool edge, bool d = true, MapType type = ALL); 110 114 111 115 ///Returns signal emitted if the user has changed the selection. (\ref signal_cbt) … … 120 124 ///into account that the previously selected option 121 125 ///has to be set back after the operation. 122 void update_list( std::vector<std::string> ); 126 void update_list(std::vector<std::string> n_ml, 127 std::vector<std::string> s_ml); 123 128 124 129 ///Handles changement in \ref cbt. … … 169 174 ///this function will set \ref cbt to the new option. 170 175 ///\param new_option new option to append 171 void append_text(Glib::ustring new_option );176 void append_text(Glib::ustring new_option, MapValue::Type); 172 177 }; 173 178 #endif //MAPSELECTOR_H
Note: See TracChangeset
for help on using the changeset viewer.