diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-11-19 12:43:39 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-11-19 12:43:39 -0600 |
commit | 11412cbac7021dd8aee14ac4f1dc25994c9ab45b (patch) | |
tree | c36accb42e1c2ef3711d1f2e80fe7eb99dc6d13b /Layout/LayoutHelp.cpp | |
parent | a683f4689264f85953c246ac15492bad25974197 (diff) | |
download | mtdot-box-evb-factory-firmware-11412cbac7021dd8aee14ac4f1dc25994c9ab45b.tar.gz mtdot-box-evb-factory-firmware-11412cbac7021dd8aee14ac4f1dc25994c9ab45b.tar.bz2 mtdot-box-evb-factory-firmware-11412cbac7021dd8aee14ac4f1dc25994c9ab45b.zip |
add info line to help layout
Diffstat (limited to 'Layout/LayoutHelp.cpp')
-rw-r--r-- | Layout/LayoutHelp.cpp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Layout/LayoutHelp.cpp b/Layout/LayoutHelp.cpp index 0e029de..7ed3e61 100644 --- a/Layout/LayoutHelp.cpp +++ b/Layout/LayoutHelp.cpp @@ -6,6 +6,7 @@ LayoutHelp::LayoutHelp(DOGS102* lcd) _lIns2(0, 5, "for Main Menu"), _fMode(0, 0, 17), _fDesc(0, 1, 17), + _fMsg(0, 6, 17), _fSw1(9, 7, 8), _fSw2(0, 7, 8) {} @@ -23,18 +24,26 @@ void LayoutHelp::display() { } void LayoutHelp::updateMode(std::string mode) { - writeField(_fMode, mode); + writeField(_fMode, mode, true); } void LayoutHelp::updateDescription(std::string description) { - writeField(_fDesc, description); + writeField(_fDesc, description, true); +} + +void LayoutHelp::updateMsg(std::string msg) { + writeField(_fMsg, msg, true); +} + +void LayoutHelp::removeMsg() { + removeField(_fMsg); } void LayoutHelp::updateSw1(std::string s) { - writeField(_fSw1, s); + writeField(_fSw1, s, true); } void LayoutHelp::updateSw2(std::string s) { - writeField(_fSw2, s); + writeField(_fSw2, s, true); } |