23 class MapSelector; |
23 class MapSelector; |
24 |
24 |
25 #include <all_include.h> |
25 #include <all_include.h> |
26 #include <libgnomecanvasmm.h> |
26 #include <libgnomecanvasmm.h> |
27 #include <libgnomecanvasmm/polygon.h> |
27 #include <libgnomecanvasmm/polygon.h> |
|
28 #include "map_value.h" |
28 |
29 |
29 ///Ancestor class of algorithm graphical interface classes. |
30 ///Ancestor class of algorithm graphical interface classes. |
30 |
31 |
31 ///It also demonstrates, how should an algorithm graphical interface |
32 ///It also demonstrates, how should an algorithm graphical interface |
32 ///work. Children of this class have the same functions and attributes, |
33 ///work. Children of this class have the same functions and attributes, |
136 ///Interface, through which \ref AlgoBox can be notified about nodemap addition. |
137 ///Interface, through which \ref AlgoBox can be notified about nodemap addition. |
137 |
138 |
138 ///If new map was added to \ref MapStorage of currently selected \ref NoteBookTab |
139 ///If new map was added to \ref MapStorage of currently selected \ref NoteBookTab |
139 ///a signal is emitted by it. This signal is connected to this function, so \ref MapSelector s |
140 ///a signal is emitted by it. This signal is connected to this function, so \ref MapSelector s |
140 ///in \ref nodemapcbts can be notified, and those can registrate the new map. (\ref MapSelector::append_text) |
141 ///in \ref nodemapcbts can be notified, and those can registrate the new map. (\ref MapSelector::append_text) |
141 void nodemaplist_changed(std::string); |
142 void nodemaplist_changed(std::string, MapValue::Type); |
142 |
143 |
143 ///Interface, through which \ref AlgoBox can be notified about edgemap addition. |
144 ///Interface, through which \ref AlgoBox can be notified about edgemap addition. |
144 |
145 |
145 ///If new map was added to \ref MapStorage of currently selected \ref NoteBookTab |
146 ///If new map was added to \ref MapStorage of currently selected \ref NoteBookTab |
146 ///a signal is emitted by it. This signal is connected to this function, so \ref MapSelector s |
147 ///a signal is emitted by it. This signal is connected to this function, so \ref MapSelector s |
147 ///in \ref edgemapcbts can be notified, and those can registrate the new map. (\ref MapSelector::append_text) |
148 ///in \ref edgemapcbts can be notified, and those can registrate the new map. (\ref MapSelector::append_text) |
148 void edgemaplist_changed(std::string); |
149 void edgemaplist_changed(std::string, MapValue::Type); |
149 |
150 |
150 ///Aid function to provide data for a given entry. |
151 ///Aid function to provide data for a given entry. |
151 |
152 |
152 ///At the moment it is only used for updating info |
153 ///At the moment it is only used for updating info |
153 ///in \ref tabcbt. It clears it first, after that |
154 ///in \ref tabcbt. It clears it first, after that |
181 |
182 |
182 ///Aid function to make addition of \ref MapSelector easy in \ref build_box. |
183 ///Aid function to make addition of \ref MapSelector easy in \ref build_box. |
183 |
184 |
184 ///\param label label to show in \ref MapSelector |
185 ///\param label label to show in \ref MapSelector |
185 ///\param itisedge whether edge or nodemaps stored in \ref MapSelector |
186 ///\param itisedge whether edge or nodemaps stored in \ref MapSelector |
186 void addMapSelector(std::string label, bool itisedge); |
187 void addMapSelector(std::string label, bool itisedge, MapType type = ALL); |
187 }; |
188 }; |
188 #endif //ALGOBOX_H |
189 #endif //ALGOBOX_H |