* Resets the status of all the Surface child elements, * like unpressing buttons. */
| 193 | * like unpressing buttons. |
| 194 | */ |
| 195 | void State::resetAll() |
| 196 | { |
| 197 | for (std::vector<Surface*>::iterator i = _surfaces.begin(); i != _surfaces.end(); ++i) |
| 198 | { |
| 199 | InteractiveSurface *s = dynamic_cast<InteractiveSurface*>(*i); |
| 200 | if (s != 0) |
| 201 | { |
| 202 | s->unpress(this); |
| 203 | //s->setFocus(false); |
| 204 | } |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /** |
| 209 | * Get the localized text for dictionary key @a id. |