Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Examples

LCDTitle.cpp

00001 #include "LCDTitle.h"
00002 #include <sstream>
00003 #include <iostream>
00004 
00005 using namespace std;
00006 
00007 LCDTitle::LCDTitle(LCDElement *parent, const string &id) : LCDWidget(id, parent, "title")
00008 {
00009 }
00010 
00011 LCDTitle::LCDTitle(const string &text, LCDElement *parent, const string &id) : LCDWidget(id, parent, "title")
00012 {
00013   set(text);
00014 }
00015 
00016 void LCDTitle::notifyChanged()
00017 {
00018   ostringstream params;
00019 
00020   params << '"'
00021          << _text
00022          << '"';
00023 
00024   setWidgetParameters(params.str());
00025 }
00026 
00027 void LCDTitle::set(string text)
00028 {
00029   _text = text;
00030   notifyChanged();
00031 }
00032 
00033 string LCDTitle::get() const
00034 {
00035   return _text;
00036 }
00037 
00038 void LCDTitle::valueCallback(std::string value)
00039 {
00040   set(value);
00041 }

Generated on Wed Aug 4 19:39:09 2004 for LCDApi by doxygen 1.3.6