diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-08-21 11:02:52 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-08-21 11:02:52 +0200 |
commit | cd10b439d0465afa6bce38188a4e9d8a5e74d859 (patch) | |
tree | 54480623232fb0e8e94fd37a5c9e31603301dd35 /skins.c | |
parent | 5b76eec1afbe435b5d1dfabaaa9546f8e400cba7 (diff) | |
download | vdr-cd10b439d0465afa6bce38188a4e9d8a5e74d859.tar.gz vdr-cd10b439d0465afa6bce38188a4e9d8a5e74d859.tar.bz2 |
Added basic support for positioners to control steerable satellite dishes
Diffstat (limited to 'skins.c')
-rw-r--r-- | skins.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skins.c 2.10 2012/06/02 11:44:14 kls Exp $ + * $Id: skins.c 3.1 2013/08/18 12:07:22 kls Exp $ */ #include "skins.h" @@ -63,6 +63,22 @@ cSkinDisplay::~cSkinDisplay() current = NULL; } +// --- cSkinDisplayChannel --------------------------------------------------- + +cSkinDisplayChannel::cSkinDisplayChannel(void) +{ + positioner = NULL; +} + +void cSkinDisplayChannel::SetPositioner(const cPositioner *Positioner) +{ + if (positioner && Positioner != positioner) + SetMessage(mtInfo, NULL); + positioner = Positioner; + if (positioner) + SetMessage(mtInfo, cString::sprintf(tr("Moving dish to %.1f..."), double(positioner->TargetLongitude()) / 10)); +} + // --- cSkinDisplayMenu ------------------------------------------------------ cSkinDisplayMenu::cSkinDisplayMenu(void) |