From fd34544fc3c676695e66c3cd5be2f53f8ac35257 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Thu, 4 Jan 2007 20:28:20 +0000 Subject: - introduced page "remote control" --- css/styles.css | 35 +++++++++++++++++++++++++++++++++++ pages/Makefile | 11 ++++++----- pages/keypress.ecpp | 16 ++++++++++++++++ pages/menu.ecpp | 5 +++-- 4 files changed, 60 insertions(+), 7 deletions(-) create mode 100644 pages/keypress.ecpp diff --git a/css/styles.css b/css/styles.css index b4fda24..8d17ee7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -147,3 +147,38 @@ table.schedule tr td { table.schedule tr.active { background: #DEE6EE; } + +<# + ########################## + # Remote Control Keypad + ########################## +#> + +table.keypad { + margin-top: 10px; + border: 1px solid #6D96A9; +} + +table.keypad tr td.button button { + width: 4em; +} + +table.keypad tr td.redbutton button { + width: 3em; + background-color: #FF0000; +} + +table.keypad tr td.greenbutton button { + width: 3em; + background-color: #00FF00; +} + +table.keypad tr td.yellowbutton button { + width: 3em; + background-color: #FFFF00; +} + +table.keypad tr td.bluebutton button { + width: 3em; + background-color: #0000FF; +} diff --git a/pages/Makefile b/pages/Makefile index d55b4a5..53266af 100644 --- a/pages/Makefile +++ b/pages/Makefile @@ -16,7 +16,8 @@ VDRDIR ?= ../../../.. ### The object files (add further files here): OBJS = menu.o event_widget.o channels.o recordings.o schedule.o \ - screenshot.o timers.o whats_on_now.o whats_on_next.o + screenshot.o timers.o whats_on_now.o whats_on_next.o \ + keypress.o remote.o ### Default rules: @@ -33,16 +34,16 @@ all: libpages.a $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $< %.cpp: %.gif - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_GIF) -b $< + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_GIF) -b -m "image/gif" $< %.cpp: %.jpg - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JPG) -b $< + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JPG) -b -m "image/jpg" $< %.cpp: %.css - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b $< + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b -m "text/css" $< %.cpp: %.js - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JS) -b $< + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JS) -b -m "test/javascript" $< ### Targets: diff --git a/pages/keypress.ecpp b/pages/keypress.ecpp new file mode 100644 index 0000000..2475dc1 --- /dev/null +++ b/pages/keypress.ecpp @@ -0,0 +1,16 @@ +<%pre> +#include + +<%args> +int keycode = kNone; + +<%cpp> +reply.setContentType("application/xml"); + + + + +<$ keycode $> + +<$ cRemote::Put( (eKeys)keycode ) ? "1" : "0" $> + diff --git a/pages/menu.ecpp b/pages/menu.ecpp index 8fc6b5e..dddc43c 100644 --- a/pages/menu.ecpp +++ b/pages/menu.ecpp @@ -7,5 +7,6 @@ <$ tr("What's on next?") $>
<$ tr("Schedule") $>
<$ tr("Timers") $>
- <$ tr("Recordings") $> - \ No newline at end of file + <$ tr("Recordings") $>
+ <$ tr("Remote Control") $> + -- cgit v1.2.3