From 0d59650e25c7f1176346bfdfe2186aba9ee7089c Mon Sep 17 00:00:00 2001 From: Ronny Strutz Date: Thu, 1 Sep 2005 02:03:17 +0000 Subject: [PATCH] added lcdclock --- main/enigma.cpp | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/main/enigma.cpp b/main/enigma.cpp index 46ffccce..2d258d98 100644 --- a/main/enigma.cpp +++ b/main/enigma.cpp @@ -1,8 +1,10 @@ #undef WITH_SDL + #ifdef WITH_SDL #error #define SDLDC #endif + #include #include #include @@ -15,6 +17,7 @@ #include #include #include + #ifdef WITH_SDL #error #include @@ -139,7 +142,7 @@ public: /************************************************/ -eLabel *lcd_label; +eLabel *lcd_label, *lcd_clock; int main(int argc, char **argv) { @@ -207,9 +210,19 @@ int main(int argc, char **argv) lcd_win->resize(eSize(132, 64)); lcd_label = new eLabel(lcd_win); - lcd_label->move(ePoint(0, 0)); - lcd_label->resize(eSize(132, 64)); - lcd_label->setText("bla bla bla, this lcd\nSUCKS!"); + lcd_label->move(ePoint(0, 10)); + lcd_label->resize(eSize(132, 36)); + ePtr font = new gFont("Arial", 16); + lcd_label->setFont(font); + + lcd_clock = new eLabel(lcd_win); + lcd_clock->move(ePoint(50, 46)); + lcd_clock->resize(eSize(132, 20)); + //ePtr clkfont = new gFont("Arial", 18); + lcd_clock->setFont(font); + + //lcd_label->setText("bla bla bla, this lcd\nSUCKS!"); + //lcd_clock->setText("88:88:88"); lcd_win->show(); @@ -243,3 +256,8 @@ void setLCD(const char *string) { lcd_label->setText(string); } + +void setLCDClock(const char *string) +{ + lcd_clock->setText(string); +} -- 2.30.2