[mythtv] [PATCH] Lcddevice customization
Leandro Dardini
ldardini at tiscali.it
Wed Feb 25 18:10:57 EST 2004
Set the Time screen priority to the lcdproc standard priority (=128) so
others lcdproc screens can be displayed
Index: libs/libmyth/lcddevice.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/lcddevice.cpp,v
retrieving revision 1.26
diff -u -2 -r1.26 lcddevice.cpp
--- libs/libmyth/lcddevice.cpp 15 Feb 2004 10:22:19 -0000 1.26
+++ libs/libmyth/lcddevice.cpp 25 Feb 2004 23:07:49 -0000
@@ -320,5 +320,5 @@
sendToServer("screen_add Time");
sendToServer("widget_del Time heartbeat");
- sendToServer("screen_set Time priority 254");
+ sendToServer("screen_set Time priority 128");
sendToServer("widget_add Time timeWidget string");
sendToServer("widget_add Time topWidget string");
@@ -503,5 +503,5 @@
void LCD::startTime()
{
- sendToServer("screen_set Time priority 254");
+ sendToServer("screen_set Time priority 128");
timeTimer->start(1000, FALSE);
outputTime();
When a new menu button is selected, always clear all the lcd screens. This
is important (for me) because when launching external programs (not qt
aware, like mplayer or xine/ogle) before the Menu timer is expired, then the
lcd screen remains displayed.
For this, I had to made stopAll() public.
Index: libs/libmyth/themedmenu.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/themedmenu.cpp,v
retrieving revision 1.76
diff -u -2 -r1.76 themedmenu.cpp
--- libs/libmyth/themedmenu.cpp 11 Feb 2004 06:20:23 -0000 1.76
+++ libs/libmyth/themedmenu.cpp 25 Feb 2004 22:58:17 -0000
@@ -1896,4 +1896,8 @@
else if (action == "SELECT")
{
+ if (lcddev)
+ {
+ lcddev->stopAll();
+ }
lastbutton = activebutton;
activebutton = NULL;
Index: libs/libmyth/lcddevice.h
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmyth/lcddevice.h,v
retrieving revision 1.13
diff -u -2 -r1.13 lcddevice.h
--- libs/libmyth/lcddevice.h 20 Jan 2004 05:53:40 -0000 1.13
+++ libs/libmyth/lcddevice.h 25 Feb 2004 23:06:09 -0000
@@ -172,4 +172,6 @@
void setupLEDs(int(*LedMaskFunc)(void)) { GetLEDMask = LedMaskFunc; }
+ void stopAll();
+
private slots:
void veryBadThings(int); // Communication Errors
@@ -206,5 +208,5 @@
int theRox = 1);
- void stopAll();
+
void startTime();
void startMusic(QString artist, QString track);
Thank you
Leandro
More information about the mythtv-dev
mailing list