![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A DTMF sequence editor and player for HAM radio equipment command & control.
interactive_state.cpp@0:1324e7d9d471, 2011-03-07 (annotated)
- Committer:
- osmeest
- Date:
- Mon Mar 07 22:51:19 2011 +0000
- Revision:
- 0:1324e7d9d471
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
osmeest | 0:1324e7d9d471 | 1 | #include "system_states.hpp" |
osmeest | 0:1324e7d9d471 | 2 | #include "system.hpp" |
osmeest | 0:1324e7d9d471 | 3 | #include "display_manager.hpp" |
osmeest | 0:1324e7d9d471 | 4 | |
osmeest | 0:1324e7d9d471 | 5 | void InteractiveState::updateText() const { |
osmeest | 0:1324e7d9d471 | 6 | DisplayManager *display = system()->display(); |
osmeest | 0:1324e7d9d471 | 7 | display->hideCursor(); |
osmeest | 0:1324e7d9d471 | 8 | display->writeText(system()->text()); |
osmeest | 0:1324e7d9d471 | 9 | |
osmeest | 0:1324e7d9d471 | 10 | updateCursor(); |
osmeest | 0:1324e7d9d471 | 11 | } |
osmeest | 0:1324e7d9d471 | 12 | |
osmeest | 0:1324e7d9d471 | 13 | void InteractiveState::updateCursor() const { |
osmeest | 0:1324e7d9d471 | 14 | DisplayManager *display = system()->display(); |
osmeest | 0:1324e7d9d471 | 15 | display->moveTo(system()->cursor()); |
osmeest | 0:1324e7d9d471 | 16 | display->showCursor(); |
osmeest | 0:1324e7d9d471 | 17 | } |