diff options
author | Mike Fiore <mfiore@multitech.com> | 2015-11-19 09:16:44 -0600 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2015-11-19 09:16:44 -0600 |
commit | a683f4689264f85953c246ac15492bad25974197 (patch) | |
tree | b35489d769204cea05d19ce1c255f62fcb227ef3 /Layout/LayoutHelp.cpp | |
parent | 8167e5ad0453f2e6855f9622c2acddb9cf55c941 (diff) | |
download | mtdot-box-evb-factory-firmware-a683f4689264f85953c246ac15492bad25974197.tar.gz mtdot-box-evb-factory-firmware-a683f4689264f85953c246ac15492bad25974197.tar.bz2 mtdot-box-evb-factory-firmware-a683f4689264f85953c246ac15492bad25974197.zip |
use a single layout for help screens as they're basically all the same, misc tweaks and fixes
Diffstat (limited to 'Layout/LayoutHelp.cpp')
-rw-r--r-- | Layout/LayoutHelp.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Layout/LayoutHelp.cpp b/Layout/LayoutHelp.cpp new file mode 100644 index 0000000..0e029de --- /dev/null +++ b/Layout/LayoutHelp.cpp @@ -0,0 +1,40 @@ +#include "LayoutHelp.h" + +LayoutHelp::LayoutHelp(DOGS102* lcd) + : Layout(lcd), + _lIns1(0, 4, "Hold SW1 any time"), + _lIns2(0, 5, "for Main Menu"), + _fMode(0, 0, 17), + _fDesc(0, 1, 17), + _fSw1(9, 7, 8), + _fSw2(0, 7, 8) +{} + +LayoutHelp::~LayoutHelp() {} + +void LayoutHelp::display() { + clear(); + startUpdate(); + + writeLabel(_lIns1); + writeLabel(_lIns2); + + endUpdate(); +} + +void LayoutHelp::updateMode(std::string mode) { + writeField(_fMode, mode); +} + +void LayoutHelp::updateDescription(std::string description) { + writeField(_fDesc, description); +} + +void LayoutHelp::updateSw1(std::string s) { + writeField(_fSw1, s); +} + +void LayoutHelp::updateSw2(std::string s) { + writeField(_fSw2, s); +} + |